Re: [android-developers] Parsing JSON data

2012-04-03 Thread atul gangwar
Hi, For parsing json data: pass the json sting to JSONArray as below. JSONArray jsonArray = new JSONArray(jsonString); create JSONObject ; JSONObject json_data = null; run one loop as below to fetch each element of the array. for (int i = 0; i jsonArray.length(); i++) { json_data =

Re: [android-developers] Re: What is the purpose of android zygote process?

2012-04-03 Thread Romain Guy
Zygote is also used to share the system drawables with all the apps. This allows the system to load the bitmaps for buttons only once for instance. On Mon, Apr 2, 2012 at 9:13 PM, Antony Deepak antonydee...@gmail.com wrote: Think about Zygote in its biological significance The first cell formed

Re: [android-developers] Re: What is the purpose of android zygote process?

2012-04-03 Thread Kristopher Micinski
There's also a great explanation if you watch the original dalvik vm internals video... kris On Tue, Apr 3, 2012 at 12:13 AM, Antony Deepak antonydee...@gmail.com wrote: Think about Zygote in its biological significance The first cell formed when an organism is produced.. So, when an

Re: [android-developers] Disable screenshot within an app in ICS?

2012-04-03 Thread Greg
So after seeing this work in the wild a bit, it seems like some phones actually corrupt the view when they see this flag. I don't see it as part of the compatibility doc for vendors so I doubt they test it well. On the DroidX, I have seen the screen get drawn totally incorrectly (different per

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-03 Thread g...@deanblakely.com
Mark, Sorry, I didn't make my question clear... If the maps are over 7 years old they are useless. that means that any android app that uses them is useless. I call that giving up. This issue just doesn't make any sense. Why would google not want to have compelling android mapping apps?? Gary

[android-developers] Re: how to connect with sql server 2005

2012-04-03 Thread lbendlin
This has not much to do with Android? Have you looked at JDBC? On Monday, April 2, 2012 11:13:55 PM UTC-4, mahmoud mortada wrote: i need to know how can i connect with sql server and retrieve from it -- Dr.M -- You received this message because you are subscribed to the Google

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-03 Thread lbendlin
looks pretty alive to me http://bingmapsandroidsdk.codeplex.com/ On Tuesday, April 3, 2012 8:21:24 PM UTC-4, ga...@deanblakely.com wrote: ibendlin, OSM hmmm... OpenStreetMap? How compelling is that? I work with Bing Maps on Windows Phone 7 and they are excellent and up to date but, for

[android-developers] WiFi-Direct hardware question

2012-04-03 Thread Kiran
Hi All, I've seen quite a few discussions on Wifi-Direct, but haven't found the answer to the following question. In the Android 4.0.x API, it says that *Note:* Not all Android-powered devices support Wi-Fi Direct. If your application uses Wi-Fi Direct, declare so with a

[android-developers] Large data downloads from a Web app to Android client getting Out of memory error

2012-04-03 Thread FractalBob
I'm sending the following request to a Web app running on Tomcat: connection = (HttpsURLConnection) url.openConnection(); writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream())); writer.write(email_addr= + URLEncoder.encode(email_addr, UTF-8) + + passwd= +

Re: [android-developers] Large data downloads from a Web app to Android client getting Out of memory error

2012-04-03 Thread TreKing
On Tue, Apr 3, 2012 at 10:57 PM, FractalBob ruom...@gmail.com wrote: Anyone have any ideas on why this is happening The error tells you exactly why: you are running out of memory. and how to fix it? Inspect your response in a web browser first. Is it valid? For example, is it one giant

Re: [android-developers] branding existing app

2012-04-03 Thread TreKing
On Tue, Apr 3, 2012 at 6:49 AM, Mark mlybar...@gmail.com wrote: How would i go about switching the resources and the R class? Are there other ideas on how to properly brand an application? I'd would investigate using Themes.

Re: [android-developers] Is it possible to ... ?

2012-04-03 Thread TreKing
On Tue, Apr 3, 2012 at 10:05 AM, Martin kanazi...@gmail.com wrote: each one will have to display something on the screen, 1 layer/exec, and both of them are visible ?? No. - TreKing

Re: [android-developers] (e-)books on Android XML Layouts: suggestions?

2012-04-03 Thread TreKing
On Tue, Apr 3, 2012 at 1:59 PM, Jim Graham spooky1...@gmail.com wrote: Suggestions, anyone? Android changes so much so frequently, I can't imagine you're going to find a better reference for the XML layouts and Widgets then the documentation and source code itself.

Re: [android-developers] Is it possible to ... ?

2012-04-03 Thread Kristopher Micinski
Treking's right, only one app can control the screen at a time, you can't have two apps controlling different parts of the screen. (This would have some nasty implications for app security, etc.., and just be hard to implement from a systems standpoint.) Kris On Tue, Apr 3, 2012 at 11:05 AM,

Re: [android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-03 Thread TreKing
On Tue, Apr 3, 2012 at 4:21 AM, Put_tiMe putt...@gmail.com wrote: I want to handle this intent in different ways, depending on where it originated from. You still didn't explain *why*. - TreKing

[android-developers] Re: How to get service state?

2012-04-03 Thread om
Check this http://stackoverflow.com/questions/4846271/broadcastreceiver-to-obtain-servicestate-information/10005023#10005023 On Wednesday, January 6, 2010 5:59:42 PM UTC+5:30, Coby wrote: Hi! I'm trying to get current service state of my phone (IN_SERVICE, OUT_OF_SERVICE, EMERGENCY_ONLY,

Re: [android-developers] (e-)books on Android XML Layouts: suggestions?

2012-04-03 Thread Jim Graham
On Tue, Apr 03, 2012 at 11:36:00PM -0500, TreKing wrote: Android changes so much so frequently, I can't imagine you're going to find a better reference for the XML layouts and Widgets then the documentation and source code itself. That'd be great, if it shows a complete example of every way

Re: [android-developers] WiFi-Direct hardware question

2012-04-03 Thread Gautam Khatri
hi...i will get back 2 u on this issuenow these days i m busy in iphone application project -- 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

Re: [android-developers] WiFi-Direct hardware question

2012-04-03 Thread Irfan Sheriff
On Tue, Apr 3, 2012 at 8:50 PM, Kiran kiran.ka...@gmail.com wrote: Hi All, I've seen quite a few discussions on Wifi-Direct, but haven't found the answer to the following question. In the Android 4.0.x API, it says that *Note:* Not all Android-powered devices support Wi-Fi Direct. If your

<    1   2