Sunday, October 30th, 2011 at
Android uses Uri (Uniform Resource Identifier) objects to identify the unique location of a piece of data. Uri objects are often used to specify the data that an Intent is supposed to use. In this case, we will create a Uri object from a web URL using the parse() method:
Uri uriUrl = Uri.parse(“http://www.schogini.com/”);
You can view HTML content using the following Intent: android.content.Intent.ACTION_VIEW. Begin by creating an Intent of this type and specifying the URI you created above, as follows, within your Button click handler:
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
When you launch this Intent, any applications that can display web will be able to handle this request. Once you have set the type data for the Intent, you can call the startActivity() method, passing in your Intent:
When you click on this button, the Browser application (which generally handles HTML content display) is launched to the website you provided.
Tuesday, June 28th, 2011 at
Applications can be started using intents.
Intent intent = new Intent(Intent.ACTION_MAIN);
Friday, June 24th, 2011 at
We often do release updates to our Applications. While releasing updates there are several things to be considered.
When installed as an update to a previous version, the following scenario might Occur,
App can’t even be installed at all.
There are certain parts of an application that are edited only once ie) during the first time of app creation. Once you publish an app, these has to be unaltered. This helps in avoiding surprises by understanding them. Here are a few important Points,
The package name should never be changed during an update. It causes the Android System to treat the new update application as an entirely new Application.
Possible Issues – Broken Widget and Shortcuts
Developer Certificate and Key
The developer’s certificate and key must be the same as the previous issue. This causes the Signature Mismatch error and fails the new update. It doesn’t allow to install the update at all.
Thursday, May 26th, 2011 at
Robolectric is a unit test framework that de-fangs the Android SDK jar so you can test-drive the development of your Android app. Tests run inside the JVM on your workstation in seconds. With Robolectric you can write test simple and efficient
Fast and responsive
Easier testing just using the JVM
Highly efficient and productive
Tuesday, April 26th, 2011 at
KinetaMap is a combination of technologies that allow datalogging and transmission of GPS location and accelerometer data. Kinesiology is a growing field of research where human movement and motion can be analyzed for various applications. KinetaMap has the ability to capture things like pedestrian gait, vehicle braking, or package handling. The logs give you GPS location and the raw acceleration readings – it’s up to you to decipher what they mean!
KinetaMap comes with basic firmware that currently supports acceleration and GPS logging. Flip the power switch and GPS will be logged once per second, accelerometer readings (X/Y/Z) at ten times per second. We designed KinetaMap to be as flexible and hackable as possible. It has the LPC2148 USB bootloader built-in which allows updates to the firmware easily and quickly over USB.
Thursday, March 24th, 2011 at
I want to share the solution for classpath error when developing Android applications in Eclipse. Though I was not able to find the exact cause behind this issue, I found an effective way to fix it, which I’m sharing, so that it will be of use to someone who’s desperately searching the net to find a solution!
If you try to configure build path by adding a jar file from the ‘/libs‘ folder and you encounter the following error,
When you try to add a jar file directly to build path (kept in your “/libs/” folder) and you get the following error,
Try the following steps to fix it.
1)Clean your project, build and run again.
2)If step 1 didn’t work, then Go to Eclipse Workspace, open your project folder and edit .classpath file in a text editor and add the following line,
<classpathentry kind=”lib” path=”libs/<your_file.jar>”/>
Here, I’m assuming that the jar file is in your “/libs/” folder.
Restart Eclipse, and build and run your project.. that’s it!
Incoming search terms:
- android classpath error
- classpath error eclipse
- eclipse classpath error
- eclipse correct error classpath file
- smart way to fix classpath errors in eclipse