[android-developers] Re: [android-porting] /mnt/secure/asec
You can't avoid it, those are files in the SD card. On Mon, Feb 14, 2011 at 11:34 PM, Anand Android android.an...@gmail.comwrote: Hi Dianne, Thanks . I'm mounting SDcard on pc ..using UMS mode...when i do this . i see all the partitions of the SD card mounted on the PC side,which i dont want it . i just want to mount '/mnt/sdcard' . how do i do this ? - Anand On Mon, Feb 14, 2011 at 11:39 PM, Dianne Hackborn hack...@android.comwrote: It is secure containers, currently mainly for apps on SD card. On Sun, Feb 13, 2011 at 11:34 PM, Anand Android android.an...@gmail.comwrote: hi all, actually when i mount mysd card . i see 2 partitions ,/mnt/sdcard and /mnt/secure/asec. what is /mnt/secure/asec? whats the use ? - Anand -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Lat, Longs are not changing even for new locations
Hi Friends, This is kiran new to android. I am trying to find latitude and longitude through NetworkProvider. I got values for lat and langs when i am executing the applicarion first time and the values are not changing even i am moving 200 meters far from current location.(I am executing newly in the new location ie after 200 mt ) . My code is as fallowing public class WhereAmI extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LocationManager locationManager; String context = Context.LOCATION_SERVICE; locationManager = (LocationManager)getSystemService(context); String provider = LocationManager.NETWORK_PROVIDER; Location location = locationManager.getLastKnownLocation(provider); updateWithNewLocation(location); } private void updateWithNewLocation(Location location) { String latLongString; TextView myLocationText; myLocationText = (TextView)findViewById(R.id.myLocationTxt); if (location != null) { double lat = location.getLatitude(); double lng = location.getLongitude(); double alt=location.getAltitude(); latLongString = Lat: + lat + \nLong: + lng+\naltitude+alt; } else { latLongString = No location found; } myLocationText.setText(Your Current Position is:\n +latLongString); } } what can i do for getting updated lat ,longs for new locations? Can any one help me? Thanks and Regards, Kiran. -- 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
Re: [android-developers] Problem with xml inflate
Look at the error in the final caused by sections: 02-15 10:50:04.798 E/AndroidRuntime(13071): ... 11 more 02-15 10:50:04.798 E/AndroidRuntime(13071): Caused by: java.lang.reflect.InvocationTargetException 02-15 10:50:04.798 E/AndroidRuntime(13071): at com.android.browser.WebGLZoomView.init(WebGLZoomView.java:116) 02-15 10:50:04.798 E/AndroidRuntime(13071): at java.lang.reflect.Constructor.constructNative(Native Method) 02-15 10:50:04.798 E/AndroidRuntime(13071): at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.createView(LayoutInflater.java:500) 02-15 10:50:04.798 E/AndroidRuntime(13071): ... 21 more 02-15 10:50:04.798 E/AndroidRuntime(13071): Caused by: java.lang.NullPointerException 02-15 10:50:04.798 E/AndroidRuntime(13071): at com.android.browser.WebGLZoomRenderer.init(WebGLZoomView.java:1096) 02-15 10:50:04.798 E/AndroidRuntime(13071): at com.android.browser.WebGLZoomView.init(WebGLZoomView.java:126) 02-15 10:50:04.798 E/AndroidRuntime(13071): ... 25 more Note I believe this is not part of the current standard platform, so there is probably some information you aren't providing...? \ On Mon, Feb 14, 2011 at 10:50 PM, yogi yogi.ru...@gmail.com wrote: Hi All, While working on browser I got the following log and a force close.Do any one have idea what does this android.view.InflateException: Binary XML file line #38: Error inflating class unknown and how can i debug this. Thanks in advance Regards Yogi : Starting activity: Intent { act=android.intent.action.VIEW dat=http://m.google.com/privacy cmp=com.android.browser/.BrowserActivity } 02-15 10:50:04.798 E/AndroidRuntime(13071): FATAL EXCEPTION: main 02-15 10:50:04.798 E/AndroidRuntime(13071): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.browser/ com.android.browser.BrowserActivity}: android.view.InflateException: Binary XML file line #38: Error inflating class unknown 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2663) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.os.Handler.dispatchMessage(Handler.java:99) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.os.Looper.loop(Looper.java:123) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.ActivityThread.main(ActivityThread.java:4627) 02-15 10:50:04.798 E/AndroidRuntime(13071): at java.lang.reflect.Method.invokeNative(Native Method) 02-15 10:50:04.798 E/AndroidRuntime(13071): at java.lang.reflect.Method.invoke(Method.java:521) 02-15 10:50:04.798 E/AndroidRuntime(13071): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) 02-15 10:50:04.798 E/AndroidRuntime(13071): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 02-15 10:50:04.798 E/AndroidRuntime(13071): at dalvik.system.NativeStart.main(Native Method) 02-15 10:50:04.798 E/AndroidRuntime(13071): Caused by: android.view.InflateException: Binary XML file line #38: Error inflating class unknown 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.createView(LayoutInflater.java:513) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 02-15 10:50:04.798 E/AndroidRuntime(13071): at com.android.browser.BrowserActivity.onCreate(BrowserActivity.java:326) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1049) 02-15 10:50:04.798 E/AndroidRuntime(13071): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) 02-15 10:50:04.798 E/AndroidRuntime(13071): ... 11 more 02-15 10:50:04.798 E/AndroidRuntime(13071): Caused by:
[android-developers] live wallpaper as background of our application?
Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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
Re: [android-developers] live wallpaper as background of our application?
Hi, Just use the theme Theme.Wallpaper to show the wallpaper in your application. On Tue, Feb 15, 2011 at 12:20 AM, Dev Android devandroid1...@gmail.comwrote: Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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
[android-developers] Supend to disk
Hi, I am trying to add the Suspend to disk support on my hardware. I am booting from SD card, i have a swap partition also. When I do a suspend to disk i get an error message saying that tasks are refusing to freeze. The freezing sequence is exiting immediately after the swapper refuses to freeze. Please let me know how to proceed? Have anyone faced such and issue. Thanks narasimhan -- 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
Re: [android-developers] Re: Share some of my work - DragDrop framework
I'll leave that to your imagination. I needed this functionality in an app that allows the user to drag cameras (list of camera names) into tiles, and upon dropping, the live stream begins. But the sky is the limit :-) -- 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
[android-developers] What is current version of Android Market
Hi I would like to know what is current version of Android Market. When Android Market version 2.3.0 will be released to support in-app billing. Kind Regards Muhammad Rashid -- 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
Re: [android-developers] Re: It's not the browser?
Yes, the browser is up there on android.git.kernel.org, but I've never looked at its internals. Its implementation most likely uses WebView, which in turn is based on WebKit. The networking code is in there somewhere :) You might want to re-run your tests from a WebView inside an application (not the browser) just to narrow it down. And ultimately - what if you find the piece of code responsible for this behavior, then what - are you going to require that users install a special browser just for your web site? Does your browser-side logic work if all requests are made to the same site? Can you change your web application to do this? Perhaps implement a special URL on your site that goes off and fetches content from another site (with the referenced URL encoded as a parameter)? -- Kostya 15.02.2011 8:05, kypriakos пишет: Hi Kostya, I was not able to find where Android / native browser handles the XMLHttpRequest calls. Regardless, do you happen to have any experience with the native browser and how it handles requests/responses to web services? I think there seems to be a buffering of data on the browser side before it can act upon any response and that buffer seems to be as big as 4k or so .. interesting implementation if that is true. And is this the best place to browse the Android code online? http://android.git.kernel.org/ Thanks again On Feb 13, 4:02 am, Kostya Vasilyevkmans...@gmail.com wrote: Isn't Dolphin basically the standard browser with a new UI? If so, it wouldn't be surprising that they behave the same wrt. networking. -- Kostya 13.02.2011 9:18, kypriakos пишет: Hi all, I have tried a number of other browsers (Dolphin, Opera Mini, Opera Mobile) and although the last two falsely advertise that they implement cross-origin resource sharing solutions, Dolphin seems to work exactly the same as the native browser - it sends out the Ajax request to the remote web server, the web server executes the service call but the result does not get posted by the browser. This may indicate that it is a NOT a browser issue I am facing with but rather and Android OS-lever issue (http layers??) where for some reason the responses are not allowed to reach the browser. Would this be a correct assessment? From what I understand, Android OS does not implement a personal firewall correct? What else would be causing this disconnect? I will greatly appreciate any hints on this. Thanks -- Kostya Vasilyev --http://kmansoft.wordpress.com -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
[android-developers] Preparing an app for the small screen.
Hello Android Developers: I have developed a simple app which I am now testing on various phones. One of these is a HTC wildfire. On this phone I get the error cannot parse the package. I have support for small screens and low densities in the manifest, and I can't work out what else I need to do to resolve this. The app has been built for 2.1, min sdk 4. Will I need to borrow my friends wildfire to generate a log output? Regards Mark -- 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
Re: [android-developers] Preparing an app for the small screen.
Yes, logcat would help. If it makes it any easier, your friend could install one of logcat-collecting applications from Market. -- Kostya 15.02.2011 11:47, Mark Sharpley пишет: Hello Android Developers: I have developed a simple app which I am now testing on various phones. One of these is a HTC wildfire. On this phone I get the error cannot parse the package. I have support for small screens and low densities in the manifest, and I can't work out what else I need to do to resolve this. The app has been built for 2.1, min sdk 4. Will I need to borrow my friends wildfire to generate a log output? Regards Mark -- 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 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
Re: [android-developers] live wallpaper as background of our application?
thanks for your quick response. I'm more interested in setting live wallpaper in my own Launcher app by calling Native app of selecting the Live wallpaper. Can we do for it? On Tue, Feb 15, 2011 at 1:52 PM, Romain Guy romain...@android.com wrote: Hi, Just use the theme Theme.Wallpaper to show the wallpaper in your application. On Tue, Feb 15, 2011 at 12:20 AM, Dev Android devandroid1...@gmail.comwrote: Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 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
[android-developers] hprof-conv error
Hi, I am having Android 1.6 SDK and running application on Platform2.2. When i took memory dump, i am not able to convert hprof file captred by DDMS tool. hprof-conv utility shows an error: Expecting 1.0.3. I guess, i might needed latest hprof-conv utility.does anybody have that one? -Amit -- 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
Re: [android-developers] live wallpaper as background of our application?
yes we can do it. I got the solution. Thanks again! -- Dev On Tue, Feb 15, 2011 at 2:37 PM, Dev Android devandroid1...@gmail.comwrote: thanks for your quick response. I'm more interested in setting live wallpaper in my own Launcher app by calling Native app of selecting the Live wallpaper. Can we do for it? On Tue, Feb 15, 2011 at 1:52 PM, Romain Guy romain...@android.com wrote: Hi, Just use the theme Theme.Wallpaper to show the wallpaper in your application. On Tue, Feb 15, 2011 at 12:20 AM, Dev Android devandroid1...@gmail.comwrote: Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 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
[android-developers] Camera preview Api
Hi, I am trying to save images in sd card which is taken from camera in emulator, the following is the code to save images in sd card path = String.format(/sdcard/%d.jpg, System.currentTimeMillis()); outStream = new FileOutputStream(String.format(/sdcard/%d.jpg, System.currentTimeMillis())); Log.e(TAG,b4 writing ); outStream.write(data); Log.e(TAG,after writing ); outStream.close(); But I get error that no file or directory . Can anyone tell me where i did mistake 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
Re: [android-developers] live wallpaper as background of our application?
can you suggest your answer please. regards, Narendra On Tue, Feb 15, 2011 at 2:40 PM, Dev Android devandroid1...@gmail.comwrote: yes we can do it. I got the solution. Thanks again! -- Dev On Tue, Feb 15, 2011 at 2:37 PM, Dev Android devandroid1...@gmail.comwrote: thanks for your quick response. I'm more interested in setting live wallpaper in my own Launcher app by calling Native app of selecting the Live wallpaper. Can we do for it? On Tue, Feb 15, 2011 at 1:52 PM, Romain Guy romain...@android.comwrote: Hi, Just use the theme Theme.Wallpaper to show the wallpaper in your application. On Tue, Feb 15, 2011 at 12:20 AM, Dev Android devandroid1...@gmail.comwrote: Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 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 -- Regards, Narendra . -- 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
[android-developers] The purpose of resource name mipmap?!
Dear all, I found the following resource folders are existing in Honeycomb- version Borwser apk. mipmap-hdpi mipmap-mdpi The meaning of mipmap resource is not listed in its SDK's documentation. Can anyone help to explain it? Thanks for your help! Gary -- 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
Re: [android-developers] live wallpaper as background of our application?
@Romain, I got problem when once the static wallpapers is set then no live can be set on it. I think Top layer will have static wallpaper and bottom layer will have live wallpaper?? can you suggest? On Tue, Feb 15, 2011 at 2:53 PM, Narendra Bagade bagadenaren...@gmail.comwrote: can you suggest your answer please. regards, Narendra On Tue, Feb 15, 2011 at 2:40 PM, Dev Android devandroid1...@gmail.comwrote: yes we can do it. I got the solution. Thanks again! -- Dev On Tue, Feb 15, 2011 at 2:37 PM, Dev Android devandroid1...@gmail.comwrote: thanks for your quick response. I'm more interested in setting live wallpaper in my own Launcher app by calling Native app of selecting the Live wallpaper. Can we do for it? On Tue, Feb 15, 2011 at 1:52 PM, Romain Guy romain...@android.comwrote: Hi, Just use the theme Theme.Wallpaper to show the wallpaper in your application. On Tue, Feb 15, 2011 at 12:20 AM, Dev Android devandroid1...@gmail.com wrote: Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 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 -- Regards, Narendra . -- 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 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
Re: [android-developers] The purpose of resource name mipmap?!
http://en.wikipedia.org/wiki/Mipmap On 15/02/2011 10:33, Gary Wang wrote: Dear all, I found the following resource folders are existing in Honeycomb- version Borwser apk. mipmap-hdpi mipmap-mdpi The meaning of mipmap resource is not listed in its SDK's documentation. Can anyone help to explain it? Thanks for your help! Gary -- 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
Re: [android-developers] live wallpaper as background of our application?
@narender use as suggested @Romain On Tue, Feb 15, 2011 at 3:08 PM, Dev Android devandroid1...@gmail.comwrote: @Romain, I got problem when once the static wallpapers is set then no live can be set on it. I think Top layer will have static wallpaper and bottom layer will have live wallpaper?? can you suggest? On Tue, Feb 15, 2011 at 2:53 PM, Narendra Bagade bagadenaren...@gmail.com wrote: can you suggest your answer please. regards, Narendra On Tue, Feb 15, 2011 at 2:40 PM, Dev Android devandroid1...@gmail.comwrote: yes we can do it. I got the solution. Thanks again! -- Dev On Tue, Feb 15, 2011 at 2:37 PM, Dev Android devandroid1...@gmail.comwrote: thanks for your quick response. I'm more interested in setting live wallpaper in my own Launcher app by calling Native app of selecting the Live wallpaper. Can we do for it? On Tue, Feb 15, 2011 at 1:52 PM, Romain Guy romain...@android.comwrote: Hi, Just use the theme Theme.Wallpaper to show the wallpaper in your application. On Tue, Feb 15, 2011 at 12:20 AM, Dev Android devandroid1...@gmail.com wrote: Guys, Can we set live wallpaper as background of our application? Please suggest. Thanks! Dev -- 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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 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 -- Regards, Narendra . -- 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 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
[android-developers] Dynamically adding view in layout xml in android
Hi All, I have created a xml layout which includes ImageButtons in row,col format.So,layout having some initial number of views.Now,I want to add extra views at run time i.e through code.Is it possible? How to do it? 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
[android-developers] Android Native Code: remote()
Hi I was going through the code of BpMediaPlayerService (in the NDK). I came across this function several times: remote() Could someone please tell me where I could get some documentation on this function ? What exactly does it return / do? Thanks adn BR S. -- 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
[android-developers] figure out country in a device without SIM card
Hello Android gurus, In my game I've got a 'global leaderboard' where people submit their high scores and check how others are doing. There I display a little flag to show where a particular player is from. To figure that out, I use public String getIso() { TelephonyManager tM =((TelephonyManager) mMain.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE)); return tM.getSimCountryIso(); } That works nicely on any phone; however, recently people started using the new fad, tablets. Those generally do not have a SIM card, so whenever such user contacts my server I can see that getSimCountryIso() must have returned NULL ( or maybe an empty string ) and I am unable to figure out the country. Any tips? L. -- 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
Re: [android-developers] figure out country in a device without SIM card
On Tue, Feb 15, 2011 at 10:15 AM, Leszek Koltunski lkoltun...@gmail.com wrote: Hello Android gurus, In my game I've got a 'global leaderboard' where people submit their high scores and check how others are doing. There I display a little flag to show where a particular player is from. To figure that out, I use public String getIso() { TelephonyManager tM =((TelephonyManager) mMain.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE)); return tM.getSimCountryIso(); } That works nicely on any phone; however, recently people started using the new fad, tablets. Those generally do not have a SIM card, so whenever such user contacts my server I can see that getSimCountryIso() must have returned NULL ( or maybe an empty string ) and I am unable to figure out the country. Any tips? How about system locale and maybe if you are ambitious GeoIP? -- Daniel Drozdzewski -- 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
Re: [android-developers] figure out country in a device without SIM card
Locale.getDefault(); -- Kostya 15.02.2011 13:15, Leszek Koltunski пишет: Hello Android gurus, In my game I've got a 'global leaderboard' where people submit their high scores and check how others are doing. There I display a little flag to show where a particular player is from. To figure that out, I use public String getIso() { TelephonyManager tM =((TelephonyManager) mMain.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE)); return tM.getSimCountryIso(); } That works nicely on any phone; however, recently people started using the new fad, tablets. Those generally do not have a SIM card, so whenever such user contacts my server I can see that getSimCountryIso() must have returned NULL ( or maybe an empty string ) and I am unable to figure out the country. Any tips? L. -- 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 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
Re: [android-developers] Dynamically adding view in layout xml in android
Yes, it's possible. First you need to create the new views to be added: either from code with new TextView or whatever, or by using LayoutInflater to create a view hierarchy defined within XML. The second step is adding them to the parent: get a reference to a ViewGroup that you would like those views to go into, and call viewGroup.addView(yourNewView). For the second step, you most probably need to set LayoutParams for the new view, so it's properly sized and positioned. -- Kostya 15.02.2011 13:13, Deepak Kumar пишет: Hi All, I have created a xml layout which includes ImageButtons in row,col format.So,layout having some initial number of views.Now,I want to add extra views at run time i.e through code.Is it possible? How to do it? 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 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
Re: [android-developers] figure out country in a device without SIM card
On 15 February 2011 11:20, Kostya Vasilyev kmans...@gmail.com wrote: Locale.getDefault(); This is not a solution. I do use different locale than i should in the country i am in. Moreover, some phones does not offer certain locales so users are forced to stick with english for example. I'd go for geoIP type of solution or simply let user choose the country on registration. -- 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
[android-developers] Re: Dynamically adding view in layout xml in android
yes, you can do it, using LayoutInflater and addView() Androidian On Feb 15, 3:13 pm, Deepak Kumar deepak.kumar...@gmail.com wrote: Hi All, I have created a xml layout which includes ImageButtons in row,col format.So,layout having some initial number of views.Now,I want to add extra views at run time i.e through code.Is it possible? How to do it? 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
[android-developers] capturing Home key event at application level
Hi, How can we capture home key event? I am storing some data at application level, I want to clear it so that it doesn't consume memory when my application is in background. At the same time, i wish that this data shouldn't get earsed if my application has gone in the background because of an incoming call. Do I need to capture key event in every activity? Is it possible to handle it at application level, so that i dont have to handle it in every activity and rewrite the same code. -- 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
Re: [android-developers] capturing Home key event at application level
No,Manish It is not possible to capture HomeKeyPress. But there must be possibility to check whether ur app is in foreground. On Tue, Feb 15, 2011 at 4:20 PM, cool.manish mannishga...@gmail.com wrote: Hi, How can we capture home key event? I am storing some data at application level, I want to clear it so that it doesn't consume memory when my application is in background. At the same time, i wish that this data shouldn't get earsed if my application has gone in the background because of an incoming call. Do I need to capture key event in every activity? Is it possible to handle it at application level, so that i dont have to handle it in every activity and rewrite the same code. -- 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 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
Re: [android-developers] capturing Home key event at application level
I am storing some data at application level, I want to clear it so that it doesn't consume memory when my application is in background. At the same time, i wish that this data shouldn't get earsed if my application has gone in the background because of an incoming call. Do I need to capture key event in every activity? Is it possible to handle it at application level, so that i dont have to handle it in every activity and rewrite the same code. I'd suggest you read on Activity life cycle and write your resource saving code in the right methods, so you get your goal without dirtry trickery. http://developer.android.com/reference/android/app/Activity.html -- 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
[android-developers] Re: capturing Home key event at application level
Marcin, I know activity life cycle but i am saving data at application level. Even if my activity has been destroyed, i dont want to loss data. Till the time my application is running, I want to keep that data but as soon as my application goes in background because of the home key, i want to clear data. because once my application is in background and user doesnt re start it, it will be wastage of memory. On Feb 15, 3:57 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: I am storing some data at application level, I want to clear it so that it doesn't consume memory when my application is in background. At the same time, i wish that this data shouldn't get earsed if my application has gone in the background because of an incoming call. Do I need to capture key event in every activity? Is it possible to handle it at application level, so that i dont have to handle it in every activity and rewrite the same code. I'd suggest you read on Activity life cycle and write your resource saving code in the right methods, so you get your goal without dirtry trickery.http://developer.android.com/reference/android/app/Activity.html -- 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
Re: [android-developers] capturing Home key event at application level
15.02.2011 13:50, cool.manish пишет: I am storing some data at application level, I want to clear it so that it doesn't consume memory when my application is in background. From what I can find in the documentation, it's not clear if this can reduce memory consumption. An application sitting in the background is presumably not running any code and not making allocations, so there is nothing to trigger garbage collection (and cause the heap allocated by Dalvik VM from the Linux kernel to shrink). Later, if Android runs out of global memory, it's documented that it just starts killing background processes in their entirety. It's not documented that there is any attempt to run garbage collection on background applications' heaps and shrink them to free up global memory. Perhaps this (garbage collection on background applications) actually does happen but just isn't documented, then freeing memory before going into the background is a useful thing. Can this be clarified? -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
Re: [android-developers] Re: Dynamically adding view in layout xml in android
Yeah, I am able to do that.But I don't find the related method for properties like- android:layout_toRightOf ,android:layout_above. Now this view that I am going to add is present inside RelativeLayout.So,those properties I have to set for this extra view to get adjust with in layout properly.Is there any alternate way or related method is available? On Tue, Feb 15, 2011 at 4:09 PM, CrazzyAndroidians nithin@gmail.comwrote: yes, you can do it, using LayoutInflater and addView() Androidian On Feb 15, 3:13 pm, Deepak Kumar deepak.kumar...@gmail.com wrote: Hi All, I have created a xml layout which includes ImageButtons in row,col format.So,layout having some initial number of views.Now,I want to add extra views at run time i.e through code.Is it possible? How to do it? 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 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
Re: [android-developers] Publishing / log.d
On 15 February 2011 02:06, Dianne Hackborn hack...@android.com wrote: Yes you should strip them out. So what about that statament: Debug logs are compiled in but stripped at runtime? http://developer.android.com/reference/android/util/Log.html -- 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
[android-developers] Re: capturing Home key event at application level
Perhaps this (garbage collection on background applications) actually does happen but just isn't documented, then freeing memory before going into the background is a useful thing. Yes thats why i want to freeing memory just before going into the background but I am not getting callback which will get called after pressing home key. However after reading your reply, now i also have doubt even if i clear memory ( initialized it with null), it will call garbage collector or not but it is more better than not releasing memory at all. if in case garbage collector get run after assigning null, my purpose will be achieved. On Feb 15, 4:21 pm, Kostya Vasilyev kmans...@gmail.com wrote: 15.02.2011 13:50, cool.manish пишет: I am storing some data at application level, I want to clear it so that it doesn't consume memory when my application is in background. From what I can find in the documentation, it's not clear if this can reduce memory consumption. An application sitting in the background is presumably not running any code and not making allocations, so there is nothing to trigger garbage collection (and cause the heap allocated by Dalvik VM from the Linux kernel to shrink). Later, if Android runs out of global memory, it's documented that it just starts killing background processes in their entirety. It's not documented that there is any attempt to run garbage collection on background applications' heaps and shrink them to free up global memory. Perhaps this (garbage collection on background applications) actually does happen but just isn't documented, then freeing memory before going into the background is a useful thing. Can this be clarified? -- Kostya Vasilyev --http://kmansoft.wordpress.com -- 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
Re: [android-developers] Canvas or Gesture??
On 14 February 2011 21:40, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Is that all possible? can i convert a gesture into an image? No. But you can paint on your canvase based on user gestures or touches. I'd suggest you read some basics on what canvas, paint, bitmap is and what they do offer and then read on GestureDetector and motionEvents your listener will get. Then you (assuming it's not goint to be your first app ever) shall get the picture on what you get as input and how you can use it. -- 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
Re: [android-developers] capturing Home key event at application level
2011-02-15 12:21, Kostya Vasilyev skrev: [...] Perhaps this (garbage collection on background applications) actually does happen but just isn't documented, then freeing memory before going into the background is a useful thing. Well, I have not double checked for a while now, but the onLowMemory() method of my service was certainly called now and then (even though my service wasn't doing anything at all at the time) last I traced it. Does this qualify? Best / Jonas -- 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
Re: [android-developers] Supend to disk
On 15 February 2011 09:26, Ln 82.narasim...@gmail.com wrote: Hi, I am trying to add the Suspend to disk support on my hardware. I am booting from SD card, i have a swap partition also. When I do a suspend to disk i get an error message saying that tasks are refusing to freeze. The freezing sequence is exiting immediately after the swapper refuses to freeze. Please let me know how to proceed? Have anyone faced such and issue. This is wrong group for your question. -- 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
Re: [android-developers] Multitouch buttons
On 15 February 2011 05:49, brian purgert brianpurge...@gmail.com wrote: Ok i just put out my game spacebike and got a comment saying they want multitouch. so basically i am using on click listener right now and im wondering how i change that to multitouch. Instead of just being able to accelerate or change the gravity i want them to be able to do either at a time. thanks anyhelp is much appreciated. Not sure what you mean by button. If framework's UI component - then multitouch is quite unlikely there. But if you want to handle them yourself there's seem to be couple of articles on the net that seem to discuss that from programmer perspective (tried android multitouch but you may want to refine the query): http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-3-understanding-touch-events/1775 -- 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
[android-developers] Android WebView style background-color:transparent ignored on android 2.2
Hello, I'm struggling to create a WebView with transparent background. webView.setBackgroundColor(0x00FF); webView.setBackgroundDrawable(myDrawable); Then I load a html page with body style=background-color:transparent; ... The background color of the WebView is transparent but as soon as the page is loaded, it's overwritten by a black background from the html page. This only happens on android 2.2, it works on android 2.1. So is there something to add in the html page code to make it really transparent ? Or is it simply again another bug that nobody cares and that will never been addressed by the android team ? -- 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
Re: [android-developers] capturing Home key event at application level
15.02.2011 14:41, Jonas Petersson пишет: Well, I have not double checked for a while now, but the onLowMemory() method of my service was certainly called now and then (even though my service wasn't doing anything at all at the time) last I traced it. Does this qualify? Best / Jonas It does qualify, but to a point: http://developer.android.com/reference/android/content/ComponentCallbacks.html#onLowMemory() This is called when the overall system is running low on memory, and would like actively running process to try to tighten their belt. While the exact point at which this will be called is not defined, generally it will happen around the time all background process have been killed, that is before reaching the point of killing processes hosting service and foreground UI that we would like to avoid killing. Note that it says actively running process, all background process have been killed, and before reaching the point of killing processes hosting service and foreground UI - which I'm reading to mean that this applies to foreground-class processes. The original question was, are *background* process heaps ever GC'd and shrunk? Was your service bound to a visible activity, previously called startForeground, or running locally within a foreground process? -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
Re: [android-developers] Canvas or Gesture??
Ya this is not my first application , i have done some media streaming , played with database , web services so if guided will not take much time to make this application. I am now looking into api demo's FingerPaint application. I can now give the touch paint facility so that user can touch the screen and drag the finger in whicheva shape and create whatever. Basically user can now make a signature but two things which are lacking are :- Saving this bitmap and Erase button to clear all the canvas so that user can again make signature on clear screen. On Tue, Feb 15, 2011 at 5:09 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: On 14 February 2011 21:40, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Is that all possible? can i convert a gesture into an image? No. But you can paint on your canvase based on user gestures or touches. I'd suggest you read some basics on what canvas, paint, bitmap is and what they do offer and then read on GestureDetector and motionEvents your listener will get. Then you (assuming it's not goint to be your first app ever) shall get the picture on what you get as input and how you can use it. -- 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 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
Re: [android-developers] capturing Home key event at application level
2011-02-15 12:58, Kostya Vasilyev skrev: 15.02.2011 14:41, Jonas Petersson пишет: Well, I have not double checked for a while now, but the onLowMemory() method of my service was certainly called now and then (even though my service wasn't doing anything at all at the time) last I traced it. Does this qualify? It does qualify, but to a point: http://developer.android.com/reference/android/content/ComponentCallbacks.html#onLowMemory() This is called when the overall system is running low on memory, and would like actively running process to try to tighten their belt. While the exact point at which this will be called is not defined, generally it will happen around the time all background process have been killed, that is before reaching the point of killing processes hosting service and foreground UI that we would like to avoid killing. Note that it says actively running process, all background process have been killed, and before reaching the point of killing processes hosting service and foreground UI - which I'm reading to mean that this applies to foreground-class processes. The original question was, are *background* process heaps ever GC'd and shrunk? Was your service bound to a visible activity, previously called startForeground, or running locally within a foreground process? This was a while ago (1.1/1.5 IIRC) so there was no startForeground, but I'm pretty sure I used setForeground(true) to be less likely to get killed. It was completely invisible as all it did was the classic: look for unknown incoming phone numbers an look them up from web service (plus store in the phonebook). The gui was just a Toast. (Yes, I'm aware that there are ways to do this without a service - this was just something I did to play around with the system.) Best / Jonas -- 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
Re: [android-developers] capturing Home key event at application level
15.02.2011 15:18, Jonas Petersson пишет: This was a while ago (1.1/1.5 IIRC) so there was no startForeground, but I'm pretty sure I used setForeground(true) to be less likely to get killed. Ok, thanks for clarifying. -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
[android-developers] Samsung Galaxy Tab
Hi, Can anyone please tell me the graphics resources required for Samsung galaxy applications. 1. Icons and its various size required 2. Screen Size 3. Header Size 4. Footer Size -- 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
[android-developers] Re: WebView Page Not Found Error Trapping
I got it to work public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Let's display the progress in the activity titlebar, like the browser app does this.getWindow().requestFeature(Window.FEATURE_PROGRESS); setContentView(R.layout.main); WebView webview = new WebView(this); setContentView(webview); WebSettings webSettings = webview.getSettings(); setProgressBarVisibility(true); webview.getSettings().setJavaScriptEnabled(true); // Make the zoom controls visible webSettings.setBuiltInZoomControls(true); final Activity activity = this; webview.setWebChromeClient(new WebChromeClient() { public void onProgressChanged(WebView view, int progress) { activity.setProgress(progress * 100 ); } }); // Creating and setting a WebViewClient subclass. // It will be called when things happen that impact the rendering of the content, // eg, errors or form submissions. You can also intercept URL loading here (via shouldOverrideUrlLoading()). webview.setWebViewClient(new WebViewClient() { public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { Toast.makeText(activity, Internet connection down? + description, Toast.LENGTH_SHORT).show(); view.loadData(Your internet connection may be down? Please restart your app., text/html, UTF-8); } }); // Go to a web page webview.loadUrl(http://www.MyWebsite.com;); } } On Feb 14, 2:51 pm, Craigbtx craig...@austin.rr.com wrote: Can you give me some sample code? I am learning and only done android programming for 2-3 weeks. On Feb 14, 2:26 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Feb 14, 2011 at 3:23 PM, Craigbtx craig...@austin.rr.com wrote: I have the OnReceivedError event I get the dialog Internet Down message but the page not found still shows in hte background. Is there some way around this? Like show a blank screen saying error: Site down. Try later or something? Call loadUrl() or loadData() or loadDataWithBaseURL() with whatever you want. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training...At Your Office:http://commonsware.com/training- Hide quoted text - - Show quoted text - -- 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
Re: [android-developers] Canvas or Gesture??
On 15 February 2011 13:10, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote: Saving this bitmap and String path = Environment.getExternalStorageDirectory().toString(); OutputStream fOut = new FileOutputStream( new File(path, filename.jpg) ); bitmap.compress(Bitmap.CompressFormat.JPEG, 85, fOut); fOut.flush(); fOut.close(); Erase button to clear all the canvas so that user can again make signature on clear screen. http://developer.android.com/reference/android/graphics/Canvas.html#drawRGB%28int,%20int,%20int%29 but again: do RTFM first as there are other options you may want to utilse (i.e. you may want to save as PNG instead of lossy JPEG) or simply to know whene you will be trying to reinvent the wheel. -- 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
Re: [android-developers] Re: How to delete...?
On Tue, Feb 15, 2011 at 3:19 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: My problem was solved like this.. myDB.execSQL(DELETE FROM favourites where month=' +str1+ ' ); Pls. *don't* use this style of writing SQL queries! JAlexoid (Aleksandr Panzin) had a good suggestion for you. The reason is SQL Injection. Pls. have a read here: http://en.wikipedia.org/wiki/SQL_injection BR, Sebastian -- 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
[android-developers] bug in bitmap tileMode=repeat / within layer-list ?
hello :) I've got a ListView and items with their own xml. these items do have a xml background. this xml background is a layer-list with 4 items, one of them is a bitmap tileMode=repeat /. the others are just an alpha-gradient and a blue rectangle painted on top. sometimes my tile-bitmap (just a small cirlcle.png) is painted correctly (lots of small small circles everywhere), sometimes there is only one circle which is zoomed to fill_parent. are there any workarounds for this bug ? btw: tested on 1.5 1.6 2.1 2.2 emulators and lots of different devices (desire, nexus one, galaxy, galaxy tab, x10mini, wildfire, ...) here comes my xml: ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/ android item shape android:shape=rectangle solid android:color=@color/white / /shape /item item android:top=5dip android:right=5dip android:bottom=5dip android:left=5dip bitmap android:src=@drawable/background_tile_blue android:tileMode=repeat / /item item android:top=5dip android:right=5dip android:bottom=5dip android:left=5dip shape android:shape=rectangle gradient android:startColor=#ddff android:endColor=#00ff android:angle=0 android:type=linear / /shape /item item android:top=5dip android:right=5dip android:bottom=5dip android:left=5dip nine-patch android:src=@drawable/background_border_blue android:dither=true / /item /layer-list greetings, marco schmitz -- 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
[android-developers] Re: Unique device id - which one to choose
Using a Hash of all the ID's is most likely the best solution, gather all the ID's, append your own signature if you like (optional) and hash the long concatenation of all the ID's you can gather, I would recommend using SHA. Most likely not all phones will have all available ID's so by using this you can be sure that the ID you're generating is as unique as possible. On Feb 11, 10:54 am, Oceanblue ns1...@gmail.com wrote: Like a lot of other applications, my application has different levels of features access. Depending on the unique device ID, it switches on certain features (paid/licensing issues). This feature switching on- off is already done in existing native C/C++ code for all kind of mobile devices/PCs etc, so I wouldn't be using Androids new in-app billing (even if it provides this functionality) I need a unique (6 byte, hex string) device id. I have looked at the following options: 1. ANDOID_ID Looks good, but there seem to be some issues with this. 1. This can show up null, unless the device has atleast once logged onto Android market, as per this thread:http://groups.google.com/group/android-developers/browse_thread/threa... I've read in other places too, that it might be null - due to this or other causes. 2. Certain devices have a bug where many devices show up the same (supposedly) unique id, as per this thread:http://groups.google.com/group/android-developers/browse_thread/threa... 2. MAC address Not sure if this is available under the following conditions: 1. Device is not wi-fi enabled 2. Wi-fi is switched off 3. IMEI/ MEID Application will be potentially running on non-telephone devices like tablets too, so this is not an option. I'm really stumped at this point. Any guidance would be much appreciated. -- 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
Re: [android-developers] Re: Unique device id - which one to choose
Using a Hash of all the ID's is most likely the best solution, gather all the ID's, append your own signature if you like (optional) and hash the long concatenation of all the ID's you can gather, I would recommend using SHA. I wouldn't hash it on client side. If any of the value is missing due to a bug and then upgrade would address this, your hash will potentially mismatch causing some problems. I'd rather store all the values on server side and apply some logic to cope with the above scenario (which is easily doable as I'd knew that some values were missing and now are present, which is not doable if you get just result hash) -- Regards, Marcin -- 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
Re: [android-developers] Lat, Longs are not changing even for new locations
On Tue, Feb 15, 2011 at 1:42 AM, rokson kiranrepa...@gmail.com wrote: what can i do for getting updated lat ,longs for new locations? Actually requesting updates will probably help. Can any one help me? http://developer.android.com/guide/topics/location/obtaining-user-location.html - 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
[android-developers] Re: [android-porting] /mnt/secure/asec
can;t just umount the partition used for media for UMS purpose? what is the exact use of /mnt/secute ? can breifly elaborate on this please ? - Anand On Tue, Feb 15, 2011 at 1:47 PM, Dianne Hackborn hack...@android.comwrote: You can't avoid it, those are files in the SD card. On Mon, Feb 14, 2011 at 11:34 PM, Anand Android android.an...@gmail.comwrote: Hi Dianne, Thanks . I'm mounting SDcard on pc ..using UMS mode...when i do this . i see all the partitions of the SD card mounted on the PC side,which i dont want it . i just want to mount '/mnt/sdcard' . how do i do this ? - Anand On Mon, Feb 14, 2011 at 11:39 PM, Dianne Hackborn hack...@android.comwrote: It is secure containers, currently mainly for apps on SD card. On Sun, Feb 13, 2011 at 11:34 PM, Anand Android android.an...@gmail.com wrote: hi all, actually when i mount mysd card . i see 2 partitions ,/mnt/sdcard and /mnt/secure/asec. what is /mnt/secure/asec? whats the use ? - Anand -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] calling an intent that's running passing a parameter
Hi, Suppose i have two applications. I call the first one, then i press the home button and it goes sleep. Then i call the second one. I want that this second one call the first one, in some way, passing a parameter that would ask the first one to quit itself (currently it is taking just too long to quit). Is there a way that an intent can call another intent that's running and pass a parameter? thanks guich -- 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
Re: [android-developers] Android ZigBee Capabilities
Hi Jonathan, I work in a company that is producing a device that uses Android and have ZigBee. http://www.mxt.com.br/products.php Regards, Rogerio 2011/2/11 GimpyCPU jonathan.nad...@gmail.com Greeting, I've been working on a project that would require me to use a Android based (PDA, Smartphone) with ZigBee. I found something about SDIO Zigbee Card this : http://www.adwave.fr/Products/SD-Card-ZigBee-TM-AW13213-SD-/langue=en/id=44 The objective is to replace embedded computers with a simple system. Zigbee sensors(temperature, proximity, humidity) etc and using the phone to gather information from the sensor in real time. Yet none of the smartphone i found can support this kind of card (Size : 70mm * 28mm * 7mm) So I thought that maybe someone in the groups might be able to suggest me a Smartphone or PDA for this matter. Thank you Jonathan -- 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 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
Re: [android-developers] calling an intent that's running passing a parameter
On Tue, Feb 15, 2011 at 7:52 AM, guich guiha...@gmail.com wrote: Suppose i have two applications. I call the first one, then i press the home button and it goes sleep. Applications don't go to sleep ... the device does. Then i call the second one. I want that this second one call the first one, in some way, passing a parameter that would ask the first one to quit itself (currently it is taking just too long to quit). Try a broadcast message. Is there a way that an intent can call another intent that's running and pass a parameter? No, because intents don't call other intents, nor do they run. - 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
[android-developers] Density independent values through code for views
Hi All, I have added views to layout in xml through code(i.e dynamically).And given properties for button such as topMargin,leftMargin etc.Yeah it will appear properly in one device.Because I gave values as per adjustment to the current device(hdpi854) but if I will run the same code on other screen devices i.e for mdpi it will give more gap. If we write views in xml ,we use to give values such as 100dp,100dpi etc.So, it can adjust according to the screen size.But if we give these values dynamically ,it always I think take in terms of pixels. One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? -- 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
Re: [android-developers] bug in bitmap tileMode=repeat / within layer-list ?
I've also experienced tileMode on drawables being ignored (1.6 SDK), generally when extending the existing height of a ViewGroup by adding children after the initial layout pass. It doesn't always exhibit the behaviour. I didn't have time to fully investigate the problem at the SDK code level just yet, but this quick workaround might help you in the meantime... BitmapDrawable drawable = (BitmapDrawable)myList.getBackground(); drawable.setTileModeY(TileMode.REPEAT); Rich On 15 Feb 2011, at 13:25, Marco Alexander Schmitz wrote: hello :) I've got a ListView and items with their own xml. these items do have a xml background. this xml background is a layer-list with 4 items, one of them is a bitmap tileMode=repeat /. the others are just an alpha-gradient and a blue rectangle painted on top. sometimes my tile-bitmap (just a small cirlcle.png) is painted correctly (lots of small small circles everywhere), sometimes there is only one circle which is zoomed to fill_parent. are there any workarounds for this bug ? btw: tested on 1.5 1.6 2.1 2.2 emulators and lots of different devices (desire, nexus one, galaxy, galaxy tab, x10mini, wildfire, ...) here comes my xml: ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/ android item shape android:shape=rectangle solid android:color=@color/white / /shape /item item android:top=5dip android:right=5dip android:bottom=5dip android:left=5dip bitmap android:src=@drawable/background_tile_blue android:tileMode=repeat / /item item android:top=5dip android:right=5dip android:bottom=5dip android:left=5dip shape android:shape=rectangle gradient android:startColor=#ddff android:endColor=#00ff android:angle=0 android:type=linear / /shape /item item android:top=5dip android:right=5dip android:bottom=5dip android:left=5dip nine-patch android:src=@drawable/background_border_blue android:dither=true / /item /layer-list greetings, marco schmitz -- 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 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
Re: [android-developers] Publishing / log.d
There's a simple solution for this using ProGuard. You can tell it to remove functions where the return value is not used with -assumenosideffects See http://stackoverflow.com/questions/2446248/deactivate-any-calls-to-log-before-publishing-are-there-tools-to-do-this/242#242 On 15 February 2011 11:35, Marcin Orlowski webnet.andr...@gmail.com wrote: On 15 February 2011 02:06, Dianne Hackborn hack...@android.com wrote: Yes you should strip them out. So what about that statament: Debug logs are compiled in but stripped at runtime? http://developer.android.com/reference/android/util/Log.html -- 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 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
Re: [android-developers] Density independent values through code for views
On 15 February 2011 15:03, Deepak Kumar deepak.kumar...@gmail.com wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? Don't think there're much alternatives. What I do is keep all the values in dip in my code (for items I need to draw/adjust etc from code) and on setting/drawing have them multiplied by getResources().getDisplayMetrics().density and that's shall do the trick ( +0.5f for rounding). -- Regards, Marcin -- 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
Re: [android-developers] Density independent values through code for views
On 15/02/2011 15:03, Deepak Kumar wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? In code, I define constants in 'dp' and then multiply with DisplayMetrics#density http://developer.android.com/reference/android/util/DisplayMetrics.html#density at runtime to get the correct pixel value. Pepijn -- 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
Re: [android-developers] Density independent values through code for views
You can look into writing a utility method e.g. : public class Util { private static float DIP_SCALE = -1; public static int dipsToPx(int dips, Context context) { if(DIP_SCALE == -1) DIP_SCALE = context.getResources().getDisplayMetrics().density; return (int)(dips * DIP_SCALE + 0.5f); } } and using that in your code... On 15 Feb 2011, at 14:13, Pepijn Van Eeckhoudt wrote: On 15/02/2011 15:03, Deepak Kumar wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? In code, I define constants in 'dp' and then multiply with DisplayMetrics#density at runtime to get the correct pixel value. Pepijn -- 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 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
[android-developers] Closing Cursors
I'm trying to clean up my cursor management and have taken care of all the cases where I strictly use a cursor within my own classes. But what about cursors passed in a CursorAdapter to a ListView? Does the ListView or adapter take care of closing the cursor when the activity exits? Doug Gordon GHCS Software -- 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
[android-developers] Android: first open and free mobile platform?
Hello, I have read on the OHA website that one of the goals for Android should be the first complete, open and free mobile platform (http://www.openhandsetalliance.com/) Android was the first? I think some others, like the OpenMoko project was there before?! Greetz dudero -- 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
[android-developers] Cursor Management with ListView
I've got a ListActivity that displays a list of items from a database using a CursorAdapter, which initially contains all items in the table. I also provide an EditText view where the user can enter search text, and as characters are entered, I requery the database using a LIKE or MATCH where clause to filter the results (IOW, what lots of apps do when searching). Currently, I do this in an AsyncTask by creating a new Cursor from the query, creating a new instance of my CursorAdapter class, and then calling list.setAdapter from the UI thread when the task completes. This is all working, but is there a more elegant way of effectively requerying the database with a new WHERE clause from withing the existing adapter/cursor and avoiding having to create new object instances each time? Any examples of this technique? Doug Gordon GHCS Software -- 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
Re: [android-developers] Android: first open and free mobile platform?
On 15 February 2011 15:33, Dudero sinfanh...@googlemail.com wrote: I think some others, like the OpenMoko project was there before?! Even if, so what? I do not bother how each of them call their platform. It's marketing buzz. Use to it. For example there's hell lot of apps of certain type on Market and each of them claim to be the #1 of that type. Do I care? No. Same for Android. I do not care if it the first of the last. I do care size of user base, Platfrom development and my revenue. It can be best and real #1 but if there's no users who care the platfom. How many real, paying users you got on OpenMoko? Rethoric question. -- Regards, Marcin -- 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
Re: [android-developers] Android: first open and free mobile platform?
On 15 February 2011 15:40, Marcin Orlowski webnet.andr...@gmail.com wrote: the first of the last. I do care size of user base, Platfrom of shall be or in the first of the last -- Regards, Marcin -- 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
Re: [android-developers] Cursor Management with ListView
ListView already has an infrastructure for filtering, which invokes the query on a background thread: http://developer.android.com/reference/android/widget/CursorAdapter.html#runQueryOnBackgroundThread(java.lang.CharSequence) http://developer.android.com/reference/android/widget/CursorAdapter.html#getFilter() http://developer.android.com/reference/android/widget/Filter.html#filter(java.lang.CharSequence) -- Kostya 15.02.2011 17:28, Doug Gordon пишет: I've got a ListActivity that displays a list of items from a database using a CursorAdapter, which initially contains all items in the table. I also provide an EditText view where the user can enter search text, and as characters are entered, I requery the database using a LIKE or MATCH where clause to filter the results (IOW, what lots of apps do when searching). Currently, I do this in an AsyncTask by creating a new Cursor from the query, creating a new instance of my CursorAdapter class, and then calling list.setAdapter from the UI thread when the task completes. This is all working, but is there a more elegant way of effectively requerying the database with a new WHERE clause from withing the existing adapter/cursor and avoiding having to create new object instances each time? Any examples of this technique? Doug Gordon GHCS Software -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
[android-developers] Receive a notification when a call is answered
I am creating an application for API Level 7 and above that receives a notification every time a phone call is answered and logs that information to a sqlLite databas. When I run the application in the emulator, I never receive the notifications. Here is the class i created. It's simple logs a message to logCat when it receives the intent: package ed.app.commTracker; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import ed.app.messageLog.systemOutput; import java.lang.String; public class callReceiver extends BroadcastReceiver { private final String ACTION_ANSWER =android.intent.action.ANSWER; @Override public void onReceive(Context context, Intent intent) { systemOutputm_systemLog; m_systemLog = new systemOutput(systemOutput.LOG_ALL, commTracker ); m_systemLog.logMessage(Log Started: CallReceiver); m_systemLog.logDebug(CallReceiver::onReceive()); } } and Here is my manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=ed.app.commTracker android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=7 / application android:icon=@drawable/icon android:label=@string/ app_name activity android:label=@string/app_name android:name=main intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity receiver android:name=callReceiver intent-filter action android:name=android.intent.action.ANSWER / /intent-filter /receiver /application /manifest I'm sure I'm doing something wrong, but I can't figure out what. Any help is appreciated. 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
[android-developers] let users select a audio file on tmobile mytouch 4g - activity not found exception
hi, I have a button that when a user clicks it, he should see a list of audio files, then he can select one, and my app knows what he selects. the following codes work fine on g1 and mytouch 3g(aka g2), but always throw a activity not found exception for Intent.ACTION_GET_CONTENT or Intent.ACTION_PICK: protected void onClick() { super.onClick(); Intent intent = null; intent = new Intent(Intent.ACTION_PICK); try{ startActivityToPickSong(intent); }catch(android.content.ActivityNotFoundException e){ intent = new Intent(Intent.ACTION_GET_CONTENT); startActivityToPickSong(intent); } } private void startActivityToPickSong(Intent intent){ intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI); parent.startActivityForResult(intent, req_song_pic); } what's going on here? Kai -- 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
[android-developers] Android 2.0.1 Platform source code
Hi, How would i get the Android 2.0.1 Platform /sdk/android-2.0.1.html SDK. -- Thank Regards Peeyush Varshney -- 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
Re: [android-developers] Android 2.0.1 Platform source code
On 15 February 2011 16:25, peeyush varshney varshney.peey...@gmail.com wrote: How would i get the Android 2.0.1 Platform SDK. Use SDK Manager: http://developer.android.com/sdk/index.html -- Regards, Marcin -- 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
[android-developers] Mobile Ad Serving Technologies for direct ad sales - which is best?
Guys, I'm trying to pick an ad serving technology that will allow me to service ads that I sell directly in my Android app. Hoping is would work for Android, iPhone, W7P, etc. Any ideas which technology is good for this? Thanks so much for any opinions. Best, pawpaw17 -- 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
[android-developers] Re: Custom View question
Any ideas anyone? I went to test at least the top left corner of the campus image (where the bitmap's 0,0 lines up with the screen's 0,0, i.e. before the image is panned or zoomed at all) while driving onto campus this morning, then realized I stupidly put latitude in the translate x and longitude in the translate y. So I'll test that later tonight after I change it. But does anyone have any ideas as to the real problem? which is that it appears I can only draw to the campus and make it relative to the bitmap? -- 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
Re: [android-developers] Mobile Ad Serving Technologies for direct ad sales - which is best?
I'm trying to pick an ad serving technology that will allow me to service ads that I sell directly in my Android app. Hoping is would work for Android, iPhone, W7P, etc. Any ideas which technology is good for this? All you need is just plain server software which would deliver your ad content over the net and do sane distribution and statistics, so do not abuse technology word here. There's couple out there (google for ad server). In most cases these are tailored for web use but you can easily adapt them to your needs as some open source are quite fine (i.e. OpenX formerly OpenAds) -- 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
[android-developers] Display Radio Buttons when you click a button in the same page
Hi all, i am having problem regarding : there is a button on a page, when you click the button it view 2 radio buttons in the same page. i have done all what i collect from goole. if anybode here have the knowlwdge to solve it out, please send me the code Thanks Regards Subrat -- 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
Re: [android-developers] Display Radio Buttons when you click a button in the same page
On Tue, Feb 15, 2011 at 9:48 AM, subrat kumar panda evergreen.sub...@gmail.com wrote: i am having problem regarding : there is a button on a page, when you click the button it view 2 radio buttons in the same page. What exactly is the problem? This is not very clear. if anybode here have the knowlwdge to solve it out, please send me the code OK, here is the code: while(waitingForSomeoneToSendYouCode()) { try { toDoYourOwnWork(true); } catch (CantFigureItOutException e) { postToGoogleGroup(new DetailedExplanation()); } } - 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
Re: [android-developers] Display Radio Buttons when you click a button in the same page
view.setVisibility(View.VISIBLE) ( previously set to android:visibility=gone in the xml ) -- Kostya 15.02.2011 18:48, subrat kumar panda пишет: Hi all, i am having problem regarding : there is a button on a page, when you click the button it view 2 radio buttons in the same page. i have done all what i collect from goole. if anybode here have the knowlwdge to solve it out, please send me the code Thanks Regards Subrat -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- 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
[android-developers] Display map overlay always on top
Hi, how I can show itemizedoverlay ahead of other? I have Next and Previous buttons, if I pressed one of them I want to move cursor to the next or previous overlay. That overlay have to displayed on top of other. 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
Re: [android-developers] Display map overlay always on top
On Tue, Feb 15, 2011 at 10:09 AM, viktor victor.scherb...@gmail.com wrote: Hi, how I can show itemizedoverlay ahead of other? I have Next and Previous buttons, if I pressed one of them I want to move cursor to the next or previous overlay. That overlay have to displayed on top of other. http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/ItemizedOverlay.html#nextFocus(boolean) http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/ItemizedOverlay.html#nextFocus(boolean) The focused item is always drawn last, which puts it visually on top of the other items. - 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
Re: [android-developers] Density independent values through code for views
Thanks for the code.It is proper for view alignment within layout in different devices.But for textSize of textview its not happening properly. I am using following code:- TextView txtForIcon=new TextView(this); txtForIcon.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)); txtForIcon.setTextSize(*Utils.dipsToPx(11,this))*; txtForIcon.setText(name); size 11 is for hdpi(480*854) but for mdpi(320*480).It is appearing very small. Thanks, On Tue, Feb 15, 2011 at 7:54 PM, Richard Leggett richard.legg...@gmail.comwrote: You can look into writing a utility method e.g. : *public* *class* Util { *private* *static* *float* *DIP_SCALE* = -1; *public* *static* *int* dipsToPx(*int* dips, Context context) { *if*(*DIP_SCALE* == -1) *DIP_SCALE* = context.getResources().getDisplayMetrics().density; *return* (*int*)(dips * *DIP_SCALE* + 0.5f); } } and using that in your code... On 15 Feb 2011, at 14:13, Pepijn Van Eeckhoudt wrote: On 15/02/2011 15:03, Deepak Kumar wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? In code, I define constants in 'dp' and then multiply with DisplayMetrics#densityhttp://developer.android.com/reference/android/util/DisplayMetrics.html#densityat runtime to get the correct pixel value. Pepijn -- 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 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 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
[android-developers] Re: Display map overlay always on top
You mean, if item last(index) in Overlays Collection, it have to display on top? I don't understand this issue, if it is true, that means that API always regroup all items when it was tapped. On 15 Лют, 18:16, TreKing treking...@gmail.com wrote: On Tue, Feb 15, 2011 at 10:09 AM, viktor victor.scherb...@gmail.com wrote: Hi, how I can show itemizedoverlay ahead of other? I have Next and Previous buttons, if I pressed one of them I want to move cursor to the next or previous overlay. That overlay have to displayed on top of other. http://code.google.com/android/add-ons/google-apis/reference/com/goog...) http://code.google.com/android/add-ons/google-apis/reference/com/goog...) The focused item is always drawn last, which puts it visually on top of the other items. --- -- 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
Re: [android-developers] Re: Display map overlay always on top
On Tue, Feb 15, 2011 at 10:32 AM, viktor victor.scherb...@gmail.com wrote: You mean, if item last(index) in Overlays Collection, it have to display on top? Sorry, I don't understand what you're asking. I don't understand this issue, if it is true, that means that API always regroup all items when it was tapped. It doesn't regroup - it just draws the focused item last. - 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
[android-developers] Re: Display map overlay always on top
---It doesn't regroup - it just draws the focused item last. OK, it is clear for me now. I try to set focus, but overlay doesn't move to the top. I've forgotten something? On 15 Лют, 18:37, TreKing treking...@gmail.com wrote: On Tue, Feb 15, 2011 at 10:32 AM, viktor victor.scherb...@gmail.com wrote: You mean, if item last(index) in Overlays Collection, it have to display on top? Sorry, I don't understand what you're asking. I don't understand this issue, if it is true, that means that API always regroup all items when it was tapped. It doesn't regroup - it just draws the focused item last. --- -- 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
Re: [android-developers] Density independent values through code for views
That is the correct code. What do you mean by appearing very small? Of course at mdpi it will be significantly smaller than hdpi. On Tue, Feb 15, 2011 at 8:29 AM, Deepak Kumar deepak.kumar...@gmail.comwrote: Thanks for the code.It is proper for view alignment within layout in different devices.But for textSize of textview its not happening properly. I am using following code:- TextView txtForIcon=new TextView(this); txtForIcon.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)); txtForIcon.setTextSize(*Utils.dipsToPx(11,this))*; txtForIcon.setText(name); size 11 is for hdpi(480*854) but for mdpi(320*480).It is appearing very small. Thanks, On Tue, Feb 15, 2011 at 7:54 PM, Richard Leggett richard.legg...@gmail.com wrote: You can look into writing a utility method e.g. : *public* *class* Util { *private* *static* *float* *DIP_SCALE* = -1; *public* *static* *int* dipsToPx(*int* dips, Context context) { *if*(*DIP_SCALE* == -1) *DIP_SCALE* = context.getResources().getDisplayMetrics().density; *return* (*int*)(dips * *DIP_SCALE* + 0.5f); } } and using that in your code... On 15 Feb 2011, at 14:13, Pepijn Van Eeckhoudt wrote: On 15/02/2011 15:03, Deepak Kumar wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? In code, I define constants in 'dp' and then multiply with DisplayMetrics#densityhttp://developer.android.com/reference/android/util/DisplayMetrics.html#densityat runtime to get the correct pixel value. Pepijn -- 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 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 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Re: Display map overlay always on top
On Tue, Feb 15, 2011 at 10:49 AM, viktor victor.scherb...@gmail.com wrote: I try to set focus, but overlay doesn't move to the top. I've forgotten something? How did you try to set focus? - 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
Re: [android-developers] Density independent values through code for views
(For the code you have, at mdpi the density scale is 1, so you just end up with a size of 11, which yes is pretty small.) On Tue, Feb 15, 2011 at 9:07 AM, Dianne Hackborn hack...@android.comwrote: That is the correct code. What do you mean by appearing very small? Of course at mdpi it will be significantly smaller than hdpi. On Tue, Feb 15, 2011 at 8:29 AM, Deepak Kumar deepak.kumar...@gmail.comwrote: Thanks for the code.It is proper for view alignment within layout in different devices.But for textSize of textview its not happening properly. I am using following code:- TextView txtForIcon=new TextView(this); txtForIcon.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)); txtForIcon.setTextSize(*Utils.dipsToPx(11,this))*; txtForIcon.setText(name); size 11 is for hdpi(480*854) but for mdpi(320*480).It is appearing very small. Thanks, On Tue, Feb 15, 2011 at 7:54 PM, Richard Leggett richard.legg...@gmail.com wrote: You can look into writing a utility method e.g. : *public* *class* Util { *private* *static* *float* *DIP_SCALE* = -1; *public* *static* *int* dipsToPx(*int* dips, Context context) { *if*(*DIP_SCALE* == -1) *DIP_SCALE* = context.getResources().getDisplayMetrics().density; *return* (*int*)(dips * *DIP_SCALE* + 0.5f); } } and using that in your code... On 15 Feb 2011, at 14:13, Pepijn Van Eeckhoudt wrote: On 15/02/2011 15:03, Deepak Kumar wrote: One of the solution can be multiplying these values with ratio (according to device).Is there any other way to do the same? In code, I define constants in 'dp' and then multiply with DisplayMetrics#densityhttp://developer.android.com/reference/android/util/DisplayMetrics.html#densityat runtime to get the correct pixel value. Pepijn -- 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 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 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Securing the SharedPreferences file using AESObfuscator in LVL
I have no experience in cryptography, hence this basic question about the AESObfuscator in Android LVL. The AESObfuscator uses app specific info (say package id), device specific info (say android.provider.Settings.Secure.ANDROID_ID) and a salt to generate a key to encrypt the SharedPreference file where the ServerManagedPolicy stores my license information. Now, the app id and the device id are well known. It will be a simple matter to decompile my app to obtain the salt even if I obfuscate my code. Won't somebody be able to generate the key using the three values and edit the SharedPreferences file easily on a rooted phone? On a non-rooted phone I guess I can just make the file private and nobody else will be able to access it, but, what do I do on rooted phones? I can't help feeling I am missing something here. Why else would the documentation on LVL put so much emphasis on refactoring and obfuscating LVL to prevent others from patching the library when a much simpler way would be to just get the salt and edit the preferences file? Can someone enlighten me on this? ~rajorshi -- 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
Re: [android-developers] Securing the SharedPreferences file using AESObfuscator in LVL
Oh and the documentation on LVL obfuscation is to prevent people from easily *modifying* the app to *remove* its LVL checks. This is in many ways a very different issue than trying to protect data that is being stored on the device. The LVL design has the server holding the private key that it uses to sign its results, and the app has a public key it uses to verify results from the server. That way you can't spoof the result without knowing the private key (which is only on the server), so LVL will work without needing to trust the local device or Market app. On Tue, Feb 15, 2011 at 9:18 AM, Dianne Hackborn hack...@android.comwrote: If someone has root, there is little you can do to really protect yourself from them. On Tue, Feb 15, 2011 at 9:10 AM, rajorshi groups.rajor...@gmail.comwrote: I have no experience in cryptography, hence this basic question about the AESObfuscator in Android LVL. The AESObfuscator uses app specific info (say package id), device specific info (say android.provider.Settings.Secure.ANDROID_ID) and a salt to generate a key to encrypt the SharedPreference file where the ServerManagedPolicy stores my license information. Now, the app id and the device id are well known. It will be a simple matter to decompile my app to obtain the salt even if I obfuscate my code. Won't somebody be able to generate the key using the three values and edit the SharedPreferences file easily on a rooted phone? On a non-rooted phone I guess I can just make the file private and nobody else will be able to access it, but, what do I do on rooted phones? I can't help feeling I am missing something here. Why else would the documentation on LVL put so much emphasis on refactoring and obfuscating LVL to prevent others from patching the library when a much simpler way would be to just get the salt and edit the preferences file? Can someone enlighten me on this? ~rajorshi -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Securing the SharedPreferences file using AESObfuscator in LVL
If someone has root, there is little you can do to really protect yourself from them. On Tue, Feb 15, 2011 at 9:10 AM, rajorshi groups.rajor...@gmail.com wrote: I have no experience in cryptography, hence this basic question about the AESObfuscator in Android LVL. The AESObfuscator uses app specific info (say package id), device specific info (say android.provider.Settings.Secure.ANDROID_ID) and a salt to generate a key to encrypt the SharedPreference file where the ServerManagedPolicy stores my license information. Now, the app id and the device id are well known. It will be a simple matter to decompile my app to obtain the salt even if I obfuscate my code. Won't somebody be able to generate the key using the three values and edit the SharedPreferences file easily on a rooted phone? On a non-rooted phone I guess I can just make the file private and nobody else will be able to access it, but, what do I do on rooted phones? I can't help feeling I am missing something here. Why else would the documentation on LVL put so much emphasis on refactoring and obfuscating LVL to prevent others from patching the library when a much simpler way would be to just get the salt and edit the preferences file? Can someone enlighten me on this? ~rajorshi -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Publishing / log.d
On Tue, Feb 15, 2011 at 3:35 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: So what about that statament: Debug logs are compiled in but stripped at runtime? http://developer.android.com/reference/android/util/Log.html It's a lie. Well I think it is trying to say that they aren't shown by default, but the code is definitely not stripped, and you absolutely do not want to leave those in shipping products. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Securing the SharedPreferences file using AESObfuscator in LVL
But, if someone can edit my preferences file to modify the stored validity time stamp, grace period and max. retry count to very reasonably values, he can prevent my app from ever contacting the server after the first attempts or make it retry all the time. This effectively removes LVL checks. Also, if bypassing the licensing is indeed as easy on rooted phones as I mentioned, doesn't that practically negate the advantage of having a licensing scheme which works independent of device configuration. After all, that is what attracted me to the licensing service in the first place - the thought that I would be able to get additional revenue if my apps could be legitimately installed on rooted phones. ~rajorshi On Feb 15, 10:21 pm, Dianne Hackborn hack...@android.com wrote: Oh and the documentation on LVL obfuscation is to prevent people from easily *modifying* the app to *remove* its LVL checks. This is in many ways a very different issue than trying to protect data that is being stored on the device. The LVL design has the server holding the private key that it uses to sign its results, and the app has a public key it uses to verify results from the server. That way you can't spoof the result without knowing the private key (which is only on the server), so LVL will work without needing to trust the local device or Market app. On Tue, Feb 15, 2011 at 9:18 AM, Dianne Hackborn hack...@android.comwrote: If someone has root, there is little you can do to really protect yourself from them. On Tue, Feb 15, 2011 at 9:10 AM, rajorshi groups.rajor...@gmail.comwrote: I have no experience in cryptography, hence this basic question about the AESObfuscator in Android LVL. The AESObfuscator uses app specific info (say package id), device specific info (say android.provider.Settings.Secure.ANDROID_ID) and a salt to generate a key to encrypt the SharedPreference file where the ServerManagedPolicy stores my license information. Now, the app id and the device id are well known. It will be a simple matter to decompile my app to obtain the salt even if I obfuscate my code. Won't somebody be able to generate the key using the three values and edit the SharedPreferences file easily on a rooted phone? On a non-rooted phone I guess I can just make the file private and nobody else will be able to access it, but, what do I do on rooted phones? I can't help feeling I am missing something here. Why else would the documentation on LVL put so much emphasis on refactoring and obfuscating LVL to prevent others from patching the library when a much simpler way would be to just get the salt and edit the preferences file? Can someone enlighten me on this? ~rajorshi -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
[android-developers] Re: Display map overlay always on top
I get the Overlay by index from Overlays. and set with: ItemizedOverlay.setFocus(Item item); It works now, but if I scroll or zoom a map the focussed overlay gone again. On 15 Лют, 19:13, TreKing treking...@gmail.com wrote: On Tue, Feb 15, 2011 at 10:49 AM, viktor victor.scherb...@gmail.com wrote: I try to set focus, but overlay doesn't move to the top. I've forgotten something? How did you try to set focus? --- -- 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
[android-developers] Re: Securing the SharedPreferences file using AESObfuscator in LVL
Sorry for typo. I meant ... if someone can edit my preferences file to modify the stored validity time stamp, grace period and max. retry count to reasonably large values, ... ~rajorshi On Feb 15, 10:46 pm, rajorshi groups.rajor...@gmail.com wrote: But, if someone can edit my preferences file to modify the stored validity time stamp, grace period and max. retry count to very reasonably values, he can prevent my app from ever contacting the server after the first attempts or make it retry all the time. This effectively removes LVL checks. Also, if bypassing the licensing is indeed as easy on rooted phones as I mentioned, doesn't that practically negate the advantage of having a licensing scheme which works independent of device configuration. After all, that is what attracted me to the licensing service in the first place - the thought that I would be able to get additional revenue if my apps could be legitimately installed on rooted phones. ~rajorshi On Feb 15, 10:21 pm, Dianne Hackborn hack...@android.com wrote: Oh and the documentation on LVL obfuscation is to prevent people from easily *modifying* the app to *remove* its LVL checks. This is in many ways a very different issue than trying to protect data that is being stored on the device. The LVL design has the server holding the private key that it uses to sign its results, and the app has a public key it uses to verify results from the server. That way you can't spoof the result without knowing the private key (which is only on the server), so LVL will work without needing to trust the local device or Market app. On Tue, Feb 15, 2011 at 9:18 AM, Dianne Hackborn hack...@android.comwrote: If someone has root, there is little you can do to really protect yourself from them. On Tue, Feb 15, 2011 at 9:10 AM, rajorshi groups.rajor...@gmail.comwrote: I have no experience in cryptography, hence this basic question about the AESObfuscator in Android LVL. The AESObfuscator uses app specific info (say package id), device specific info (say android.provider.Settings.Secure.ANDROID_ID) and a salt to generate a key to encrypt the SharedPreference file where the ServerManagedPolicy stores my license information. Now, the app id and the device id are well known. It will be a simple matter to decompile my app to obtain the salt even if I obfuscate my code. Won't somebody be able to generate the key using the three values and edit the SharedPreferences file easily on a rooted phone? On a non-rooted phone I guess I can just make the file private and nobody else will be able to access it, but, what do I do on rooted phones? I can't help feeling I am missing something here. Why else would the documentation on LVL put so much emphasis on refactoring and obfuscating LVL to prevent others from patching the library when a much simpler way would be to just get the salt and edit the preferences file? Can someone enlighten me on this? ~rajorshi -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Re: Display map overlay always on top
On Tue, Feb 15, 2011 at 11:47 AM, viktor victor.scherb...@gmail.com wrote: It works now, but if I scroll or zoom a map the focussed overlay gone again. Make sure you're not clearing out again anywhere else ... work fine for me ... - 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
[android-developers] Re: Camera preview Api
I recommend using getExternalStorageDirectory() http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() On Feb 15, 3:10 am, Jayanthi jaia...@gmail.com wrote: Hi, I am trying to save images in sd card which is taken from camera in emulator, the following is the code to save images in sd card path = String.format(/sdcard/%d.jpg, System.currentTimeMillis()); outStream = new FileOutputStream(String.format(/sdcard/%d.jpg, System.currentTimeMillis())); Log.e(TAG,b4 writing ); outStream.write(data); Log.e(TAG,after writing ); outStream.close(); But I get error that no file or directory . Can anyone tell me where i did mistake 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
[android-developers] Re: It's not the browser?
Not a bad speculation anyway .. thanks for the pointers I will snoop around more and see where that takes me. I will keep the list posted on results etc. I am also running Mobile Opera and Opera Mini but they don't implement cross origin resource sharing like the native browser and Dolphin (I guess one and the same browser) does. On Feb 14, 5:41 pm, Kostya Vasilyev kmans...@gmail.com wrote: This page says that Dolphin is based on the default browser: http://hubpages.com/hub/Review-of-Web-Browsers-for-Android-2x Of course, that could be wrong too, but - there just aren't that many mobile-ready web engines that it could possibly be built on. Mozilla's just barely limping along at this point, Opera is only sharing theirs with device manufacturers, and that, to my knowledge, leaves only WebKit. And the default browser is a great starting point, since it's already been made to run on Android. Of course, that's pure speculation on my part, but it just seems likely. -- Kostya Vasilyev --http://kmansoft.wordpress.com 15.02.2011 0:23 пользователь kypriakos demet...@ece.neu.edu написал: Not sure about that Kostya but if you are right then that makes perfect sense after all. I think I need to figure out where in the code the handling of the XMLHttpRequest occurs and how much the browser itself is involved vs the http and the OS layers. Thanks for the response On Feb 13, 4:02 am, Kostya Vasilyev kmans...@gmail.com wrote: Isn't Dolphin basically the standard browser with a new UI? If so, it wouldn't be surprising that they behave the same wrt. networking. -- Kostya 13.02.2011 9:18, kypriakos пишет: Hi all, I have tried a number of other browsers (Dolphin, Opera Mini, Opera Mobile) and although the last two falsely advertise that they implement cross-origin resource sharing solutions, Dolphin seems to work exactly the same as the native browser - it sends out the Ajax request to the remote web server, the web server executes the service call but the result does not get posted by the browser. This may indicate that it is a NOT a browser issue I am facing with but rather and Android OS-lever issue (http layers??) where for some reason the responses are not allowed to reach the browser. Would this be a correct assessment? From what I understand, Android OS does not implement a personal firewall correct? What else would be causing this disconnect? I will greatly appreciate any hints on this. Thanks -- Kostya Vasilyev --http://kmansoft.wordpress.com -- 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 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
Re: [android-developers] Re: Securing the SharedPreferences file using AESObfuscator in LVL
Not if you use this correctly -- you keep the result you got back from the server, which is signed with the private key. If you don't have that (verifying the cert) then the app isn't licensed. That result contains time, device id, and other information that is needed to verify it. Sorry I missed that your question was about licensing, because I saw the part about encrypting stuff which is nothing you need to do for licensing. As I said, the license result is signed and you can verify that it is a valid result. There is absolutely no need to encrypt it. On Tue, Feb 15, 2011 at 9:46 AM, rajorshi groups.rajor...@gmail.com wrote: But, if someone can edit my preferences file to modify the stored validity time stamp, grace period and max. retry count to very reasonably values, he can prevent my app from ever contacting the server after the first attempts or make it retry all the time. This effectively removes LVL checks. Also, if bypassing the licensing is indeed as easy on rooted phones as I mentioned, doesn't that practically negate the advantage of having a licensing scheme which works independent of device configuration. After all, that is what attracted me to the licensing service in the first place - the thought that I would be able to get additional revenue if my apps could be legitimately installed on rooted phones. ~rajorshi On Feb 15, 10:21 pm, Dianne Hackborn hack...@android.com wrote: Oh and the documentation on LVL obfuscation is to prevent people from easily *modifying* the app to *remove* its LVL checks. This is in many ways a very different issue than trying to protect data that is being stored on the device. The LVL design has the server holding the private key that it uses to sign its results, and the app has a public key it uses to verify results from the server. That way you can't spoof the result without knowing the private key (which is only on the server), so LVL will work without needing to trust the local device or Market app. On Tue, Feb 15, 2011 at 9:18 AM, Dianne Hackborn hack...@android.com wrote: If someone has root, there is little you can do to really protect yourself from them. On Tue, Feb 15, 2011 at 9:10 AM, rajorshi groups.rajor...@gmail.com wrote: I have no experience in cryptography, hence this basic question about the AESObfuscator in Android LVL. The AESObfuscator uses app specific info (say package id), device specific info (say android.provider.Settings.Secure.ANDROID_ID) and a salt to generate a key to encrypt the SharedPreference file where the ServerManagedPolicy stores my license information. Now, the app id and the device id are well known. It will be a simple matter to decompile my app to obtain the salt even if I obfuscate my code. Won't somebody be able to generate the key using the three values and edit the SharedPreferences file easily on a rooted phone? On a non-rooted phone I guess I can just make the file private and nobody else will be able to access it, but, what do I do on rooted phones? I can't help feeling I am missing something here. Why else would the documentation on LVL put so much emphasis on refactoring and obfuscating LVL to prevent others from patching the library when a much simpler way would be to just get the salt and edit the preferences file? Can someone enlighten me on this? ~rajorshi -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to
[android-developers] Re: It's not the browser?
Are you getting old data, or no data at all? If old data it may be that a cache somewhere along the way (could be in the phone or in a router somewhere) is just sending the old data in response to the URL. The way to circumvent this, of course, is to generate a new URL for each interaction. On Feb 13, 12:18 am, kypriakos demet...@ece.neu.edu wrote: Hi all, I have tried a number of other browsers (Dolphin, Opera Mini, Opera Mobile) and although the last two falsely advertise that they implement cross-origin resource sharing solutions, Dolphin seems to work exactly the same as the native browser - it sends out the Ajax request to the remote web server, the web server executes the service call but the result does not get posted by the browser. This may indicate that it is a NOT a browser issue I am facing with but rather and Android OS-lever issue (http layers??) where for some reason the responses are not allowed to reach the browser. Would this be a correct assessment? From what I understand, Android OS does not implement a personal firewall correct? What else would be causing this disconnect? I will greatly appreciate any hints on this. 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