[android-developers] Re: Trying to get Javascript on Android
The reason they don't work on the Android browser (or webkit for that matter) is that they are using mouse events. If you want to use that code on the Android you have to use touch events instead. Try reading up on the following: touchstart - finger touches the screen touchmove - finger is moving touchend - finger leaves the screen It looks to me like the first example you listed should be fairly easy to update to touch. If you use these events, you should get better results. There's some good documentation for this in the iPhone docs. You'll have to search for it, but they have code examples as well. -John Coryat What Zip Code? Radar Now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Externalize strings automatically
Hi, Is there a way to externalize all the strings in the source files to strings.xml automatically? 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: Get dimension from R.attr in Java code
Is it the only way? I think it is too overkill. On Sep 20, 2009, at 12:43 PM, Dianne Hackborn wrote: I'm just saying you need to retrieve it from the theme, and the custom view Api demo is one example I know of doing so. On Sat, Sep 19, 2009 at 6:26 PM, an0...@gmail.com wrote: I see, but I am not initializing a custom view. Is there any simple way to retrieve a predefined attribute value as whatever proper type? On Sep 20, 2009, at 1:33 AM, Dianne Hackborn wrote: You are trying to retrieve an attribute identifier as a dimension, which is incompatible. If you want to get the value of an attribute in the theme, you can use the Theme class (though typically you will use declare-styleable to define a set of attributes you are interested in and retrieve them as a batch; there is an example showing this in ApiDemo's custom view). On Sat, Sep 19, 2009 at 12:28 AM, an0 an0...@gmail.com wrote: Resources.getDimensionPixelSize (android.R.attr.listPreferredItemHeight) does not work. So how to? And any other way to specify resolution independent dimension values in Java code? -- 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. -- A ghost writing code with soul @ http://wangling.me/. -- 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. -- A ghost writing code with soul @ http://wangling.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 -~--~~~~--~~--~--~---
[android-developers] AppWidget efficiency
Hi, in my app widget i use a timer to show some new info every 5 seconds or so. The thing is, i wouldn't want this code to be executed even when no one's 'looking', which i've seen is the case: even if i open a fullscreen app that widget timer keeps firing. Is there a workaround/ better way of doing this? Or maybe some way to intercept if the widget is in view so i can start/stop the timer when needed? Thanks, Teo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: A bug with android 1.5 when deleting a phone using delete()
Does anyone know the solution? On Sep 19, 6:04 pm, Alex Tang tangli1987...@gmail.com wrote: Test on HTC GPhone, android sdk version is 1.5 Uri uri = Uri.withAppendedPath(Phones.CONTENT_URI, 25); // 25 is known as id of one phone this.getContentResolver().delete(uri, null, null); with exception: 09-19 17:48:35.543: ERROR/JavaBinder(117): *** Uncaught remote exception! (Exceptions are not yet supported across processes.) 09-19 17:48:35.543: ERROR/JavaBinder(117): android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580) 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.database.AbstractWindowedCursor.checkPosition (AbstractWindowedCursor.java:172) 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.database.AbstractWindowedCursor.getLong (AbstractWindowedCursor.java:99) 09-19 17:48:35.543: ERROR/JavaBinder(117): at com.android.providers.contacts.ContactsProvider.fixNumberIndicator (ContactsProvider.java:2718) 09-19 17:48:35.543: ERROR/JavaBinder(117): at com.android.providers.contacts.ContactsProvider.deleteInternal (ContactsProvider.java:3139) 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.content.AbstractSyncableContentProvider.delete (AbstractSyncableContentProvider.java:276) 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.content.ContentProvider$Transport.delete(ContentProvider.java: 150) 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.content.ContentProviderNative.onTransact (ContentProviderNative.java:150) 09-19 17:48:35.543: ERROR/JavaBinder(117): at android.os.Binder.execTransact(Binder.java:287) 09-19 17:48:35.543: ERROR/JavaBinder(117): at dalvik.system.NativeStart.run(Native Method) but this problem never appers in emulator, my emulatro sdk version is 1.5_r3. Does anyone meet this problem and have solution? 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: Debug certificate has expired!
I think I need to get my eyes tested. The documentation states that the debug.keystore is now stored in C:\Documents and Settings\\.android\ I was looking in the old (which I think must be pre 1.5) directory. I could have sworn I went through this page and never saw anything about expired certificates. http://developer.android.com/guide/publishing/app-signing.html Changed the certificate over and now it works. Al. On Sep 19, 6:03 pm, Alistair. alistair.rutherf...@googlemail.com wrote: Mydebug.keystorecertificate has expired. Does anyone know how to force Android to regenerate either certificate or the whole directory under C:\Documents and Settings\Admin\Local Settings\Application Data \Android I have tried deleting the file then recompiling and switching SDK's but nothing seems to work! Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Externalize strings automatically
Is there a way to externalize all the strings in the source files to strings.xml automatically? There is nothing built into Android to do this, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sometimes get a blank screen on app restart
My application flow usually works like this: Splashscreen calls user agreement Success from user agreement makes Splashscreen call MapActivity in MapActivity's onWindowFocusChanged(boolean hasFocus) { if (hasFocus firstStart) // firstStart is static boolean //start another activity to call user details window } Now sometimes (but not always) when a user runs my app, goes back the the 'desktop' with the home button, and then restarts my app later the application will just display a blank screen. Sometimes switching the orientation of the phone will cause the display to work. Sometimes it takes switching the orientation a few times to cause the display to work. Hitting the back button will kill the offending activity which is either the user agreement or the user detail window and the application will continue as normal correctly displayed. I am looking for suggestions for what I might be doing wrong or how I can assure my activities will display when they come up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL 2D Game Framework
Alright, thanks for the suggestions you sent me Lance, it did make a noticeable difference. I also changed a lot of things that were causing garbage, and added in a new particle engine. For anyone who's nosey, you can take a look here at the new features http://www.youtube.com/watch?v=jWYL-L7HnEE I seem to be having some problems with the sound however. I can use MediaPlayer to play music, and framerate doesn't really drop. Or I can use SoundPool for effects, and framerate doesn't really drop. But if I use them at the same time (to have Music, and Sound Effects) the drop in framerate seems to greatly exceed the two alone combined. Is there a reason for this, or any solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trying to get Javascript on Android
John, Thank you for the reply. Hmm... seems a little odd to me that they went and made a whole different set of events for using fingers on a touch screen when they are duplicates of what I do with a mouse. There's nothing about touching with a finger which, as far as I can see, is operationally different from the things I do with my mouse. In any case, is there not a way to simply add a script to say: touchscreen = mouse click and hold down touchmove = dragging with mouse touchend = release mouse button ...? It would be lame to have to declare the same functions twice or have to replace one for another between mobile and desktop versions. Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [ANN] WorldWide Time widget
WorldWideTime is an application that displays time in cities all around the world with widgets. It can display date, week number and extra info such as country, state, currency, phone code, population, area in square km, country capital, GMT offset, DST start/end date and time zone. http://www.lysesoft.com/products/worldwidetime/index.html Have fun. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Trying to get Javascript on Android
It probably will work, mouse and touch events won't happen simultaneously. As for touch, you can have multiple finger touches (think iPhone) which can be interpreted differently than anything that can be done with a mouse. Android doesn't (I believe) support gestures at this point but may in the future. -John Coryat What Zip Code? Radar Now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL 2D Game Framework
how about using the new sound track engine in Android 1.6? JetBoy? On Sep 20, 8:28 am, rich...@stickycoding.com rich...@stickycoding.com wrote: Alright, thanks for the suggestions you sent me Lance, it did make a noticeable difference. I also changed a lot of things that were causing garbage, and added in a new particle engine. For anyone who's nosey, you can take a look here at the new featureshttp://www.youtube.com/watch?v=jWYL-L7HnEE I seem to be having some problems with the sound however. I can use MediaPlayer to play music, and framerate doesn't really drop. Or I can use SoundPool for effects, and framerate doesn't really drop. But if I use them at the same time (to have Music, and Sound Effects) the drop in framerate seems to greatly exceed the two alone combined. Is there a reason for this, or any solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: OpenGL 2D Game Framework
Wow, thanks. I look forward to checking this out. On Sep 18, 2:08 pm, rich...@stickycoding.com rich...@stickycoding.com wrote: I've been working on a game framework for a little while, and while its far from perfect, I've put the current version online. To be honest, I haven't used much OpenGL in the past. Before last week I had never tried using it. If anyone would like to take a look, please do, I'd appreciate all the help possible on speeding it up. There are many features I have in mind and am planning at the minute, but so far it supports: # Texture and Sprite management # Text, using TTF fonts # Organised layers # Two audio management classes, one optimized for music, the other for sound effects # Sprite dynamics (acceleration, terminal velocity, collisions) # Animation # Handlers to manage events fired through movement, animation, screen touches, accelerometer input, device shaking and collisions # Several minor features aimed at speeding development, such as screen settings and vibration The code is athttp://code.google.com/p/rokon/ Again, I'd very much appreciate advice or help with any bugs you can see, 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: Trying to get Javascript on Android
There's nothing about touching with a finger which, as far as I can see, is operationally different from the things I do with my mouse It *is* a little different. E.g. you won't have corresponding finger- events for mouseover, mouseout, etc. The phone cannot quite detect your finger hovering over the screen without your finger touching the screen. This may affect the functionality of some javascript libraries if they (partially) rely on these events. And some javascript libraries may not have been tested (at all) on Android's WebKit. On Sep 20, 9:35 am, ebisudave ebisud...@gmail.com wrote: John, Thank you for the reply. Hmm... seems a little odd to me that they went and made a whole different set of events for using fingers on a touch screen when they are duplicates of what I do with a mouse. There's nothing about touching with a finger which, as far as I can see, is operationally different from the things I do with my mouse. In any case, is there not a way to simply add a script to say: touchscreen = mouse click and hold down touchmove = dragging with mouse touchend = release mouse button ...? It would be lame to have to declare the same functions twice or have to replace one for another between mobile and desktop versions. Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ExpatReader: DTD handlers aren't supported.
The same here. I'm trying to read XML from sd card. Did you find a solution so far? On Aug 31, 6:14 pm, synfo...@googlemail.com synfo...@googlemail.com wrote: I seem to be having a weird issue when parsing XML from a server. In LogCat the following warning is displayed: 08-31 12:05:28.870: WARN/ExpatReader(2031):DTDhandlers aren't supported. The parser then seems to stop. I can't figure out what is causing this problem, my approach doesn't seem any different in this instance with regard to parsing XML. Does anyone have any recommendations to fixing this issue? Any help would be greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trying to get Javascript on Android
One other thing... I've found differences between the way iPhone and Android handle events. Mouse events on the iPhone are handled differently on Android, so keep that in mind as well. -John Coryat What Zip Code? Radar Now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 best way to backup app database to a file?
When doing: //open your existing DB InputStream dbStream = mContext.getAssets().open(yourDBName); I'm not able to start reading... Do I need a particular permission type? Also, when writing back to that location a new database which permission should be set? Thanks, -Moto! On Sep 8, 12:37 pm, Moto medicalsou...@gmail.com wrote: Perfect! I really appreciate everyone's help! -Moto! On Sep 8, 1:05 am, mjc147 westmead...@yahoo.co.uk wrote: On Sep 7, 3:30 am, Mark Murphy mmur...@commonsware.com wrote: Now, the database path location may change in future Android releases, and I am not aware of a place in the API to get the path to a database in a more official fashion. You can use the Context.getDatabasePath() method: http://developer.android.com/reference/android/content/Context.html#g...) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 best way to backup app database to a file?
I take that back... It actually works without any permission as it should... File f1 = ctx.getDatabasePath(appDatabase.db); InputStream in = new FileInputStream(f1); -Jona On Sep 20, 2:19 pm, Moto medicalsou...@gmail.com wrote: When doing: //open your existing DB InputStream dbStream = mContext.getAssets().open(yourDBName); I'm not able to start reading... Do I need a particular permission type? Also, when writing back to that location a new database which permission should be set? Thanks, -Moto! On Sep 8, 12:37 pm, Moto medicalsou...@gmail.com wrote: Perfect! I really appreciate everyone's help! -Moto! On Sep 8, 1:05 am, mjc147 westmead...@yahoo.co.uk wrote: On Sep 7, 3:30 am, Mark Murphy mmur...@commonsware.com wrote: Now, the database path location may change in future Android releases, and I am not aware of a place in the API to get the path to a database in a more official fashion. You can use the Context.getDatabasePath() method: http://developer.android.com/reference/android/content/Context.html#g...) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 best way to backup app database to a file?
I take that back... It actually works without any permission as it should... File f1 = ctx.getDatabasePath(appDatabase.db); InputStream in = new FileInputStream(f1); - Moto! On Sep 20, 2:19 pm, Moto medicalsou...@gmail.com wrote: When doing: //open your existing DB InputStream dbStream = mContext.getAssets().open(yourDBName); I'm not able to start reading... Do I need a particular permission type? Also, when writing back to that location a new database which permission should be set? Thanks, -Moto! On Sep 8, 12:37 pm, Moto medicalsou...@gmail.com wrote: Perfect! I really appreciate everyone's help! -Moto! On Sep 8, 1:05 am, mjc147 westmead...@yahoo.co.uk wrote: On Sep 7, 3:30 am, Mark Murphy mmur...@commonsware.com wrote: Now, the database path location may change in future Android releases, and I am not aware of a place in the API to get the path to a database in a more official fashion. You can use the Context.getDatabasePath() method: http://developer.android.com/reference/android/content/Context.html#g...) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Get dimension from R.attr in Java code
You need to use the Theme API to retrieve the values of attributes associated with the theme. On Sun, Sep 20, 2009 at 1:19 AM, an0...@gmail.com wrote: Is it the only way? I think it is too overkill. On Sep 20, 2009, at 12:43 PM, Dianne Hackborn wrote: I'm just saying you need to retrieve it from the theme, and the custom view Api demo is one example I know of doing so. On Sat, Sep 19, 2009 at 6:26 PM, an0...@gmail.com wrote: I see, but I am not initializing a custom view. Is there any simple way to retrieve a predefined attribute value as whatever proper type? On Sep 20, 2009, at 1:33 AM, Dianne Hackborn wrote: You are trying to retrieve an attribute identifier as a dimension, which is incompatible. If you want to get the value of an attribute in the theme, you can use the Theme class (though typically you will use declare-styleable to define a set of attributes you are interested in and retrieve them as a batch; there is an example showing this in ApiDemo's custom view). On Sat, Sep 19, 2009 at 12:28 AM, an0 an0...@gmail.com wrote: Resources.getDimensionPixelSize (android.R.attr.listPreferredItemHeight) does not work. So how to? And any other way to specify resolution independent dimension values in Java code? -- 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. -- A ghost writing code with soul @ http://wangling.me/. -- 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. -- A ghost writing code with soul @ http://wangling.me/. -- 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: equalizer in android
I'm also looking to do some similar but involving pitch bend. May involve having to rewrite an audio player application for android. On Sep 18, 6:10 pm, Emeric DESSERTINE emeric.dessert...@gmail.com wrote: Hi I want create an equalizer for a software but currently I don't find nothing to catch audio informations I'm refereed at this post, there are something for read raw informations about audio file now? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: htc Hero networking
I had an issue with file formats, the Hero uses .amr for audio while Magic and G1 use 3gpp. The server I uploaded to didn't understand .amr but didn't provide an error message. There's more differences betweeh Hero and Magic/G1, like in picture processing. On Sep 14, 6:29 pm, Dan Sherman impact...@gmail.com wrote: We've been having a similar issue without being able to find a cause. We have a game (ProjectINF), which uses UDP for communication. Works fine on all devices except the hero (from what we've heard from users). Not sure where to point you, just wanted to chime in and let you know you're not the only one with Hero networking woes. - Dan On Sun, Sep 13, 2009 at 6:51 AM, Christine christine.kar...@gmail.comwrote: I have an app that uploads files to a server. It works perfectly on ADP1 and HTC Magic, but it doesn't on HTC Hero. Does anyone know about differences in the way networking works on the Hero that prevents my app from working? I use httpClient in my app. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] webview crashes
hi all, I'm getting fairly regular crashes using WebView's in the underlying C code (sigsegv's). There isn't a _whole_ lot of rhyme or reason to it, but one thing that is somewhat suspicious is that I have more than one webview active (only one is one the screen at any one time, but if this has anything to do with my problem it may not matter since it appears that webkit widgets run asynchronously from the main UI thread). Here's the stack dump. I've looked through the archives and it appears that there are other dumps, but it's really hard to tell from my vantagepoint whether they have anything to do with one another. This is pretty easily reproducible (especially with one particular url of mine) so it should be relatively easy to track down. Thanks, Mike I/DEBUG ( 32): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 32): Build fingerprint: 'tmobile/kila/dream/trout:1.5/CRC1/150275:user/ota-rel-keys,release-keys' I/DEBUG ( 32): pid: 911, tid: 922 com.phresheez.phresheez I/DEBUG ( 32): signal 11 (SIGSEGV), fault addr 000c I/DEBUG ( 32): r0 445d986c r1 445d9998 r2 445d9998 r3 00534318 I/DEBUG ( 32): r4 r5 004548c8 r6 445d9998 r7 007f I/DEBUG ( 32): r8 445d9da0 r9 41046e18 10 41046e04 fp 0001 I/DEBUG ( 32): ip aa3dbb38 sp 445d97f0 lr aa181c7b pc aa0bdd48 cpsr 2030 W/InputManagerService( 59): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@432ca120 I/DEBUG ( 32): #00 pc 000bdd48 /system/lib/libwebcore.so I/DEBUG ( 32): #01 pc 00181c78 /system/lib/libwebcore.so I/DEBUG ( 32): #02 pc 00182c56 /system/lib/libwebcore.so I/DEBUG ( 32): #03 pc 0018e66e /system/lib/libwebcore.so I/DEBUG ( 32): #04 pc 0018ba62 /system/lib/libwebcore.so I/DEBUG ( 32): #05 pc 0018c0d0 /system/lib/libwebcore.so I/DEBUG ( 32): #06 pc 0018c7ae /system/lib/libwebcore.so I/DEBUG ( 32): #07 pc 0017de08 /system/lib/libwebcore.so I/DEBUG ( 32): #08 pc 00180402 /system/lib/libwebcore.so I/DEBUG ( 32): #09 pc 001853ce /system/lib/libwebcore.so I/DEBUG ( 32): #10 pc 0018540c /system/lib/libwebcore.so I/DEBUG ( 32): #11 pc 00186146 /system/lib/libwebcore.so I/DEBUG ( 32): #12 pc 00186408 /system/lib/libwebcore.so I/DEBUG ( 32): #13 pc 001867d6 /system/lib/libwebcore.so I/DEBUG ( 32): #14 pc 00186832 /system/lib/libwebcore.so I/DEBUG ( 32): #15 pc 00186874 /system/lib/libwebcore.so I/DEBUG ( 32): #16 pc 00259d04 /system/lib/libwebcore.so I/DEBUG ( 32): #17 pc e3b4 /system/lib/libdvm.so I/DEBUG ( 32): #18 pc 00040a8a /system/lib/libdvm.so I/DEBUG ( 32): #19 pc 00013118 /system/lib/libdvm.so I/DEBUG ( 32): #20 pc 00017b1c /system/lib/libdvm.so I/DEBUG ( 32): #21 pc 00017560 /system/lib/libdvm.so I/DEBUG ( 32): #22 pc 000520ec /system/lib/libdvm.so I/DEBUG ( 32): #23 pc 0005210a /system/lib/libdvm.so I/DEBUG ( 32): #24 pc 00047144 /system/lib/libdvm.so I/DEBUG ( 32): #25 pc f880 /system/lib/libc.so I/DEBUG ( 32): #26 pc f3f4 /system/lib/libc.so I/DEBUG ( 32): stack: I/DEBUG ( 32): 445d97b0 005574c0 [heap] I/DEBUG ( 32): 445d97b4 003f I/DEBUG ( 32): 445d97b8 I/DEBUG ( 32): 445d97bc a9a9a475 I/DEBUG ( 32): 445d97c0 001a6d30 [heap] I/DEBUG ( 32): 445d97c4 aa1e37b1 /system/lib/libwebcore.so I/DEBUG ( 32): 445d97c8 445d9814 I/DEBUG ( 32): 445d97cc aa1e41b9 /system/lib/libwebcore.so I/DEBUG ( 32): 445d97d0 445d97d8 I/DEBUG ( 32): 445d97d4 aa1dec3d /system/lib/libwebcore.so I/DEBUG ( 32): 445d97d8 aa3db598 I/DEBUG ( 32): 445d97dc 445d9824 I/DEBUG ( 32): 445d97e0 00557620 [heap] I/DEBUG ( 32): 445d97e4 aa1dee0d /system/lib/libwebcore.so I/DEBUG ( 32): 445d97e8 df002777 I/DEBUG ( 32): 445d97ec e3a070ad I/DEBUG ( 32): #00 445d97f0 445d9da0 I/DEBUG ( 32): 445d97f4 aa3db598 I/DEBUG ( 32): 445d97f8 aa3db598 I/DEBUG ( 32): 445d97fc 445d9998 I/DEBUG ( 32): 445d9800 445d9998 I/DEBUG ( 32): 445d9804 445d986c I/DEBUG ( 32): 445d9808 0003 I/DEBUG ( 32): 445d980c 00534318 [heap] I/DEBUG ( 32): 445d9810 007f I/DEBUG ( 32): 445d9814 aa3db598 I/DEBUG ( 32): 445d9818 ffe0382d I/DEBUG ( 32): 445d981c aa1e01f1 /system/lib/libwebcore.so I/DEBUG ( 32): 445d9820 005c73f8 [heap] I/DEBUG ( 32): 445d9824 00557620 [heap] I/DEBUG ( 32): 445d9828 005576c0 [heap] I/DEBUG ( 32): 445d982c 445d9800
[android-developers] Re: Download here library for reading/writing EXIF from your JPEG images
Thanks for this - very useful and works perfectly. But it compiles to 300kb which doubles to 600kb for copy protected apps. Anyway to make a streamlined version of this app to just embed a gps location in a jpeg file? Alex On Jul 24, 2:41 am, Streets Of Boston flyingdutc...@gmail.com wrote: Android does not provide an Exif Reader or Exif Writer in its SDK (it has a native implemenation, though, but that API is private). The Sanselan library, however, does provide a full fledged set of functionality for reading and writing Exif metadata. However, Sanselan pur sang cannot be included in an Android Project. It references classes and packages that do not exist under the current version of Android (e.g. ImageIO). Therefore, I made a quick cut of Sanselan 0.97, cutting out all the classes that prevent it from being used on the Android platform. It is a quick cut and it may have some issues. However, I got its exif reading and writing to work for my application and it looks like its working quite well. Reading and writing raw image-data is, however, not possible in this cut. This has been cut out. You can download it from this web-post:http://soft.antonspaans.com/sanselan-097-for-android-10/154 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] webview javascript call from ajax resp java func
I've added a java function which I'm successfully calling from the webkit javascript. However, if I make an ajax call and reload some data, and then call that same java method nothing happens. No error, method just isn't called. Should that work 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] Widgets changes with 1.6?
Hi! I'm developing a Widget that updates every 10 seconds (android:updatePeriodMillis=1). On the 1.5 emulator, as well as on my adp1, it works as expected. On the 1.6 emulator, my widgets are not updated. Apparently, AppWidgetProvider.onUpdate(...) is never called. Is there something I missed? Thanks a lot, BoD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] v1.6 sdk bit fluky!
I recently installed the v1.6. And found few problems ( I would say it is not as stable as the 1.5 ). For some of them - (1) - There are times ( if App A) does not get launched for one reason or other, and if I try to rebuild ( build does not imply run on the machine ...), then I find eclipse IDE complains about - Build path is not correct. I did not change the build paths or even the order... But as soon as I kill the emulator, things are fine. Note that when I see something like this, I try to clean the build so that a new fresh build takes place (2) Usually on 1.5 I high light one project ( then I try to run ), I can see on console pane that it is trying to launch and finally activating the main activity On 1.6 I see it tries to launch other project that was not highlighted, and make the thing slow. Even if App B is new bullt, I did not ask it be launched. -pro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Toast Duration
I was hoping I could simply apply the theme in xml rather than have to create an Activity and apply it in onCreate. Thanks for clearing that up. Jason On Sat, Sep 19, 2009 at 3:08 PM, Dianne Hackborn hack...@android.com wrote: (Btw, Api demos has one or two examples of creating custom themed dialogs, I believe in the app section.) On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.com wrote: You are making a theme, which is a kind of style that applies to an entire context, but just a UI element. You need to use it as the theme for an activity take or the second argument to the Dialog constructor, however you are creating the window. On Sat, Sep 19, 2009 at 11:26 AM, Jason Van Anden jason.van.an...@gmail.com wrote: Dear Dianne et al, My feedback was meant as constructive criticism in general - definitely not as a dis directed at you. I believe that an example is worth a thousand words - it works or it don't. I appreciate the time you spend with the board. I make it a point to star pretty much anything you write here so I can review it later. This particular thread was recalled exactly because of this. Your suggestion of altering the style of a dialog seems perfect for a step by step walk through of an app - which is what I am working on. Clearly we need more generous experts like yourself helping Android along. That being said ... I thought I had figured it out - but I am still stumped. If someone out there could help, it will help save at least one Android developer's weekend ... Here is my code: Within my theme.xml I have: resources style name=ToastyDialog parent=android:Theme item name=android:windowBackground@android:drawable/toast_frame/item item name=android:windowAnimationStyle@android:style/Animation.Toast/item /style resources Within my dialog layout I have: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical style=@style/ToastyDialog TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/hello_world /TextView /LinearLayout NOTE: The Eclipse interface gives you a choice to pick a theme, and my theme does appear. Thing is, it does not write it in the XML. I added the style tag based upon this post: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ I sincerely hope that I am making a stupid, obvious mistake. Thank You, Jason On Sat, Sep 19, 2009 at 1:25 PM, Dianne Hackborn hack...@android.com wrote: On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden jason.van.an...@gmail.com wrote: There are a few threads on this topic that offer advice where an example would be more useful (IMHO). I post to this list in my (oh so copious) spare time; I can either post answers that I can do quickly, or just not post at all if it is going to take me time to put together and test an example. Your choice. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] Questions about the accessibility API
Hi, all. Apologies for the length of this, but I'm sort of diving head-first into Android development along a pretty unconventional path, so I'm encountering lots of unusual issues along the way. By way of background, I'm totally blind. While doing one of my semi-regular Google pokes to see if anything new was happening on the Android accessibility front, I discovered Donut's accessibility API. Now I'm flirting with the idea of writing an open source Android screen reader. Of course, most new developers likely take on a less challenging app, and I don't know how far I'll take this, but unless I (or someone else) do this, Hello, world is pretty useless. :) First things first, are there any similar efforts out there? Would anyone be interested in working on something? I've seen http://slimvoice.googlecode.com, but in addition to there being no contact information to be found, they're going in several directions at once, and I'm just not sure how productive that will prove. Anyhow, my development environment pretty much has to be console-based, since I've not found accessible Linux/GTK IDEs. I'm also into Scala rather than Java. To that end, I've downloaded the Android SDK and have set up the Android plugin for SBT, my build tool of choice. I can successfully start the emulator, and can shell in with adb shell and poke around. SBT seems to successfully communicate with the emulator, I can build an apk and successfully install it. This is pretty much where my knowledge breaks down, because the graphical aspect of the emulator is entirely inaccessible until I can get a working AccessibilityService speaking which, I gather, I can't do without tweaking the emulator. So, questions: 1. Should the emulator provide TTS via native sound hardware? 2. From http://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html I read: The lifecycle of an accessibility service is managed exclusively by the system. Starting or stopping an accessibility service is triggered by an explicit user action through enabling or disabling it in the device settings. This creates a chicken and egg problem, since I can't enable my app unless I have an accessible emulator, which I hope that my app can eventually provide. Is it possible to enable whatever lifecycle tweaks may be needed from the adb shell? 3. I think that my initial goal should be an AccessibilityService that captures events and dumps applicable data to stdout on a shell. What I can then do is play around in the emulator, see what events are generated, what data those events contain and slowly construct a meaningful text stream. This stream can then eventually be piped into the TTS service, but simple printlns would involve fewer moving parts and would help me get started much faster. This, however, requires the ability to start the service from the adb shell so I'd have my service's stdout in my terminal. Is this at all possible? I've discovered the am command, but it's not particularly googleable, and I can't figure out how it works. :) Thanks a bunch. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error starting tools in 1.6 on Mac OS - SOLUTION
re-naming x86 to x86_64 does not work. Following exception is thrown: Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM On Sep 17, 2:04 pm, Gil Margolin gilmargo...@gmail.com wrote: Or a much easier way is just rename the folder /tools/lib/x86 to / tools/lib/x86_64 On Sep 16, 10:04 pm, David Horn pga...@gmail.com wrote: Hi, I've been unable to run any of the tools in the Donut SDK, using Snow Leopard- it seems to be due to the 64bit nature of the OS. Followed the steps in the upgrade guide, but when it comes to starting any of the tools (android, ddms etc), they refuse to start with the error message: David-Horns-MacBook:tools David$ ./ddms SWT folder '/Users/David/Desktop/Eclipse IDE/android-sdk- mac_x86-1.6_r1/tools/lib/x86_64' does not exist. Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. There is no x86-64 folder, but I've come up with a bit of a bodge that works. Open the file in a handy text editor, and look for the lines: # Combine the swtpath and the framework dir path. if [ -d $swtpath ]; then frameworkdir=${swtpath}:${frameworkdir} else echo SWT folder '${swtpath}' does not exist. echo Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. exit 1 fi Replace them with this, substituting your own path in to the lib folder. # Combine the swtpath and the framework dir path. frameworkdir=/Users/David/Desktop/Eclipse IDE/android-sdk- mac_x86-1.6_r1/tools/lib/x86:${frameworkdir} Hope this helps (not sure if this is a problem unique to me, or whether it's affecting everyone on SnowLeopard). Dave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Software Engineer
Dla naszego klienta, światowego lidera w branży telekomunikacyjnej (przy projekcie obejmującym rozwój aplikacji nawigacyjnej oraz lokalizacyjnej na urządzenia mobilne) poszukujemy: . Android Software Engineer Miejsce pracy: Berlin Nr ref.: ASE/Berlin Warunki projektu: Wynagrodzenie: 15.000 PLN / m-c Czas trwania: 9 - 12 m-cy - z opcją przedłużenia (po zakończeniu kontraktu firma oferuje udział w innych równie ciekawych projektach) Rozpoczęcie: Rekrutacja ciągła Miejsce: Berlin Tryb pracy: Pełny etat Forma współpracy / rozliczenie: Faktura VAT / umowa o dzieło / umowa zlecenie. Oczekiwania firmy: - Wykształcenie wyższe informatyczne lub pokrewne - Przynajmniej 3 letnie doświadczenie developerskie (C++ / C / Java) - Przynajmniej roczne doświadczenie developerskie pod Android - Bardzo dobra znajomość języka angielskiego Nasz klient zapewnia: - Praca przy bardzo ciekawym projekcie - Wynagrodzenie 15.000 PLN / M-c - Zagwarantowane niezależne mieszkanie, opłacane przez naszego klienta - Dzienne diety - Zwrot kosztów podróży Polska = Berlin Osoby zainteresowane naszą ofertą prosimy o przesłanie CV w języku angielski, z klauzulą o zgodzie na przetwarzanie danych osobowych na adres: praca[na]rekrutacyjny.pl W temacie aplikacji prosimy o wpisanie nazwy stanowiska lub numeru referencyjnego oferty. Prosimy o załączenie następującej klauzuli: Wyrażam zgodę na przetwarzanie moich danych osobowych zawartych w mojej ofercie pracy dla potrzeb niezbędnych do realizacji procesu rekrutacji (zgodnie z Ustawą o Ochronie Danych Osobowych z dn. 29.08.1997 Dz. U. Nr 133 poz. 883) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Who's NYC?
I would like to meet NYC developers! I have an idea! Maybe we can co- create and introduce to the world together! Also, who is (of course, from NYC) that's great at creating Computer Games? Lets get it going! Ernest Manigo, Jr. Innervisions 646-436-1084 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Bug in GL10.texSubImage2D?
I am developing an application that dynamically changes the texture of an object. The textures I download from the internet and are of fairly random aspect ratios. I apply these textures to a 2^nth texture using GLUtils.texSubImage2D supplying the bitmap containing the texture, and only use the part of the constructed texture that holds the newly applied data. This works fine when using textures with a greater width than height. However, when using tall images, I sometimes get images that are skewed. That is, it seems as if the texture is copied to the new texture, but with the width being one off, so each line just one pixel too short. This happens consistently when using the same images, however it does not happen for all tall images. Code for applying the texture: public void setTexture(GL10 gl, Bitmap texture) { int height = texture.getHeight(); int width = texture.getWidth(); float heightRatio = ((float)height) / 128; float widthRatio = ((float)width) / 128; maspect = width / (float)height; int[] textures = new int[1]; gl.glGenTextures(1, textures, 0); mTextureID = textures[0]; gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_BLEND); GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, mImg, 0); GLUtils.texSubImage2D(GL10.GL_TEXTURE_2D, 0, 0, 0, texture); Buffer texBuf = ByteBuffer.allocateDirect(texture.getRowBytes () * height); texture.copyPixelsToBuffer(texBuf); ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); tbb.order(ByteOrder.nativeOrder()); mTexBuffer = tbb.asFloatBuffer(); float tex[] = { 0.0f, 0.0f, 0.0f, heightRatio, widthRatio, 0.0f, widthRatio, heightRatio, }; mTexBuffer.put(tex); mTexBuffer.position(0); } Code for drawing it to screen: public void draw(GL10 gl, long offset){ if(maspect 1.25f){ szX = maspect; szY = 1; }else{ szX = 1.25f; szY = 1 / maspect * 1.25f; } gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_REPLACE); gl.glActiveTexture(GL10.GL_TEXTURE0); gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); gl.glFrontFace(GL10.GL_CCW); gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); gl.glEnable(GL10.GL_TEXTURE_2D); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTexBuffer); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,GL10.GL_NEAREST); gl.glTexParameterf (GL10.GL_TEXTURE_2D,GL10.GL_TEXTURE_MAG_FILTER,GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,GL10.GL_CLAMP_TO_EDGE); gl.glPushMatrix(); gl.glTranslatef(x, y, z); gl.glScalef(szX, szY, 1); gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, 4, GL10.GL_UNSIGNED_BYTE, mIndexBuffer); gl.glPopMatrix(); } This is really bugging me, so any help would be great! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] HOW TO UNINSTALL ANDROID DEFAULT APPLICATION
Hello, For professional use, I need to uninstall default application (camera, browser, etc...). It seems not to be possible via the application manager. Is there a way to do it? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] [HTTP Client] Correct Cookie handling for form-based authentication?
Hi guys, currently I'm developing an app that logs into a website using form based auth. Before I implemented that using the internal Http client, I have been using the HttpUrlConnection, but due that fact that my software didn't work in 2G networks I've changed my implementation to use the internal http client. Does anyone of you know about an OpenSource App that does the same that I want? Like logging into a website (getting and setting Cookies) and so on? If yes, I could have a look at that. I mean the thing is... I need to find out whether the login worked or not. Or does anyone know how it works correctly? Maybe some of you guys have already implemented something like that? This is my current implementation that does not work: http://code.google.com/p/web2sms4android/source/browse/trunk/Web2SMS4AndroidUI/src/de/mastixmc/web2sms/android/connection/ApacheNetworkHandler.java In the httpHandler() I set the cookies as member variable (setCookiesFromHeader() and also put them into the header if they exist (prepareConnection). It would be really great if someone could help me. Really would like to release the version of my app, since a lot more things have changed. And this issue keeps me stuck... :( I also wasn't able to a good tutorial about Cookie Handling. :( Thank you very much in advance, guys. Sascha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Error starting tools in 1.6 on Mac OS - SOLUTION
Re-naming does not work. Following error occurs: Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) On Sep 17, 2:04 pm, Gil Margolin gilmargo...@gmail.com wrote: Or a much easier way is just rename the folder /tools/lib/x86 to / tools/lib/x86_64 On Sep 16, 10:04 pm, David Horn pga...@gmail.com wrote: Hi, I've been unable to run any of the tools in the Donut SDK, using Snow Leopard - it seems to be due to the 64bit nature of theOS. Followed the steps in the upgrade guide, but when it comes to starting any of the tools (android, ddms etc), they refuse to start with the error message: David-Horns-MacBook:tools David$ ./ddms SWT folder '/Users/David/Desktop/Eclipse IDE/android-sdk- mac_x86-1.6_r1/tools/lib/x86_64' does not exist. Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. There is no x86-64 folder, but I've come up with a bit of a bodge that works. Open the file in a handy text editor, and look for the lines: # Combine the swtpath and the framework dir path. if [ -d $swtpath ]; then frameworkdir=${swtpath}:${frameworkdir} else echo SWT folder '${swtpath}' does not exist. echo Please export ANDROID_SWT to point to the folder containing swt.jar for your platform. exit 1 fi Replace them with this, substituting your own path in to the lib folder. # Combine the swtpath and the framework dir path. frameworkdir=/Users/David/Desktop/Eclipse IDE/android-sdk- mac_x86-1.6_r1/tools/lib/x86:${frameworkdir} Hope this helps (not sure if this is a problem unique to me, or whether it's affecting everyone on Snow Leopard). Dave. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Node.setNodeValue(String) not setting value
Hello, Did anyone manage to successfully set a node's value ? Considering a Document d: d.getElementsByTagName(xpto).item(0).getFirstChild().getNodeValue() returns xpto_text d.getElementsByTagName(mportal).item(0).getFirstChild().setNodeValue(foo) then d.getElementsByTagName(xpto).item(0).getFirstChild().getNodeValue() returns xpto_text ...while it is a type 3 (TEXT) node. Am I doing something wrong here ? Thanks in advance, -- Filipe Azevedo (personal): frsazev...@gmail.com (work): filipe-r-azev...@ptinovacao.pt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiple views in same activity
Hi Group, I have an activity that requires several views to be launched sequentially based on user interaction and I don't really understand how to do this. Originally I was using multiple activities to achieve the interaction I wanted, but this is sub-optimal, as the views share the data I receive from the server. My question is, if I have a hierarchical tree of data I would like to browse in sequential lists (for example, Genres - Artists - Albums but on a much smaller data set) what is the easiest way to achieve this in a single Activity? Or is it recommended to launch a separate activity each time the user drills down a level? Many thanks, Brooke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Dynamically changing the content (data) of spinner when opened/closed
Basically I want to be able to tell the difference between the user selected something and the user hasn't selected something yet. I have a static list of items that I want to display in the spinner when it is opened. However, when the user is shown the spinner for the first time (before he opens it), I want the spinner to show “Please select…”. Once the user has opened the spinner I don’t want the “Please select…” item to be shown in the list of possible items. Obviously if the user dismisses the dialog without selecting something I’d like to put the “Please select…” back on the (closed) spinner display. I think I should be able to do this by dynamically adding/removing items from the adapter, but my problem is that I cannot seem to catch the “open spinner” event so that I can do it at the right time. OnClickListener is not supported for spinners. Any ideas what event I can get a callback for when the spinner is opened, so that I can dynamically “fix” the data before the spinner tries to display it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Please help me !
I want to display a overlay in maps ( as Overlay of MyLocation - The circle which can flash ). How to do ? 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Countries for selling priced applications in Android Market
Since then two more countries have been added to the drop-down: Japan Italy Cheers Steve On Sep 17, 2:28 am, monsoon steve...@unimelb.edu.au wrote: FYI I joined up to Android Market the other day (10th Sep 2009), and also could not get past the 'Location' drop-down menu (and, it was only encountered 'after' paying up the membership) - but I did notice that in the locations list ofcountriesthere-in, that can currently buy- and-sellat that time, were: Austria France Germany Netherlands Spain United Kingdom United States I am most interested in when software publishers from Australia cansellon the Android Market. I.e. I currently have a game which I can't get to any users/players (because it costs $1.33). Our previous government made a big song-and-dance about the long- negotiated US-Australia Free Trade Agreement, which I was hoping would lubricate this sort of thing (from both sides of the fence). Lets hope that it does. ...Maybe the EU and the US have a 'Really Truly Free Trade Agreement'? Maybe their respective tax departments are more responsive than ours? Who knows what the log-jam is? Maybe it is a government department issue on our side of the fence?? ... I'll start digging along that line of enquiry (i.e. government departments get more responsive as elections start to loom) next week when I have some free time and let you know if I make any progress. Cheers Steve On Aug 24, 3:58 pm, Michael Leung michaelchi...@gmail.com wrote: Hi, That is near the end of Q3 now. Does anyone know whether there will be a new list ofCountriesfor selling priced applications in Android Market? -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OpenGL 2D Game Framework
Wow - thank you! On 18 Sep, 14:08, rich...@stickycoding.com rich...@stickycoding.com wrote: I've been working on a game framework for a little while, and while its far from perfect, I've put the current version online. To be honest, I haven't used much OpenGL in the past. Before last week I had never tried using it. If anyone would like to take a look, please do, I'd appreciate all the help possible on speeding it up. There are many features I have in mind and am planning at the minute, but so far it supports: # Texture and Sprite management # Text, using TTF fonts # Organised layers # Two audio management classes, one optimized for music, the other for sound effects # Sprite dynamics (acceleration, terminal velocity, collisions) # Animation # Handlers to manage events fired through movement, animation, screen touches, accelerometer input, device shaking and collisions # Several minor features aimed at speeding development, such as screen settings and vibration The code is athttp://code.google.com/p/rokon/ Again, I'd very much appreciate advice or help with any bugs you can see, 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] Problem running on 1.6 SDK.
I'm testing my app with the new 1.6 SDK, and I ran into the error below. The InstantiationException doesn't give me much details. I'm wondering if anyone can give me a tip for how to debug this type of situation. Also, if someone could point me to the source for PhoneLayoutInflater I'd appreciate it. Note: This application works well using the 1.5 SDK. I've tested the 1.5 SDK version a lot in preparation for the ADC2. This problem occurs on a 1.6 Platform, HVGA, API Level 4, Google APIs AVD. I'll describe the code a bit, and give the actual lines which are involved. First, I've sub-classed RelativeLayout. I've only dynamically added a view to the layout after inflation is complete. This RelativeLayout sub-class is used in a ListView. Here are the bits that actually do stuff: package com.flingtap.done; public CheckableRelativeLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); try{ TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CheckableRelativeLayout, defStyle, 0); mRadioButtonResourceId = a.getResourceId (R.styleable.CheckableRelativeLayout_radioButton, 0); if( 0 == mRadioButtonResourceId ){ throw new RuntimeException(You must supply a radioButton attribute.); } a.recycle(); }catch(Exception exp){ Log.e(TAG, ERR00019, exp); } } protected void onFinishInflate() { Log.v(TAG, onFinishInflate() called); super.onFinishInflate(); try{ View radioButtonView = findViewById(mRadioButtonResourceId); assert null != radioButtonView; mRadioButton = (RadioButton) radioButtonView; assert null != mRadioButton; setMinimumHeight(mRadioButton.getHeight()); }catch(Exception exp){ Log.e(TAG, ERR0001A, exp); } } I've put a break point at the first line of both the CheckableRelativeLayout constructor and onFinishInflate method, but neither method seems to be reached. I instantiate this class from an XML layout like so: com.flingtap.done.CheckableRelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; xmlns:app=http://schemas.android.com/apk/res/com.flingtap.done; android:layout_width=fill_parent android:layout_height=?android:attr/listPreferredItemHeight android:drawSelectorOnTop=false app:radioButton=@+id/priority_options_list_item_radio_button android:paddingLeft=6dip android:paddingRight=6dip resources declare-styleable name=CheckableRelativeLayout attr name=radioButton format=reference/ /declare-styleable .. I also added a Java exception breakpoint for InflateException and I get this stack: PhoneLayoutInflater(LayoutInflater).createView(String, String, AttributeSet) line: 516 PhoneLayoutInflater(LayoutInflater).createViewFromTag(String, AttributeSet) line: 564 PhoneLayoutInflater(LayoutInflater).inflate(XmlPullParser, ViewGroup, boolean) line: 385 ... I searched the GIT repository for the PhoneLayoutInflater, but could not find it. Anyone know where I can find the source for this PhoneLayoutInflater? Finally, here is the error: 09-21 00:41:58.154: DEBUG/AndroidRuntime(773): Shutting down VM 09-21 00:41:58.154: WARN/dalvikvm(773): threadid=3: thread exiting with uncaught exception (group=0x4001aa28) 09-21 00:41:58.234: ERROR/AndroidRuntime(773): Uncaught handler: thread main exiting due to uncaught exception 09-21 00:41:58.264: ERROR/AndroidRuntime(773): android.view.InflateException: Binary XML file line #7: Error inflating class java.lang.reflect.Constructor 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.view.LayoutInflater.createView(LayoutInflater.java:512) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:564) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.view.LayoutInflater.inflate(LayoutInflater.java:385) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at com.flingtap.done.LeanAdapter.newView(LeanAdapter.java:48) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at com.flingtap.done.LeanAdapter.getView(LeanAdapter.java:37) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.widget.AbsListView.obtainView(AbsListView.java:1273) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.widget.ListView.measureHeightOfChildren(ListView.java:1147) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.widget.ListView.onMeasure(ListView.java:1060) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at android.view.View.measure(View.java:7703) 09-21 00:41:58.264: ERROR/AndroidRuntime(773): at
[android-developers] calendar sync with outlook
Hi My HTC Hero syncs fine mostly with Outlook 07, for contacts and calendar, but it did not copy a calendar entry from my phone, colour coded My Calendar, back into Outlook. Why? Can this be fixed? While here can the sync be developed to sync Notes from Outlook, or should I just migrate to a google cloud? Thanks JH --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Notification without status bar icon
does anyone nkow how to create a notification without putting an icon into the status bar? So you won't see an icon up top, but you can see the notification when you pull down the notification window. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Error running android on snow leopard
Added following command to .bash_profile export ANDROID_SWT=/Users/tusharkale/android-sdk-mac_x86-1.6_r1/tools/ lib/x86 Entered android command but got following exception: Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source) at org.eclipse.swt.internal.C.clinit(Unknown Source) at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source) at org.eclipse.swt.widgets.Display.create(Unknown Source) at org.eclipse.swt.graphics.Device.init(Unknown Source) at org.eclipse.swt.widgets.Display.init(Unknown Source) at org.eclipse.swt.widgets.Display.init(Unknown Source) at org.eclipse.swt.widgets.Display.getDefault(Unknown Source) at org.eclipse.swt.widgets.Shell.init(Unknown Source) at org.eclipse.swt.widgets.Shell.init(Unknown Source) at com.android.sdkuilib.internal.repository.UpdaterWindowImpl.createContents (UpdaterWindowImpl.java:112) at com.android.sdkuilib.internal.repository.UpdaterWindowImpl.open (UpdaterWindowImpl.java:92) at com.android.sdkuilib.repository.UpdaterWindow.open (UpdaterWindow.java:91) at com.android.sdkmanager.Main.showMainWindow(Main.java:252) at com.android.sdkmanager.Main.doAction(Main.java:226) at com.android.sdkmanager.Main.run(Main.java:79) at com.android.sdkmanager.Main.main(Main.java:68) ~Tushar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] World class wireless software firm seeks superstar Blackberry developer with Android experience
We are a North American Leader in the wireless software solutions development area. We develop scalable and enterprise level applications for the Blackberry and iPhone. We have an excellent business model, phenomenal C level management body, strong market capitalization, an inelastic based solution line, are visionary, foster a dynamic corporate culture, have a star studded client list etc Currently searching for a superstar: Java ME, |Blackberry Developer · Minimum 2 years of relevant development work experience Experience with other programming languages a bonus Agile development practice experience and Android development a bonus Excellent Communication Skills · Please only fully qualified candidates submit your resume to kh...@rogers.com for immediate interview consideration! Omer Khan Senior Consultant KHK Partners phone-(905)-884-2794 fax-(905)-770-6802 e-mail-kh...@rogers.com www.khkpartners.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] 64bits version of the SDK ?
Hi, Is it planned to release a pure 64bits version of the current android SDK ? I am running slackware64 (without multilib hack) and thus I can't use any tool from the tools directory (adb for example). Thank you. -- Xavier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Including other Java source projects in Android project
Is it possible to include other Java source projects in Eclipse into an Android project? Normally for a regular Java project you do this by adding the other project to the build path and including it in the Project References. This same approach lets the code compile, but when the app is deployed to the emulator, it throws a VerifyError when I try and instantiate classes from my other project. Is this possible with the Android SDK? Do you have to build them to jars and include them inside your Android project like this? I know this works, but just involves more steps to do this. Thanks, Kevin Hooke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OnItemClickListener onItemClick in custom adapter not firing
Hi, in a custom ArrayAdapter i don't see onItemClick firing. I would like to pack all the logic in there so i need access to the views in each row of the adapter (2 Buttons,1 EditText). I was looking on the internet for hours to find a real howto. Q1: Is there a tutorial on the net? Q2: Do you see a bug/whats missing? Q3: How to seduce a clicked View in onItemClick? Any help is really really appreciated, lf.hl --This is the activity--- package org.rice; import android.app.Activity; import android.view.View; import android.view.View.OnClickListener; import android.widget.*; import android.os.Bundle; import java.util.*; import android.widget.AdapterView.OnItemClickListener; import android.util.*; public class AdapterTest extends Activity{ private ArrayListFuItem fItems; private ArrayAdapterFuItem aa; private ListView myListView; private void fillit(){ fItems = new ArrayListFuItem(); for(int i = 0; i 5; i++){ FuItem fi = new FuItem(String.valueOf(i), (float)i); fItems.add(fi); } } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); myListView = (ListView)findViewById(R.id.liste); fillit(); int resId = R.layout.row; aa = new FuItemAdapter(this, resId, fItems); myListView.setAdapter(aa); myListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); myListView.setItemsCanFocus(true); myListView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub Log.i(adaptertest, onItemClick fired); } }); } } -Custom Adapter FuItemAdapter--- package org.rice; import android.view.*; import android.view.View.OnClickListener; import android.widget.*; import android.content.Context; import java.util.*; import android.util.*; import android.widget.Button; public class FuItemAdapter extends ArrayAdapterFuItem { int resource; public FuItemAdapter(Context _context, int _resource, ListFuItem _items) { super(_context, _resource, _items); resource = _resource; } @Override public View getView(int position, View convertView, ViewGroup parent) { LinearLayout fuitemView; FuItem item = getItem(position); String productString = item.getProduct(); String priceString = String.valueOf(item.getPrice()); if(convertView == null){ fuitemView = new LinearLayout(getContext()); String inflater = Context.LAYOUT_INFLATER_SERVICE; LayoutInflater vi; vi = (LayoutInflater)getContext().getSystemService(inflater); vi.inflate(resource, fuitemView, true); } else { fuitemView = (LinearLayout) convertView; } TextView productView = (TextView)fuitemView.findViewById (R.id.product); EditText priceView = (EditText)fuitemView.findViewById(R.id.price); Button down = (Button)fuitemView.findViewById(R.id.down); Button up = (Button)fuitemView.findViewById(R.id.up); down.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i(getClass().getSimpleName(),button onclick fired: ); } }); up.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i(getClass().getSimpleName(),button onclick fired); } }); priceView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i(getClass().getSimpleName(),button onclick fired); } }); priceView.setFocusable(true); down.setFocusable(true); productView.setText(productString); priceView.setText(priceString); return fuitemView; } public boolean areAllItemsSelectable() { return true; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to
[android-developers] How to add entry (pointing to A ctivity) to “Home Screen - Menu - Add - Shortcuts”?
Hi, I'm writing program for Android (SDK 1.5). I would like to know how to add/register one of my program activities in Home Screen - Menu - Add- Shortcuts (or on Hero Home Screen - Menu - Add to Home- Shortcut) so that user will be able to add it to his home screen. Is there an Intent Filter or any other way to achieve that? Thanks, Andrzej Duś --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to add entry (pointing to Activity) to “Home Screen - Menu - Add - Shortcu ts”?
I have never tried this, but this is from Any Cut's manifest: activity android:name=.CreateShortcutActivity intent-filter action android:name=android.intent.action.CREATE_SHORTCUT / category android:name=android.intent.category.DEFAULT / /intent-filter /activity http://code.google.com/p/apps-for-android/source/browse/trunk/AnyCut/AndroidManifest.xml Hope that helps. Paul On Sep 20, 12:51 pm, Andrzej Duś andrzej@gmail.com wrote: Hi, I'm writing program for Android (SDK 1.5). I would like to know how to add/register one of my program activities in Home Screen - Menu - Add- Shortcuts (or on Hero Home Screen - Menu - Add to Home- Shortcut) so that user will be able to add it to his home screen. Is there an Intent Filter or any other way to achieve that? Thanks, Andrzej Duś --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hierarchy Viewer
Hi everybody, I would like to know how the Hierarchy Viewer tool does to get information from phone screen? Is it use telnet or ADB? I need to use these same information in my own tool. By Marcelo Alves --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OnItemClickListener onItemClick in custom adapter not firing
Hi, You bind onItemClick twice. Did you see any log when item is clicked? On Sun, Sep 20, 2009 at 5:09 AM, lf.hl flod...@googlemail.com wrote: Hi, in a custom ArrayAdapter i don't see onItemClick firing. I would like to pack all the logic in there so i need access to the views in each row of the adapter (2 Buttons,1 EditText). I was looking on the internet for hours to find a real howto. Q1: Is there a tutorial on the net? Q2: Do you see a bug/whats missing? Q3: How to seduce a clicked View in onItemClick? Any help is really really appreciated, lf.hl --This is the activity--- package org.rice; import android.app.Activity; import android.view.View; import android.view.View.OnClickListener; import android.widget.*; import android.os.Bundle; import java.util.*; import android.widget.AdapterView.OnItemClickListener; import android.util.*; public class AdapterTest extends Activity{ private ArrayListFuItem fItems; private ArrayAdapterFuItem aa; private ListView myListView; private void fillit(){ fItems = new ArrayListFuItem(); for(int i = 0; i 5; i++){ FuItem fi = new FuItem(String.valueOf(i), (float)i); fItems.add(fi); } } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); myListView = (ListView)findViewById(R.id.liste); fillit(); int resId = R.layout.row; aa = new FuItemAdapter(this, resId, fItems); myListView.setAdapter(aa); myListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); myListView.setItemsCanFocus(true); myListView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView? arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub Log.i(adaptertest, onItemClick fired); } }); } } -Custom Adapter FuItemAdapter--- package org.rice; import android.view.*; import android.view.View.OnClickListener; import android.widget.*; import android.content.Context; import java.util.*; import android.util.*; import android.widget.Button; public class FuItemAdapter extends ArrayAdapterFuItem { int resource; public FuItemAdapter(Context _context, int _resource, ListFuItem _items) { super(_context, _resource, _items); resource = _resource; } @Override public View getView(int position, View convertView, ViewGroup parent) { LinearLayout fuitemView; FuItem item = getItem(position); String productString = item.getProduct(); String priceString = String.valueOf(item.getPrice()); if(convertView == null){ fuitemView = new LinearLayout(getContext()); String inflater = Context.LAYOUT_INFLATER_SERVICE; LayoutInflater vi; vi = (LayoutInflater)getContext().getSystemService(inflater); vi.inflate(resource, fuitemView, true); } else { fuitemView = (LinearLayout) convertView; } TextView productView = (TextView)fuitemView.findViewById (R.id.product); EditText priceView = (EditText)fuitemView.findViewById(R.id.price); Button down = (Button)fuitemView.findViewById(R.id.down); Button up = (Button)fuitemView.findViewById(R.id.up); down.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i(getClass().getSimpleName(),button onclick fired: ); } }); up.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i(getClass().getSimpleName(),button onclick fired); } }); priceView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Log.i(getClass().getSimpleName(),button onclick fired); } }); priceView.setFocusable(true); down.setFocusable(true); productView.setText(productString); priceView.setText(priceString); return fuitemView; }
[android-developers] Re: Including other Java source projects in Android project
In general you have not to create a jar package and add it to your build path. Make sure that you have your project created as a Java project. Also make sure that you don't see any problems/errors. When you now add this project to your existing Android project, I normally select only the project tab in the Java build path and select the open Java project. After pressing OK, you should see that any dependency to your Java project can be resolved and existing problems/ errors should disappear. Let me know if you still have any issues. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 18, 11:11 am, kevin.hooke kevin.ho...@gmail.com wrote: Is it possible to include other Java source projects in Eclipse into an Android project? Normally for a regular Java project you do this by adding the other project to the build path and including it in the Project References. This same approach lets the code compile, but when the app is deployed to the emulator, it throws a VerifyError when I try and instantiate classes from my other project. Is this possible with the Android SDK? Do you have to build them to jars and include them inside your Android project like this? I know this works, but just involves more steps to do this. Thanks, Kevin Hooke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Who's NYC?
There is a meetup group http://www.meetup.com/androidnyc/ On Sep 19, 2:15 pm, MrErnestManigoJr mrernestmanig...@gmail.com wrote: I would like to meet NYC developers! I have an idea! Maybe we can co- create and introduce to the world together! Also, who is (of course, from NYC) that's great at creating Computer Games? Lets get it going! Ernest Manigo, Jr. Innervisions 646-436-1084 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Bug in GL10.texSubImage2D?
I'm a little confused by what you're doing. You're first calling texImage2D, which uploads mImg to vram as your texture. The very next call you make is texSubImage2D with an offset of 0 and 0, which uploads texture to vram, overwriting mImg. I'm assuming that: 1) mImg is 128x128 2) You first upload mImg to allocate a space as big as mImg 3) None of your textures are greater than mImg's width or height I'm going to suggest you change your code to do the following: 1) Create a bitmap of 128x128 or whatever size is appropriate for each dynamic texture, unless you have many different images you want to use. 2) Draw your texture to that bitmap 3) Upload that texture using regular texImage2D (in my tests, it's faster for full-size updates than using texSubImage2D). 4) If using one scratchpad bitmap, just erase it and reuse. Remember to .recycle() when done with it. basically, I suggest that you only upload once to vram and do any pre- processing on the client-side using a Bitmap or many Bitmaps depending on your app/game. That's how I do it. You can texImage2D the same textureId as many times as you like. Also, I recommend using GL_NICEST for perspective correction when dealing with large projected quads. It's not as fast as GL_FASTEST but for big triangles, it's the only way to guarantee they won't get really weird when cut off at near-Z. I have renderer classes that render game objects for my games. My renderers all look like this: public MyRenderer(GL10 gl) { // read geometry from disk resource reInit(gl); } public void reInit(GL10 gl) { // create VBOIds // upload VBOs // create textureIds // upload textures } public void draw(GL10 gl, GameObject obj) { // bind VBOs and TextureIds // transform for obj // draw elements } so if I wanted a dynamic texture, I'd just add in this: public void setTexture(GL10 gl, Bitmap texture) { // bind to appropriate textureId // upload whichTex } though I'd never let the main renderer hang on to bitmaps that an object render will be drawing - I would be managing that in the object renderer, so probably passing a sort of pointer or configuration, usually in the form of an int constant, like: public static final int TEXTURE_HAPPY_FACE = 0; public static final int TEXTURE_ANGRY_FACE = 1; public void setTexture(GL10 gl, int whichTex) { // bind to appropriate textureId // upload bitmap associated with whichTex if (whichTex == TEXTURE_HAPPY_FACE) { // upload happy face bitmap that we loadad probably in our constructor or somewhere before runtime. } } I know I'm not solving your exact problem, but I think if you followed this, you wouldn't have it anymore. If you want to stick with what you've got, throw some debug statements in there to print out the image size and the texture coordinates so you can make sure that it's not just a problem with those. If they look exactly right, Just make sure you're not doing something goofy like uploading an image that's bigger than the original. On Sep 20, 4:53 pm, Mark Gjøl bitflips...@gmail.com wrote: I am developing an application that dynamically changes the texture of an object. The textures I download from the internet and are of fairly random aspect ratios. I apply these textures to a 2^nth texture using GLUtils.texSubImage2D supplying the bitmap containing the texture, and only use the part of the constructed texture that holds the newly applied data. This works fine when using textures with a greater width than height. However, when using tall images, I sometimes get images that are skewed. That is, it seems as if the texture is copied to the new texture, but with the width being one off, so each line just one pixel too short. This happens consistently when using the same images, however it does not happen for all tall images. Code for applying the texture: public void setTexture(GL10 gl, Bitmap texture) { int height = texture.getHeight(); int width = texture.getWidth(); float heightRatio = ((float)height) / 128; float widthRatio = ((float)width) / 128; maspect = width / (float)height; int[] textures = new int[1]; gl.glGenTextures(1, textures, 0); mTextureID = textures[0]; gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE); gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_BLEND);
[android-developers] Re: Two SurfaceViews in a FrameLayout
How would one render the overlay in the main window while the other views are active (or at all, for that matter)? I am interesting in overlaying OpenGL over a camera preview. What is the way to get the GLSurfaceView object when it is an overlay? On Jul 30, 6:40 am, Dianne Hackborn hack...@android.com wrote: It's probably not the best way, but right now you simply can not have multiple overlapping surface views in a window, so the only way to achieve this is to render the overlay in the main window. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Restore last viewed Activity
I think you could save some variable in file , and read it in your application's onCreate and start the specific activity --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Two SurfaceViews in a FrameLayout
Multiple active overlapping surface views, of any sort, are not currently supported by the framework. You may get them to work, but it is mostly due to luck -- the view hierarchy does not define the Z-ordering of those surfaces, nor try to ensure they are Z-ordered in any particular way, so this may change for whatever reason. On Sun, Sep 20, 2009 at 6:14 PM, SChaser crotalistig...@gmail.com wrote: How would one render the overlay in the main window while the other views are active (or at all, for that matter)? I am interesting in overlaying OpenGL over a camera preview. What is the way to get the GLSurfaceView object when it is an overlay? On Jul 30, 6:40 am, Dianne Hackborn hack...@android.com wrote: It's probably not the best way, but right now you simply can not have multiple overlapping surface views in a window, so the only way to achieve this is to render the overlay in the main window. -- 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: HOW TO UNINSTALL ANDROID DEFAULT APPLICATION
This is not possible, not even through the application manager. You'd need to build your own version of the system, flashing a device with that system image. A discussion about that would belong on android-porting. On Sat, Sep 19, 2009 at 12:13 AM, uhmi exosmath...@gmail.com wrote: Hello, For professional use, I need to uninstall default application (camera, browser, etc...). It seems not to be possible via the application manager. Is there a way to do it? Thanks -- 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: Android Toast Duration
Dialog has a constructor taking a theme. On Sun, Sep 20, 2009 at 4:07 PM, Jason Van Anden jason.van.an...@gmail.comwrote: I was hoping I could simply apply the theme in xml rather than have to create an Activity and apply it in onCreate. Thanks for clearing that up. Jason On Sat, Sep 19, 2009 at 3:08 PM, Dianne Hackborn hack...@android.com wrote: (Btw, Api demos has one or two examples of creating custom themed dialogs, I believe in the app section.) On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.com wrote: You are making a theme, which is a kind of style that applies to an entire context, but just a UI element. You need to use it as the theme for an activity take or the second argument to the Dialog constructor, however you are creating the window. On Sat, Sep 19, 2009 at 11:26 AM, Jason Van Anden jason.van.an...@gmail.com wrote: Dear Dianne et al, My feedback was meant as constructive criticism in general - definitely not as a dis directed at you. I believe that an example is worth a thousand words - it works or it don't. I appreciate the time you spend with the board. I make it a point to star pretty much anything you write here so I can review it later. This particular thread was recalled exactly because of this. Your suggestion of altering the style of a dialog seems perfect for a step by step walk through of an app - which is what I am working on. Clearly we need more generous experts like yourself helping Android along. That being said ... I thought I had figured it out - but I am still stumped. If someone out there could help, it will help save at least one Android developer's weekend ... Here is my code: Within my theme.xml I have: resources style name=ToastyDialog parent=android:Theme item name=android:windowBackground@android:drawable/toast_frame/item item name=android:windowAnimationStyle@android:style/Animation.Toast/item /style resources Within my dialog layout I have: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical style=@style/ToastyDialog TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/hello_world /TextView /LinearLayout NOTE: The Eclipse interface gives you a choice to pick a theme, and my theme does appear. Thing is, it does not write it in the XML. I added the style tag based upon this post: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ I sincerely hope that I am making a stupid, obvious mistake. Thank You, Jason On Sat, Sep 19, 2009 at 1:25 PM, Dianne Hackborn hack...@android.com wrote: On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden jason.van.an...@gmail.com wrote: There are a few threads on this topic that offer advice where an example would be more useful (IMHO). I post to this list in my (oh so copious) spare time; I can either post answers that I can do quickly, or just not post at all if it is going to take me time to put together and test an example. Your choice. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
[android-developers] Re: Countries for selling priced applications in Android Market
Hi there, I too have been waiting a long time to sell paid app's from Australian devs. Initially I thought we would be included much earlier as Optus/ Singtel have been selling 'G1' type phones for quite a while now and you can buy apps through the market with these phones. But alas this is not to be yet, despite being able to use Google checkout for other purposes. I guess Google knows there is only a few Android devs here in Australia ( and they would probably know the number of android phones Optus has been selling ) so it is not worth their efforts yet and are probably concentrating on regions where more devs reside... Regards On Sep 17, 2:28 am, monsoon steve...@unimelb.edu.au wrote: FYI I joined up to Android Market the other day (10th Sep 2009), and also could not get past the 'Location' drop-down menu (and, it was only encountered 'after' paying up the membership) - but I did notice that in the locations list of countries there-in, that can currently buy- and-sell at that time, were: Austria France Germany Netherlands Spain United Kingdom United States I am most interested in when software publishers from Australia can sell on the Android Market. I.e. I currently have a game which I can't get to any users/players (because it costs $1.33). Our previous government made a big song-and-dance about the long- negotiated US-Australia Free Trade Agreement, which I was hoping would lubricate this sort of thing (from both sides of the fence). Lets hope that it does. ...Maybe the EU and the US have a 'Really Truly Free Trade Agreement'? Maybe their respective tax departments are more responsive than ours? Who knows what the log-jam is? Maybe it is a government department issue on our side of the fence?? ... I'll start digging along that line of enquiry (i.e. government departments get more responsive as elections start to loom) next week when I have some free time and let you know if I make any progress. Cheers Steve On Aug 24, 3:58 pm, Michael Leung michaelchi...@gmail.com wrote: Hi, That is near the end of Q3 now. Does anyone know whether there will be a new list of Countries for selling priced applications in Android Market? -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Two SurfaceViews in a FrameLayout
Thanks for the prompt response. How does one do augmented reality, then? On Sep 20, 6:56 pm, Dianne Hackborn hack...@android.com wrote: Multiple active overlapping surface views, of any sort, are not currently supported by the framework. You may get them to work, but it is mostly due to luck -- the view hierarchy does not define the Z-ordering of those surfaces, nor try to ensure they are Z-ordered in any particular way, so this may change for whatever reason. On Sun, Sep 20, 2009 at 6:14 PM, SChaser crotalistig...@gmail.com wrote: How would one render the overlay in the main window while the other views are active (or at all, for that matter)? I am interesting in overlaying OpenGL over a camera preview. What is the way to get the GLSurfaceView object when it is an overlay? On Jul 30, 6:40 am, Dianne Hackborn hack...@android.com wrote: It's probably not the best way, but right now you simply can not have multiple overlapping surface views in a window, so the only way to achieve this is to render the overlay in the main window. -- 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: 64bits version of the SDK ?
Not at this time. Xav On Fri, Sep 18, 2009 at 11:13 PM, Xavier Maillard xav...@maillard.im wrote: Hi, Is it planned to release a pure 64bits version of the current android SDK ? I am running slackware64 (without multilib hack) and thus I can't use any tool from the tools directory (adb for example). Thank you. -- Xavier -- Xavier Ducrohet Android Developer Tools Engineer Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] firmware versions
What percent of the customers are have 1.5? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Countries for selling priced applications in Android Market
I'm also an Australian Dev. However, I gave up waiting for Google and started selling my app through a friends U.S. address. Although, I haven't cashed out any of the money yet (don't want to deal with the tax implications of a US bank account). The wierd thing is, Google are already paying straight into my Australian bank account for my AdSense account, so I'm not sure what the trouble is. On Sep 21, 12:14 pm, gjs garyjamessi...@gmail.com wrote: Hi there, I too have been waiting a long time to sell paid app's from Australian devs. Initially I thought we would be included much earlier as Optus/ Singtel have been selling 'G1' type phones for quite a while now and you can buy apps through the market with these phones. But alas this is not to be yet, despite being able to use Google checkout for other purposes. I guess Google knows there is only a few Android devs here in Australia ( and they would probably know the number of android phones Optus has been selling ) so it is not worth their efforts yet and are probably concentrating on regions where more devs reside... Regards On Sep 17, 2:28 am, monsoon steve...@unimelb.edu.au wrote: FYI I joined up to Android Market the other day (10th Sep 2009), and also could not get past the 'Location' drop-down menu (and, it was only encountered 'after' paying up the membership) - but I did notice that in the locations list of countries there-in, that can currently buy- and-sell at that time, were: Austria France Germany Netherlands Spain United Kingdom United States I am most interested in when software publishers from Australia can sell on the Android Market. I.e. I currently have a game which I can't get to any users/players (because it costs $1.33). Our previous government made a big song-and-dance about the long- negotiated US-Australia Free Trade Agreement, which I was hoping would lubricate this sort of thing (from both sides of the fence). Lets hope that it does. ...Maybe the EU and the US have a 'Really Truly Free Trade Agreement'? Maybe their respective tax departments are more responsive than ours? Who knows what the log-jam is? Maybe it is a government department issue on our side of the fence?? ... I'll start digging along that line of enquiry (i.e. government departments get more responsive as elections start to loom) next week when I have some free time and let you know if I make any progress. Cheers Steve On Aug 24, 3:58 pm, Michael Leung michaelchi...@gmail.com wrote: Hi, That is near the end of Q3 now. Does anyone know whether there will be a new list of Countries for selling priced applications in Android Market? -- Regards, Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info- 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: Restore last viewed Activity
I think you can also save the Preferenceor make use of onSaveInstance method to achiev your goal. On Mon, Sep 21, 2009 at 7:12 AM, Mingli Wang rint...@gmail.com wrote: I think you could save some variable in file , and read it in your application's onCreate and start the specific activity --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to reference resources (images) from a HTML page in webview?
put image in assets folder.. then img src = file:///android_asset/filename.png Thats it.. try now. On Sep 19, 1:29 am, Agus agus.sant...@gmail.com wrote: How to reference resources (images) from a HTML page in webview? I am trying to display an image in html and the image is an android resource. html body img src= ? / /body /html What should i put on src attribute? Thanks, Agus. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can I change The SoftKeyboard's preview layout?
Hello~ all! Now I'm making a softKeyboard. but I couldn't change The softkeyboard's preview layout! I already show HTC hero's softkeyboard and other softkeyboard app. they did change preview layout. and that's cool! Could you Tell me how I to do or give me simple code :-) 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] Question about the license of the non-free applications
Android is developed under the Apache v2 License but what about of the non-free applications? -- Chihau Chau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Question about the license of the non-free applications
Please do not cross-post. Post your question to one mailing list at a time. If you do not get a response to the first question after a reasonable period (say, 24 hours), then perhaps try another list. Android is developed under the Apache v2 License but what about of the non-free applications? If you are referring to the Android Market, YouTube, Google Maps, and such, those are proprietary applications. Device manufacturers can license those from Google, by some undocumented process. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Nested Query
Hi, can anyone please tell me how to use nested queries in SQLite here is the simple for which i hav written the code, * retrieves the id, first and last from the table TABLE1 and sortby id, c=db.query(TABLE1, new String[] {ID, FIRST, LAST}, null, null, id, null, null);* but how can i write a code for the query *retrieves the id, first and last from the table TABLE1 and sortby id, the data should also be sorted by firstname too * select id, first, last from table1 where -- Bharath B.G. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Incorrect image attachment size in Email application
I have configured Gmail through Email application available in Andorid using IMAP. Whenever i send an image as attachment of more than 5 MB from another mail to the configure mail, Email application displays the attachment size as 8 MB, any ideat? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---