<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Android Development Tutorials - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-7ff1f5a8" type="application/json"/><link>http://androiddevelopmenttutorials.disqus.com/</link><description></description><atom:link href="http://androiddevelopmenttutorials.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 15 May 2012 14:13:34 -0000</lastBuildDate><item><title>Re: Start Service at boot</title><link>http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/#comment-529476253</link><description>&lt;p&gt; nope I haven't, still looking for it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andi</dc:creator><pubDate>Tue, 15 May 2012 14:13:34 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-528396634</link><description>&lt;p&gt;public class ListItemClickActivity extends ListActivity&lt;br&gt;{&lt;br&gt;    ArrayList&amp;lt;hashmap&amp;lt;string, object=""&amp;gt;&amp;gt; mylist = new ArrayList&amp;lt;hashmap&amp;lt;string, object=""&amp;gt;&amp;gt;();  &lt;br&gt;    ProgressDialog progress;&lt;br&gt;    ListView lv;&lt;br&gt;    /** Called when the activity is first created. */&lt;br&gt;    @Override&lt;br&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br&gt;        super.onCreate(savedInstanceState);&lt;br&gt;        setContentView(R.layout.news);&lt;br&gt;       lv=getListView();&lt;br&gt;        &lt;br&gt;new Download().execute("");&lt;br&gt;        &lt;br&gt;    }&lt;br&gt;   &lt;br&gt;    String url="&lt;a href="http://api.androidhive.info/contacts/" rel="nofollow"&gt;http://api.androidhive.info/co...&lt;/a&gt;";&lt;br&gt;    InputStream is;&lt;br&gt;    String result = "";&lt;br&gt;    &lt;br&gt;    private class Download extends AsyncTask&amp;lt;string, void,string=""&amp;gt;&lt;br&gt;    {&lt;br&gt;        &lt;br&gt;        JSONObject json;&lt;br&gt;        &lt;br&gt;                   @Override&lt;br&gt;                   protected String doInBackground(String...params) {&lt;br&gt;                             // TODO Auto-generated method stub&lt;br&gt;                             &lt;br&gt;                       /*****JSON PARSING******/&lt;br&gt;                       try{&lt;br&gt;                       HttpClient httpclient = new DefaultHttpClient();&lt;br&gt;                       HttpPost httppost = new HttpPost(url);&lt;br&gt;                       //httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));&lt;br&gt;                      &lt;br&gt;                       HttpResponse response = httpclient.execute(httppost);&lt;br&gt;                      &lt;br&gt;                       HttpEntity entity = response.getEntity();&lt;br&gt;                       is = entity.getContent();&lt;br&gt;               }catch(Exception e){&lt;br&gt;                       Log.e("log_tag", "Error in http connection "+e.toString());&lt;br&gt;               }&lt;br&gt;               &lt;br&gt;               //convert response to string&lt;br&gt;               try{&lt;br&gt;                       BufferedReader reader = new BufferedReader(new InputStreamReader(is,"iso-8859-1"),8);&lt;br&gt;                       StringBuilder sb = new StringBuilder();&lt;br&gt;                       String line = null;&lt;br&gt;                       while ((line = reader.readLine()) != null) {&lt;br&gt;                               sb.append(line + "\n");&lt;br&gt;                       }&lt;br&gt;                       is.close();&lt;br&gt;                  &lt;br&gt;                       result=sb.toString();&lt;br&gt;               }catch(Exception e){&lt;br&gt;                       Log.e("log_tag", "Error converting result "+e.toString());&lt;br&gt;               }&lt;br&gt;                &lt;br&gt;               //parse json data&lt;br&gt;               try{&lt;br&gt;                                &lt;br&gt;                   JSONObject jObj = new JSONObject(result);&lt;br&gt;                   JSONArray jArray =jObj.getJSONArray("contacts");&lt;br&gt;                     //JSONArray jArray = new JSONArray(result);&lt;br&gt;                       &lt;br&gt;                       for(int i=0;i&amp;lt;jarray.length();i++){ hashmap&amp;lt;string,="" object=""   =""    =""                    =""&amp;gt; map = new HashMap&amp;lt;string, object=""&amp;gt;();&lt;br&gt;                               JSONObject json_data = jArray.getJSONObject(i);&lt;br&gt;                                                            String user=json_data.getString("name");&lt;br&gt;                               String sex=json_data.getString("gender");&lt;br&gt;                               String time=json_data.getString("email");&lt;br&gt;                              //String image=json_data.getString("Profile_Pic");&lt;br&gt;                               &lt;br&gt;                               map.put("name", user);&lt;br&gt;                               map.put("time", time);&lt;br&gt;                               map.put("sex", sex);&lt;br&gt;                          &lt;br&gt;//                              &lt;br&gt;                               mylist.add(map);&lt;br&gt;                               //map.put("sex", value)&lt;br&gt;                               Log.i("log_tag",""+mylist);&lt;br&gt;                               &lt;br&gt;                       }&lt;br&gt;               }&lt;br&gt;               &lt;br&gt;               catch(JSONException e)&lt;br&gt;               {&lt;br&gt;                       Log.e("log_tag", "Error parsing data "+e.toString());&lt;br&gt;               }&lt;br&gt;                             &lt;br&gt;           &lt;br&gt;         &lt;br&gt;                             return null;&lt;br&gt;                   }&lt;br&gt;                   @Override&lt;br&gt;                   protected void onPostExecute(String result) {&lt;br&gt;                             // TODO Auto-generated method stub&lt;br&gt;                             super.onPostExecute(result);&lt;br&gt;                             progress.dismiss();&lt;br&gt;                             &lt;br&gt;                             &lt;br&gt;                             SimpleAdapter adapter=null;&lt;br&gt;                                &lt;br&gt;                                &lt;br&gt;                                &lt;br&gt;                                adapter = new SimpleAdapter(ListItemClickActivity.this, mylist , R.layout.newslist, &lt;br&gt;                                             &lt;br&gt;                                           new String[] { "name", "time","sex"}, &lt;br&gt;                                           new int[] { R.id.newsName,R.id.newsTime,R.id.newssex});&lt;br&gt;                                //adapter.setViewBinder(new MyViewBinder());                                                                                   &lt;br&gt;                                          setListAdapter(adapter);&lt;br&gt;                                            lv=getListView();&lt;br&gt;                                          &lt;br&gt;                                          lv.setOnItemClickListener(new OnItemClickListener() {&lt;/p&gt;

