Two App Guys
Two App Guys > Blog

showContacts crashing using Titanium

Posted by John on May 3, 2011, Categories: Blog

1
showContacts crashing using...


Hello all, I just wanted to make a quick rant, about trying to get support from appcelerator, I paid my money, they insist that it works, sort of a WORKS_FOR_ME type thing, and I have proven time and time again that it doesn’t work..

You want the easy view


Read More

Taco Bell

Posted by John on Oct 25, 2010, Categories: Blog

0
Taco Bell


Excerpt from teddziuba.com‘s post titled “Taco Bell Programming”

Taco Bell Programming is about developers knowing enough about Ops (and Unix in general) so that they don’t overthink things, and arrive at simple, scalable solutions.

See the who post here.

Here is my Taco Bell Program

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/php
<?php
	// Set up DB connections
	$db = mysql_connect("127.0.0.1", "xxx", "xxx");
 
	if ($db == 0)
	{
		echo "Error: 998";
		exit;
	}
 
	$selectdb = mysql_select_db("reports", $db);
 
	if ($selectdb == 0)
	{
		echo "Error: 999";
		exit;
	}
 
	$good_lines = 0;


Read More

GPS, it’s the Cat’s Meow!

Posted by John on Sep 21, 2010, Categories: Blog

2
GPS, it’s the Cat’...


Hey everyone, time for another installment. I have been messing minimally with GPS on my Android phone and Appcelerator. This works awesome, and I am going to give you a full example of an app! w00t

I am doing all in app.js

Android has a few less options from iPhone like checking for Geolocation true or false, but its cool-it still works great! Start by making a new Appcelerator app. See my previous tutorials for that.
Best to first set the GPS options.

1
2
Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;
	Titanium.Geolocation.distanceFilter = 4;

I am going to give you the crown jewel right now…this is the part that makes it all happen.
I find this method fails a lot. I am making a running application so I figure the person starts the app before they are outside and GPS might be a bit flaky, so I just return out of this.1`

Titanium.Geolocation.getCurrentPosition(function(e) {
    if (e.error) {
        return;
    }
});


Read More

My subscribers:

Subscribe via Twitter
561 Followers
Subscribe via Facebook
366 Fans
Subscribe via Email
Subscribe
Subscribe via RSS
Readers

Popular Tags

Twitter Updates