[android-developers] Application Back button not working
Hi guys I made an application in my office and then i mailed it back to myself so that i could complete it on weekends. But a strange thing which has happened is that some part of the application is working and some are not. For ex the Back Button on other activities except the launcher activity is not working. Did i do something wrong or is it android SDK ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Making cross-thread blocking/sync calls
08.01.2011 10:37, Bob Kerns пишет: Memorize this pattern! If you're using notify/wait, it should ALWAYS look something like this. Always - except unless you actually want to respect the meaning of InterruptedException and unwind the code around wait() to the caller, canceling the operation. -- Kostya Vasilyev -- 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] Re: Interaction with other apps
Thanks for replying. I was wodering if it's not possible any kind on interaction with existing apps, I don't mean to modify them but just get data (maybe just adding a button to a menu) to feed my background app that can then process those data (mails, SMS) and show the result of its processing. Let's say there a mail tlking about a particular artist, my software can recognize the artist and give uset concert dates. On 8 Gen, 14:32, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jan 8, 2011 at 4:13 AM, emafuma emanue...@gmail.com wrote: Hi, I'm investigating if I can make an app that runs in background but is able to interact with others by enriching texts adding relevant information. For instance, interact with an existent twitter app or the mail app reading text and showing a popup with detected relevant words. Is there a way to do so? Fortunately no, as that would be a substantial security hole. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Interaction with other apps
09.01.2011 11:34, emafuma пишет: I was wodering if it's not possible any kind on interaction with existing apps, I don't mean to modify them but just get data (maybe just adding a button to a menu) to feed my background app that can then process those data (mails, SMS) and show the result of its processing. Let's say there a mail tlking about a particular artist, my software can recognize the artist and give uset concert dates. What if there is an email that has your login / password details for online banking? And some other application gets access to it? And then fires an intent to share this information with yet another application, which looks like an ad-supported game, so you've granted it Internet access? And you wake up the next morning, and see that all the money has been transferred out of your account? -- Kostya Vasilyev -- 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] Re: Google Nexus S - Please provide as DEV phone, asap :-)
On 8 Jan., 21:25, Dianne Hackborn hack...@android.com wrote: That said, yes the dev devices are partly there to be a benchmark for how that platform is expected to behave. [...] I sometimes like to refer to them as Android reference devices. :) Don't you think reference devices should be publicly available? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] HTTP parameter question
Ok.. have you looked at UrlEncodedFormEntity ? Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com http://forcethetruth.com http://ihottonight.com --- Everything in moderation, including abstinence (paraphrased) Every person is born with a brain... Those who use it well are the successful happy ones - Brad Gies Adversity can make or break you... It's your choice... Choose wisely - Brad Gies 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 On 07/01/2011 5:32 PM, John Lussmyer wrote: Except that you can't setEntity() on an HttpGet - which is what I need to use. On Fri, Jan 7, 2011 at 5:27 PM, Brad Gies rbg...@gmail.com mailto:rbg...@gmail.com wrote: I'm not 100% sure I understand the question either but just in case...this does it for a Post... and switching to a Get will do the same thing. HttpPost httpPost = new HttpPost(urlString); ListNameValuePair nvps = new ArrayListNameValuePair(); nvps.add(new BasicNameValuePair(akey, avalue)); httpPost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8)); If you check the Request on your server after you send it.. you will see the normal ?key=value strings. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] What is the name of this widget?
Hi, as the title says: I would like to reuse the widget in green on the attached picture, but I don't know it's name. It is part of the calendar application, used for setting time and date. 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=enattachment: widget.jpg
[android-developers] Re: Interaction with other apps
Well, I was just trying to figure it out the way applications interact in Android. I'm concerned about security issues as well but I think there are even other custom email applications, so if a user chooses them instead of the default one that's because they trust them. My question was more about the feasibility of interactions between a mail app and another application I could develop. I'm guessing there are no way to communicate between them, am I right? Thanks On 9 Gen, 10:00, Kostya Vasilyev kmans...@gmail.com wrote: 09.01.2011 11:34, emafuma пишет: I was wodering if it's not possible any kind on interaction with existing apps, I don't mean to modify them but just get data (maybe just adding a button to a menu) to feed my background app that can then process those data (mails, SMS) and show the result of its processing. Let's say there a mail tlking about a particular artist, my software can recognize the artist and give uset concert dates. What if there is an email that has your login / password details for online banking? And some other application gets access to it? And then fires an intent to share this information with yet another application, which looks like an ad-supported game, so you've granted it Internet access? And you wake up the next morning, and see that all the money has been transferred out of your account? -- Kostya Vasilyev -- 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: Interaction with other apps
09.01.2011 12:58, emafuma пишет: My question was more about the feasibility of interactions between a mail app and another application I could develop. I'm guessing there are no way to communicate between them, am I right? This can be implemented the other way around. Define an interface for your application so that other applications can use it (a broadcast Intent, a service responding to Intent commands or using a custom binder, etc.) Convince authors of other applications to add support for yours. Then the user would be able to perform lookups you're taking about, if he wanted to. But grabbing on-screen text across applications is a security hole, that's why there is no support for it. -- Kostya Vasilyev -- 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] Re: Making cross-thread blocking/sync calls
Probably you just need some flag signaling that your hardware isn't ready. Rendering thread always runs without blocking, checks for this flag and do not do certain things (may be render function just returns right away). UI thread sets the flag and then rendering thread checks for it. On 9 янв, 11:22, Kostya Vasilyev kmans...@gmail.com wrote: 08.01.2011 10:37, Bob Kerns пишет: Memorize this pattern! If you're using notify/wait, it should ALWAYS look something like this. Always - except unless you actually want to respect the meaning of InterruptedException and unwind the code around wait() to the caller, canceling the operation. -- Kostya Vasilyev -- 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] Re: Change the background of an AppWidget
I have a similar problem, would be nice if there was a standard way to query the launcher for the widget dimensions for a particular cell width/height wouldn't it ? Pent On Jan 9, 12:38 am, Mark android.eggenst...@googlemail.com wrote: I want to set the background of an appwidget at runtime with a dynamically generated image (skin) (which must fill the entire space of the widget). Approach 1: Use an ImageView and remoteViews.setImageViewUri() Problem: For the image to fit and look properly I need to know the exact pixel size of the widget and I have not found a way to do that. The minWidth/Height of the widget does not help. The space taken by the cells also varies from Android version to version e.g. comparing 2.1 (480x678) with 2.3 (480x633) for 4x4 cells on WVGA. And this is only the default Home app. LauncherPro, ADW etc. have different status bar heights etc. Also the image get's really big which slows down the system, lags, is prone to crashes in low mem situation. Approach 2: Use a NinePatch image which adjusts to whatever size the widget has. Problem: I couldn't find a way to set a NinePatch image. This only works with resources which are inside the apk. Not with dynamically created files. Any suggestions would be welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] What is the name of this widget?
This widget is not available in the Android SDK. You have to create your own, or try to find out if someone else has already created one. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Jan 9, 2011 at 3:28 PM, MerlinBG merli...@gbg.bg wrote: Hi, as the title says: I would like to reuse the widget in green on the attached picture, but I don't know it's name. It is part of the calendar application, used for setting time and date. 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.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: Change the background of an AppWidget
9 patch pngs should solve you problem, if I understand your problem correctly. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Jan 9, 2011 at 3:51 PM, Pent tas...@dinglisch.net wrote: I have a similar problem, would be nice if there was a standard way to query the launcher for the widget dimensions for a particular cell width/height wouldn't it ? Pent On Jan 9, 12:38 am, Mark android.eggenst...@googlemail.com wrote: I want to set the background of an appwidget at runtime with a dynamically generated image (skin) (which must fill the entire space of the widget). Approach 1: Use an ImageView and remoteViews.setImageViewUri() Problem: For the image to fit and look properly I need to know the exact pixel size of the widget and I have not found a way to do that. The minWidth/Height of the widget does not help. The space taken by the cells also varies from Android version to version e.g. comparing 2.1 (480x678) with 2.3 (480x633) for 4x4 cells on WVGA. And this is only the default Home app. LauncherPro, ADW etc. have different status bar heights etc. Also the image get's really big which slows down the system, lags, is prone to crashes in low mem situation. Approach 2: Use a NinePatch image which adjusts to whatever size the widget has. Problem: I couldn't find a way to set a NinePatch image. This only works with resources which are inside the apk. Not with dynamically created files. Any suggestions would be welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Re: Change the background of an AppWidget
They would, if there were a way to use them. As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. Do you? On Jan 9, 12:05 pm, Kumar Bibek coomar@gmail.com wrote: 9 patch pngs should solve you problem, if I understand your problem correctly. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 3:51 PM, Pent tas...@dinglisch.net wrote: I have a similar problem, would be nice if there was a standard way to query the launcher for the widget dimensions for a particular cell width/height wouldn't it ? Pent On Jan 9, 12:38 am, Mark android.eggenst...@googlemail.com wrote: I want to set the background of an appwidget at runtime with a dynamically generated image (skin) (which must fill the entire space of the widget). Approach 1: Use an ImageView and remoteViews.setImageViewUri() Problem: For the image to fit and look properly I need to know the exact pixel size of the widget and I have not found a way to do that. The minWidth/Height of the widget does not help. The space taken by the cells also varies from Android version to version e.g. comparing 2.1 (480x678) with 2.3 (480x633) for 4x4 cells on WVGA. And this is only the default Home app. LauncherPro, ADW etc. have different status bar heights etc. Also the image get's really big which slows down the system, lags, is prone to crashes in low mem situation. Approach 2: Use a NinePatch image which adjusts to whatever size the widget has. Problem: I couldn't find a way to set a NinePatch image. This only works with resources which are inside the apk. Not with dynamically created files. Any suggestions would be welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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
Re: [android-developers] Re: Change the background of an AppWidget
Oh, sorry about that. I missed those few lines. In that case, you might try setting the scale type of the image view to perhaps fitXY. But I guess, you would have tried that too. Any problems with that? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Jan 9, 2011 at 5:11 PM, Mark android.eggenst...@googlemail.comwrote: They would, if there were a way to use them. As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. Do you? On Jan 9, 12:05 pm, Kumar Bibek coomar@gmail.com wrote: 9 patch pngs should solve you problem, if I understand your problem correctly. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 3:51 PM, Pent tas...@dinglisch.net wrote: I have a similar problem, would be nice if there was a standard way to query the launcher for the widget dimensions for a particular cell width/height wouldn't it ? Pent On Jan 9, 12:38 am, Mark android.eggenst...@googlemail.com wrote: I want to set the background of an appwidget at runtime with a dynamically generated image (skin) (which must fill the entire space of the widget). Approach 1: Use an ImageView and remoteViews.setImageViewUri() Problem: For the image to fit and look properly I need to know the exact pixel size of the widget and I have not found a way to do that. The minWidth/Height of the widget does not help. The space taken by the cells also varies from Android version to version e.g. comparing 2.1 (480x678) with 2.3 (480x633) for 4x4 cells on WVGA. And this is only the default Home app. LauncherPro, ADW etc. have different status bar heights etc. Also the image get's really big which slows down the system, lags, is prone to crashes in low mem situation. Approach 2: Use a NinePatch image which adjusts to whatever size the widget has. Problem: I couldn't find a way to set a NinePatch image. This only works with resources which are inside the apk. Not with dynamically created files. Any suggestions would be welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Re: Change the background of an AppWidget
As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. As far as I see it only works with resource IDs which point to drawables in the apk. But I have files outside the apk. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Change the background of an AppWidget
I am not sure, but have you tried this method? http://developer.android.com/reference/android/widget/RemoteViews.html#setBitmap%28int,%20java.lang.String,%20android.graphics.Bitmap%29 Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Sun, Jan 9, 2011 at 5:21 PM, Mark android.eggenst...@googlemail.comwrote: As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. As far as I see it only works with resource IDs which point to drawables in the apk. But I have files outside the apk. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Re: Change the background of an AppWidget
Yes, this is my Approach 1. For that you also need to know the size, at least roughly. But it does not look nice because I can only assume the correct size so it will get stretched unevenly. Just using the emulators for 2.1 and 2.3 using the WVGA resolution I have a change from 480x678 to 480x633. Using other home apps can provide even extremer differences. Round corners are not round anymore, etc. On Jan 9, 12:44 pm, Kumar Bibek coomar@gmail.com wrote: Oh, sorry about that. I missed those few lines. In that case, you might try setting the scale type of the image view to perhaps fitXY. But I guess, you would have tried that too. Any problems with that? Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 5:11 PM, Mark android.eggenst...@googlemail.comwrote: They would, if there were a way to use them. As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. Do you? On Jan 9, 12:05 pm, Kumar Bibek coomar@gmail.com wrote: 9 patch pngs should solve you problem, if I understand your problem correctly. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 3:51 PM, Pent tas...@dinglisch.net wrote: I have a similar problem, would be nice if there was a standard way to query the launcher for the widget dimensions for a particular cell width/height wouldn't it ? Pent On Jan 9, 12:38 am, Mark android.eggenst...@googlemail.com wrote: I want to set the background of an appwidget at runtime with a dynamically generated image (skin) (which must fill the entire space of the widget). Approach 1: Use an ImageView and remoteViews.setImageViewUri() Problem: For the image to fit and look properly I need to know the exact pixel size of the widget and I have not found a way to do that. The minWidth/Height of the widget does not help. The space taken by the cells also varies from Android version to version e.g. comparing 2.1 (480x678) with 2.3 (480x633) for 4x4 cells on WVGA. And this is only the default Home app. LauncherPro, ADW etc. have different status bar heights etc. Also the image get's really big which slows down the system, lags, is prone to crashes in low mem situation. Approach 2: Use a NinePatch image which adjusts to whatever size the widget has. Problem: I couldn't find a way to set a NinePatch image. This only works with resources which are inside the apk. Not with dynamically created files. Any suggestions would be welcome. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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
Re: [android-developers] MediaPlayer StreamVideo question.
Step #1: Use lowercase http in URLs. Step #2: Don't use an emulator, use hardware. Step #3: Make sure the extension matches the actual file format. Step #4: Use LogCat (via DDMS or adb logcat) to look at any warnings that might be emitted by the multimedia subsystem. On Sat, Jan 8, 2011 at 9:25 PM, Scott Deutsch surger...@gmail.com wrote: I did what you said. Instead of a file for the local path, replaced it with HTTP://.../test.3gp .. = URI uri = Uri.parse(HTTP://./test.3gp); the file format i used was .3gp? Ignore the . I had a real domain name in there. mMediaPlayer.setDataSource(this, uri); And no luck. It does not play it. Any ideas? thanks friends. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Change the background of an AppWidget
setBitmap() I think I tried that already, but it's the same problem as using it with file URIs. It doesn't stretch properly because it's not a NinePatch, just a flat image. There is something mentioned about NinePatchChunk but I never saw anyone getting it to work. Assigning NinePatch PNGs via URI or setBitmap just results in the image being read as a normal PNG (including the black indicators) and then being stretched ignoring the NinePatch info. On Jan 9, 12:53 pm, Kumar Bibek coomar@gmail.com wrote: I am not sure, but have you tried this method? http://developer.android.com/reference/android/widget/RemoteViews.htm... Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 5:21 PM, Mark android.eggenst...@googlemail.comwrote: As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. As far as I see it only works with resource IDs which point to drawables in the apk. But I have files outside the apk. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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
Re: [android-developers] Accessing AudioManager within a class which extends BroadcastReceiver
BroadcastReceiver does not inherit from Context. AUDIO_SERVICE is a constant on Context. getSystemService() is a method on Context. Hence, you need to adjust your code to use the Context class and supplied Context object. On Sat, Jan 8, 2011 at 9:01 PM, rsnider19 rsnide...@gmail.com wrote: I am using an AlarmManager to trigger the following class so it will change the volume from say high to low: package com.test; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.media.AudioManager; public class ToRing extends BroadcastReceiver { �...@override public void onReceive(Context context, Intent intent) { AudioManager am = (AudioManager)getSystemService(AUDIO_SERVICE); } } It is saying that AUDIO_SERVICE cannot be resolved to a constant or variable. How can I access the audio service from within the broadcast receiver? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Legal questions - protecting apps from being redistributed
Hi, I have a couple of free apps up on the Google Market Place but over the last few weeks I've seen those apps appearing on alternative market places. Even though they are free, I am not really happy about this because, amongst other reasons, I want the Google Market Place to be my central point for information about my apps. My questions: - are they allowed to do this? - is there anything I can do to stop this (legally, or technically)? Thanks in advance. Regards, Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Legal questions - protecting apps from being redistributed
On Sun, Jan 9, 2011 at 7:03 AM, brindy bri...@brindy.org.uk wrote: I have a couple of free apps up on the Google Market Place but over the last few weeks I've seen those apps appearing on alternative market places. Even though they are free, I am not really happy about this because, amongst other reasons, I want the Google Market Place to be my central point for information about my apps. My questions: - are they allowed to do this? That would depend upon the licensing terms of your app. For more information, please contact qualified legal counsel. - is there anything I can do to stop this (legally, or technically)? I don't know if LVL works for free apps, but you can try it. http://developer.android.com/guide/publishing/licensing.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android developer tablet?
On Sun, Jan 9, 2011 at 1:34 AM, peter petero...@gmail.com wrote: Are there any plans to release an android dev tablet like the nexus one? You will not know the answer to that until such a thing is announced. Such a thing has not been announced. Simply monitor the Android Developers blog, and I'm sure it'll be mentioned there: http://android-developers.blogspot.com/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Change the background of an AppWidget
The problem is it does NOT look good because the scaling is unpredictably uneven. 480/678 1:1.41 480/633 1:1.32 So what is round on one screen is elongated on an other. On Jan 9, 1:12 pm, Kumar Bibek coomar@gmail.com wrote: Hmm, IF you are generating the Bitmap at runtime, and setting it as the source to an ImageView, whose scale type is fitXY, that should be ok I guess. The images will stretch and might look odd. So, you can select the maximum resolution of the image and use it. For smaller sizes, the ImageView will shrink it to fit. I can't think of any other approach. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 5:32 PM, Mark android.eggenst...@googlemail.comwrote: setBitmap() I think I tried that already, but it's the same problem as using it with file URIs. It doesn't stretch properly because it's not a NinePatch, just a flat image. There is something mentioned about NinePatchChunk but I never saw anyone getting it to work. Assigning NinePatch PNGs via URI or setBitmap just results in the image being read as a normal PNG (including the black indicators) and then being stretched ignoring the NinePatch info. On Jan 9, 12:53 pm, Kumar Bibek coomar@gmail.com wrote: I am not sure, but have you tried this method? http://developer.android.com/reference/android/widget/RemoteViews.htm... Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 5:21 PM, Mark android.eggenst...@googlemail.com wrote: As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. As far as I see it only works with resource IDs which point to drawables in the apk. But I have files outside the apk. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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
Re: [android-developers] Re: Change the background of an AppWidget
It's really too bad there is no way to query widget cell size or use it as a sizing unit. -- Kostya 09.01.2011 15:17, Mark пишет: The problem is it does NOT look good because the scaling is unpredictably uneven. 480/678 1:1.41 480/633 1:1.32 So what is round on one screen is elongated on an other. On Jan 9, 1:12 pm, Kumar Bibekcoomar@gmail.com wrote: Hmm, IF you are generating the Bitmap at runtime, and setting it as the source to an ImageView, whose scale type is fitXY, that should be ok I guess. The images will stretch and might look odd. So, you can select the maximum resolution of the image and use it. For smaller sizes, the ImageView will shrink it to fit. I can't think of any other approach. Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 5:32 PM, Markandroid.eggenst...@googlemail.comwrote: setBitmap() I think I tried that already, but it's the same problem as using it with file URIs. It doesn't stretch properly because it's not a NinePatch, just a flat image. There is something mentioned about NinePatchChunk but I never saw anyone getting it to work. Assigning NinePatch PNGs via URI or setBitmap just results in the image being read as a normal PNG (including the black indicators) and then being stretched ignoring the NinePatch info. On Jan 9, 12:53 pm, Kumar Bibekcoomar@gmail.com wrote: I am not sure, but have you tried this method? http://developer.android.com/reference/android/widget/RemoteViews.htm... Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Sun, Jan 9, 2011 at 5:21 PM, Markandroid.eggenst...@googlemail.com wrote: As written in my Approach 2, I don't see a way to use any of the RemoteViews.set...() methods with a NinePatch. As far as I see it only works with resource IDs which point to drawables in the apk. But I have files outside the apk. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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.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 -- Kostya Vasilyev -- 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] Re: Google Nexus S - Please provide as DEV phone, asap :-)
Hi I now have a Nexus S as well as a Nexus One. Nexus One has better back camera with zoom and more pixels. Nexus One has better framerate on my 2d game 58fps vs 52fps Nexus S. Nexus S has 2.3 vs 2.2 (not for long). Nexus S has front camera + gyro + nfc (nfc is not much use here without tags). Not much difference (unfortunately). I too like to test on the google dev devices. Regards On Jan 9, 8:19 pm, RobBln robert.jaemmr...@googlemail.com wrote: On 8 Jan., 21:25, Dianne Hackborn hack...@android.com wrote: That said, yes the dev devices are partly there to be a benchmark for how that platform is expected to behave. [...] I sometimes like to refer to them as Android reference devices. :) Don't you think reference devices should be publicly available? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: First attempt at LVL Licensing
Is it an existing app published before? Then make sure you have pressed Save. Also watch the version nr you are using. Some more pitfalls etc you can find here: http://ttlnews.blogspot.com/2010/11/my-experience-with-android-market.html On 8 jan, 23:55, Neilz neilhorn...@gmail.com wrote: More info. I've now put my app up onto the market account, but haven't clicked 'Publish'. Now, the license check just returns 'LICENSING RESULT : Allow the user access' every time. I have even set the test response to say 'NOT_LICENSED' but I still get the above response. Anyone have any experience with 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: First attempt at LVL Licensing
The app is new, and is a saved draft. I've just discovered a thread buried deep in this forum where a Google rep states that the testing only works with fully published apps (not drafts)... and that they would update the documentation to reflect this. That post was made in August, and the docs never were updated, so that's one irritation that caused me a lot of wasted time. Stranger still, I've given a copy of the app to another person to test, and we're both getting different responses back. I get the allowed response, he gets an unauthorized response. It all seems rather odd and considering we're supposed to be going live tomorrow, rather worrying. Thanks for the link, I'll have a read. On Jan 9, 12:59 pm, MarcoAndroid marco...@gmail.com wrote: Is it an existing app published before? Then make sure you have pressed Save. Also watch the version nr you are using. Some more pitfalls etc you can find here:http://ttlnews.blogspot.com/2010/11/my-experience-with-android-market... On 8 jan, 23:55, Neilz neilhorn...@gmail.com wrote: More info. I've now put my app up onto the market account, but haven't clicked 'Publish'. Now, the license check just returns 'LICENSING RESULT : Allow the user access' every time. I have even set the test response to say 'NOT_LICENSED' but I still get the above response. Anyone have any experience with 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] TLS socket reuse hangs on device (works in emulator)
Hi all, We're trying to reuse an existing plain socket with TLS for FTPES purposes: SSLSocket socket = (SSLSocket) ssf.createSocket(_socket_, ip, port, true); and it hangs on: socket.startHandshake(); See full code snippet below. This code works fine on emulator (Android 2.2) but it fails on NexusOne device. Creating a TLS socket from scratch (without reuse) works perfect on both. What could be the problem? Code snippet: plainSocket = _socket_; // plain socket works fine. initSslContext(); // No problem here SSLSocketFactory ssf = context.getSocketFactory(); String ip = _socket_.getInetAddress().getHostAddress(); int port = _socket_.getPort(); SSLSocket socket = (SSLSocket) ssf.createSocket(_socket_, ip, port, true); socket.setEnableSessionCreation(true); socket.setUseClientMode(true); if (protocols != null) socket.setEnabledProtocols(protocols); if (suites != null) socket.setEnabledCipherSuites(suites); socket.startHandshake(); // Hangs here Cheers. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Market console doesn't support Chrome
Hi, I installed Firefox and Chrome on my computer. I used to use FF to upload new apps into market. But I'm using Chrome to upload a new app today. I found the upload page doesn't work well in Chrome. I uploaded everything needed, but the page said no screenshots..etc.. Then I just open firefox and upload the same things, it works well. I don't know where I should report to, Market or Chrome? But I think both of them are from Google, right? They don't work well together? This is really unbelievable. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] update app without deleting DB
Simple question : I published an app (2months ago). It uses a DB to retrieve information, and the user saves some parameters in the DB. Now, I want to update my app, that means : I want to put more information in the DB but without erasing parameters set by the user. How can I do that ? 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] update app without deleting DB
On Sun, Jan 9, 2011 at 10:37 AM, Alex dalfga...@gmail.com wrote: Simple question : I published an app (2months ago). It uses a DB to retrieve information, and the user saves some parameters in the DB. Now, I want to update my app, that means : I want to put more information in the DB but without erasing parameters set by the user. How can I do that ? Write Java code to put more information in the DB but without erasing parameters set by the user. For example, if you are using SQLiteOpenHelper, increment the version number of your schema. That will cause onUpgrade() to be called in your SQLiteOpenHelper subclass the first time your app is run after the upgrade. There, you can execute whatever code you want to adjust the schema and/or data in the database. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: RPC service with notification
Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyev kmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcode tag public String getAndroidText(String conversation) throws RemoteException { NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } to my inner impl class, however, I get the following compile error... The constructor Intent(AndroidService.AndroidServiceImpl, ClassAndroidService.AndroidServiceImpl) is undefined Can someone help me do this the right way? Thanks! -- Kostya Vasilyev -- 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] Re: MediaPlayer StreamVideo question.
Ok, so now it streams the video. Thanks. But now the problem is, how can I put a buffering bar on top of the surfaceview so they know when it will play. Also, how can I make it so that it doesn't skip like crazy. Like check how muched buffered and if it is 10% resume play and if it catches up...pause. What is the best way to do that? Thanks again Mark. On Jan 9, 4:01 am, Mark Murphy mmur...@commonsware.com wrote: Step #1: Use lowercase http in URLs. Step #2: Don't use an emulator, use hardware. Step #3: Make sure the extension matches the actual file format. Step #4: Use LogCat (via DDMS or adb logcat) to look at any warnings that might be emitted by the multimedia subsystem. On Sat, Jan 8, 2011 at 9:25 PM, Scott Deutsch surger...@gmail.com wrote: I did what you said. Instead of a file for the local path, replaced it with HTTP://.../test.3gp .. = URI uri = Uri.parse(HTTP://./test.3gp); the file format i used was .3gp? Ignore the . I had a real domain name in there. mMediaPlayer.setDataSource(this, uri); And no luck. It does not play it. Any ideas? thanks friends. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: MediaPlayer StreamVideo question.
On Sun, Jan 9, 2011 at 11:20 AM, Scott Deutsch surger...@gmail.com wrote: Ok, so now it streams the video. Thanks. But now the problem is, how can I put a buffering bar on top of the surfaceview so they know when it will play. Use a ProgressBar. Put it and the SurfaceView in RelativeLayout, with the ProgressBar a later child, so it stacks on top in the Z-axis. Here is a sample project designed to demonstrate streaming video with such a custom controller: https://github.com/commonsguy/vidtry (note: I haven't tried this app in a long time, so there may be minor issues) Also, how can I make it so that it doesn't skip like crazy. Like check how muched buffered and if it is 10% resume play and if it catches up...pause. I haven't seen it skip ever, so I can't comment on that, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: RPC service with notification
I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcodetag public String getAndroidText(String conversation) throws RemoteException { NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } to my inner impl class, however, I get the following compile error... The constructor Intent(AndroidService.AndroidServiceImpl, ClassAndroidService.AndroidServiceImpl) is undefined Can someone help me do this the right way? Thanks! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- 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] SQLite Database Issues
I have the same strange story. Notably all the reports come from OTHER platforms. Will fix it with a retry after a small delay. On Fri, Oct 15, 2010 at 1:36 AM, Albert albert8...@googlemail.com wrote: Hi all, I can see from some user's logs that my app randomly gets the following SQLiteException: android.database.sqlite.SQLiteException: no such table: DietTip: , while compiling: SELECT DISTINCT tip FROM DietTip at android.database.sqlite.SQLiteProgram.native_compile(Native Method) at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java: 117) at android.database.sqlite.SQLiteProgram.init(SQLiteProgram.java: 66) at android.database.sqlite.SQLiteQuery.init(SQLiteQuery.java: 49).. It also happens often in another table that tracks the user's weight... Does anyone know a particular reason for this to be happening? It seems that it can't find the table or it can't compile the query. It has never happened to me in any of my phones. Thanks, Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: First attempt at LVL Licensing
It has been my experience that LVL CANNOT be fully tested before publishing. Like you, I found that an unpublished app returns inconsistent results. If I set the response to denied, for example, on some phones I got the correct result, and on others I did not. After I published the app, it did seem to work correctly, but of course I could only see the results on the phones I had access to. You just have to take your best shot and hope for the best. On Jan 9, 5:24 am, Neilz neilhorn...@gmail.com wrote: The app is new, and is a saved draft. I've just discovered a thread buried deep in this forum where a Google rep states that the testing only works with fully published apps (not drafts)... and that they would update the documentation to reflect this. That post was made in August, and the docs never were updated, so that's one irritation that caused me a lot of wasted time. Stranger still, I've given a copy of the app to another person to test, and we're both getting different responses back. I get the allowed response, he gets an unauthorized response. It all seems rather odd and considering we're supposed to be going live tomorrow, rather worrying. Thanks for the link, I'll have a read. On Jan 9, 12:59 pm, MarcoAndroid marco...@gmail.com wrote: Is it an existing app published before? Then make sure you have pressed Save. Also watch the version nr you are using. Some more pitfalls etc you can find here:http://ttlnews.blogspot.com/2010/11/my-experience-with-android-market... On 8 jan, 23:55, Neilz neilhorn...@gmail.com wrote: More info. I've now put my app up onto the market account, but haven't clicked 'Publish'. Now, the license check just returns 'LICENSING RESULT : Allow the user access' every time. I have even set the test response to say 'NOT_LICENSED' but I still get the above response. Anyone have any experience with 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] NoClassDefFoundError when starting an AIDL service
I have two projects, the first one has the aidl files and other classes that will be shared with the client aps, and the second one has the implementation for aidl. First project is set as a dependency for the second one, everything compiles just fine and run. But when I try to access the service from a client a get a Runtime error NoClassDefFoundError. 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): java.lang.NoClassDefFoundError: my.app.MyService$1 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at my.app.myService.init(MyService.java:37) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at java.lang.Class.newInstanceImpl(Native Method) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at java.lang.Class.newInstance(Class.java:1429) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at android.app.ActivityThread.handleCreateService(ActivityThread.java: 2940) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at android.app.ActivityThread.access$3300(ActivityThread.java:125) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at android.os.Handler.dispatchMessage(Handler.java:99) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at android.os.Looper.loop(Looper.java:123) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at java.lang.reflect.Method.invokeNative(Native Method) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at java.lang.reflect.Method.invoke(Method.java:521) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-09 18:48:28.003: ERROR/AndroidRuntime(11084): at dalvik.system.NativeStart.main(Native Method) The problem is fixed if I copy the aidl file in the second project so that the generated java interface is in the gen folder from the second project. But this is not a viable option because I have to use a build server (I don't have direct access to it) and all aidl files have to be in the first project. Anyone else had a similiar problem? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: TextView setCompoundDrawables inconsistent size
I set the drawable using xml android:drawableBottom so setCompoundDrawablesWithIntrinsicBounds should be used. I've it now also tried setting it programmatically, same result. I'am going back to using nested LinearLayout's for label and button, this is to much of a hassle. On Jan 9, 4:04 am, Romain Guy romain...@android.com wrote: You should use setCompoundDrawablesWithIntrinsicBounds() On Sat, Jan 8, 2011 at 6:40 PM, Henrik Lindqvist henrik.lindqv...@gmail.com wrote: I'am trying to use TextView's setCompoundDrawables feature because i wan't a button with a label above it. I set android:drawableBottom to my button drawable, which is a layer-list with a button background, an icon and a toggle indicator. First app launch every thing looks nice, close app, launch again and the drawables seems to have lost their padding. If I close the app and wait a few more seconds, GC runs or something, then the buttons looks ok again. Does the drawables gets altered at first launch? Doesn't the TextView set the bounds on the drawables the second launch? Very inconsistent. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- 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] create mutable Bitmap directly from file/stream?
Hi, I want to draw in a bitmap by creating a Canvas from it. Currently I use BitmapFactory.decodeStream() to load an immutable bitmap, do a bitmap.copy() to make a mutable copy, and then create the Canvas from the mutable copy. However, this means that I have two copies of the bitmap in memory at once. Its not obvious why I shouldn't be able to load the bitmap as mutable directly with BitmapFactory.decodeStream, yet I can't seem to do it. Is there any way around this? TIA, Matthew Fleming -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: create mutable Bitmap directly from file/stream?
I doubt there is, Matthew. I've been looking for this answer a long time. But if someone knows how to do this, this would be great! Please, let us know! :-) On Jan 9, 12:44 pm, Matthew Fleming mgf...@gmail.com wrote: Hi, I want to draw in a bitmap by creating a Canvas from it. Currently I use BitmapFactory.decodeStream() to load an immutable bitmap, do a bitmap.copy() to make a mutable copy, and then create the Canvas from the mutable copy. However, this means that I have two copies of the bitmap in memory at once. Its not obvious why I shouldn't be able to load the bitmap as mutable directly with BitmapFactory.decodeStream, yet I can't seem to do it. Is there any way around this? TIA, Matthew Fleming -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: onBufferingUpdate What is the progress argument
I believe it means that the MediaPlayer is currently buffering and the progress of buffering is indicated by the 'progress' variable. If it reaches 100 it means the MediaPlayer has buffered enough and it can continue playing... -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] What is the name of this widget?
Not even internal? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Market console doesn't support Chrome
On Sun, Jan 9, 2011 at 9:05 AM, Eong eong.c...@gmail.com wrote: I don't know where I should report to, Market or Chrome? Based on their track record, my money would be on it being the Market being broken (you know, again). But I think both of them are from Google, right? They don't work well together? This is really unbelievable. Google is a very large company. Many of their products might as well be from different companies. Like how Google Bookmarks and Chrome don't work well together. Or Checkout and Android. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: RPC service with notification
I set this in my Service onCreate method and then share it through a global variable. Should I create a new notification within the Impl.Stub class? Do I need to remove the old notification? Thanks again for all your help. On Jan 9, 11:35 am, Kostya Vasilyev kmans...@gmail.com wrote: I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcode tag public String getAndroidText(String conversation) throws RemoteException { NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } to my inner impl class, however, I get the following compile error... The constructor Intent(AndroidService.AndroidServiceImpl, ClassAndroidService.AndroidServiceImpl) is undefined Can someone help me do this the right way? Thanks! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups
[android-developers] Re: RPC service with notification
Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyev kmans...@gmail.com wrote: I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcode tag public String getAndroidText(String conversation) throws RemoteException { NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } to my inner impl class, however, I get the following compile error... The constructor Intent(AndroidService.AndroidServiceImpl, ClassAndroidService.AndroidServiceImpl) is undefined Can someone help me do this the right way? Thanks! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- 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
Re: [android-developers] Re: RPC service with notification
How are you creating notification ? 09.01.2011 22:33, Jackie G. пишет: Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyevkmans...@gmail.com wrote: I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.comwrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcode tag public String getAndroidText(String conversation) throws RemoteException { NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } to my inner impl class, however, I get the following compile error... The constructor Intent(AndroidService.AndroidServiceImpl, ClassAndroidService.AndroidServiceImpl) is undefined Can someone help me do this the right way? Thanks! -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- 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] Re: Making cross-thread blocking/sync calls
Yes. The assumption here is that you are not interrupting it yourself (there's no need here), and someone else interrupting it would be bad. You could log it, but it's a rather remote possibility. If, on the other hand, you're making a library, you might want to take a different option at that point, perhaps setting the flag as complete, or perhaps rethrowing the exception. On Jan 9, 12:22 am, Kostya Vasilyev kmans...@gmail.com wrote: 08.01.2011 10:37, Bob Kerns пишет: Memorize this pattern! If you're using notify/wait, it should ALWAYS look something like this. Always - except unless you actually want to respect the meaning of InterruptedException and unwind the code around wait() to the caller, canceling the operation. -- Kostya Vasilyev -- 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] Re: First attempt at LVL Licensing
I first tested with the Android LVL example app and had no problems. Inconsistent results might be due to other things such as newer SDK emulators seem to need faster machines to run on and whether they are getting a reliable Internet connection. I had a devil of a time getting a 2.3 emulator to come up with the Internet access to work. On a 2.4 Ghz Linux box it may take several starts and a number of minutes for each try. On a 4 core 64-bit Windows 7 less than a minute. And apparently Google has been buying fast boxes for QA so they don't see the problem. On Jan 9, 9:08 am, John Gaby jg...@gabysoft.com wrote: It has been my experience that LVL CANNOT be fully tested before publishing. Like you, I found that an unpublished app returns inconsistent results. If I set the response to denied, for example, on some phones I got the correct result, and on others I did not. After I published the app, it did seem to work correctly, but of course I could only see the results on the phones I had access to. You just have to take your best shot and hope for the best. On Jan 9, 5:24 am, Neilz neilhorn...@gmail.com wrote: The app is new, and is a saved draft. I've just discovered a thread buried deep in this forum where a Google rep states that the testing only works with fully published apps (not drafts)... and that they would update the documentation to reflect this. That post was made in August, and the docs never were updated, so that's one irritation that caused me a lot of wasted time. Stranger still, I've given a copy of the app to another person to test, and we're both getting different responses back. I get the allowed response, he gets an unauthorized response. It all seems rather odd and considering we're supposed to be going live tomorrow, rather worrying. Thanks for the link, I'll have a read. On Jan 9, 12:59 pm, MarcoAndroid marco...@gmail.com wrote: Is it an existing app published before? Then make sure you have pressed Save. Also watch the version nr you are using. Some more pitfalls etc you can find here:http://ttlnews.blogspot.com/2010/11/my-experience-with-android-market... On 8 jan, 23:55, Neilz neilhorn...@gmail.com wrote: More info. I've now put my app up onto the market account, but haven't clicked 'Publish'. Now, the license check just returns 'LICENSING RESULT : Allow the user access' every time. I have even set the test response to say 'NOT_LICENSED' but I still get the above response. Anyone have any experience with 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: RPC service with notification
private Notification notification; private static final int NOTIFICATION_ID=1; public void onCreate(){ super.onCreate(); NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notification = new Notification(R.drawable.stat_notify_chat, Yo Mama, System.currentTimeMillis()); ... } On Jan 9, 2:39 pm, Kostya Vasilyev kmans...@gmail.com wrote: How are you creating notification ? 09.01.2011 22:33, Jackie G. пишет: Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyevkmans...@gmail.com wrote: I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcode tag public String getAndroidText(String conversation) throws RemoteException { NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } to my inner impl class, however, I get the following compile error... The constructor
Re: [android-developers] Re: RPC service with notification
onCreate looks good. A couple things jumped at me just now in your original code: Intent notificationIntent = new Intent(AndroidService.this,*AndroidServiceImpl.class*); The second parameter is not a class known to Android, so the Intent is not valid. Just because you can use a Java .class reference here, doesn't mean it's meaningful to Android. PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); Here you're implying that notificationIntent refers to an Activity, whereas it doesn't refer to anything Android, even a service. I don't know how much checking Android does on this and when, but these intents are not valid. Make an Activity in your project (you probably already do from Eclipse's Android project wizard) and try changing the code like this: Intent notificationIntent = new Intent(AndroidService.this,*TestActivity.class*); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); ... rest is the same ... -- Kostya 09.01.2011 23:47, Jackie G. пишет: private Notification notification; private static final int NOTIFICATION_ID=1; public void onCreate(){ super.onCreate(); NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notification = new Notification(R.drawable.stat_notify_chat, Yo Mama, System.currentTimeMillis()); ... } On Jan 9, 2:39 pm, Kostya Vasilyevkmans...@gmail.com wrote: How are you creating notification ? 09.01.2011 22:33, Jackie G. пишет: Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyevkmans...@gmail.comwrote: I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry if there is some secretcodetag public
Re: [android-developers] What is the name of this widget?
On Sun, Jan 9, 2011 at 11:22 AM, MerlinBG merli...@gbg.bg wrote: Not even internal? There is no such widget in the current platform, internal or external. -- 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] howto receive all broadcast messages
Hello, According to the SDK documentation, it should be possible to create a BroadcastReceiver that receives all messages. It looks like you create an intent-filter with a blank activity entry. I have not been able to find an example of this. Can someone problem a sample? Also, is there a way to provide wildcard intents or do you need to itemize each specific intent? TIA -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] What is the name of this widget?
On 9 January 2011 20:34, Kostya Vasilyev kmans...@gmail.com wrote: Someone wrote a component just like this for Android, and made it accessible - I believe it's somewhere up on Google Code, with sources. It's called something like iPhone style wheel. http://code.google.com/p/android-wheel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SGS Lag while auto-brightness on?
Hi there, Since the release of the game Squibble, we've had reports from some users with Samsung Galaxy S phones about fairly serious lag during gameplay. Not all SGS users report this, but a large number do - enough that it's clear that there is a real problem with the game on the SGS. One customer recently reported that the game was consistently laggy when auto-brightness was turned ON, but when he turned it OFF, the game ran smoothly. He claims that this is reproducible, but I don't currently have access to a SGS phone that experiences the lag issue, so I can't test this out. I'm not sure why auto-brightness would be related to the performance of the game, but it's the only solid lead that I have to go on right now, which brings me to my question: Would someone out there be willing to verify this customer's claim on their own SGS? It would have to be one of the SGS phones that experience lag (not all of them seem to). There is a free version of Squibble available on the market. Thanks in advance to anyone who can help me out! -Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Change the background of an AppWidget
On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#minHeight 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: Change the background of an AppWidget
That's not it, this is backwards - the widget telling the home screen its minimal size. The size here is specified in units that are independent of launcher version or its actual implementation (replacement). -- Kostya 10.01.2011 0:21, String ?: On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#minHeight 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 -- Kostya Vasilyev -- 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: Change the background of an AppWidget
This is not simple. Even for a single widget instance in a specific widget host, its dimensions can (and typically do) change slightly when the screen switches between landscape and portrait. On Sun, Jan 9, 2011 at 1:26 PM, Kostya Vasilyev kmans...@gmail.com wrote: That's not it, this is backwards - the widget telling the home screen its minimal size. The size here is specified in units that are independent of launcher version or its actual implementation (replacement). -- Kostya 10.01.2011 0:21, String пишет: On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#minHeight 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 -- Kostya Vasilyev -- 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 -- 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: Change the background of an AppWidget
I am fine with that. I have different images and layouts for each orientation. But please tell me if there is a way to determine the exact size. Would be glad to have different values for portrait/landscape. On 9 Jan., 22:39, Dianne Hackborn hack...@android.com wrote: This is not simple. Even for a single widget instance in a specific widget host, its dimensions can (and typically do) change slightly when the screen switches between landscape and portrait. On Sun, Jan 9, 2011 at 1:26 PM, Kostya Vasilyev kmans...@gmail.com wrote: That's not it, this is backwards - the widget telling the home screen its minimal size. The size here is specified in units that are independent of launcher version or its actual implementation (replacement). -- Kostya 10.01.2011 0:21, String пишет: On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it http://developer.android.com/reference/android/appwidget/AppWidgetPro... 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 -- Kostya Vasilyev -- 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%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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] howto receive all broadcast messages
On Sun, Jan 9, 2011 at 4:03 PM, A Curtis ajcurti...@gmail.com wrote: According to the SDK documentation, it should be possible to create a BroadcastReceiver that receives all messages. Um, no. It looks like you create an intent-filter with a blank activity entry. I have not been able to find an example of this. That would be because it doesn't work. Also, is there a way to provide wildcard intents or do you need to itemize each specific intent? I have no idea what this means, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Change the background of an AppWidget
Exactly. Causing even more trouble if you're trying to make widgets that: - Fit into the home screen grid; - Look good; - Don't take up the entire screen width. Replacement home screens and different Android versions add even more uncertainty (Mark posted exact numbers on how 2.3 vs. previous versions allocate real estate for widgets vs. other home screen elements). I think this has gotten to the point where some assistance from the framework is needed. My suggestions would be: - A way to query home screen cell size used by the launcher that created the widget; - A sizing unit that equals one cell in the appropriate dimension, which could be used in widget layout xml's. -- Kostya 10.01.2011 0:39, Dianne Hackborn пишет: This is not simple. Even for a single widget instance in a specific widget host, its dimensions can (and typically do) change slightly when the screen switches between landscape and portrait. On Sun, Jan 9, 2011 at 1:26 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: That's not it, this is backwards - the widget telling the home screen its minimal size. The size here is specified in units that are independent of launcher version or its actual implementation (replacement). -- Kostya 10.01.2011 0:21, String пишет: On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it http://developer.android.com/reference/android/appwidget/AppWidgetProviderInfo.html#minHeight 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 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 Vasilyev -- 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 -- 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 -- Kostya Vasilyev -- 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] Waiting for debugger force close (when USB is not attached)
Hi All, My app is in debuggable mode. On some occasions it crashes with the message: Waiting for debugger to attach... This happens when my Tmobile G2 is not attached to computer. When I plug inthe USB the message goes away. Does anyone come across this problem with their app? Regards, AK -- You received this message because you are subscribed to the Google Groups Android Developers group. 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's new in honeycomb?
I would like to know if our applications written for 2.2 and 2.3 tablets will work on honeycomb without modifications. On Jan 7, 1:27 am, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 6, 2011 at 3:39 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: Obviously this new android will grant compatibility to olter apps right? You may have seen the numerous developer blogs posts on preparing for larger screens and such. :) -- 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] Waiting for debugger force close (when USB is not attached)
Did you select your app to be debugged in the Development app preferences? (Same place you can set animation speed etc.) It is just that setting that causes an app to wait for a debugger (or being explicitly launched that way from adb like the dev tools do.) On Sun, Jan 9, 2011 at 2:06 PM, akay ak.kiet...@gmail.com wrote: Hi All, My app is in debuggable mode. On some occasions it crashes with the message: Waiting for debugger to attach... This happens when my Tmobile G2 is not attached to computer. When I plug inthe USB the message goes away. Does anyone come across this problem with their app? Regards, AK -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: What's new in honeycomb?
We try hard to not break apps in newer versions of the platform, as long as they are written correctly. On Sun, Jan 9, 2011 at 2:40 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: I would like to know if our applications written for 2.2 and 2.3 tablets will work on honeycomb without modifications. On Jan 7, 1:27 am, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 6, 2011 at 3:39 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: Obviously this new android will grant compatibility to olter apps right? You may have seen the numerous developer blogs posts on preparing for larger screens and such. :) -- 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
Re: [android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.
Hi Tim, sorry for the delayed answer. On Mon, Dec 27, 2010 at 1:55 PM, Tim H. timho...@gmail.com wrote: Preview 2 is much improved - being able to drag views up and down the list (and into child layouts) is great, no need for the up/down button now. Again, can still use some work, but it's getting back to the point where I am comfortable using drag and drop, but able to do things manually now. Here's some frustrating things I would like to get see fixed, which may relate to the tools or integration with Ecliipse: * Refactoring If I rename something, all references to it should be updated This is in the plan, we want full refactoring across Java and XML for resources. * Other Properties in the right-click menu I could take off the stinking property window completely, if all custom properties (like references or resources) could be picked from here - this is already done for things like layout_width (Other...) - resource references/properties could be done the same way, (Select Resource..) This is in Preview3, and personally I don't like it too much. There's too much in there. I think the better option is to fix the properties view to not suck which we have plans for too. * Property state If you move from one view to the other, you get pushed back to the top of the property window. Especially if I am editing a property that every one of the views I click on has, this should not happen... my property window should stay focused on the same property for the new view. It does this *some* times, but the times it doesn't is frustrating I think the issue is when moving to a view of a different class. We should do something to try to keep (some) of the same properties on screen but it's never going to work perfectly for all cases. * Resource Chooser (for String Properties) Very frustrating when you have any more than about 100+ strings, say using them for tags, and you need to select one from this - it loads the list of resources and resets back to the top of the list - every time. You can either try to scroll down the list and quickly click your item, or wait for the whole list to load, reset to the top, then scroll down to your item - this is a lot of wasted time. I could just manually type the string (@string/whatever), but I'd prefer to pick from a (quicker) list. That's a good feedback. We should definitively improve things there. We have plan to fully rewrite this dialog anyway, so we'll see when we get there. Since we didn't have a bug open for this I'll create one: http://code.google.com/p/android/issues/detail?id=13875 * Simultaneous Viewing of MultiRes Layouts I'd really like to see a way to view multiple layouts simultaneously (i.e. compare my HVGA and WVGA side by side) Do you mean when editing? We would like to have a way to preview all variations of a layout so that you can compare them. Doing it during editing is mostly going to be challenging with regards to screen real estate, but should be doable. http://code.google.com/p/android/issues/detail?id=13876 * Merging Layout Changes Even more, I'd like to see a way to make it much easier to work with multi-res layouts. Currently, if I add a view to one layout, I have to add it to all layouts that it will apply to. For example: I have customized version of: res/layout/main.xml res/layout-land/main.xml res/layout-large/main.xml res/layout-ldpi/main.xml If I want to add a view, assuming it would be added to all layouts, I have to either add it once for each version of my view, and set all the properties each time - or (try to) copy and paste it to each layout, although copy and paste needs a lot of improvements still. This is extremely challenging because either we're too cautious and it'll never happen or we do it too often and it won't do what you want either. I think a better solution is to use the include tag. You'll see in ADT 9.0 preview 3 we have a way to extract part of a layout into a new layout to be extracted. It doesn't (yet) support also updating alternate version of the layout, but we'll add that. In ADT 9.0 you'll also have improved support for include tag which will make them a lot easier to work with. * Deprecated/Newer Feature Warnings As developers, we want to make things compatible for as long as possible, so it would be helpful if the tools pointed out if we are using things that may not work prior to x.x - such as new properties that are added/removed/etc. We do get warnings for deprecated properties (in the property window), but that is about it. That's a good point. I think devs often compile against a newer versions to have access to new resource items (or manifest elements), but want to target previous versions. Something that tell them that some used attributes will be ignored on previous versions would be useful. http://code.google.com/p/android/issues/detail?id=13874 Xav -- Xavier Ducrohet Android SDK Tech Lead Google Inc.
[android-developers] Custom Keyboard for an App
Hello, I have created a simple custom keyboard based of the SoftKeyboard Example in the Android SDK. Assuming the user allows the keyboard to be used, I would like the following behavior: My app: My keyboard All others: Default keyboard Is there any kind of intent-filter for my service I can use to accomplish this? Perhaps some logic I can use within my app to look at all the available keyboards and pick the right one to use? On more of a design note I read this post: http://groups.google.com/group/android-developers/browse_thread/thread/64b646a5a016868b/3f6ba5c8a593492d?lnk=gstq=custom+keyboard# This leads me to believe if I want a keyboard with custom keys for my app I should not leverage this framework at all? Lets say I have a UI with several EditText fields (text, numeric, and then custom) and I want to fill each out. Closing the default keyboard, opening another UI doesn't seem like a smooth user experience to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: c2DM error when third-party server sends data to push
Hi Jose, No luck for me I guess. I remove the '\n' from the Auth= value and followed the advice you had given but I got the following response: Jan 9, 2011 6:18:47 PM org.apache.http.impl.client.DefaultRequestDirector handleResponse WARNING: Authentication error: Unable to respond to any of these challenges: {} HTTP/1.1 401 Unauthorized Content-Type: text/html; charset=UTF-8 Date: Mon, 10 Jan 2011 00:18:57 GMT Expires: Mon, 10 Jan 2011 00:18:57 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE Transfer-Encoding: chunked HTML HEAD TITLEUnauthorized/TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 H1Unauthorized/H1 H2Error 401/H2 /BODY /HTML Not sure how to get this thing working. Nagaraj On Sun, Jan 9, 2011 at 12:27 AM, Nagaraj Ramarao nraj.tes...@gmail.comwrote: Hi Jose, Happy New Year 2011! No I haven't got back to testing this yet. I am busy with some other related issue. Hopefully I will be able to fix it soon before I can fix and test this issue. Thanks for your suggestions. I will try them as soon as I get a chance. I will keep you posted. Regards, Nagaraj On Mon, Jan 3, 2011 at 9:44 AM, Jose Ignacio Gil Jaldo naranj...@gmail.com wrote: Hi Nagaraj, I made it work... The point is: what are you sending as Auth token? the whole response that you got from /ClientLogin? or just the Auth= section? (Without the Auth=). You have to send the second one. If you're already doing it that way, try removing all \n in that String. You will also have to disable expect:continue in http requests (it's something that sends only the headers and if it's ok, continues sending the body). To do so: HttpParams params = new BasicHttpParams(); HttpProtocolParams.setUseExpectContinue(params, false); HttpClient httpclient = new DefaultHttpClient(params); That way it worked for me... On Jan 3, 11:25 am, Jose Ignacio Gil Jaldo naranj...@gmail.com wrote: Hi Nagaraj, could you make it work? I also tried downloading sources from google examples (JumpNote and Google2Chrome) and I couldn't make them work due to Authentication error (I think it could be related to something that Nasif Nooruden pointed you out about trimming the Auth string). However in my code, I've tried trimming the string and then I get 401 - UnAuthorized (I suppose it is because I have wrongly changed the auth string). Could it be an Apache HTTP related issue? But for me the most strange thing is that I can see the header in my POST request and the value of Content-Length is the same as the length of the POST parameters (and I have no querystring parameters). On Dec 27 2010, 6:18 pm, Jose Ignacio Gil Jaldo naranj...@gmail.com wrote: I am having the same problem as you and I think it's not my mistake I have checked the tcpdump (to do it I changed from https to http to have plain text). POST /c2dm/send HTTP/1.1 Authorization: GoogleLogin auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG- pTSPl07dQWCwM2tNSnbFCS6FO- Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO- eHFXp1UsCE6FM6mQ LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS- iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq- TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T- NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI- D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl-- eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs Content-Type: application/x-www-form-urlencoded Content-Length: 209 User-Agent: Jakarta Commons-HttpClient/3.1 Host: android.apis.google.com registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz- i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfEcollapse_key=12345data.receiver=1234data.source=12345data.message=holaHTTP/ 1.0411Length Required Content-Type: text/html; charset=UTF-8 Content-Length: 1363 Date: Mon, 27 Dec 2010 16:30:22 GMT Server: GFE/2.0 htmlhead meta http-equiv=content-type content=text/html;charset=utf-8 title411Length Required/title style!-- body {font-family: arial,sans-serif} div.nav {margin-top: 1ex} div.nav A {font-size: 10pt; font-family: arial,sans-serif} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} div.nav A,span.big {font-size: 12pt; color: #cc} div.nav A {font-size: 10pt;
[android-developers] Re: What is the name of this widget?
Why not use something that provides the same results, yet with a more intuitive user interface? i.e. DatePicker http://developer.android.com/resources/tutorials/views/images/hello-datepicker.png http://developer.android.com/resources/tutorials/views/hello-datepicker.html On Jan 10, 8:03 am, Marcin Orlowski webnet.andr...@gmail.com wrote: On 9 January 2011 20:34, Kostya Vasilyev kmans...@gmail.com wrote: Someone wrote a component just like this for Android, and made it accessible - I believe it's somewhere up on Google Code, with sources. It's called something like iPhone style wheel. http://code.google.com/p/android-wheel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What's new in honeycomb?
And you all have done a fantastic job at that. However, I'm not a fan of boxing an app for large screens. I would much prefer an app to be expanded to the full screen size and look a little pixelated, then only take up a small section of the screen. ...apologies that this comment is off topic. On Jan 10, 9:44 am, Dianne Hackborn hack...@android.com wrote: We try hard to not break apps in newer versions of the platform, as long as they are written correctly. On Sun, Jan 9, 2011 at 2:40 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: I would like to know if our applications written for 2.2 and 2.3 tablets will work on honeycomb without modifications. On Jan 7, 1:27 am, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 6, 2011 at 3:39 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: Obviously this new android will grant compatibility to olter apps right? You may have seen the numerous developer blogs posts on preparing for larger screens and such. :) -- 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 -- 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: RPC service with notification
Thanks so much for taking so much time to try and help me out. Here is how I create the Notification private Notification notification; private static final int NOTIFICATION_ID=1; protected Context context; @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return new AndroidServiceImpl(); } @Override public void onCreate(){ super.onCreate(); NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); I think the real problem is with the context in the Impl. Can I even get an application context from the impl? Should this be passed to the service from the application? Can it be grabed from AndroidService? public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); This is for an open source class I am teaching so I can create a Google project tomorrow if you still want to help. That way you can see the whole code. On Jan 9, 2:39 pm, Kostya Vasilyev kmans...@gmail.com wrote: How are you creating notification ? 09.01.2011 22:33, Jackie G. пишет: Also double checked and it is hitting the breakpoint. On Jan 9, 11:35 am, Kostya Vasilyevkmans...@gmail.com wrote: I don't see code in getAndroidText that would initialize notification. It should be something like: notification = new Notification(R.drawable.status_icon, Hello, System.currentTimeMillis()); And does getAndroidText really get called? You can verify by setting a breakpoint. -- Kostya 09.01.2011 19:03, Jackie G. пишет: Kostya, Thanks for the advice I did as you have said and everything compiles. There is still a problem, however, the notification manager does not show the updates I am expecting. Here is my Service Impl public class AndroidServiceImpl extends IAndroidService.Stub{ public String getAndroidText(String conversation) throws RemoteException { // TODO Auto-generated method stub NotificationManager currentManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); Context context = getApplicationContext(); CharSequence contentTitle = Sogeti; CharSequence contentText = This is a message; Intent notificationIntent = new Intent(AndroidService.this, AndroidServiceImpl.class); PendingIntent contentIntent = PendingIntent.getActivity(AndroidService.this, 0, notificationIntent, 0); notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent); currentManager.notify(NOTIFICATION_ID, notification); return Android Services are Fun!; } } And the parts of the activity that call the service... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindService(new Intent(com.sogeti.walkthrough.service.ANDROID_SERVICE), serConn, Context.BIND_AUTO_CREATE); serviceBtn = (Button)findViewById(R.id.serviceBtn); serviceBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { callService(); } }); } private void callService(){ try{ String text = androidService.getAndroidText(Test); String other = test; } catch(NullPointerException npe){ //TODO: Log Null pointer } catch(RemoteException rme){ //TODO: log errors } } On Jan 8, 3:05 pm, Kostya Vasilyevkmans...@gmail.com wrote: Intent(Context context, Class cls) needs a Context as first parameter, which AndroidService.AndroidServiceImpl is not :) I see you have a variable called context, you can probably use that, or use standard Java notation AndroidService.this to refer to the enclosing class instance, which as far as I can see, is a Service, which is a Context. -- Kostya 08.01.2011 22:55, Jackie G. пишет: Hi everyone, I am looking for someone to help me with a simple RPC service. What I want to do is create a notification message once the service is started and every time the RPC interface is called I want to update the notification. Creating the notification works but when I add the following... P.S. new to GGs so sorry
Re: [android-developers]How to Integrate cryptsetup package with android source code
On Sat, Jan 8, 2011 at 6:47 PM, mahesh singh mahesh.cs2...@gmail.comwrote: i need help to solve these type of error . Try a group dedicated to building or modifying the source code. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Zoom on canvas.drawLine(), is that possible?
On Sat, Jan 8, 2011 at 7:39 PM, kahken kah...@gmail.com wrote: How do I implement this? By doing a lot of math. And by programming. If you want a better, more detailed answer, you'll have to ask a better, more detailed question. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: What's new in honeycomb?
It depends on how your app is setup. Depending on how applications declare how they support multiple screens and densities the app might be boxed, scaled or simply fill the screen and rely on layout to look correct. On Sun, Jan 9, 2011 at 6:09 PM, Craig Mitchell craig...@gmail.com wrote: And you all have done a fantastic job at that. However, I'm not a fan of boxing an app for large screens. I would much prefer an app to be expanded to the full screen size and look a little pixelated, then only take up a small section of the screen. ...apologies that this comment is off topic. On Jan 10, 9:44 am, Dianne Hackborn hack...@android.com wrote: We try hard to not break apps in newer versions of the platform, as long as they are written correctly. On Sun, Jan 9, 2011 at 2:40 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: I would like to know if our applications written for 2.2 and 2.3 tablets will work on honeycomb without modifications. On Jan 7, 1:27 am, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 6, 2011 at 3:39 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: Obviously this new android will grant compatibility to olter apps right? You may have seen the numerous developer blogs posts on preparing for larger screens and such. :) -- 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 -- 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 -- 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
Re: [android-developers] Need help in using DRM protection module for a ebook reader project.
On Sat, Jan 8, 2011 at 11:43 PM, sunil deshpande.su...@gmail.com wrote: So I want to know is there any already available module in Android SDK so that directly I can use the module. Nope, AFAIK. If some one has already used DRM module in their project, please send me sample code to use that. Realistically, the likelihood of someone sharing their DRM solution on this list is near zero. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application Back button not working
On Sun, Jan 9, 2011 at 2:02 AM, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Did i do something wrong or is it android SDK ?? Without more information, if those are the options you're presenting, then you did something wrong. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Launching an application from a email. Is that possible?
interesting. so I made that call got the string back, and plugged that string into here -- a href=intent:#Intent;a...Test Link/a and it still tried to browse to that page within the browser... On Jan 8, 12:21 pm, Dianne Hackborn hack...@android.com wrote: There is no need to play tricks with schemes and intent filters matching hosts and paths and such. Just use this Intent.toUri() method to turn the actual Intent you want (such as one with a custom action of yours and the package set to your app's package name) into a URI you can use else where such as in a web page: http://developer.android.com/reference/android/content/Intent.html#to...) http://developer.android.com/reference/android/content/Intent.html#to...) On Sat, Jan 8, 2011 at 8:00 AM, sdphil phil.pellouch...@gmail.com wrote: okay, yeah, doesn't work -- 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:scheme=http/ data android:host=www.mycompany.com/ data android:path=subpath/ data android:mimeType=mycompany/test/ /intent-filter And my html looks like this: a href=http://www.mycompany.com/subpath?arg=1; mimetype=mycompany/testTest Link/a When I click on that link in the phone's browser, it tries to navigate to a page within the browser instead of launching my app... And in the logcat window, I can see the intent, and everything looks fine except for the component: cmp=com.android.browser/.BrowserActivity On Jan 8, 7:12 am, sdphil phil.pellouch...@gmail.com wrote: okay, i finally got this to work, but it will only work if i use a unique scheme. if I try to do it without a standard http scheme, then i can't get it to work -- even if I specify mimeType. On Jan 7, 8:01 am, Kumar Bibek coomar@gmail.com wrote: I think yes. http://thinkandroid.wordpress.com/2010/02/02/custom-intents-and-broad. .. But if it will work on the gmail app, or any other app is a question that I am not sure of (but most probably you should be able to do this). Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Fri, Jan 7, 2011 at 9:19 PM, Parag parag.bhag...@cgi.com wrote: Hi All, I am looking for a way to launch an application from a link sent in an email? Is that possible? The application i am developing is basically a work order application which is installed on the device. If a new work order comes an email will be sent to the registered email address and that email will havea link to launch the application. Let me know your views. Thanks, Parag -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- 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: Custom Keyboard for an App
Thanks for the help. I would like to modify the keyboard for certain UI's within my app and inherent the functionality of the Android soft keyboard. Could you point me to any posts or documentation that might help? On Jan 9, 4:21 pm, Dianne Hackborn hack...@android.com wrote: Hi, no of this keyboard is only for your app, this is really not what the IME architecture is for, which is for separate input methods to be implemented independently of applications. On Sun, Jan 9, 2011 at 4:12 PM, Justin Glaeser justin.glae...@gmail.comwrote: Hello, I have created a simple custom keyboard based of the SoftKeyboard Example in the Android SDK. Assuming the user allows the keyboard to be used, I would like the following behavior: My app: My keyboard All others: Default keyboard Is there any kind of intent-filter for my service I can use to accomplish this? Perhaps some logic I can use within my app to look at all the available keyboards and pick the right one to use? On more of a design note I read this post: http://groups.google.com/group/android-developers/browse_thread/threa... This leads me to believe if I want a keyboard with custom keys for my app I should not leverage this framework at all? Lets say I have a UI with several EditText fields (text, numeric, and then custom) and I want to fill each out. Closing the default keyboard, opening another UI doesn't seem like a smooth user experience to me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] resource not found when building application for passion
Hi, I have a new application. If I build it for generic, and install it to the device, it works fine without any issue. If I build it for passion, it would show drawable resource not found when Inflating XML layout. Did I miss to set something? 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] Need help in using DRM protection module for a ebook reader project.
On Sunday, January 9, 2011 11:43:11 AM UTC+6, Sunil Deshpande wrote: Hi, I am trying to develop ebook reader application with DRM content protection for the each book downloaded. So I want to know is there any already available module in Android SDK so that directly I can use the module. So please help me with more information. If some one has already used DRM module in their project, please send me sample code to use that. DRM is mostly enforced on server side. Not in client side. Server will decide from your client credentials (may be authentication token) whether he is allowed to be served that content or not. First implement a DRM in server, then in client. Search in google, you will find many solutions to implement in server. When you are looking for DRM, I guess there is associated revenue. So, I would suggest you to go for some proven commercial technology (if the price fits in your business). You can go for open source solutions (I am not sure whether some open source DRM solution exists or not), depending on your business model. http://www.tinhat.com/ebooks_epublishing/epublishers_drm.html http://www.adobe.com/products/contentserver/ Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Zoom on canvas.drawLine(), is that possible?
Yeah if you explain it better I bet I can answer your question because I'm doing alot of stuff like this right now. On Jan 9, 2011 9:36 PM, TreKing treking...@gmail.com wrote: On Sat, Jan 8, 2011 at 7:39 PM, kahken kah...@gmail.com wrote: How do I implement this? By doing a lot of math. And by programming. If you want a better, more detailed answer, you'll have to ask a better, more detailed question. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.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] Zoom on canvas.drawLine(), is that possible?
Scale the entire canvas, On Jan 8, 2011 8:39 PM, kahken kah...@gmail.com wrote: Hi guys, I have a view object with series of lines drawn on it by using canvas.drawLine(). However, the lines were too big to be fitted on the screen. So, the lines have to be scaled down and user can zoom in and zoom out on the lines. How do I implement this? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] resource not found when building application for passion
You really need to provide more information. Like the resource it's complaining about, how your files are laid out, and the layout in question, for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does Market support installing multiple apks
Hi, My application contains several apks. I'd like upload my app to android Market. If user download my app, can all of these apks be installed? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does Market support installing multiple apks
1 apk per application 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
Re: [android-developers] resource not found when building application for passion
I guess you are using some images/resources from the SDK. If the particular resource is not available on the device's build, you would get this error. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Jan 10, 2011 at 8:57 AM, raja yunjung.ch...@gmail.com wrote: Hi, I have a new application. If I build it for generic, and install it to the device, it works fine without any issue. If I build it for passion, it would show drawable resource not found when Inflating XML layout. Did I miss to set something? 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.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] Re: Application Back button not working
You should look into your code and verify that you emailed yourself the latest code (and not a backup from few days earlier). If you believe that the code for the back button event is there but not working exists, manually open the file and find that code. If you can find it, put a break point there and debug. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Does Market support installing multiple apks
On Sun, Jan 9, 2011 at 10:41 PM, xeagle xeagle...@gmail.com wrote: My application contains several apks. That doesn't make sense and I don't see how that's actually possible possible. I'd like upload my app to android Market. In the Android Market one app is represented by one APK file. If user download my app, can all of these apks be installed? The user can download one APK at a time. You can then ask them to download more if your strategy requires it. However, you are pretty much guaranteeing confusing, annoyance, and a very low rating for yourself. Good luck. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Application Back button not working
The code is there and is still running fine on my office machine. But on other machines it is not. The back button has simple intent call defined to the home.class. Its weird the code working on one machine and not on other On Mon, Jan 10, 2011 at 10:35 AM, Sarwar Erfan erfanonl...@gmail.comwrote: You should look into your code and verify that you emailed yourself the latest code (and not a backup from few days earlier). If you believe that the code for the back button event is there but not working exists, manually open the file and find that code. If you can find it, put a break point there and debug. Regards Sarwar Erfan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: NFC Secure Element
Hi Nemik * I have small doubt with current implementation. Is SmartMX a Secure Element ?If so can you give me examples? * I have checked libnfc-nxp , enabling P2P parameter was at phnfcconfig.h. what needs to be done to enable Secure element? what are MifarePlus, Desfire, Topaz . Is it a Card type or Secure Element? * Also where is the general read-write methods for entry of Secure element. All I can see is phLibNfc_SE.c is methods for getting list of secured element, selecting secure element, deselecting. * But method for exchange of data is not present. Can you tell me where can I find this? * In libnfc-nxp There are files like phFriNfc_NdefMap.c, phFriNfc_MifareULMap.c, phFriNfc_TopazMap.c, phFriNfc_TopazDynamicMap.c, phFriNfc_DesfireMap.c, phFriNfc_FelicaMap.c. Can you tell me what these files are used for. The current comments in the file do not provide sufficient information * I am trying to use Wired Mode, Hence phHciNfc_WI.c will be used to communicate between Controller and Secure element right? Please advice. Regards, Ajith Hi On Sun, Jan 9, 2011 at 1:00 AM, nemik ne...@nemik.net wrote: I was able to enable a secure element the other day by messing around with this external/libnfc-nxp library. I enabled SMX (SmartMX) in the config headers, and upon booting and monitoring `adb logcat` during boot I saw 1 secure elements (a SmartMX one) had been enabled. I was then able to change the mode in NfcService.java to card emulation mode. The Nexus S is now emulating a MiFare Classic 4k card. However, I am not able to read sectors from the card directly. I've been trying to use the micmd tool to do that but things act pretty strangely. For example, I tried to read block 0 and micmd tells me Could not read the data block! Tag halted, reconnecting... but what's even stranger is that at that point, 'adb logcat' shuts itself off. As if that read command somehow interfered with USB or logging? However trying `a` commands to authenticate in micmd always works for some reason and it'll even pretent to write and persist data to blocks; but of course that data never actually gets persisted to the emulated card. Maybe this is a bug in micmd? Does anyone know if the Nexus S hardware (or its PN544 NFC chipset) even contains a hardware secure element like SmartMX? I tried also enabling UICC but that didn't seem to work at all and NFC service wouldn't even start in that case. Plus my SIM card is MANY years old and not sure it'd even work... Either way, I used libnfc.org's `nfc-mfclassic` tool to dump out the contents of that emulated 4k card. It is here: http://pastebin.com/zKZ2ELcw Seems to be entirely blank which is why I'm wondering if these aren't some default values it would spit out anyway even if no SmartMX module existed? If anyone has any more insights into this, I'd be very happy to hear them. -Nemanja On Dec 19 2010, 7:26 pm, nemik ne...@nemik.net wrote: Dominik, Yea, that's right. All it does currently is read; at least via the Java API. If you look at the kernel source though, a bunch of ifdefs which allow for emulation were all disabled. So full compliance with theNFCstandard will have to wait for a future kernel release. On Dec 7, 5:42 am, Gruntz Dominik dominik.gru...@fhnw.ch wrote: Hi everyone, Do I see it right, that the Android 2.3NFCAPI does not provide functionality to access a secure element? A secure element is a smartcard connected to theNFCcontroller, i.e. a secure storage in the device, either embedded in the mobile phone, on the SIM card or on a SD card. With JavaME access to the secure element was provided with JSR177 which supported the communication with smart card applications usind APDU commands. I have not seen comparable functionality in package android.nfc. Thanks for any hints Dominik -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] RTSP streaming with mediaplayer
I am playing the media player on rtsp url its playing fine but it is not pausing and playing again and again.while if i am using VideoView to play the stream it paused but it is showing error in resume the video I am using samsung galaxy 3 with android 2.1.Can anyone help me please on this topic ? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Application Back button not working
Its weird the code working on one machine and not on other It sure is, but I am sure it's nothing that cannot be resolved with the use of the built-in debugger. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 is the name of this widget?
I would think long and hard before putting such a widget in my app. IMHO, forcing the user to have to swipe a bunch to set a date is freaking annoying. Besides, you should probably try hard to make your app work without having to use the touch screen. Who knows in the future (hello, Google TV) there might be a device that doesn't have such a paradigm, On Jan 10, 3:22 am, MerlinBG merli...@gbg.bg wrote: Not even internal? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: resource not found when building application for passion
Detail Description. I'm using Froyo source code base. The application is pretty simple, just few buttons. From the XML layout, using android:background attribute to set the background of the LinearLayout. The background image is a PNG file under the res/drawable, not using images under framework-res. If I build the application with generic, and use adb install to install the application to the PASSION device, everything works fine. If I build the application for PASSION, which means that I typed lunch full_passion-userdebug before building the application, and then use adb install to install the application. When I tried to launch it, it showed error, and from the adb log, it showed ...android.content.res.Resources$NotFoundException, it could not find the drawable that set to the LinearLayout background. - BTW, I met the same issue under GingerBread Code base. Under gingerbread code base, I placed new images under status bar application (frameworks/base/packages/SystemUI/res/drawable) and set different background image to the status bar. If I build the code base for emulator and run the emulator, the status bar works fine. If I build the code base for PASSION device and burn the images to PASSION device, status bar application shows error when device boot up. And the error message is just like above, it cannot find the drawable resource that I set. Thanks On 1月10日, 下午12時21分, TreKing treking...@gmail.com wrote: You really need to provide more information. Like the resource it's complaining about, how your files are laid out, and the layout in question, for starters. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: What's new in honeycomb?
In fact since the APIs for this have been in the platform since 1.6, by the simple act of saying you are targeting 1.6 or later (with android:targetSdkVersion=4 or larger), you are telling the platform you know about different screen sizes and will get the full available space. You already see this today on the Samsung Tab, and if you set up a larger screen in the emulator. The best way to prepare for tablets is to do what is already there: say you support larger screens, and ensure you do work on them. The only thing that is really different is xlarge screens. Those were introduced in 2.3. Prior to that, we never really defined what the maximum size of a large screen is, so the cut-off points between these is now more formalized. Also because we never defined the limit for large, it is unlikely that we will do any kind of compatibility for apps that say they support large but don't support xlarge. That is, no postage stamp in the middle like we did for apps targeting prior to 1.6 that only ever thought about 480x320 mdpi screens. Once you are in the I know screens are more than 480x320 world, you need to be sure you do something reasonable for any screen larger than the minimum size class you have said you support. On Sun, Jan 9, 2011 at 6:36 PM, Romain Guy romain...@android.com wrote: It depends on how your app is setup. Depending on how applications declare how they support multiple screens and densities the app might be boxed, scaled or simply fill the screen and rely on layout to look correct. On Sun, Jan 9, 2011 at 6:09 PM, Craig Mitchell craig...@gmail.com wrote: And you all have done a fantastic job at that. However, I'm not a fan of boxing an app for large screens. I would much prefer an app to be expanded to the full screen size and look a little pixelated, then only take up a small section of the screen. ...apologies that this comment is off topic. On Jan 10, 9:44 am, Dianne Hackborn hack...@android.com wrote: We try hard to not break apps in newer versions of the platform, as long as they are written correctly. On Sun, Jan 9, 2011 at 2:40 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: I would like to know if our applications written for 2.2 and 2.3 tablets will work on honeycomb without modifications. On Jan 7, 1:27 am, Dianne Hackborn hack...@android.com wrote: On Thu, Jan 6, 2011 at 3:39 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: Obviously this new android will grant compatibility to olter apps right? You may have seen the numerous developer blogs posts on preparing for larger screens and such. :) -- 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 -- 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 -- 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.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
[android-developers] Re: Change the background of an AppWidget
I've been down the road with my widgets when I tried them on 2.3. I wasted about a week of my development time on this problem. Remember my thread? http://groups.google.com/group/android-developers/browse_thread/thread/6fa088c7640ca9b2/9bba78001843642b It's very frustrating that the widget cell size was changed without it being documented and that it's impossible to prepare for it in a non- hackish way. I find the overall SDK/API quality excellent, but the widget API gets at most a C in my book. The good thing is, if the Honeycomb preview video is any indication, this will all change in 3.0 as it appears to support scrolliing widgets. On Jan 10, 6:01 am, Kostya Vasilyev kmans...@gmail.com wrote: Exactly. Causing even more trouble if you're trying to make widgets that: - Fit into the home screen grid; - Look good; - Don't take up the entire screen width. Replacement home screens and different Android versions add even more uncertainty (Mark posted exact numbers on how 2.3 vs. previous versions allocate real estate for widgets vs. other home screen elements). I think this has gotten to the point where some assistance from the framework is needed. My suggestions would be: - A way to query home screen cell size used by the launcher that created the widget; - A sizing unit that equals one cell in the appropriate dimension, which could be used in widget layout xml's. -- Kostya 10.01.2011 0:39, Dianne Hackborn пишет: This is not simple. Even for a single widget instance in a specific widget host, its dimensions can (and typically do) change slightly when the screen switches between landscape and portrait. On Sun, Jan 9, 2011 at 1:26 PM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: That's not it, this is backwards - the widget telling the home screen its minimal size. The size here is specified in units that are independent of launcher version or its actual implementation (replacement). -- Kostya 10.01.2011 0:21, String пишет: On Sunday, January 9, 2011 12:30:07 PM UTC, Kostya Vasilyev wrote: It's really too bad there is no way to query widget cell size or use it http://developer.android.com/reference/android/appwidget/AppWidgetPro... 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 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 Vasilyev -- 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 -- 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com- 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] Re: NFC Secure Element
Ajith, According to http://discussion.forum.nokia.com/forum/showthread.php?199442-6212-device-how-to-work-with-the-secure-element the CN072 is a secure element in the Smart MX family. I'm not sure the same one is in the Nexus S, but I presume the one in there is at least very similar. Here is the info on it: http://www.nxp.com/acrobat_download2/other/identification/SFS107710.pdf I'm still trying to figure out how to get access to it as well, for reading or writing. I doubt there are any specific commands for it though, it just takes regular commands over ISO14443 just like other MiFare cards. On Jan 9, 11:31 pm, Ajith Kamath sjce.aj...@gmail.com wrote: Hi Nemik * I have small doubt with current implementation. Is SmartMX a Secure Element ?If so can you give me examples? * I have checked libnfc-nxp , enabling P2P parameter was at phnfcconfig.h. what needs to be done to enable Secure element? what are MifarePlus, Desfire, Topaz . Is it a Card type or Secure Element? * Also where is the general read-write methods for entry of Secure element. All I can see is phLibNfc_SE.c is methods for getting list of secured element, selecting secure element, deselecting. * But method for exchange of data is not present. Can you tell me where can I find this? * In libnfc-nxp There are files like phFriNfc_NdefMap.c, phFriNfc_MifareULMap.c, phFriNfc_TopazMap.c, phFriNfc_TopazDynamicMap.c, phFriNfc_DesfireMap.c, phFriNfc_FelicaMap.c. Can you tell me what these files are used for. The current comments in the file do not provide sufficient information * I am trying to use Wired Mode, Hence phHciNfc_WI.c will be used to communicate between Controller and Secure element right? Please advice. Regards, Ajith Hi On Sun, Jan 9, 2011 at 1:00 AM, nemik ne...@nemik.net wrote: I was able to enable a secure element the other day by messing around with this external/libnfc-nxp library. I enabled SMX (SmartMX) in the config headers, and upon booting and monitoring `adb logcat` during boot I saw 1 secure elements (a SmartMX one) had been enabled. I was then able to change the mode in NfcService.java to card emulation mode. The Nexus S is now emulating a MiFare Classic 4k card. However, I am not able to read sectors from the card directly. I've been trying to use the micmd tool to do that but things act pretty strangely. For example, I tried to read block 0 and micmd tells me Could not read the data block! Tag halted, reconnecting... but what's even stranger is that at that point, 'adb logcat' shuts itself off. As if that read command somehow interfered with USB or logging? However trying `a` commands to authenticate in micmd always works for some reason and it'll even pretent to write and persist data to blocks; but of course that data never actually gets persisted to the emulated card. Maybe this is a bug in micmd? Does anyone know if the Nexus S hardware (or its PN544 NFC chipset) even contains a hardware secure element like SmartMX? I tried also enabling UICC but that didn't seem to work at all and NFC service wouldn't even start in that case. Plus my SIM card is MANY years old and not sure it'd even work... Either way, I used libnfc.org's `nfc-mfclassic` tool to dump out the contents of that emulated 4k card. It is here: http://pastebin.com/zKZ2ELcw Seems to be entirely blank which is why I'm wondering if these aren't some default values it would spit out anyway even if no SmartMX module existed? If anyone has any more insights into this, I'd be very happy to hear them. -Nemanja On Dec 19 2010, 7:26 pm, nemik ne...@nemik.net wrote: Dominik, Yea, that's right. All it does currently is read; at least via the Java API. If you look at the kernel source though, a bunch of ifdefs which allow for emulation were all disabled. So full compliance with theNFCstandard will have to wait for a future kernel release. On Dec 7, 5:42 am, Gruntz Dominik dominik.gru...@fhnw.ch wrote: Hi everyone, Do I see it right, that the Android 2.3NFCAPI does not provide functionality to access a secure element? A secure element is a smartcard connected to theNFCcontroller, i.e. a secure storage in the device, either embedded in the mobile phone, on the SIM card or on a SD card. With JavaME access to the secure element was provided with JSR177 which supported the communication with smart card applications usind APDU commands. I have not seen comparable functionality in package android.nfc. Thanks for any hints Dominik -- You received this message because you are subscribed to the Google Groups Android Developers group. 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
Re: [android-developers] Re: What is the name of this widget?
One nice thing about using the standard widget is that if it improves you will automatically get the improvements. That said, the current standard widget pretty much sucks rocks. We also know it sucks rocks, and have desperately wanted to redo it since 1.0. It would be nice to fix that as part of a larger UI overhaul. Not that I am promising anything. :) On Sun, Jan 9, 2011 at 10:04 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I would think long and hard before putting such a widget in my app. IMHO, forcing the user to have to swipe a bunch to set a date is freaking annoying. Besides, you should probably try hard to make your app work without having to use the touch screen. Who knows in the future (hello, Google TV) there might be a device that doesn't have such a paradigm, On Jan 10, 3:22 am, MerlinBG merli...@gbg.bg wrote: Not even internal? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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