Re: [android-developers] override earphone click button
i mean when i single click on headphone then its start play music and when triple click then its start calling last call(whether dialled or receive) and i want to do my task on click and want to stop calling and music playing functionality, On Fri, May 9, 2014 at 9:52 PM, TreKing treking...@gmail.com wrote: On Fri, May 9, 2014 at 2:32 AM, Sadhna Upadhyay sadhna.braah...@gmail.com wrote: can some one tell me that,can we override headphone functionality in android 4+ version please let me know if any one have idea You may want to explain what headphone functionality you're looking to override. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Android WebView HalfLoad on orientation Changes
amyone? On Mon, May 12, 2014 at 6:32 PM, Rahul Kaushik rahulkaushi...@gmail.comwrote: Hi, I have an html in web view, when i change the orientation, at the first time form comes in 50% of the screen and blank white space comes in the left 50 %. In few seconds, it displays fine. i have tried on android:configChanges=orientation|keyboardHidden|screenSize but no Luck. Please Suggest Thanks RK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Calling issue
Hi Guys, i am facing the problem in out going call ,actually i have more than 1 number in array in and it continually call one by one but it is interrupted when any call comes up at that particular out going call time.redial that number which was interrupted, please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Exception while parsing json response....
Hi All, I am trying to parse a json response using gson library. The response should contain always only one object(site) I tried in so many ways but always getting the below exception. But I am getting the below exception, com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) I have tried something like this, Gson gson = new Gson(); SiteDTO dto = new SiteDTO();//contains all setter and getter methods for site object // Type type = new TypeTokenArrayListSiteDTO() { // }.getType(); //obj contains JSONObject array = obj.optJSONObject(site); dto=gson.fromJson(array.toString(), SiteDTO.class); //getting exception at this statement /* JsonParser parser = new JsonParser(); JsonObject rootObejct = parser.parse(obj.toString()).getAsJsonObject(); JsonElement projectElement = rootObejct.get(site); dto = gson.fromJson(projectElement, SiteDTO.class);*/ Json String: { success: true, site: { id: 15251, site_name: yuwa, technology: GSM, market: ARKANSAS, region: Central, address: HIGHLAND STREET, city: GASSAWAY, state: WV, zip: 26624, latitude: 38.6676, longitude: -80.7711, continuus_id: 235300, attachments: [ { attachment_id: 3656, attachment_url: https://ldoapps.com/eams/web/uploads/sites/15251/4bd0c1fbcd29aa151db2850a52c81c8cbaabca2b/file_input.jpg } ], suppliers: [ { company_id: 429 } ], aspsuppliers: [], is_archived: false, site_supplier_section: true, sp_activity_section: true, sp_activity_quote_section: false, sov_section: false, wa_section: false, bom_section: false, cop_section: true, site_attachment_section: true, punch_list_section: false, site_supplier_checklist_section: false, cop_acknowledgement: true, customer: {} } } Can anyone help me where I am doing mistake. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Geocoding help
I'm writing an Android app and need a feature where users can type in a a address (e.g. home address) and gets mapped to a lat/lon geo-position. I know I need Geo-coding services - but there seems to be several APIs - some kinda dated. I'm using Google Maps API 2.0 and Google Play Services. What API is recommended for what I need. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Geocoding help
On Tue, May 13, 2014 at 11:11 AM, dashman erjdri...@gmail.com wrote: What API is recommended for what I need. The built-in one? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Exception while parsing json response....
can anyone help on this... On Tue, May 13, 2014 at 8:45 PM, Abhilash Baddam abhilash.androiddevelo...@gmail.com wrote: Hi All, I am trying to parse a json response using gson library. The response should contain always only one object(site) I tried in so many ways but always getting the below exception. But I am getting the below exception, com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) I have tried something like this, Gson gson = new Gson(); SiteDTO dto = new SiteDTO();//contains all setter and getter methods for site object // Type type = new TypeTokenArrayListSiteDTO() { // }.getType(); //obj contains JSONObject array = obj.optJSONObject(site); dto=gson.fromJson(array.toString(), SiteDTO.class); //getting exception at this statement /* JsonParser parser = new JsonParser(); JsonObject rootObejct = parser.parse(obj.toString()).getAsJsonObject(); JsonElement projectElement = rootObejct.get(site); dto = gson.fromJson(projectElement, SiteDTO.class);*/ Json String: { success: true, site: { id: 15251, site_name: yuwa, technology: GSM, market: ARKANSAS, region: Central, address: HIGHLAND STREET, city: GASSAWAY, state: WV, zip: 26624, latitude: 38.6676, longitude: -80.7711, continuus_id: 235300, attachments: [ { attachment_id: 3656, attachment_url: https://ldoapps.com/eams/web/uploads/sites/15251/4bd0c1fbcd29aa151db2850a52c81c8cbaabca2b/file_input.jpg } ], suppliers: [ { company_id: 429 } ], aspsuppliers: [], is_archived: false, site_supplier_section: true, sp_activity_section: true, sp_activity_quote_section: false, sov_section: false, wa_section: false, bom_section: false, cop_section: true, site_attachment_section: true, punch_list_section: false, site_supplier_checklist_section: false, cop_acknowledgement: true, customer: {} } } Can anyone help me where I am doing mistake. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.