&lt;p&gt;                                            @Override&lt;br&gt;                                            public void onItemClick(&lt;br&gt;                                                    AdapterView arg0,&lt;br&gt;                                                    View arg1, int arg2,&lt;br&gt;                                                    long arg3) {&lt;br&gt;                                                // TODO Auto-generated method stub&lt;br&gt;                                                Log.i("LOGCAT", "View " +arg1.getId());&lt;br&gt;                                            }&lt;br&gt;                                        });&lt;br&gt;                             &lt;br&gt;                             return ;&lt;br&gt;                   }&lt;br&gt;                   &lt;br&gt;    }&lt;br&gt;   &lt;br&gt;} &amp;lt;/string,&amp;gt;&amp;lt;/jarray.length();i++){&amp;gt;&amp;lt;/string,&amp;gt;&amp;lt;/hashmap&amp;lt;string,&amp;gt;&amp;lt;/hashmap&amp;lt;string,&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Felix</dc:creator><pubDate>Mon, 14 May 2012 07:36:12 -0000</pubDate></item><item><title>Re: Start Service at boot</title><link>http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/#comment-528321317</link><description>&lt;p&gt; Hi, I have the same situation, after I start the service form the &lt;br&gt;BroadcastReceiver runs once and then nothing, the service stoppes. I can't find it in the list ofrunning applications. What should I do? how do I fix it?I've found some answers about this and all of them were saing that in order to maintain the service active I have to lunch it from an activity.Well.. I don't want to start activity, I just want to run it just like a service.Is there a way?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy</dc:creator><pubDate>Mon, 14 May 2012 03:36:19 -0000</pubDate></item><item><title>Re: Android API &amp;#8211; SMS handling</title><link>http://www.androidcompetencycenter.com/2008/12/android-api-sms-handling/#comment-523204248</link><description>&lt;p&gt;The best tutorial I read on SMS Receiving. Took 5 min to get it working.... Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sohaib Shaheen</dc:creator><pubDate>Tue, 08 May 2012 14:43:29 -0000</pubDate></item><item><title>Re: Tutorial &amp;#8211; How to start a new Activity</title><link>http://www.androidcompetencycenter.com/2009/03/tutorial-how-to-start-a-new-activity/#comment-522252311</link><description>&lt;p&gt;thank you.i declared my activity in the manifest but it didn't &lt;a href="http://worked.so" rel="nofollow"&gt;worked.so&lt;/a&gt; when i created the intent on the application tab of the manifest &lt;a href="http://file.my" rel="nofollow"&gt;file.my&lt;/a&gt; intent worked.thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cristina</dc:creator><pubDate>Mon, 07 May 2012 21:48:55 -0000</pubDate></item><item><title>Re: Basics of Android : Part IV &amp;#8211; Android Content Providers</title><link>http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-iv-android-content-providers/#comment-520953391</link><description>&lt;p&gt;Excellent tutorial, it was a big help! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Seven+ Android</dc:creator><pubDate>Sun, 06 May 2012 10:57:17 -0000</pubDate></item><item><title>Re: About</title><link>http://www.androidcompetencycenter.com/about/#comment-520842370</link><description>&lt;p&gt;Hi Sushrut,&lt;/p&gt;

&lt;p&gt;Nice blog! Is there an email address I can contact you in private? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ilias Tsagklis</dc:creator><pubDate>Sun, 06 May 2012 05:38:39 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-513564570</link><description>&lt;p&gt;thank u... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roshan Stephen</dc:creator><pubDate>Sun, 29 Apr 2012 12:38:58 -0000</pubDate></item><item><title>Re: Start Service at boot</title><link>http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/#comment-509583144</link><description>&lt;p&gt;i created the same application as writen here but when i run my application emulator is not showing it in application android 2.2&lt;br&gt;&amp;lt;manifest android:versioncode="1" android:versionname="1.0" package="com.wissen.startatboot" xmlns:android="http://schemas.android.com/apk/res/android"  =""&amp;gt;    &amp;lt;uses-sdk android:minsdkversion="8"&amp;gt;        &amp;lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"&amp;gt;    &amp;lt;application  android:icon="@drawable/ic_launcher" android:label="@string/app_name"  =""&amp;gt;                &amp;lt;receiver android:name="MyStartupIntentReceiver"&amp;gt;			&amp;lt;intent-filter&amp;gt;			&amp;lt;action android:name="android.intent.action.BOOT_COMPLETED"&amp;gt;			&amp;lt;category android:name="android.intent.category.HOME"&amp;gt;			&amp;lt;/category&amp;gt;&amp;lt;/action&amp;gt;&amp;lt;/intent-filter&amp;gt;		&amp;lt;/receiver&amp;gt;		        &amp;lt;service android:name="MyService"&amp;gt;		&amp;lt;intent-filter&amp;gt;		&amp;lt;action android:name="com.wissen.startatboot.MyService"&amp;gt;		&amp;lt;/action&amp;gt;&amp;lt;/intent-filter&amp;gt;		&amp;lt;/service&amp;gt;            &amp;lt;/application &amp;gt;&amp;lt;/uses-permission&amp;gt;&amp;lt;/uses-sdk&amp;gt;&amp;lt;/manifest&amp;gt;public class MyService extends Service {&lt;/p&gt;

&lt;p&gt;	@Override&lt;br&gt;	public IBinder onBind(Intent arg0) {&lt;br&gt;		// TODO Auto-generated method stub&lt;br&gt;		return null;&lt;br&gt;	}&lt;br&gt;	&lt;br&gt;	@Override&lt;br&gt;	public void onCreate() {&lt;br&gt;		super.onCreate();&lt;/p&gt;

&lt;p&gt;		Toast.makeText(this, "Service Created", Toast.LENGTH_LONG).show();&lt;/p&gt;

&lt;p&gt;	}&lt;/p&gt;

&lt;p&gt;	@Override&lt;br&gt;	public void onDestroy() {&lt;br&gt;		super.onDestroy();&lt;/p&gt;

&lt;p&gt;		Toast.makeText(this, "Service Destroyed", Toast.LENGTH_LONG).show();&lt;/p&gt;

&lt;p&gt;	}&lt;/p&gt;

&lt;p&gt;	public int onStartCommand(Intent intent, int flags, int startId) {&lt;br&gt;		Toast.makeText(this, "Service Started", Toast.LENGTH_LONG).show();&lt;br&gt;		&lt;br&gt;		&lt;br&gt;		return START_STICKY;&lt;br&gt;	}&lt;/p&gt;

&lt;p&gt;}public class MyStartupIntentReceiver extends BroadcastReceiver {&lt;/p&gt;

&lt;p&gt;	@Override&lt;br&gt;	public void onReceive(Context context, Intent intent) {&lt;br&gt;		Intent serviceIntent = new Intent();&lt;br&gt;		serviceIntent.setAction("com.wissen.startatboot.MyService");&lt;br&gt;		context.startService(serviceIntent);&lt;/p&gt;

&lt;p&gt;	}&lt;/p&gt;

&lt;p&gt;}any body help me.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Planet37533</dc:creator><pubDate>Thu, 26 Apr 2012 06:01:52 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-508688686</link><description>&lt;p&gt;instead of string, how to open and parse a Json file using java ?&lt;br&gt;pls help&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Babu Bujji1982</dc:creator><pubDate>Wed, 25 Apr 2012 08:54:08 -0000</pubDate></item><item><title>Re: Tutorial &amp;#8211; How to start a new Activity</title><link>http://www.androidcompetencycenter.com/2009/03/tutorial-how-to-start-a-new-activity/#comment-506028358</link><description>&lt;p&gt;Nice! It could be a bit clearer (More code examples) but it is great in any case! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">roflmaoshizmp</dc:creator><pubDate>Sun, 22 Apr 2012 06:26:30 -0000</pubDate></item><item><title>Re: Play Video</title><link>http://www.androidcompetencycenter.com/2009/08/play-video/#comment-501929485</link><description>&lt;p&gt;Can anyone tell me how to give sdcard space to android emmulator??I tried to put videos and audio files on sdcard using file explorer but its not work for me..so please repaly if anyone knows...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nitish Patel</dc:creator><pubDate>Thu, 19 Apr 2012 04:18:17 -0000</pubDate></item><item><title>Re: Android API &amp;#8211; SMS handling</title><link>http://www.androidcompetencycenter.com/2008/12/android-api-sms-handling/#comment-499624011</link><description>&lt;p&gt;this is a good good good tutorial. thank u &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">unknown</dc:creator><pubDate>Tue, 17 Apr 2012 04:00:49 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-493090205</link><description>&lt;p&gt;vry nice&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sri Ram</dc:creator><pubDate>Tue, 10 Apr 2012 06:54:31 -0000</pubDate></item><item><title>Re: Setting up Android Application Development With Eclipse</title><link>http://www.androidcompetencycenter.com/2009/01/setting-up-android-application-development-with-eclipse/#comment-486689613</link><description>&lt;p&gt;Setup Android Application Development Environment on Eclipse which is the first step of Android Application Development. In this tutorial you will find how to set up your Android development environment with Eclipse step by step&lt;/p&gt;

