Android – ToggleButton example

|

Problem: ToggleBar Example Description: This is just the simple example for implementing ToggleButton in android application. Below are some methods which we have used in this example: setOnClickListener – Used to register a callback whenever view is clicked setChecked() – used to mark toggle button as checked/unchecked setTextOn() – used...

Android – Show error in EditText

|

Problem: How to show error/alert for some cases in EditText? Description: Consider a case that we are supposed to collect information from users by filling EditText box and user leaves EditText blank, at that we display alert/error message “Please enter string”. But here is a best way to display alert/error...

Android JSON Parsing tutorial

|

Android JSON Parsing Example I have found many newbie android programmers are facing issues in implementing JSON Parsing, this article is for them with step by step demo. Now a days, almost all the web APIs are REST based and it returns JSON response. We have to parse the JSON...

Android – Secret codes

|

Hi, Today Let me discuss about some secret codes that we developer and android users are not knowing mostly but it can be helpful to us in some way. Around 2 days ago, i got one article describing iPhone secret codes those i have posted here: http://fb.me/16v9zEEdK. So i thought same...

Android => Re-installation failed due to different application signatures.

|

Problem: Re-installation failed due to different application signatures. Description:  While developing an android application, I tried to run the application and got the below error: Solution: After searching and checking the phone, I came to know I am currently developing 2nd version of this application which is already downloaded from android...

Android – Get/access file(path) from SD-card

|

Problem: How do we get/access file from SD-card? Solution: Output:Output of Environment.getExternalStorageDirectory() can be either /sdcard or /mnt/sdcard. As i have tested it, it returns the below output on different brand device: In Samsung Galaxy 3 => /mnt/sdcard/test.mp3 In HTC Hero => /sdcard/test.mp3...

Android – parseSdkContent failed

|

Problem: ‘Android SDK Content Loader’ has encountered a problem. parseSdkContent failed Solution: Today i just have started development under the Eclipse Indigo environment and while setting Android SDK preferences, i suddently got the following error: ‘Android SDK Content Loader’ has encountered a problem. parseSdkContent failed java.lang.NullPointerException. I have tried to...