Re: [android-developers] crashing map
It's this line that's crashing it. Something is null in your View getView(int position. Try putting a try except around things or just stepping through the code until you find it. 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java: 617) On 29/06/2010 5:42 PM, Pedro Teixeira wrote: 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java: 617) -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://www.bgies.com http://www.bistroblurb.com http://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- 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] Regarding thumb of the seek bar
Hi.. I am currently working on an application in which i am using the seek bar for showing progress of the song playing, i m using the in built seek bar of our android , in which instead of the default thumb image of android , i have an custom image for that in my application, it works perfectly for 1.5 but for android sdk 2.1 and 2.2, half of that image is displayed , i.e. thumb is displayed partly outside the screen (for the start i.e. at 0th pos).I have used android:thumboffset attribute in xml to adjust the thumb , but still its not working on 2.1 and 2.2. So, What can i do for this ? Regards, Ameya -- 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] Setting multiple alarms
Hi everybody, I want to set two alarms through my application. I have two controls to set them. But when I set one alarm and then another, then the last alarm set works only and previous get cancelled. What is the way to keep their pending intents separate? How can I do this? -- 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: update activity/layout from within broadcast receiver
Here's one crazy workaround, but I'm sure there's an easier way: When your receiver get's set off, you can set a hidden boolean preference (since they are global) and then start a simple dialog activity saying you've lost connectivity. Starting the new activity will call the original activity's onPause so when the dialog is closed, onResume is called for the original activity (the one where you want to change the layout. What I would do is in the onResume method for that activity, I would check if the boolean preference was changed and then change the visibility of the button accordingly. You just have to make sure to set the preference back when you need the button. This is a pretty strange way to fix this problem, but it does work. Are you sure you need a receiver for what you're doing though? I know you can check connectivity pretty easily with a method like: public boolean isConnected() { ConnectivityManager connMgr=(ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info=connMgr.getActiveNetworkInfo(); return(info!=null info.isConnected()); } but I guess if you want the button to be disabled instantly when connection is lost, you'd have to be running that method in a separate thread over and over, which is probably worse from an efficiency standpoint than using a receiver. On Jun 28, 9:13 pm, AUandroid thevk...@gmail.com wrote: I have a layout with two buttons, I want to disable or make unclikable one of the buttons when internet connection is lost and back to clickable when connection is regained. From my broadcast receiver I am calling another class(which extends activity and thus can call findViewById) which is attempting to change the main layout. App is force closing. What am I doing wrong here, any other ideas as to how to achieve what I am trying to do. thanks -vk -- 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: Setting multiple alarms
You need to use different id's for the pending intents. Something like this: Intent intent = new Intent(load.this, AlarmReceiver.class); final int _id = (int) System.currentTimeMillis(); PendingIntent appIntent = PendingIntent.getBroadcast(this, _id, intent, PendingIntent.FLAG_ONE_SHOT); Using the system time should be a unique identifier for every pending intent you fire. On Jun 29, 11:21 pm, Pankaj Deshpande pcdeshpande...@gmail.com wrote: Hi everybody, I want to set two alarms through my application. I have two controls to set them. But when I set one alarm and then another, then the last alarm set works only and previous get cancelled. What is the way to keep their pending intents separate? How can I do this? -- 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] Memory usage increasing on orientation change only for the 1st orientation change
Hi, I traced the memory usage of my app using adb shell procrank command. At that startup, USS is 6.2 mb .When i change orientation,it goes to 8.1 mb.After that , if i keep on changing orientation , it remains on 8.1 mb. Is this a memory leak , or am i missing something ? -- 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] User comments available in the developer console!
I just noticed a new link in the developer console for comments! When clicked, it shows the comments the users have posted. No way to answer them but at least you can see them outside the device. Thanks Android people! Great to see this. -John Coryat -- 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] Switching GLSurface view and regular view issue.
Hello, I'm spending hard time for switching GLSurfaceView and regular view. for doing it, i just tried as sample code provided. if(__IsGLView) { System.out.println(__IsGLView is true); __GLView.setFocusable(false); __GLView.setFocusableInTouchMode(false); __currActivity.setContentView(__StaticView); __StaticView.setFocusable(true); __StaticView.setFocusableInTouchMode(true); __IsGLView = false; } else { System.out.println(__IsGLView is false); __StaticView.setFocusable(false); __StaticView.setFocusableInTouchMode(false); __currActivity.setContentView(__GLView); __GLView.setFocusable(true); __GLView.setFocusableInTouchMode(true); __IsGLView = true; } Whenever i tried, it just gave us error message. i don't know how to change it smoothly between them. If someone know about it. please share it us. it really hard for me. Regards. -- 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: Any chance to deactivate the lock pattern in Froyo from code?
Hi again Dianne. ;) Ok, lets keep the DeviceAdmin out off the topic for now. From what you have described it seems to be for corporate use mainly. The problem I've tried to fix with my app PatternControl was the following: People (private Android users) are aware that they have stored a lot of sensible data on the smartphones, because of this some of them would like to protect this information a little bit better... this is where the Lock Pattern of Android (or with Froyo also the Pin or Password) comes into the game. All the basic lock features that Android provides to the users have one disadvantage... Ones enabled, they always on. Each time you want to use your phone you have to deal with the lock (pattern, pin or password). For private users this is often a bit to much and in the end they deactivate the security pattern again. What is missing from my point of view (and most likely the point of view from thousands of users of apps like PatternControl, AutoLock etc.), is an option like Enable the lock only if I didn't used the phone for xxx minutes. Best regards Lars On 29 Jun., 19:15, Dianne Hackborn hack...@android.com wrote: On Tue, Jun 29, 2010 at 4:53 AM, LeveloKment levelokm...@googlemail.comwrote: If I understand you right, than the only option to provide more flexibility to the users is still an option in Android itself. The DeviceManager can then disallow such temporary lowering of the lock level. Sorry I am not understanding that paragraph. From my point of view an always on security feature will often be disabled (at least by private users). This lowers the security even if the origin intention was the other way around. Not sure I see the connection here... the API to disable the lock screen is not supported when a device admin is requiring a lock screen, in which case there is no way for the user to go around this except to disable that device admin, and thus lose all access to whatever corp server the admin is associated with. And if their preference is to be able to not have a lock screen at the expense of not having their corp server access... well, that is fine for all. -- 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] Progressbar with Thumb image is not showing correctly on the 2.1 emulator
HI I am having a progressbar whose width is fill parent. I have an image for its thumb which is similar to Android default thumb but a bit larger in size.On Android 1.5 when i observer , part of the thumb goes out of the screen on the left side.So i gave a thumb offset as -10 which works perfectly.But the same thing does not work on 2.1 or 2.2 emulator.The thumb still goes out of the screen partially.Am i missing something ? -- 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] Fwd: Regarding thumb of the seek bar
Hi.. I am currently working on an application in which i am using the seek bar for showing progress of the song playing, i m using the in built seek bar of our android , in which instead of the default thumb image of android , i have an custom image for that in my application, it works perfectly for 1.5 but for android sdk 2.1 and 2.2, half of that image is displayed , i.e. thumb is displayed partly outside the screen (for the start i.e. at 0th pos).I have used android:thumboffset attribute in xml to adjust the thumb , but still its not working on 2.1 and 2.2. So, What can i do for this ? Regards, Ameya -- 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: Setting multiple alarms
Thanks a lot Jeremy, It worked! Thanks again! [?] On Wed, Jun 30, 2010 at 11:55 AM, Jeremy jklei...@gmail.com wrote: You need to use different id's for the pending intents. Something like this: Intent intent = new Intent(load.this, AlarmReceiver.class); final int _id = (int) System.currentTimeMillis(); PendingIntent appIntent = PendingIntent.getBroadcast(this, _id, intent, PendingIntent.FLAG_ONE_SHOT); Using the system time should be a unique identifier for every pending intent you fire. On Jun 29, 11:21 pm, Pankaj Deshpande pcdeshpande...@gmail.com wrote: Hi everybody, I want to set two alarms through my application. I have two controls to set them. But when I set one alarm and then another, then the last alarm set works only and previous get cancelled. What is the way to keep their pending intents separate? How can I do this? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Android Application Developer Ruby Solutions, Pune. 09823637153 -- 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=en330.gif
[android-developers] Re: Why this Exception is coming ?
When using a SimpleCursorAdapter one of the columns returned by the query used to create the cursor should be called _id and is used as the id value for the row. SimpleCursorAdapter is a descendant of CursorAdapter which states the requirement for the _id column (see http://developer.android.com/reference/android/widget/CursorAdapter.html) Al. On Jun 29, 7:53 am, dinesh_adwani mail.dineshadw...@gmail.com wrote: 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): Caused by: java.lang.IllegalArgumentException: column '_id' does not exist 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java: 314) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.CursorAdapter.init(CursorAdapter.java:111) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.CursorAdapter.init(CursorAdapter.java:90) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.ResourceCursorAdapter.init(ResourceCursorAdapter.java: 47) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.widget.SimpleCursorAdapter.init(SimpleCursorAdapter.java:88) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at com.sasken.epub.bookmark.ShowBookmarkCursorAdapter.init(ShowBookmarkCurso rAdapter.java: 24) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at com.sasken.epub.bookmark.ShowBookMarkActivity.onStart(ShowBookMarkActivity. java: 51) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java: 1129) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.app.Activity.performStart(Activity.java:3723) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2453) 06-29 11:38:25.544: ERROR/AndroidRuntime(26215): ... 11 more -- 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] Why Android is using alsa device in block mode?
On Wed, Jun 30, 2010 at 12:19 AM, Nilly ni...@oriolesoftware.com wrote: Why android is using alsa in block mode? Android does not have ALSA. As android is opening device in block mode I am not open alsa device for playback. It shows device is busy as it is used by android. By stop media we can stop audio services but it will stop other services also which makes video player hang and I am not able to use player. How to come over it? I am assuming you are referring to the Android emulator. The Android emulator uses qemu, and qemu on a Linux host may use ALSA in block mode -- I am not an expert with qemu or ALSA. Playing back video in the emulator is unlikely to work, regardless of ALSA, because the emulator will not run fast enough. For testing video applications, please use an Android device. You are welcome to see if there are QEMU environment variables or something you can use to tailor the way the Android emulator behaves. Or, you are welcome to grab the tools source code from the Android open source project, make patches to the emulator launch routines, and perhaps contribute back those changes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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: IntentService - will it block?
Just one last question (I hope): will the onStartCommand be called on my IntentService? Should I put the code to handle the intent? I expect I don't have to since it must be handled in onHandleIntent. What value should I return in onStartCommand? Or is it just enough not to override it and implement only onHandleIntent? Thanks a lot for your support. Federico On 30 Giu, 02:14, Dianne Hackborn hack...@android.com wrote: Yes the intents will be enqueued and handled one at a time on the other thread. Context.startService() is always asynchronous, no matter what the service does. IntentService derives from Service (it is a convenience class implementing one common Service pattern), so it inherits all of the functionality of Service. On Tue, Jun 29, 2010 at 3:09 PM, Federico Paolinelli fedep...@gmail.comwrote: I have to process some events given by a broadcast receiver. As kindly suggested by Mark M. a week ago, I am trying to send the intent to an intentservice in order to pass the data to be processed to another thread. Looking at the doc, I can read abot onHandleIntent: Only one Intent is processed at a time, but the processing happens on a worker thread that runs independently from other application logic. So, if this code takes a long time, it will hold up other requests to the same IntentService, but it will not hold up anything else. What does it mean? Will the intents be queued and then processed one by one, or does it mean that the startService will block if the intentService is busy processing a previous intent? And more (this is just my curiosity): What is the point in having a onStartCommand method in IntentService if the Intents must be processed in onHandleIntent? Why the IntentService has all the onBind facilities if it will die when it finish its job? Thanks a lot in advance, Federico -- 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.comandroid-developers%2bunsubscr...@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: Any chance to deactivate the lock pattern in Froyo from code?
Sorry we currently don't support this. On Tue, Jun 29, 2010 at 11:37 PM, LeveloKment levelokm...@googlemail.comwrote: Hi again Dianne. ;) Ok, lets keep the DeviceAdmin out off the topic for now. From what you have described it seems to be for corporate use mainly. The problem I've tried to fix with my app PatternControl was the following: People (private Android users) are aware that they have stored a lot of sensible data on the smartphones, because of this some of them would like to protect this information a little bit better... this is where the Lock Pattern of Android (or with Froyo also the Pin or Password) comes into the game. All the basic lock features that Android provides to the users have one disadvantage... Ones enabled, they always on. Each time you want to use your phone you have to deal with the lock (pattern, pin or password). For private users this is often a bit to much and in the end they deactivate the security pattern again. What is missing from my point of view (and most likely the point of view from thousands of users of apps like PatternControl, AutoLock etc.), is an option like Enable the lock only if I didn't used the phone for xxx minutes. Best regards Lars On 29 Jun., 19:15, Dianne Hackborn hack...@android.com wrote: On Tue, Jun 29, 2010 at 4:53 AM, LeveloKment levelokm...@googlemail.com wrote: If I understand you right, than the only option to provide more flexibility to the users is still an option in Android itself. The DeviceManager can then disallow such temporary lowering of the lock level. Sorry I am not understanding that paragraph. From my point of view an always on security feature will often be disabled (at least by private users). This lowers the security even if the origin intention was the other way around. Not sure I see the connection here... the API to disable the lock screen is not supported when a device admin is requiring a lock screen, in which case there is no way for the user to go around this except to disable that device admin, and thus lose all access to whatever corp server the admin is associated with. And if their preference is to be able to not have a lock screen at the expense of not having their corp server access... well, that is fine for all. -- 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.comandroid-developers%2bunsubscr...@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
[android-developers] Re: Can I put a donation link in my free app?
Hi, As I understand it (and as Andrew also mentions); yes - you can put a donation link in your App. However, you may not offer the user anything in return for the donation (i.e., no rewards), as that would amount to a sale and therefore be in violation of the TOS which require sales to go through the market payment processor. If there is a problem, that would seem to be the critical clause. Regards, Michael A. On Jun 30, 3:37 am, Alex Xin xinxi...@gmail.com wrote: Hi, Chandana Thanks for this very useful post! From the post one of Google employee wrote: *Our policies are intended to protect users from a situation where an app is listed for free, but then actually requires a payment inside the app in order for it to function. * * * *My question:* *User can use my free app in full function mode without any payment required. There's no any notification to user that they should donate in order to use my app, just a donation link in app's About dialog. What I want to add is just a donation, so my case is not the situation that they try to prevent. Does Google allow this?* * *thank you Alex On Sun, Jun 27, 2010 at 10:36 PM, Chandana Napagoda cnapag...@gmail.comwrote: Hi, I think you need to go through these post's. They said you dev account might be banned. http://www.google.com/support/forum/p/Android+Market/thread?tid=588c3... Chandana On 27 June 2010 18:46, Alex Xin xinxi...@gmail.com wrote: Hi, folks I want to login my app as free app, but I think maybe I can put a donation link in my app, of course, my users can use my app without any donations. I don't sell my app. Does Google allow developer to do this? Thanks a lot Alex -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Question about .asec (encryption) on Froyo 2.2 (Emulator)
Apps on SD card are stored in an encrypted container for platform security purposes -- so that other applications can not modify or corrupt them. When mounting the SD card, these containers are mounted so that they can be accessed in the same way as apps stored in internal storage. On Tue, Jun 29, 2010 at 9:37 PM, Mathias Lin m...@mathiaslin.com wrote: Hi, can somebody please explain how asec exactly works? I couldn't find much info about it on the mailing list or elsewhere. I installed my app on the emulator with 2.2 and onto the sdcard. When I browse via adb shell, I can see that the encrypted app file lies under /mnt/secure/asec/com.myapp-1.asec but it also lies as plain apk file unencrypted at /mnt/asec/com.myapp-1/pkg.apk as well and I can do a 'adb pull' without special permissions and unzip it to see it's content. Unfortuntately my N1 is in repair and I cannot check on a real device right now - but wondering, why can I still access the plain apk so easily (at least on the emulator)? Thanks, Mathias -- 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.comandroid-developers%2bunsubscr...@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
[android-developers] HTC Hero Update 2.1 -- Broke Audio Streaming ????
Hi there, I have installed the 2.1 update on my HTC Hero yesterday, and happy as a puppy I instaleld my streaming app... Just to discover that it won't stream decently... It has to stream an mp3 stream and it works on my ADP 1.6 device, on a Samsung Galaxy S test-device (with 2.1) and on the 2.1 emulator... Logcat is gettign the follwoing errors : 06-30 10:14:18.360: INFO/AudioPolicyService(56): stopOutput(): before lock 06-30 10:14:21.259: DEBUG/dalvikvm(1906): GC freed 28 objects / 1944 bytes in 186ms 06-30 10:14:21.439: INFO/AudioHardwareMSM72XX(56): AudioHardware pcm playback is going to standby. 06-30 10:14:21.439: DEBUG/StreamProcess(56): OutputStreamProcess::ResetAOLC() 06-30 10:14:22.919: INFO/AudioPolicyService(56): startOutput(): before lock 06-30 10:14:22.987: INFO/AudioHardwareMSM72XX(56): AUDIO_START: start kernel pcm_out driver. 06-30 10:14:26.329: DEBUG/dalvikvm(287): GC freed 11 objects / 488 bytes in 268ms 06-30 10:14:47.789: INFO/AudioPolicyService(56): stopOutput(): before lock 06-30 10:14:50.879: INFO/AudioHardwareMSM72XX(56): AudioHardware pcm playback is going to standby. 06-30 10:14:50.879: DEBUG/StreamProcess(56): OutputStreamProcess::ResetAOLC() 06-30 10:14:53.911: INFO/AudioPolicyService(56): startOutput(): before lock 06-30 10:14:54.022: INFO/AudioHardwareMSM72XX(56): AUDIO_START: start kernel pcm_out driver. The result is a playing player, which stops (pauzes) every 10 seconds, the restarts... This will work for about 8-10 restarts and then will simply stop without ever thrwoing an exception or something like that... Which makes it somewhat difficult (if not impossible) to catch for us developers... So has anyone been experiencing the same problem ? Does anyone have a clue if in this update another OpenCore lib has been used ? Does anyone have any solution ? -- 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: Can I put a donation link in my free app?
And what if market payment processor does not exist? Currently there is no market payment processor for many countries available? Tom On Wed, Jun 30, 2010 at 10:17 AM, Michael A. michael.aki...@gmail.comwrote: Hi, As I understand it (and as Andrew also mentions); yes - you can put a donation link in your App. However, you may not offer the user anything in return for the donation (i.e., no rewards), as that would amount to a sale and therefore be in violation of the TOS which require sales to go through the market payment processor. If there is a problem, that would seem to be the critical clause. Regards, Michael A. On Jun 30, 3:37 am, Alex Xin xinxi...@gmail.com wrote: Hi, Chandana Thanks for this very useful post! From the post one of Google employee wrote: *Our policies are intended to protect users from a situation where an app is listed for free, but then actually requires a payment inside the app in order for it to function. * * * *My question:* *User can use my free app in full function mode without any payment required. There's no any notification to user that they should donate in order to use my app, just a donation link in app's About dialog. What I want to add is just a donation, so my case is not the situation that they try to prevent. Does Google allow this?* * *thank you Alex On Sun, Jun 27, 2010 at 10:36 PM, Chandana Napagoda cnapag...@gmail.com wrote: Hi, I think you need to go through these post's. They said you dev account might be banned. http://www.google.com/support/forum/p/Android+Market/thread?tid=588c3. .. Chandana On 27 June 2010 18:46, Alex Xin xinxi...@gmail.com wrote: Hi, folks I want to login my app as free app, but I think maybe I can put a donation link in my app, of course, my users can use my app without any donations. I don't sell my app. Does Google allow developer to do this? Thanks a lot Alex -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Tom Hubalek (tom.huba...@gmail.com), http://android.hubalek.net, http://blog.hubalek.net/ http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek http://twitter.com/thubalek, http://twitter.com/android_dev_tom -- 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] how to see the the usage of memory in the android?
1 I want to see the usage of memory in the android through the procrank command,but throw a error error: creating kernel interface. Why/ 2 if use the top command, but the info of the %MEM is not correct. Because all the pid's info's sum will 100% ,so Why? -- xhy -- 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] widget on lockscreen
Thanks for the reply but what about htc sense it has some controls over lockscreen. Is this implemented by htc sense only http://phandroid.com/wp-content/uploads/2009/06/rosie-lock-screen.jpg On Tue, Jun 29, 2010 at 8:12 PM, Dianne Hackborn hack...@android.comwrote: Sorry this is not currently supported. That comment in the documentation is simply describing what could be done in the future. On Tue, Jun 29, 2010 at 8:22 AM, manigault manig...@gmail.com wrote: Hi all i am developing music player and i want to put some controls when screen is locked. Is there a way to put widget when screen is lock ? The documentation says that For example, the home screen has one way of viewing widgets, but the lock screen could also contain widgets, but i couldn't find a way to add widget to lockscreen so any ideas ? -- 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.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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: help connecting my app to an external Mysql DB
hi Brad, Yes, I mean the DataBase is on an external Server. What I exactly have to do is Inserting from my andoid app a row into a table which is in this dataBase, this row must have a file image.jpg (blob) 2 floats and a String. This will be done after a button.setOnClickListener() and has to arrive to a php Server which contains the MySql DB. If you need more info please be more specific as at the moment I don't know what more usefull information to tell you. Please again provide some examples if possible. Thanks in Advance again, Gabriel On 29 jun, 21:30, Brad Gies rbg...@gmail.com wrote: By external MySQL database do you mean it's on an external server? If so, my preferred method is using HttpClient in Android, and a PHP webservice on the server to insert it into the database. There are many options, so if you explain exactly what your situation is we can give better advice. Brad. On 29/06/2010 9:42 AM, gabri wrote: Hi everyone, I need help connecting my aplication to an EXTERNAL MYSQL DataBase. What I have to do in this app is sending an image.jpg file and some strings so they are inserted in the DB. I've been googling around and found some info about that but I still have nothing clear in what possibility to use and how to use it. I've understood that i can't use sqlite as it is an external DB is this correct. This are the 2 possibilities I'm looking at the moment: - Using php files to send the data and connect from there to the DB. Using httprequest httpuploadFile, etc... - Using Rest or Soap Webservices. Any other sugegestion will be kindly accepted. Please give your opinion and give also examples on how to use any of the solutions. Yhanks everyone in Advance. Gabriel -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurbhttp://www.bgies.comhttp://www.bistroblurb.comhttp://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead- Ocultar texto de la cita - - Mostrar texto de la cita - -- 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: IntentService - will it block?
It makes sense. Thanks a lot. Maybe it's time to look at android source code :-) On Jun 30, 10:14 am, Dianne Hackborn hack...@android.com wrote: IntentService implements onStartCommand() to put the incoming commands into the queue for its thread. You can control the return option it uses with this: http://developer.android.com/reference/android/app/IntentService.html...) On Wed, Jun 30, 2010 at 1:08 AM, Federico Paolinelli fedep...@gmail.comwrote: Just one last question (I hope): will the onStartCommand be called on my IntentService? Should I put the code to handle the intent? I expect I don't have to since it must be handled in onHandleIntent. What value should I return in onStartCommand? Or is it just enough not to override it and implement only onHandleIntent? Thanks a lot for your support. Federico On 30 Giu, 02:14, Dianne Hackborn hack...@android.com wrote: Yes the intents will be enqueued and handled one at a time on the other thread. Context.startService() is always asynchronous, no matter what the service does. IntentService derives from Service (it is a convenience class implementing one common Service pattern), so it inherits all of the functionality of Service. On Tue, Jun 29, 2010 at 3:09 PM, Federico Paolinelli fedep...@gmail.com wrote: I have to process some events given by a broadcast receiver. As kindly suggested by Mark M. a week ago, I am trying to send the intent to an intentservice in order to pass the data to be processed to another thread. Looking at the doc, I can read abot onHandleIntent: Only one Intent is processed at a time, but the processing happens on a worker thread that runs independently from other application logic. So, if this code takes a long time, it will hold up other requests to the same IntentService, but it will not hold up anything else. What does it mean? Will the intents be queued and then processed one by one, or does it mean that the startService will block if the intentService is busy processing a previous intent? And more (this is just my curiosity): What is the point in having a onStartCommand method in IntentService if the Intents must be processed in onHandleIntent? Why the IntentService has all the onBind facilities if it will die when it finish its job? Thanks a lot in advance, Federico -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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
[android-developers] Re: widget on lockscreen
It's a firmware thing, so yes, HTCs Sense can do it, but only because HTC wrote the firmware. Imho it's not a gerat idea anyway. One reason for having a lock screen is that it stops things happening when your device is put somewhere where it may get pressure on the screen which may cause undesirable behaviour (e.g. in a bag or pocket), so by putting your controls on the lock screen you run the risk of someone having the music paused or skipped due to a knock on the screen and then having to dig the device out in order to re-start/re-position playback. Al. On Jun 30, 9:24 am, Martin Obreshkov manig...@gmail.com wrote: Thanks for the reply but what about htc sense it has some controls over lockscreen. Is this implemented by htc sense onlyhttp://phandroid.com/wp-content/uploads/2009/06/rosie-lock-screen.jpg On Tue, Jun 29, 2010 at 8:12 PM, Dianne Hackborn hack...@android.comwrote: Sorry this is not currently supported. That comment in the documentation is simply describing what could be done in the future. On Tue, Jun 29, 2010 at 8:22 AM, manigault manig...@gmail.com wrote: Hi all i am developing music player and i want to put some controls when screen is locked. Is there a way to put widget when screen is lock ? The documentation says that For example, the home screen has one way of viewing widgets, but the lock screen could also contain widgets, but i couldn't find a way to add widget to lockscreen so any ideas ? -- 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.comandroid-developers%2Bunsubs cr...@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.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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: Switching GLSurface view and regular view issue.
I found it there is prablem when i changed it in another thread. it always said me. how to changed it without error message. 06-30 08:35:03.102: ERROR/AndroidRuntime(627): android.view.ViewRoot $CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.ViewRoot.checkThread(ViewRoot.java:2802) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.ViewRoot.invalidateChild(ViewRoot.java:607) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.ViewRoot.invalidateChildInParent(ViewRoot.java:633) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.ViewGroup.invalidateChild(ViewGroup.java:2505) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.View.invalidate(View.java:5139) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.View.onFocusChanged(View.java:2664) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.View.clearFocusForRemoval(View.java:2577) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:2289) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.view.ViewGroup.removeAllViews(ViewGroup.java:2254) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 215) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 207) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at android.app.Activity.setContentView(Activity.java:1658) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at Rhythmi.android.Rhythmi.OnViewChange(Rhythmi.java:185) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at Rhythmi.android.Rhythmi$UpdateTask.run(Rhythmi.java:76) 06-30 08:35:03.102: ERROR/AndroidRuntime(627): at java.util.Timer $TimerImpl.run(Timer.java:289) The construction what i did is this MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Set game layout __StaticView = new CircleList(this); __GLView = new OGLSurfaceView(this); setContentView(__GLView); __GLView.setFocusable(true); __GLView.setFocusableInTouchMode(true); __currActivity = this; __IsGLView = true; } /** * Canvas update task * * @author vsilva * */ private class UpdateTask extends TimerTask { @Override public void run() { System.out.println(Hello); if(OpenglRenderer.__giNativeState == 8) { if(__IsGLView == true) { OnViewChange(); } } else { if(__IsGLView == false) { OnViewChange(); } } } } public void OnViewChange() { if(__IsGLView) { __currActivity.setContentView(__StaticView); __IsGLView = false; } else { __currActivity.setContentView(__GLView); __IsGLView = true; } System.out.println(View is successfully changed.); } } following information, i have tried to changed view in thread. but it always gave me the message. so what is the way to do? please someone tell me what's idea is here..? On 6월30일, 오후3시37분, choi devmc...@gmail.com wrote: Hello, I'm spending hard time for switching GLSurfaceView and regular view. for doing it, i just tried as sample code provided. if(__IsGLView) { System.out.println(__IsGLView is true); __GLView.setFocusable(false); __GLView.setFocusableInTouchMode(false); __currActivity.setContentView(__StaticView); __StaticView.setFocusable(true); __StaticView.setFocusableInTouchMode(true); __IsGLView = false; } else { System.out.println(__IsGLView is false); __StaticView.setFocusable(false); __StaticView.setFocusableInTouchMode(false); __currActivity.setContentView(__GLView); __GLView.setFocusable(true); __GLView.setFocusableInTouchMode(true); __IsGLView = true; } Whenever i tried, it just gave us error message. i don't know how to change it smoothly between them. If someone know about it. please share it us.
Re: [android-developers] Re: widget on lockscreen
Thanks On Wed, Jun 30, 2010 at 11:35 AM, Al Sutton a...@funkyandroid.com wrote: It's a firmware thing, so yes, HTCs Sense can do it, but only because HTC wrote the firmware. Imho it's not a gerat idea anyway. One reason for having a lock screen is that it stops things happening when your device is put somewhere where it may get pressure on the screen which may cause undesirable behaviour (e.g. in a bag or pocket), so by putting your controls on the lock screen you run the risk of someone having the music paused or skipped due to a knock on the screen and then having to dig the device out in order to re-start/re-position playback. Al. On Jun 30, 9:24 am, Martin Obreshkov manig...@gmail.com wrote: Thanks for the reply but what about htc sense it has some controls over lockscreen. Is this implemented by htc sense onlyhttp:// phandroid.com/wp-content/uploads/2009/06/rosie-lock-screen.jpg On Tue, Jun 29, 2010 at 8:12 PM, Dianne Hackborn hack...@android.com wrote: Sorry this is not currently supported. That comment in the documentation is simply describing what could be done in the future. On Tue, Jun 29, 2010 at 8:22 AM, manigault manig...@gmail.com wrote: Hi all i am developing music player and i want to put some controls when screen is locked. Is there a way to put widget when screen is lock ? The documentation says that For example, the home screen has one way of viewing widgets, but the lock screen could also contain widgets, but i couldn't find a way to add widget to lockscreen so any ideas ? -- 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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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: How to detect presence of camera on an Android device.
Yes, this is the better method. The only thing I would add is that the class PackageManager is itself in the Java package android.content.pm -- not an obvious place, but not too hard to figure out. On Jun 29, 5:12 pm, Dianne Hackborn hack...@android.com wrote: Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA). Of course if your app requires a camera, you should declare so in your manifest so that devices without a camera won't see it. On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote: How can I detect the presence of camera on an Android device? -- 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.comandroid-developers%2bunsubscr...@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
[android-developers] How to support multi-project development in just one copy of Android source code?
Hello everybody. For device manufacturers which has 10+ projects running simultaneously , it is important to compile all the projects rapidly in the same copy of source tree. These projects often have following things in common: * Some applications of them may have different resources: layouts, strings etc. * Some applications of them may be slightly different in some .java source files. * The framework layer implementation could also be slightly different in both java and resource files. * Every project has its unique thirdparty applications, resources like ringtones, wallpapers which are dedicated to certain carrier. We are trying to figure out a way to compile such projects independently and cleanly in the same copy of source code, or we will end up with chaos. Here is some thoughts of mine: * I find PRODUCT_PACKAGE_OVERLAYS may be useful for our situation. But it is only for resources, isn't it? * For java source files, maybe we can change LOCAL_SRC_FILES in Android.mk like this: if project a LOCAL_SRC_FILES += a/file.java else if project b LOCAL_SRC_FILES += b/file.java endif But I think this is sort of ugly. Is there any better way? * What about assets? I don't find a way to override default asset files. Would you please share your experience or opinion? Thank you. Best Regards, Alvin -- 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] Question About animation
On Wed, Jun 30, 2010 at 4:02 AM, Romain Guy romain...@android.com wrote: You simply need to use setFillAfter(true). That only works if the widget is non-interactive. Otherwise, setFillAfter() moves the pixels, but the hot spots for interaction remain at the old location. For interactive widgets, you should set up an AnimationListener, and when the animation ends, modify the layout to have the widget reside at your desired new location. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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] Drawable not maintaining size within an ImageView
Hi, I'm trying to add a drawable to a layout, using an ImageView, but the drawable doesn't maintain its size and is rendered at 1dp x 1dp. I've called ImageView.setAdjustViewBounds as per the android documentation but this doesn't seem to help. The Drawable is only visible when the ImageView's height and width are set and the drawable is then rendered at those dimensions. Here's the code and layout: rect_blue.xml --- ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:height=50dp android:width=100dp android:shape=rectangle solid android:color=#00FF / corners android:radius=5dp / /shape FlipView.java (Derived from FrameLayout) --- ImageView drawableContainer = new ImageView(context); drawableContainer.setImageResource(R.drawable.rect_blue); drawableContainer.setAdjustViewBounds(true); this.AddView(drawableContainer); Layout Overview -- RelativeLayout - FrameLayout - ImageView (With drawable set as content) I'm sure I'm doing pretty much exacly the same as the example here: http://developer.android.com/guide/topics/graphics/2d-graphics.html. Could it be because I'm using a FrameLayout that this is not working? Thanks! Andy -- 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: Drawable not maintaining size within an ImageView
Sorry! Just to clarify, I've also tried setting the ImageView's layout params as per the example using: drawableContainer.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); Thanks! On Jun 30, 10:04 am, Cardy andy.ca...@gmail.com wrote: Hi, I'm trying to add a drawable to a layout, using an ImageView, but the drawable doesn't maintain its size and is rendered at 1dp x 1dp. I've called ImageView.setAdjustViewBounds as per the android documentation but this doesn't seem to help. The Drawable is only visible when the ImageView's height and width are set and the drawable is then rendered at those dimensions. Here's the code and layout: rect_blue.xml --- ?xml version=1.0 encoding=utf-8? shape xmlns:android=http://schemas.android.com/apk/res/android; android:height=50dp android:width=100dp android:shape=rectangle solid android:color=#00FF / corners android:radius=5dp / /shape FlipView.java (Derived from FrameLayout) --- ImageView drawableContainer = new ImageView(context); drawableContainer.setImageResource(R.drawable.rect_blue); drawableContainer.setAdjustViewBounds(true); this.AddView(drawableContainer); Layout Overview -- RelativeLayout - FrameLayout - ImageView (With drawable set as content) I'm sure I'm doing pretty much exacly the same as the example here:http://developer.android.com/guide/topics/graphics/2d-graphics.html. Could it be because I'm using a FrameLayout that this is not working? Thanks! Andy -- 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] HTC Sense and messaging
Hello, I would like my application to be an alternative to view messages and calls. There are 3 intents to register for the 3 following actions: list messages, read 1 sms, and check calls. My issue is that android doesn't propose any choices for listing several SMS but only launches the android native messaging app. This is happening only on HTC Desire. Everything is working fine on G1, Nexus and emulators 1.x and 2.x. So I am thinking: 1. maybe I need to add something in the manifest? I tried already many things as you can guess 2. HTC Sense is somehow forcing to use the messaging app to list messages? Can you comment on this please? Thanks, Arthur My manifest: //Intent filter to register my app for listing text messages intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.DEFAULT / data android:mimeType=vnd.android-dir/mms-sms / /intent-filter //Intent filter to register my app for listing viewing text messages and view calls intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:mimeType=vnd.android.cursor.dir/calls / data android:mimeType=vnd.android-dir/mms-sms / /intent-filter -- 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] HTC Sense and messaging
On Wed, Jun 30, 2010 at 5:08 AM, arthur arthur.di...@gmail.com wrote: There are 3 intents to register for the 3 following actions: list messages, read 1 sms, and check calls. There are no documented MIME types for SMS. Anything that is not documented is subject to change by device manufacturers. Similarly, there are no documented content providers for SMS messages. While there is a documented MIME type for the call log, I would not be surprised if device manufacturers elect not to honor it. This may or may not be part of the Compatibility Test Suite. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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] ContentProvider onCreate() onDestroy()
Hello, when writing a ContentProvider I have to implement the onCreate()-method, in which I establish my database connection. But to write the changes I made to the database I have to close the database on some point. Does something like a onDestroy()-method exist for ContentProviders or is there some intent I have to listen to, which is fired before killing my process? Natanael -- 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: Question About animation
thanks On Jun 30, 11:02 am, Romain Guy romain...@android.com wrote: You simply need to use setFillAfter(true). On Wed, Jun 30, 2010 at 12:59 AM, zohar lerman lirazo...@gmail.com wrote: Hi, I want to move a view from location (x,y) to (x1,y1). What is the best way to do it? I tried using the following code but it cannot stay at the last point (x1,y1),it always translate back: TranslateAnimation anim = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f); anim.setDuration(100); anim.setInterpolator(new LinearInterpolator()); this.startAnimation(anim); any suggestions? thanks Z -- 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] Re: Why Android is using alsa device in block mode?
I am using android device ...ported android cup cake version on beagle board... Here also Android is opening device in block mode ... On Jun 30, 12:46 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jun 30, 2010 at 12:19 AM, Nilly ni...@oriolesoftware.com wrote: Why android is using alsa in block mode? Android does not have ALSA. As android is opening device in block mode I am not open alsa device for playback. It shows device is busy as it is used by android. By stop media we can stop audio services but it will stop other services also which makes video player hang and I am not able to use player. How to come over it? I am assuming you are referring to the Android emulator. The Android emulator uses qemu, and qemu on a Linux host may use ALSA in block mode -- I am not an expert with qemu or ALSA. Playing back video in the emulator is unlikely to work, regardless of ALSA, because the emulator will not run fast enough. For testing video applications, please use an Android device. You are welcome to see if there are QEMU environment variables or something you can use to tailor the way the Android emulator behaves. Or, you are welcome to grab the tools source code from the Android open source project, make patches to the emulator launch routines, and perhaps contribute back those changes. -- 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 -- 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] How to replicate the Browser's (WebView?) anchor highlight poly-polygon?
Hi As per the title really; when the user taps a link, it gets highlighted by a multi-coloured surround. What I'm interested in is how the multi-coloured effect is achieved (i.e. on the Nexus One, it has a an orange line sandwiched between red lines). I'm assuming (perhaps incorrectly, of course) that it is not three different shapes, but some sort of Paint setting. I've had a quick look in the source, but nothing jumps out immediately. Any pointers much appreciated. Cheers James -- 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] How to check the version of my application on the android market programatically
I want to implement the versioning feature for my application manually. For that I intend to compare the application version currently installed on the device and the application version present on android market. I can get the installed application's version using PackageManager , but how to find out the version of the application on the android market programatically ? Can anyone please help me on this. -- 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: Why Android is using alsa device in block mode?
On Wed, Jun 30, 2010 at 5:29 AM, Nilly niral.patel@gmail.com wrote: I am using android device ...ported android cup cake version on beagle board... Here also Android is opening device in block mode ... Ah, my apologies. You will probably have a better chance of getting answers to porting questions on the [android-porting] discussion group. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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: How to detect presence of camera on an Android device.
I did try that, but this doesn't work. I created an emulator image with no camera support. But PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) still returns true. On Jun 30, 5:12 am, Dianne Hackborn hack...@android.com wrote: Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA). Of course if your app requires a camera, you should declare so in your manifest so that devices without a camera won't see it. On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote: How can I detect the presence of camera on an Android device? -- 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.comandroid-developers%2bunsubscr...@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
[android-developers] PackageManager.hasSystemFeature and hasSystemFeature buggy on emulator
How reliable is to use PackageManager.hasSystemFeature in production code ? This seems to be buggy on emulator. I created a Virtual Device with no camera support, but calling hasSystemFeature(FEATURE_CAMERA) still returns true. -- 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: User comments available in the developer console!
Definitely an improvement BUT it only shows comments written in English for me and I know from other sites that interface to the Market that I have comments in other languages. Either Google should show me the other comments too and I can translate them myself (with Google Translate :-) ) OR they could even show a translation for me automatically. PuzzleQube - the 3D picture puzzle Grey Knotts Software - www.greyknotts.com -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Carter Sent: 30 June 2010 12:12 To: Android Developers Subject: [android-developers] Re: User comments available in the developer console! Yes, a very welcome addition. Anyone have an idea for what the refresh rate is? On Jun 30, 12:01 pm, String sterling.ud...@googlemail.com wrote: Thank you Android team! First the error reports, now this... the Developer Console is beginning to turn into a real management tool. String On Jun 30, 7:35 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I just noticed a new link in the developer console for comments! When clicked, it shows the comments the users have posted. No way to answer them but at least you can see them outside the device. Thanks Android people! Great to see this. -John Coryat -- 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: Any chance to deactivate the lock pattern in Froyo from code?
I know ;) But this does not mean that the next Android version(s) will have to lack this balance as well ;) Should I open a feature request for this? Or will you :P Thanks for your attention Dianne Bye Lars On 30 Jun., 10:16, Dianne Hackborn hack...@android.com wrote: Sorry we currently don't support this. On Tue, Jun 29, 2010 at 11:37 PM, LeveloKment levelokm...@googlemail.comwrote: Hi again Dianne. ;) Ok, lets keep the DeviceAdmin out off the topic for now. From what you have described it seems to be for corporate use mainly. The problem I've tried to fix with my app PatternControl was the following: People (private Android users) are aware that they have stored a lot of sensible data on the smartphones, because of this some of them would like to protect this information a little bit better... this is where the Lock Pattern of Android (or with Froyo also the Pin or Password) comes into the game. All the basic lock features that Android provides to the users have one disadvantage... Ones enabled, they always on. Each time you want to use your phone you have to deal with the lock (pattern, pin or password). For private users this is often a bit to much and in the end they deactivate the security pattern again. What is missing from my point of view (and most likely the point of view from thousands of users of apps like PatternControl, AutoLock etc.), is an option like Enable the lock only if I didn't used the phone for xxx minutes. Best regards Lars On 29 Jun., 19:15, Dianne Hackborn hack...@android.com wrote: On Tue, Jun 29, 2010 at 4:53 AM, LeveloKment levelokm...@googlemail.com wrote: If I understand you right, than the only option to provide more flexibility to the users is still an option in Android itself. The DeviceManager can then disallow such temporary lowering of the lock level. Sorry I am not understanding that paragraph. From my point of view an always on security feature will often be disabled (at least by private users). This lowers the security even if the origin intention was the other way around. Not sure I see the connection here... the API to disable the lock screen is not supported when a device admin is requiring a lock screen, in which case there is no way for the user to go around this except to disable that device admin, and thus lose all access to whatever corp server the admin is associated with. And if their preference is to be able to not have a lock screen at the expense of not having their corp server access... well, that is fine for all. -- 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.comandroid-developers%2bunsubscr...@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
[android-developers] Re: User comments available in the developer console!
Yep same here, now I can hear how my app doesn't work in multiple languages, heh On Jun 30, 9:37 pm, Mark Carter mjc1...@googlemail.com wrote: Shows comments in all languages for me. On 30 June 2010 13:33, Paul Gee paul.gee...@googlemail.com wrote: Definitely an improvement BUT it only shows comments written in English for me and I know from other sites that interface to the Market that I have comments in other languages. Either Google should show me the other comments too and I can translate them myself (with Google Translate :-) ) OR they could even show a translation for me automatically. PuzzleQube - the 3D picture puzzle Grey Knotts Software -www.greyknotts.com -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Carter Sent: 30 June 2010 12:12 To: Android Developers Subject: [android-developers] Re: User comments available in the developer console! Yes, a very welcome addition. Anyone have an idea for what the refresh rate is? On Jun 30, 12:01 pm, String sterling.ud...@googlemail.com wrote: Thank you Android team! First the error reports, now this... the Developer Console is beginning to turn into a real management tool. String On Jun 30, 7:35 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I just noticed a new link in the developer console for comments! When clicked, it shows the comments the users have posted. No way to answer them but at least you can see them outside the device. Thanks Android people! Great to see this. -John Coryat -- 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.comandroid-developers%2Bunsubs cr...@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.comandroid-developers%2Bunsubs cr...@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: What are the advantages of an Android Developers Device?
There is also dark side: Android Market problems in last months, buy and sell allowed in very limited number of countries, uncertainty regarding business model for developer. I don't think that everything is perfect. Tom On 30 čvn, 14:55, CodeFusion cboots1...@gmail.com wrote: Android is going no where? I'd say just look at how far it's come in only a year and a half already. It's already gone somewhere, nevermind where it could go next. On Jun 28, 4:01 pm, iC and iC++ mahd...@gmail.com wrote: Android is going no where. I suggest you put your efforts somewhere else. On Jun 28, 1:56 am, sagare sagar.ekb...@gmail.com wrote: Hi All, I saw thishttp://developer.android.com/guide/developing/device.html and as per what i got the advantages of Androiddeveloperdeviceis that it is SIM unlocked and unlocked bootloader what i wanted to know is are there any other advantages than this of the Android developers Device? Also i want to know whichdeviceare all of the developers using for developing their apps are they using only Android developers deviceor any otherdevice? Also i want to know whether Android developersdevicehas Android 2.1 update? Also i want to know is motorola droid a gooddeviceto be selected for android application testing? Please help me on this. Thanks, Sagar -- 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: Creating the request to a webservice by kSoap2
Hi, I have a few blog posting regarding using Ksoap2, mine is in the context of interfacing with Salesforce CRM using Webservice, hope it helps. http://androiddevblog.blogspot.com/ On Jun 28, 2:10 pm, YNC yu.chu...@gmail.com wrote: Could anybody help me with creating the request to a web service using the ksoap2 framework. For example, I need to make the following request: SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/ envelope/ xmlns:eb=http://www.ebxml.org/namespaces/messageHeader; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsd=http://www.w3.org/1999/XMLSchema; SOAP-ENV:Header eb:MessageHeader eb:version=1.0 eb:ConversationIdTEST_ID/eb:ConversationId eb:From eb:PartyIdTEST/eb:PartyId /eb:From eb:To eb:PartyIdGateway/eb:PartyId /eb:To eb:Service eb:type=OOOSCreateRQ/eb:Service eb:ActionSCreateRQ/eb:Action /eb:MessageHeader wsse:Security xmlns:wsse=http://schemas.xmlsoap.org/ws/2002/12/ secext xmlns:wsu=http://schemas.xmlsoap.org/ws/2002/12/utility; wsse:UsernameToken wsse:UsernameUsername/wsse:Username wsse:PasswordPassword/wsse:Password OrganizationHost/Organization /wsse:UsernameToken /wsse:Security /SOAP-ENV:Header SOAP-ENV:Body/ /SOAP-ENV:Envelope What the right approach for the name space's description and class mapping? -- 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: User comments available in the developer console!
Still provides less info then third party apps like Cyrket or AppBrain. I wish I could see ratings pareto, rating as float number, charts progress of rating and downloads in the time. Tom -- 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: User comments available in the developer console!
And what I forget and I feel is very important: be able to contact user back with response to his/her comment. Eg. he or she gives bad rating because app is widget and he/she don't know how to install widget (it happens often even if I put it into app description). Then I wish I could contact back with explanation. Tom 2010/6/30 Tomáš Hubálek tom.huba...@gmail.com Still provides less info then third party apps like Cyrket or AppBrain. I wish I could see ratings pareto, rating as float number, charts progress of rating and downloads in the time. Tom -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Tom Hubalek (tom.huba...@gmail.com), http://android.hubalek.net, http://blog.hubalek.net/ http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek http://twitter.com/thubalek, http://twitter.com/android_dev_tom -- 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: Switching GLSurface view and regular view issue.
It's as per the error message that you get. When you create a view in one thread (like e.g. within your main activity), you can not change this view from another thread. There are various ways how to work around this. One is as follows: In your thread, create a sub-class: public class ChangeView implements java.lang.Runnable { public void run() { //Do whatever changes to the view need to be done } } Create an instance of this class in your thread. Whenever you need the code in the class to be executed, post it towards your main view via view.post(). On Jun 30, 10:43 am, choi devmc...@gmail.com wrote: I found it there is prablem when i changed it in another thread. it always said me. how to changed it without error message. 06-30 08:35:03.102: ERROR/AndroidRuntime(627): android.view.ViewRoot $CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. -- 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: User comments available in the developer console!
Yeah, great!!! Now I don't have to use Cyrket anymore. Finally some improvements for the devs. Now I would like some download statistics (Android Version, Device)! On 30 jun, 09:33, Tomáš Hubálek tom.huba...@gmail.com wrote: And what I forget and I feel is very important: be able to contact user back with response to his/her comment. Eg. he or she gives bad rating because app is widget and he/she don't know how to install widget (it happens often even if I put it into app description). Then I wish I could contact back with explanation. Tom 2010/6/30 Tomáš Hubálek tom.huba...@gmail.com Still provides less info then third party apps like Cyrket or AppBrain. I wish I could see ratings pareto, rating as float number, charts progress of rating and downloads in the time. Tom -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Tom Hubalek (tom.huba...@gmail.com),http://android.hubalek.net,http://blog.hubalek.net/http://facebook.com/thubalek,http://www.linkedin.com/in/thubalekhttp://twitter.com/thubalek,http://twitter.com/android_dev_tom -- 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: User comments available in the developer console!
Yes, would like to be able to respond to each comment (triggering an email to the user) and optionally make that response public so that other users can see it. 2010/6/30 Tomáš Hubálek tom.huba...@gmail.com And what I forget and I feel is very important: be able to contact user back with response to his/her comment. Eg. he or she gives bad rating because app is widget and he/she don't know how to install widget (it happens often even if I put it into app description). Then I wish I could contact back with explanation. Tom 2010/6/30 Tomáš Hubálek tom.huba...@gmail.com Still provides less info then third party apps like Cyrket or AppBrain. I wish I could see ratings pareto, rating as float number, charts progress of rating and downloads in the time. Tom -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Tom Hubalek (tom.huba...@gmail.com), http://android.hubalek.net, http://blog.hubalek.net/ http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek http://twitter.com/thubalek, http://twitter.com/android_dev_tom -- 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.comandroid-developers%2bunsubscr...@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] Best way to change text styles in a list? (performance)
Hi all, Ever since I added conditional text formatting on my list items I've noticed a performance drop. It's still usable but I'm somewhat obsessive about performance/experience so I would really like to tweak my approach as best I can. The following snippet is how I'm achieving my conditional formatting. Is this the only way? (Perf drop appears to be related to making TextViews spannable) if( w.state.equalsIgnoreCase( Tasks.STATE_READ )) { s.setSpan( new StyleSpan( Typeface.NORMAL ), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); i.setSpan( new StyleSpan( Typeface.NORMAL ), 0, i.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); w.getInstructions().setTextColor( 0xFFBDBEBD ); w.getDeadline().setTextColor( 0xFFBDBEBD ); } else { s.setSpan( new StyleSpan( Typeface.BOLD ), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); i.setSpan( new StyleSpan( Typeface.BOLD ), 0, i.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); w.getInstructions().setTextColor( 0xFFBDBEBD ); w.getDeadline().setTextColor( 0x ); } 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] Re: User comments available in the developer console!
2010/6/30 Mark Carter mjc1...@googlemail.com Yes, would like to be able to respond to each comment (triggering an email to the user) and optionally make that response public so that other users can see it. I really hope this is where this is going. It's nice that they're finally catching up on extremely basic functionality that 3rd party sites have had for however long, but let's be honest - it's still fairly useless save for the convenience factor. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] Best way to change text styles in a list? (performance)
1. w.getInstructions().setTextColor( 0xFFBDBEBD ); appears to be the same in both branches of your if(), meaning it probably does not need to be called every time. 2. Create private data members for new StyleSpan( Typeface.NORMAL ) and new StyleSpan( Typeface.BOLD ) and reference those data members, rather than creating new instances every time. 3. If s and i are TextViews, skip the Spannable stuff and just call setTypeface() (using cached normal and bold Typeface objects) On Wed, Jun 30, 2010 at 10:29 AM, Connick oconn...@gmail.com wrote: Ever since I added conditional text formatting on my list items I've noticed a performance drop. It's still usable but I'm somewhat obsessive about performance/experience so I would really like to tweak my approach as best I can. The following snippet is how I'm achieving my conditional formatting. Is this the only way? (Perf drop appears to be related to making TextViews spannable) if( w.state.equalsIgnoreCase( Tasks.STATE_READ )) { s.setSpan( new StyleSpan( Typeface.NORMAL ), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); i.setSpan( new StyleSpan( Typeface.NORMAL ), 0, i.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); w.getInstructions().setTextColor( 0xFFBDBEBD ); w.getDeadline().setTextColor( 0xFFBDBEBD ); } else { s.setSpan( new StyleSpan( Typeface.BOLD ), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); i.setSpan( new StyleSpan( Typeface.BOLD ), 0, i.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); w.getInstructions().setTextColor( 0xFFBDBEBD ); w.getDeadline().setTextColor( 0x ); } -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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: User comments available in the developer console!
On Wed, Jun 30, 2010 at 3:45 PM, TreKing treking...@gmail.com wrote: let's be honest - it's still fairly useless save for the convenience factor. I wouldn't say useless, the comment feed looks to be real-time, and therefore more up-to-date than Cyrket and other sites (based on what I've seen in my app listings). This would be useful for the early stages of an app, when the developer is trying to keep on top of the reviews coming in. Before, this could only be done if you owned a phone and kept checking the Market app. -- 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] adb is broken after upgrade to Froyo
Hello guys, I upgraded my Nexus from Eclair (ERE27) to Froyo (FRF85b) using the officially released image. I downloaded it from http://android.clients.google.com/packages/passion/signed-passion-ota..., renamed it to update.zip and installed it normally. The update completes smoothly, but after it finishes, the adb is broken. Any trial to issue adb shell or other adb commands. I get error: device not found. Everything was fine before I install the update. so, I am accusing it. Can anyone help? I'd like to add that, before the official release, I tried many unofficial releases like FRF50 and adb wasn't working on them so, I downgraded to ERE27 again and restored adb. I thought this might be some instability in unreleased version. but the final version still has the same problem. Anyone has an idea how to fix this? BTW, I am on ubuntu 10.04 and I have correct rule files (they were working before the upgrade). -- 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] Best way to change text styles in a list? (performance)
Thanks Mark, I knew it had to be simpler. I've turfed all the Spannable stuff ...almost flawless now. Only one slight stutter on fast fling. Next stop is addressing nested layout in the row xml ... if( w.state.equalsIgnoreCase( Tasks.STATE_READ )) { w.getStepName().setTypeface( Typeface.DEFAULT ); w.getInstructions().setTypeface( Typeface.DEFAULT ); } else { w.getStepName().setTypeface( Typeface.DEFAULT_BOLD ); w.getInstructions().setTypeface( Typeface.DEFAULT_BOLD ); } On Wed, Jun 30, 2010 at 10:47 AM, Mark Murphy mmur...@commonsware.comwrote: 1. w.getInstructions().setTextColor( 0xFFBDBEBD ); appears to be the same in both branches of your if(), meaning it probably does not need to be called every time. 2. Create private data members for new StyleSpan( Typeface.NORMAL ) and new StyleSpan( Typeface.BOLD ) and reference those data members, rather than creating new instances every time. 3. If s and i are TextViews, skip the Spannable stuff and just call setTypeface() (using cached normal and bold Typeface objects) On Wed, Jun 30, 2010 at 10:29 AM, Connick oconn...@gmail.com wrote: Ever since I added conditional text formatting on my list items I've noticed a performance drop. It's still usable but I'm somewhat obsessive about performance/experience so I would really like to tweak my approach as best I can. The following snippet is how I'm achieving my conditional formatting. Is this the only way? (Perf drop appears to be related to making TextViews spannable) if( w.state.equalsIgnoreCase( Tasks.STATE_READ )) { s.setSpan( new StyleSpan( Typeface.NORMAL ), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); i.setSpan( new StyleSpan( Typeface.NORMAL ), 0, i.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); w.getInstructions().setTextColor( 0xFFBDBEBD ); w.getDeadline().setTextColor( 0xFFBDBEBD ); } else { s.setSpan( new StyleSpan( Typeface.BOLD ), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); i.setSpan( new StyleSpan( Typeface.BOLD ), 0, i.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ); w.getInstructions().setTextColor( 0xFFBDBEBD ); w.getDeadline().setTextColor( 0x ); } -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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.comandroid-developers%2bunsubscr...@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] Application state being lost
I have a situation where my input fields are losing their contents. I have reviewed the sections on saving instance state and believe I have coded it correctly, however, the problem persists. I actually wonder if the problem might have to do with a second instance of the application running as opposed to the original instance being resumed. The reason I say this is because I have seen times where my application presents itself as an empty page and hitting the return button displays my application with all the data as it had been entered. Can you tell me more about the manifest entries concerning android:alwaysRetainTaskState=true and/or android:launchMode=singleTask Also, I discovered an attribute on the EditText control called android:saveEnabled=true. Can you assist in clearing up this seemingly trivial use case? Peace, Scott -- 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: Any chance to deactivate the lock pattern in Froyo from code?
I'm a little late on this thread, but I just wanted to say that your description of the Problem is as clear (and accurate) a description as I have seen, and I am exactly the kind of user you are describing :). I would love to have the option of setting two values for the screen lock. One that requires a Password/PIN to log in .. and another for the screen locking. In my case, I would set the Password/PIN option to a very high value, say about 6 hours.. That way, if my phone was stolen, or lost, it would only be usable for that first day, and it would not be much of a pain for me to login once a day. The OTHER thing that GOOGLE should do is to offer an option to brick your phone from your GOOGLE email account, and maybe ANY Google app. As you need a GOOGLE email account to setup your phone, and it would likely be one of the first places a thief would look for sensitive information. It wouldn't be that hard to do... just issue a GUID type number to the phone when you tell it to brick itself... and that number is now your PIN.. and then offer the user a secure place to retrieve that GUID if the phone is found. It could even be such simple security as it is only shown on the email account 24 hours or more after the phone is bricked. If Google wants some good PR, having a few good news stories about someone's phone being stolen, and how easy it was to brick the phone to keep their sensitive information secret would certainly go a long way :) Anway.. my take on the issue.. Brad. following: People (private Android users) are aware that they have stored a lot of sensible data on the smartphones, because of this some of them would like to protect this information a little bit better... this is where the Lock Pattern of Android (or with Froyo also the Pin or Password) comes into the game. All the basic lock features that Android provides to the users have one disadvantage... Ones enabled, they always on. Each time you want to use your phone you have to deal with the lock (pattern, pin or password). For private users this is often a bit to much and in the end they deactivate the security pattern again. What is missing from my point of view (and most likely the point of view from thousands of users of apps like PatternControl, AutoLock etc.), is an option like Enable the lock only if I didn't used the phone for xxx minutes. Best regards Lars -- Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://www.bgies.com http://www.bistroblurb.com http://www.ihottonight.com --- Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead -- 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: Any api for mapview callout/bubble for tapped pins?
this really helped me out: http://github.com/jgilfelt/android-mapviewballoons Question: How come this fairly obvious requirement is standard behaviour for the iPhone Google Maps library but not for the Android one? On Jun 23, 9:33 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, There's no method available to us to display a callout / bubble above an ItemizedOverlay item when, tapped, right? I don't think there is, just wondering if I'm missing this in the docs before I start my own, 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] determine the cache size for bitmaps
Dear, I manage a cache of bitmap. Do you have an advise to fix the maximum size of it ? Regards, Olivier -- 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: Any api for mapview callout/bubble for tapped pins?
On Wed, Jun 30, 2010 at 10:23 AM, erdo e...@ixpocket.com wrote: Question: How come this fairly obvious requirement is standard behaviour for the iPhone Google Maps library but not for the Android one? Good question. The Android one definitely reeks of rush job. With all the improvements to the Google Maps app, you'd think some of that would find it's way into the library. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: determine the cache size for bitmaps
Depends on the size of the bitmaps. If they are for display only, i would advise loading them with RGB_565 (not ARGB_). This way, an image with 'width' by 'height' pixels will take up 'width*height*2' MByte. Your app's total available memory is either 16MByte (1st gen phones) or 24MByte (2nd gen phones, larger screens). In my app, i allow about half of the available memory for bitmaps, i.e. 8MByte or 12MByte.But this is pushing it On Jun 30, 11:26 am, olivier olivier.stev...@treebux.fr wrote: Dear, I manage a cache of bitmap. Do you have an advise to fix the maximum size of it ? Regards, Olivier -- 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: Media.insertImage locked to heavy compression
You can put any file name in the image-provider's DATA column (_data). As long as your image is in the image-provider, other gallery apps will see your image. If you don't add the image yourself (getContentProvider().insert(...)), then the MediaScanner will do this for you when it's run (upon remount of your SD or Phone storage). Note that using MediaStore.Images.Media.EXTERNAL_CONTENT_URI only allows for inserting/handling images on your SD-card. Any phone without an SD card (many HTC Incredibles, for example) won't run your app properly. On Jun 30, 1:18 am, Julian lepin...@gmail.com wrote: Thanks (belatedly) for your reply. For the time being I've stuck with manually writing my images to /sdcard/DCIM/AppName, which may or may not be the best solution. I haven't yet checked to see if getContentProvider().insert allows you to specify the DCIM subdirectory, but my guess is no. (Which is disappointing if my guess is right, because the directory hierarchy and the Gallery app both seem to be purpose-built for exactly that.) I'm quite happy writing my image files manually, provided that: - this is not strongly frowned upon, and - i can figure out a way to force gallery to refresh from the filesystem (this may be the sticking point) Any thoughts? On Jun 21, 7:18 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Compress (Bitmap.compress) the image yourself into a file. Then use the getContentProvider().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, ) to insert your image into the database/content-provider. When inserting, you can create a ContentValues name-value pair with MediaStore.MediaColumns.DATA for the name and the fully qualified file- path to the image for the value. On Jun 20, 11:16 pm, Julian lepin...@gmail.com wrote: So from what I can tell Media.insertImage is locked to heavy compression on all images. This includes when passing in the path to a photo in the filesystem. As a test I used a 3000x2000 pixel jpg which had been previously saved at maximum quality and was ~6MB. After passing the path to Media.insertImage, the resultant copy (still 3000x2000) is 623KB. I passed in another copy of the 3000x2000 image, this one compressed down to 393KB. After Media.insertImage, the image filesize is 492KB. I'm wondering if there's a way to specify the compression when images are saved by insertImage. I'm also wondering why this is recompressing jpgs, rather than simply copying them intoDCIM. A side-effect of opening and re-compressing these images is that it imposes a rather low VM cap on what insertImage can handle. I'm getting out-of-memory errors when trying to pass the path of a 10 megapixel image. As an aside: are there any problems with a developer creating their own file/folder structure underDCIM? Is this frowned upon? Thanks for any thoughts, Julian- 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
[android-developers] Block Call Text SMS
How to Block outgoing calls and Text SMS I am developing an App in which I need to block the teenager from using mobile while driving and stuff, I need to block the call and sms. please help . any small hints and clues will do. I appreciate your help. -- 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] Are there default permissions added to apps?
I wrote an app in which the only permission I give in the manifest is internet access, uses-permission android:name=android.permission.INTERNET / but when I check the list of permissions in the Application Info it says: Storage modify/delete SD card contents Network communications full internet access Phone calls read phone state and identity My app is a simple reference doc that has a few outside web links embedded in it. It does nothing to the sd card, let alone the phone. What's going on? Ken -- 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] Are there default permissions added to apps?
On Wed, Jun 30, 2010 at 11:17 AM, Ken H hunt1...@gmail.com wrote: What's going on? For backward compatibility, some permissions that didn't previously exists (like th SD card one) are automatically granted if you target an older API (1.5). This has been discussed at length in this forum. Just search for it. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] subscribe
subscribe -- 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: User comments available in the developer console!
On Jun 30, 2:33 pm, Tomáš Hubálek tom.huba...@gmail.com wrote: And what I forget and I feel is very important: be able to contact user back with response to his/her comment. Yes, we REALLY need ways to respond to comments. Both directly to users, and visible to everyone on the comment list. But this is still a BIG improvement. And I just noticed something that you won't get off Cyrket/AndroidZoom/etc.: * * * * by Bob (June 25, 2010) User uninstalled the application for the following reason : DONT_USE Finally, that uninstall feedback is going somewhere! Not that it's terribly useful, but still, we'll take what we can get! String -- 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: Media.insertImage locked to heavy compression
The standard external storage directories have been formally defined: http://developer.android.com/reference/android/os/Environment.html http://developer.android.com/reference/android/os/Environment.htmlI would suggest using DIRECTORY_PICTURES instead of DCIM unless you really do want to be like a camera app in that way. MediaScannerConnection is an API that allows you to explicitly run the media scanner: http://developer.android.com/reference/android/media/MediaScannerConnection.html http://developer.android.com/reference/android/media/MediaScannerConnection.htmlSample code is here: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.html http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.htmlNote that the sample code uses some improved APIs in Froyo (and the newly defined directory constants), but can be adjusted to work on older versions. On Wed, Jun 30, 2010 at 8:46 AM, Streets Of Boston flyingdutc...@gmail.comwrote: You can put any file name in the image-provider's DATA column (_data). As long as your image is in the image-provider, other gallery apps will see your image. If you don't add the image yourself (getContentProvider().insert(...)), then the MediaScanner will do this for you when it's run (upon remount of your SD or Phone storage). Note that using MediaStore.Images.Media.EXTERNAL_CONTENT_URI only allows for inserting/handling images on your SD-card. Any phone without an SD card (many HTC Incredibles, for example) won't run your app properly. On Jun 30, 1:18 am, Julian lepin...@gmail.com wrote: Thanks (belatedly) for your reply. For the time being I've stuck with manually writing my images to /sdcard/DCIM/AppName, which may or may not be the best solution. I haven't yet checked to see if getContentProvider().insert allows you to specify the DCIM subdirectory, but my guess is no. (Which is disappointing if my guess is right, because the directory hierarchy and the Gallery app both seem to be purpose-built for exactly that.) I'm quite happy writing my image files manually, provided that: - this is not strongly frowned upon, and - i can figure out a way to force gallery to refresh from the filesystem (this may be the sticking point) Any thoughts? On Jun 21, 7:18 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Compress (Bitmap.compress) the image yourself into a file. Then use the getContentProvider().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, ) to insert your image into the database/content-provider. When inserting, you can create a ContentValues name-value pair with MediaStore.MediaColumns.DATA for the name and the fully qualified file- path to the image for the value. On Jun 20, 11:16 pm, Julian lepin...@gmail.com wrote: So from what I can tell Media.insertImage is locked to heavy compression on all images. This includes when passing in the path to a photo in the filesystem. As a test I used a 3000x2000 pixel jpg which had been previously saved at maximum quality and was ~6MB. After passing the path to Media.insertImage, the resultant copy (still 3000x2000) is 623KB. I passed in another copy of the 3000x2000 image, this one compressed down to 393KB. After Media.insertImage, the image filesize is 492KB. I'm wondering if there's a way to specify the compression when images are saved by insertImage. I'm also wondering why this is recompressing jpgs, rather than simply copying them intoDCIM. A side-effect of opening and re-compressing these images is that it imposes a rather low VM cap on what insertImage can handle. I'm getting out-of-memory errors when trying to pass the path of a 10 megapixel image. As an aside: are there any problems with a developer creating their own file/folder structure underDCIM? Is this frowned upon? Thanks for any thoughts, Julian- 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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Are there default permissions added to apps?
If your app doesn't target SDK version = 4, then these are added, because prior to that apps had free access to the things these permissions protect. On Wed, Jun 30, 2010 at 9:17 AM, Ken H hunt1...@gmail.com wrote: I wrote an app in which the only permission I give in the manifest is internet access, uses-permission android:name=android.permission.INTERNET / but when I check the list of permissions in the Application Info it says: Storage modify/delete SD card contents Network communications full internet access Phone calls read phone state and identity My app is a simple reference doc that has a few outside web links embedded in it. It does nothing to the sd card, let alone the phone. What's going on? Ken -- 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.comandroid-developers%2bunsubscr...@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: Any chance to deactivate the lock pattern in Froyo from code?
No we already have a feature request for this in our internal tracker. I currently don't have a schedule for when it might be done. On Wed, Jun 30, 2010 at 5:20 AM, LeveloKment levelokm...@googlemail.comwrote: I know ;) But this does not mean that the next Android version(s) will have to lack this balance as well ;) Should I open a feature request for this? Or will you :P Thanks for your attention Dianne Bye Lars On 30 Jun., 10:16, Dianne Hackborn hack...@android.com wrote: Sorry we currently don't support this. On Tue, Jun 29, 2010 at 11:37 PM, LeveloKment levelokm...@googlemail.comwrote: Hi again Dianne. ;) Ok, lets keep the DeviceAdmin out off the topic for now. From what you have described it seems to be for corporate use mainly. The problem I've tried to fix with my app PatternControl was the following: People (private Android users) are aware that they have stored a lot of sensible data on the smartphones, because of this some of them would like to protect this information a little bit better... this is where the Lock Pattern of Android (or with Froyo also the Pin or Password) comes into the game. All the basic lock features that Android provides to the users have one disadvantage... Ones enabled, they always on. Each time you want to use your phone you have to deal with the lock (pattern, pin or password). For private users this is often a bit to much and in the end they deactivate the security pattern again. What is missing from my point of view (and most likely the point of view from thousands of users of apps like PatternControl, AutoLock etc.), is an option like Enable the lock only if I didn't used the phone for xxx minutes. Best regards Lars On 29 Jun., 19:15, Dianne Hackborn hack...@android.com wrote: On Tue, Jun 29, 2010 at 4:53 AM, LeveloKment levelokm...@googlemail.com wrote: If I understand you right, than the only option to provide more flexibility to the users is still an option in Android itself. The DeviceManager can then disallow such temporary lowering of the lock level. Sorry I am not understanding that paragraph. From my point of view an always on security feature will often be disabled (at least by private users). This lowers the security even if the origin intention was the other way around. Not sure I see the connection here... the API to disable the lock screen is not supported when a device admin is requiring a lock screen, in which case there is no way for the user to go around this except to disable that device admin, and thus lose all access to whatever corp server the admin is associated with. And if their preference is to be able to not have a lock screen at the expense of not having their corp server access... well, that is fine for all. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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
Re: [android-developers] Re: User comments available in the developer console!
On Wed, Jun 30, 2010 at 11:24 AM, String sterling.ud...@googlemail.comwrote: Finally, that uninstall feedback is going somewhere! And where is that? I see comments in Google Checkout, but that wouldn't apply to free apps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: Are there default permissions added to apps?
Ahhh, makes sense. I did search, but if you don't stumble on the right word combo you'll just spin your wheels. Thanks. On Jun 30, 9:20 am, TreKing treking...@gmail.com wrote: On Wed, Jun 30, 2010 at 11:17 AM, Ken H hunt1...@gmail.com wrote: What's going on? For backward compatibility, some permissions that didn't previously exists (like th SD card one) are automatically granted if you target an older API (1.5). This has been discussed at length in this forum. Just search for it. --- -- TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- 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: Bump is letting users send paid apps?
Installed .apks are world-readable, and have always been this way. The only except is forward-locked apps; that is that a forward-locked app is, one that others can't read (and that is the reason for the negatives to forward-locked apps, because there still needs to be a world readable file containing its resources for other apps to access). On Wed, Jun 30, 2010 at 8:43 AM, Streets Of Boston flyingdutc...@gmail.comwrote: I don't think any Bump (or any app) can do that on a non-rooted phone. However, Bump may just send the market: url to the receiver, not the actual app itself. On Jun 29, 8:16 pm, jsdf jasons...@gmail.com wrote: It looks like you can send an app with the new version of Bump. This seems to include paid apps. Which completely circumvents the Android Market, of course. 1.) How is this possible? I thought access to apps themselves was off limits to API developers. 2.) If this is the case, why is Google not remote uninstalling Bump, and instead promoting it in the Android Market? (I haven't tried actually sending the paid app, so maybe it fails at that point - can anyone confirm? I hope to be proven wrong here) (I saw this using a Nexus One) jsdf -- 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.comandroid-developers%2bunsubscr...@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] PackageManager.hasSystemFeature and hasSystemFeature buggy on emulator
These constants are built into the system image. Don't count on the emulator being very correct here. On Wed, Jun 30, 2010 at 4:25 AM, Daman damanji...@gmail.com wrote: How reliable is to use PackageManager.hasSystemFeature in production code ? This seems to be buggy on emulator. I created a Virtual Device with no camera support, but calling hasSystemFeature(FEATURE_CAMERA) still returns true. -- 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.comandroid-developers%2bunsubscr...@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: How to detect presence of camera on an Android device.
You need to do this on a real device. On Wed, Jun 30, 2010 at 3:45 AM, Daman damanji...@gmail.com wrote: I did try that, but this doesn't work. I created an emulator image with no camera support. But PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) still returns true. On Jun 30, 5:12 am, Dianne Hackborn hack...@android.com wrote: Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA). Of course if your app requires a camera, you should declare so in your manifest so that devices without a camera won't see it. On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote: How can I detect the presence of camera on an Android device? -- 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.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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
[android-developers] Re: Bump is letting users send paid apps?
Keep in mind that many (most?) devs have removed copy-protection from their paid apps, due to it hindering market visibility. And a non-copy- protected app, paid or not, is available to be copied by anyone, or any other app. Doesn't make it right, and I have to say I'll lose respect for Bump if they're doing this, but there's nothing to prevent it. String On Jun 30, 1:16 am, jsdf jasons...@gmail.com wrote: It looks like you can send an app with the new version of Bump. This seems to include paid apps. Which completely circumvents the Android Market, of course. 1.) How is this possible? I thought access to apps themselves was off limits to API developers. 2.) If this is the case, why is Google not remote uninstalling Bump, and instead promoting it in the Android Market? (I haven't tried actually sending the paid app, so maybe it fails at that point - can anyone confirm? I hope to be proven wrong here) (I saw this using a Nexus One) jsdf -- 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: Alarms after an update ?
You should use android:authority=your.package.name On Thu, Jun 24, 2010 at 10:12 AM, Robert Macaulay robert.macau...@gmail.com wrote: On Thu, Jun 24, 2010 at 11:56 AM, mac-systems jens.h...@gmx.de wrote: Ok, i thought i have to do this. Is there any Intent which get broadcasted on update ? Or simlar mechanism ? You can add a receiver for PACKAGE_REPLACED receiver android:name=.OnPackageChangeStarter intent-filter action android:name=android.intent.action.PACKAGE_REPLACED / !-- This doesn't work data android:scheme=package android:path= your.package.name / -- /intent-filter /receiver and in the OnPackageChangeStarter, add an if if(! intent.getDataString().startsWith(package: your.package.name)){ return; } At least on 2.1 Droid, the intent.getData().getPath() portion of the intent is null, so the intent-filter doesn't seem to work. Including it gets my receiver called for every package change. The package name is in the intent.getData().getSchemeSpecificPart() Anyone know if this is a bug? Or is this the right way to accomplish this? -- 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.comandroid-developers%2bunsubscr...@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] ContentProvider onCreate() onDestroy()
Content providers are never destroyed. They exist for the entire lifetime of their process. On Wed, Jun 30, 2010 at 2:19 AM, Natanael Arndt natana...@gmx.de wrote: Hello, when writing a ContentProvider I have to implement the onCreate()-method, in which I establish my database connection. But to write the changes I made to the database I have to close the database on some point. Does something like a onDestroy()-method exist for ContentProviders or is there some intent I have to listen to, which is fired before killing my process? Natanael -- 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.comandroid-developers%2bunsubscr...@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: IntentService - will it block?
On Wed, Jun 30, 2010 at 1:31 AM, Federico Paolinelli fedep...@gmail.comwrote: It makes sense. Thanks a lot. Maybe it's time to look at android source code :-) Why? -- 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] how to see the the usage of memory in the android?
Memory usage on a modern virtual memory kernel is a dark and mysterious subject. On Wed, Jun 30, 2010 at 1:22 AM, xhy xhyg...@gmail.com wrote: 1 I want to see the usage of memory in the android through the procrank command,but throw a error error: creating kernel interface. Why/ 2 if use the top command, but the info of the %MEM is not correct. Because all the pid's info's sum will 100% ,so Why? -- xhy -- 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.comandroid-developers%2bunsubscr...@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
[android-developers] Getting ParserConfigurationException when trying to insert a new Calendar.
Hi , I am developing an Android app which creates a new calendar on the google server. Though the calendar does get created, I get an exception . This is how I insert the calendar. CalendarService service = new CalendarService(CalendarFeed`); CalendarEntry calendar = new CalendarEntry(); //Some code URL postUrl = new URL( http://www.google.com/calendar/feeds/ default/owncalendars/full); service.insert(postUrl, calendar); After the calendar gets inserted , I get the following exception WARN/dalvikvm(922): VFY: unable to resolve virtual method 16724: Ljavax/xml/parsers/SAXParserFactory;.getSchema ()Ljavax/xml/validation/ Schema; WARN/dalvikvm(922): VFY: unable to find class referenced in signature (Ljavax/xml/validation/Schema;) WARN/dalvikvm(922): VFY: unable to resolve virtual method 16732: Ljavax/xml/parsers/SAXParserFactory;.setSchema (Ljavax/xml/validation/ Schema;)V WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException: org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException: org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities WARN/XmlParser(922): at org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java: 84) WARN/XmlParser(922): at com.google.gdata.util.XmlParser.parse(XmlParser.java:682) WARN/XmlParser(922): at com.google.gdata.util.XmlParser.parse(XmlParser.java:576) WARN/XmlParser(922): at com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015) WARN/XmlParser(922): at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 59) WARN/XmlParser(922): at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 39) WARN/XmlParser(922): at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java: 100) WARN/XmlParser(922): at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java: 52) WARN/XmlParser(922): at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 66) WARN/XmlParser(922): at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 34) WARN/XmlParser(922): at com.google.gdata.client.Service.parseResponseData(Service.java:2165) WARN/XmlParser(922): at com.google.gdata.client.Service.parseResponseData(Service.java:2098) WARN/XmlParser(922): at com.google.gdata.client.Service.insert(Service.java:1410) WARN/XmlParser(922): at com.google.gdata.client.GoogleService.insert(GoogleService.java:606) WARN/XmlParser(922): at NewCalendar.createCalendar(SetupCalendarNameActivity.java:205) WARN/XmlParser(922): at NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113) WARN/XmlParser(922): at NewCalendar.access $2(SetupCalendarNameActivity.java:104) WARN/XmlParser(922): at NewCalendar $3$1.run(SetupCalendarNameActivity.java:97) WARN/XmlParser(922): at java.lang.Thread.run(Thread.java:1096) WARN/System.err(922): com.google.gdata.util.ParseException: org.xml.sax.SAXNotRecognizedException: http://xml.org/sax/features/external-parameter-entities WARN/System.err(922): at com.google.gdata.util.XmlParser.parse(XmlParser.java:708) WARN/System.err(922): at com.google.gdata.util.XmlParser.parse(XmlParser.java:576) WARN/System.err(922): at com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015) WARN/System.err(922): at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 59) WARN/System.err(922): at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java: 39) WARN/System.err(922): at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java: 100) WARN/System.err(922): at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java: 52) WARN/System.err(922): at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 66) WARN/System.err(922): at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java: 34) WARN/System.err(922): at com.google.gdata.client.Service.parseResponseData(Service.java:2165) WARN/System.err(922): at com.google.gdata.client.Service.parseResponseData(Service.java:2098) WARN/System.err(922): at com.google.gdata.client.Service.insert(Service.java:1410) WARN/System.err(922): at com.google.gdata.client.GoogleService.insert(GoogleService.java:606) WARN/System.err(922): at NewCalendar.createCalendar(SetupCalendarNameActivity.java:205) WARN/System.err(922): at NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113) WARN/System.err(922): at NewCalendar.access $2(SetupCalendarNameActivity.java:104) WARN/System.err(922): at NewCalendar $3$1.run(SetupCalendarNameActivity.java:97) WARN/System.err(922): at java.lang.Thread.run(Thread.java:1096) WARN/System.err(922): Caused by: javax.xml.parsers.ParserConfigurationException: org.xml.sax.SAXNotRecognizedException:
[android-developers] Re: User comments available in the developer console!
On Jun 30, 5:29 pm, TreKing treking...@gmail.com wrote: And where is that? I see comments in Google Checkout, but that wouldn't apply to free apps. Didn't make myself clear, apparently... I'm seeing messages like the one I quoted, inline with the real comments in the new Developer Console | Comments feature. For both paid and free apps. String -- 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: User comments available in the developer console!
Yeah, I noticed this too. However, I would like to suggest that uninstall notices go to a separate comment thread, available only in the Developer Console. As far as responding to comments - I am with everyone on this one 1000%. Would be great to have two ways to respond - to the same comment stream visible to everyone (in Market, too) and privately to the user who posted this. Android Market application would need to have an inbox to support this. The first option - public response - would be useful for clarifying misunderstandings about the app, which can then affect other users's opinion about using and/or installing. The second option would be really useful for resolving rare bugs - i.e sending a message to the user perhaps asking to install a version with debug logging, etc. Both my apps have email for feedback prominently displayed, yet only few contact me when they have real problems or issues caused by their own misunderstanding. If I was able to respond to comments, it would make for better user experience. -- Kostya 30.06.2010 20:29, TreKing ?: On Wed, Jun 30, 2010 at 11:24 AM, String sterling.ud...@googlemail.com mailto:sterling.ud...@googlemail.com wrote: Finally, that uninstall feedback is going somewhere! And where is that? I see comments in Google Checkout, but that wouldn't apply to free apps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 Vasilev -- WiFi Manager + pretty widget -- 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: User comments available in the developer console!
On Wed, Jun 30, 2010 at 11:48 AM, String sterling.ud...@googlemail.comwrote: Didn't make myself clear, apparently... I'm seeing messages like the one I quoted, inline with the real comments in the new Developer Console | Comments feature. For both paid and free apps. I see nothing. Probably another beta feature. Or no one is uninstalling my apps! - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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] Arabic :(
i can't beleive that no one of android developers can support arabic in android . there's millions of arabian people have an android phone . and they need the arabic language :( -- 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: discoverability
On Sun, Jun 27, 2010 at 1:50 PM, Lance Nanek lna...@gmail.com wrote: Often it is pretty easy to add a button to your app's screen that opens the menu and also lets users know it is available just by being there, at least. Sure it's easy - and also a major waste of limit screen space for a one-time function. I get your point about some people not realizing functionality is there, but again, it's a one-time learning experience that really doesn't justify a dedicated button or whatever, IMO. The skipping entries in the ADC2 app, for example, was just poorly implemented - that should have been a dedicated button with the frequency in which it was going to be used. Use a quick start dialog on the user's first run to let them know this exists, or Toast messages as Tips as they navigate the screens perhaps. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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: User comments available in the developer console!
Or else they tried it for a bit then disabled, thinking it was a bad idea. -- Kostya 30.06.2010 20:59, TreKing ?: On Wed, Jun 30, 2010 at 11:48 AM, String sterling.ud...@googlemail.com mailto:sterling.ud...@googlemail.com wrote: Didn't make myself clear, apparently... I'm seeing messages like the one I quoted, inline with the real comments in the new Developer Console | Comments feature. For both paid and free apps. I see nothing. Probably another beta feature. Or no one is uninstalling my apps! - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 Vasilev -- WiFi Manager + pretty widget -- 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] OpenGL ES Tutorials
Hello everyone, As I am one who cannot find any decent Android-based OpenGL ES references, I have decided to start one. You can check it out at http://www.vincepascuzzi.com. As I am not a seasoned GL programmer, any and all comments and/or questions are greatly appreciated! My mission is to first create an OpenGL version of an application on Mac OS X, and then port to Android. Once the port is done, I go through each program, step-by-step, and contrast and compare how the port was done. I also explicitly point out any and all differences between the two, subtle or obvious. I hope you all will enjoy them and will find them useful! sws-vinpa -- 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: User comments available in the developer console!
These ideas (about responding to comments) need to be submitted formally somewhere. Maybe someone's already done it? Don't know if it should go here: http://code.google.com/p/android/issues/list?can=2q=cells=tiles http://code.google.com/p/android/issues/list?can=2q=cells=tilesor here: http://www.google.com/support/forum/p/Android+Market/label?lid=6c2f25659505b63dhl=en On 30 June 2010 19:12, Kostya Vasilyev kmans...@gmail.com wrote: Or else they tried it for a bit then disabled, thinking it was a bad idea. -- Kostya 30.06.2010 20:59, TreKing пишет: On Wed, Jun 30, 2010 at 11:48 AM, String sterling.ud...@googlemail.comwrote: Didn't make myself clear, apparently... I'm seeing messages like the one I quoted, inline with the real comments in the new Developer Console | Comments feature. For both paid and free apps. I see nothing. Probably another beta feature. Or no one is uninstalling my apps! - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 Vasilev -- WiFi Manager + pretty widget -- 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.comandroid-developers%2bunsubscr...@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: User comments available in the developer console!
Mark, Thanks for the suggestion. Posted here: http://www.google.com/support/forum/p/Android+Market/thread?tid=0240bbdaa4d4e681hl=en -- Kostya 30.06.2010 21:23, Mark Carter пишет: These ideas (about responding to comments) need to be submitted formally somewhere. Maybe someone's already done it? Don't know if it should go here: http://code.google.com/p/android/issues/list?can=2q=cells=tiles http://code.google.com/p/android/issues/list?can=2q=cells=tiles or here: http://www.google.com/support/forum/p/Android+Market/label?lid=6c2f25659505b63dhl=en http://www.google.com/support/forum/p/Android+Market/label?lid=6c2f25659505b63dhl=en On 30 June 2010 19:12, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: Or else they tried it for a bit then disabled, thinking it was a bad idea. -- Kostya 30.06.2010 20:59, TreKing пишет: On Wed, Jun 30, 2010 at 11:48 AM, String sterling.ud...@googlemail.com mailto:sterling.ud...@googlemail.com wrote: Didn't make myself clear, apparently... I'm seeing messages like the one I quoted, inline with the real comments in the new Developer Console | Comments feature. For both paid and free apps. I see nothing. Probably another beta feature. Or no one is uninstalling my apps! - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilev -- WiFi Manager + pretty widget --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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 -- Kostya Vasilev -- WiFi Manager + pretty widget -- 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] Pre-defined text styles?
Where can I see what typeface, size, color, etc. are used for Android's pre-defined text styles? Like the default text style or textAppearanceMedium, for example? -- 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] Froyo still breaks compatibility
You can no longer send the ACTION_ATTACH_DATA intent with an image URI to a custom content provider without crashing the Gallery app. This bug was reported more than a month ago. http://code.google.com/p/android/issues/detail?id=8543 It is a stupid bug that is super easy to fix, and as soon as Froyo was open sourced a patch was submitted. Still Froyo was officially released and the bug remains leaving developers who use this with an app that is no longer compatible and no easy way to work around it for 2.2. There are other bugs that also have not been acknowledged. This 'open' thing is great but it is not of much use this way. -- 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] Pre-defined text styles?
In your sdk root\platforms\android-platform id\data\res\values styles.xml -- Kostya 30.06.2010 21:45, paladin пишет: Where can I see what typeface, size, color, etc. are used for Android's pre-defined text styles? Like the default text style or textAppearanceMedium, for example? -- Kostya Vasilev -- WiFi Manager + pretty widget -- 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] crashing map
Have you ensured you're calling ItemizedOverlay.populate() before adding the overlay to the map view? Steve On Tue, Jun 29, 2010 at 5:42 PM, Pedro Teixeira pedroteixeir...@gmail.comwrote: Hey there... My application using google maps was working just fine.. I left it for a while.. and suddenly out of the blue.. it crashes by just touching on the map... the only change I've done was to change a .png file for another image.. Anyway.. I get a NullPointerException.. on the debugger.. nd the logcat writes this errors: 06-30 01:39:16.756: ERROR/ActivityThread(619): Failed to find provider info for android.server.checkin 06-30 01:39:16.856: ERROR/ActivityThread(619): Failed to find provider info for android.server.checkin 06-30 01:39:23.546: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings 06-30 01:39:23.566: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings 06-30 01:39:23.606: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings and more 06-30 01:39:23.606: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings 06-30 01:39:27.527: ERROR/MapActivity(738): Couldn't get connection factory client 06-30 01:39:56.476: ERROR/AndroidRuntime(738): Uncaught handler: thread main exiting due to uncaught exception 06-30 01:39:56.627: ERROR/AndroidRuntime(738): java.lang.NullPointerException 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java: 617) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.getItemAtLocation(ItemizedOverlay.java: 586) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.handleMotionEvent(ItemizedOverlay.java: 498) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.onTouchEvent(ItemizedOverlay.java: 572) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java: 63) there's much more.. but i guess its something to do with the maps itself.. any help please? -- 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.comandroid-developers%2bunsubscr...@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] crashing map
I traced it down to this snippet of code... for (int j=0; jgpItems.size();j++){ GeoPoint Y = gpItems.get(j); OverlayItem overlayPics = newOverlayItem(Y,,); itemizedOverlay.addOverlay(overlayPics); Y=null; } mapOverlays.add(itemizedOverlay); Supposedly the populate() is done in the AddOverlay method: public void addOverlay(OverlayItem overlay) { mOverlays.add(overlay); populate(); } I think I'll just have to reformulate all my Overlays classes. On Jun 30, 2010, at 7:10 PM, Steve Howard wrote: Have you ensured you're calling ItemizedOverlay.populate() before adding the overlay to the map view? Steve On Tue, Jun 29, 2010 at 5:42 PM, Pedro Teixeira pedroteixeir...@gmail.com wrote: Hey there... My application using google maps was working just fine.. I left it for a while.. and suddenly out of the blue.. it crashes by just touching on the map... the only change I've done was to change a .png file for another image.. Anyway.. I get a NullPointerException.. on the debugger.. nd the logcat writes this errors: 06-30 01:39:16.756: ERROR/ActivityThread(619): Failed to find provider info for android.server.checkin 06-30 01:39:16.856: ERROR/ActivityThread(619): Failed to find provider info for android.server.checkin 06-30 01:39:23.546: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings 06-30 01:39:23.566: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings 06-30 01:39:23.606: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings and more 06-30 01:39:23.606: ERROR/ActivityThread(738): Failed to find provider info for com.google.settings 06-30 01:39:27.527: ERROR/MapActivity(738): Couldn't get connection factory client 06-30 01:39:56.476: ERROR/AndroidRuntime(738): Uncaught handler: thread main exiting due to uncaught exception 06-30 01:39:56.627: ERROR/AndroidRuntime(738): java.lang.NullPointerException 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation (ItemizedOverlay.java: 617) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.getItemAtLocation (ItemizedOverlay.java: 586) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.handleMotionEvent (ItemizedOverlay.java: 498) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.ItemizedOverlay.onTouchEvent (ItemizedOverlay.java: 572) 06-30 01:39:56.627: ERROR/AndroidRuntime(738): at com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java: 63) there's much more.. but i guess its something to do with the maps itself.. any help please? -- 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 Pedro Teixeira www.pedroteixeira.org -- 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: Bump is letting users send paid apps?
I would be extremely surprised if they do anything other than send the market URL. To do otherwise would be more work, and a worse user experience. My own app, in an upcoming version, will send a link to itself. It was trivial to implement, and I think it's a great marketing tool. I think we'd all like every likely customer to get a market link to our paid (and free) app. I don't have two phones to bump together. Could someone try it out and confirm? On Jun 30, 8:43 am, Streets Of Boston flyingdutc...@gmail.com wrote: I don't think any Bump (or any app) can do that on a non-rooted phone. However, Bump may just send the market: url to the receiver, not the actual app itself. On Jun 29, 8:16 pm, jsdf jasons...@gmail.com wrote: It looks like you can send an app with the new version of Bump. This seems to include paid apps. Which completely circumvents the Android Market, of course. 1.) How is this possible? I thought access to apps themselves was off limits to API developers. 2.) If this is the case, why is Google not remote uninstalling Bump, and instead promoting it in the Android Market? (I haven't tried actually sending the paid app, so maybe it fails at that point - can anyone confirm? I hope to be proven wrong here) (I saw this using a Nexus One) jsdf -- 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: ContentProvider onCreate() onDestroy()
Thank you, but when should I or is than the best time to save database changes to the filesystem? Natanael On 30.06.2010 18:36, Dianne Hackborn wrote: Content providers are never destroyed. They exist for the entire lifetime of their process. On Wed, Jun 30, 2010 at 2:19 AM, Natanael Arndt natana...@gmx.de mailto:natana...@gmx.de wrote: Hello, when writing a ContentProvider I have to implement the onCreate()-method, in which I establish my database connection. But to write the changes I made to the database I have to close the database on some point. Does something like a onDestroy()-method exist for ContentProviders or is there some intent I have to listen to, which is fired before killing my process? Natanael -- 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 mailto: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 -- 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