&lt;p&gt;&lt;a href="http://javasrilankansupport.blogspot.com/2012/04/how-to-setup-android-application.html" rel="nofollow"&gt;Setup Android Application Development Environment on Eclipse&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Java Srilankan Support</dc:creator><pubDate>Thu, 05 Apr 2012 01:23:01 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-477219605</link><description>&lt;p&gt;hello I am new to JSON. Can any one tell me how to hendle the dotnet webservice in android using Json parsing..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tejas Chauhan</dc:creator><pubDate>Tue, 27 Mar 2012 01:50:00 -0000</pubDate></item><item><title>Re: Start Service at boot</title><link>http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/#comment-449814077</link><description>&lt;p&gt;its not working in my emulator&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M2k8882</dc:creator><pubDate>Mon, 27 Feb 2012 06:37:28 -0000</pubDate></item><item><title>Re: Basics of Android : Part IV &amp;#8211; Android Content Providers</title><link>http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-iv-android-content-providers/#comment-449495960</link><description>&lt;p&gt;Why does this site cause Norton to detect the "Malicious Toolkit Website 9"???&lt;br&gt; &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Sun, 26 Feb 2012 16:24:58 -0000</pubDate></item><item><title>Re: Contact</title><link>http://www.androidcompetencycenter.com/contact/#comment-448239146</link><description>&lt;p&gt;good blog&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guesti</dc:creator><pubDate>Fri, 24 Feb 2012 17:19:11 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-446678184</link><description>&lt;p&gt;THANK YOUU!, it works :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guest</dc:creator><pubDate>Thu, 23 Feb 2012 01:38:11 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-443978648</link><description>&lt;p&gt;Thanks John. Spread the word. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sushrutbidwai</dc:creator><pubDate>Mon, 20 Feb 2012 08:15:25 -0000</pubDate></item><item><title>Re: JSON Parsing in android</title><link>http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/#comment-443966718</link><description>&lt;p&gt;absolutely brilliant!!great work, spent hours looking for it. Thank you &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Howard</dc:creator><pubDate>Mon, 20 Feb 2012 07:45:51 -0000</pubDate></item><item><title>Re: Basics of Android : Part II &amp;#8211; Intent Receivers</title><link>http://www.androidcompetencycenter.com/2009/01/basics-of-android-part-ii-intent-receivers/#comment-443899224</link><description>&lt;p&gt; VERY EASY UNDERSTOOD &amp;amp; WRITTEN IN GOOD LANGUEGES&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SHITAL DESHMUKH</dc:creator><pubDate>Mon, 20 Feb 2012 04:03:36 -0000</pubDate></item><item><title>Re: Android Location API</title><link>http://www.androidcompetencycenter.com/2009/01/android-location-api/#comment-443511139</link><description>&lt;p&gt;Nice Tutorial... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sunil@AndroidAspect</dc:creator><pubDate>Sun, 19 Feb 2012 14:18:10 -0000</pubDate></item><item><title>Re: Android Location API</title><link>http://www.androidcompetencycenter.com/2009/01/android-location-api/#comment-443295640</link><description>&lt;p&gt;can someone plzz send the same code of this app...the present one is not working..plzz send it to arjun.pola@gmail.com &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Arjun Pola</dc:creator><pubDate>Sun, 19 Feb 2012 07:56:14 -0000</pubDate></item></channel></rss>
