From Confoo 2014:Read More
On release day, I purchased a Samsung Galaxy Gear smart watch – and subsequently found out that it:
I own a Galaxy Nexus (that I received at Google IO), and I was determined to make Gear Manager work on my phone. This forum on XDA Developers had some very useful information. Here are the three steps I used to successfully install Gear Manager on a Google Nexus & activate my watch:
Gear Manager is semi-functional on the Google Nexus. You can modify watch faces, set the time, do basic configuration. If you click on Settings or Samsung Apps, chances are that the Gear Manager will freeze up and crash. Weather and Music won’t work out of the box – I’ll keep experimenting to see if I can fix some of these issues. In my next blog post, I’ll explain how to sideload apps on the Galaxy Gear. Cheers!Read More
If you’re developing native iOS app with Appcelerator Titanium, chances are that you may want to integrate with Facebook. In the past, you had to invoke a modal window that brought up a web view with the mobile login screen. It’s not documented very well on the Appcelerator website, but there is also a way of integrating directly with the Single Sign On (SSO) functionality via the Facebook iOS app (if the user has it installed). I’ll describe it here on this blog post.
The first step involves creating a new app ID for your application on Facebook.com. Simply navigate to the Facebook Developer website. Click on the “Apps” link on the top right of the screen, then click on the “+ Create a new app” button. Once the app has been created, make note of the 12-digit App ID/API Key – you’ll be using it a lot while configuring your project.
The second step involves editing your tiapp.xml file (usually found at the root of your Titanium project). You’ll find a section in the XML that has a guid and properties. Add the following property (substituting the x’s with your Facebook App ID):
At the end of the tiapp.xml file, you’ll notice a section for <modules/>. Substitute it with the following lines of code (to include the Facebook module in your project). Note that the native Facebook module is only officially supported in Titanium SDK 3.1 and above:
After performing these steps, you can save and close tiapp.xml. The third step involves including your Info.plist file in the root of your project, and modifying it as shown below. By modifying the CFBundleURLTypes, CFBundleURLName, and CFBundleURLSchemes, the Facebook app will be able to navigate back to your app once the authentication is complete.
First, build your Titanium project. Once the build is complete, go into the build folder of the project and copy the Info.plist file into the root of your Titanium project. Now you need to edit the Info.plist file (as shown below). Under CFBundleURLName, include the namespace of your project (which should be found in your tiapp.xml file). Under CFBundleURLSchemes, include the official name of your app and a string that starts with fb and your Facebook App ID (as shown below):
The final step involves completing your Titanium app. In your app.js file, include the following:
Substitute the x’s with your Facebook App ID. Be sure you set the forceDialogAuth to false – if you set it to true, it will force the undesirable modal window to pop up. Setting it to false will force the authentication to happen in the Facebook app (as shown in the top image of this blog post). Now let’s include event handlers to pop up modal windows and confirm whether we have been authenticated or not. Note that the event handlers are attached directly to the Facebook object, and not to the Facebook button:
Lastly, let’s create a window for our app, attach a Facebook button, and launch our application (as shown below):
Hope these instructions are useful – cheers!
If you encounter this error on your PHP site (in Google Chrome), chances are that your server administrator or hosting company set up restrictions on certain folder permissions. For example, your site root folder may be set to CHMOD 777 (means anyone can read and write to your website, a bad idea). If you update the permissions on your folders to 755 or 644, it could fix the problem.Read More
I just started developing apps for the Recon HUD Goggles (http://developers.reconinstruments.com). After updating the Android SDK, tried to get ADB (Android Debug Bridge) to recognize the device after plugging in via USB (and enabling USB debugging by clicking Settings > Advanced > USB Debugging on the goggles). Recon runs on a modified version of Android OS version 4.1. No matter what I tried, ADB could not detect the goggles (see below).
By default, ADB does not automatically detect all Android devices under the sun. The fix involves updating the adb_usb.ini file in your Android user directory with the vendor ID of your device. But how do you uncover the vendor ID? Plug in the goggles to your computer using the USB cable, and type in the following command in Terminal:
You’ll get a list of all the USB devices attached to your computer (including the goggles). Here is the output relating to my pair of goggles:
You’ll notice the Recon vendor ID code in my case is 0×2523 (yours might be slightly different depending on your brand of HUD glasses or goggles). Make note of it and type in the following command to make sure the an adb_usb.ini file has been generated:
Now you have to edit your adb_usb.ini file. Here is the path:
Once you’ve got the .ini file open in your favorite text editor, include the vendor ID (as shown below):
In order for ADB to recognize these changes, you’ll need to restart it. Type in the following commands in Terminal:
Now ADB should be able to see the goggles. Type in “adb devices” in Terminal and you should see output similar to what’s shown below (indicating that the device has been recognized).
You can now deploy your own .apk based-apps to the googles. Here are the commands to make it happen:
Hope this helps not only developers working with Recon, but also if you are generally having trouble getting ADB to recognize your new Android devices. Good luck!Read More
There are times when you’re working on a website or a mobile app and need to find photos, icons, and fonts to realize the design. Here are a few of my favorites (the above image was found on Unsplash):
Do you have any other great image & font resources? Tweet them over to @jldavid.Read More
There may be circumstances where you would want to download your own Twitter photos, or from someone you know. Here is a quick and easy way to download all of a Twitter user’s photos in seconds. For this tutorial, you will need:
Here are the steps: