[android-developers] programming gtablet

2011-04-28 Thread bob
Is there any Windows driver or something that will allow you to program on a Viewsonic G Tablet from Windows? 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

Re: [android-developers] programming gtablet

2011-04-28 Thread Mark Murphy
On Thu, Apr 28, 2011 at 4:22 PM, bob b...@coolgroups.com wrote: Is there any Windows driver or something that will allow you to program on a Viewsonic G Tablet from Windows? There is a generic USB driver for adb available through the SDK and AVD Manager. It may work, it may not. Viewsonic does

Re: [android-developers] Build 2 apk same time?

2011-04-28 Thread Sunil Lakhiyani
yes i do. can you please tell what do you want to say? how do i change url using ant, as url is in java file. On Thu, Apr 28, 2011 at 12:48 PM, Kumar Bibek coomar@gmail.com wrote: Do you know ant scripts? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Apr

[android-developers] Re: ExpandableListView for only mp3 albums. Tips requested

2011-04-28 Thread Gabriel Simões
Please, any insights would be of great help.. Tnx! On Apr 27, 10:57 pm, Gabriel Simões gsim...@gmail.com wrote: Hello, I´ve been trying to figure a way out to search MediaStore.Audio.Albums and MediaStore.Audio.Media to retrieve a list of mp3 albums and organize them in an

Re: [android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Kostya Vasilyev
29.04.2011 0:01, Eric пишет: The main thing I was asking about is, if the Service that the Activity needs is not created and/or connected yet, should the Activity handle that gracefully and watch out for NPE's, etc, or should the Activity just shut itself down in favor of a temporary Please wait

[android-developers] Re: programming gtablet

2011-04-28 Thread bob
How do I tell it to try the generic driver? On Apr 28, 3:24 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Apr 28, 2011 at 4:22 PM, bob b...@coolgroups.com wrote: Is there any Windows driver or something that will allow you to program on a Viewsonic G Tablet from Windows? There is

Re: [android-developers] Re: programming gtablet

2011-04-28 Thread Mark Murphy
On Thu, Apr 28, 2011 at 5:28 PM, bob b...@coolgroups.com wrote: How do I tell it to try the generic driver? http://developer.android.com/sdk/win-usb.html#InstallingDriver -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

[android-developers] Re: System.exit

2011-04-28 Thread Indicator Veritatis
I have worked for companies where even highly experienced and otherwise valuable employees were fired for making posts like the one you made here. On Apr 26, 6:37 am, Dianne Hackborn hack...@android.com wrote: You are ignore all of the other replies I didn't make to other threads because of

[android-developers] Re: Live Video Streaming from Android

2011-04-28 Thread Tanmay
Hi Sumeet, I have been looking at live video streaming as well. My main worry is the format of the video when you record it from the mediaRecorder. Did you find the MOV atoms in the correct place (before the DAT atoms). Because the media recorder apparently fills in these after the recording is

[android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-28 Thread MichaelEGR
CRITICAL NIO FLAW FOUND And I did the leg work again here and put in ~4 hours to reduce the bug to a most fundamental example that should be a unit test in Android. That it is not and this bug made it to production / shipping is amazing. On all Java platforms 1.4, 5.0, 6.0 and Android OS version

Re: [android-developers] Re: System.exit

2011-04-28 Thread Miguel Morales
Calling System.exit() or even asking for it tells me that your code flow is seriously flawed. The lifecycle of a mobile app is complex, and as such you should follow best practices. On Thu, Apr 28, 2011 at 2:43 PM, Indicator Veritatis mej1...@yahoo.comwrote: I have worked for companies where

[android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-28 Thread Elliott Hughes
from the unit tests: // duplicate always returns a big-endian buffer. b.order(ByteOrder.BIG_ENDIAN); assertEquals(ByteOrder.BIG_ENDIAN, b.duplicate().order()); b.order(ByteOrder.LITTLE_ENDIAN); assertEquals(ByteOrder.BIG_ENDIAN, b.duplicate().order());

[android-developers] Honeycomb / 3.0 / Critical Java NIO Regression for duplicate()

2011-04-28 Thread MichaelEGR
Greets, I found a critical Java NIO flaw in Honeycomb / Android 3.0. If duplicate() is called on a Buffer and that duplicate view is used to write to the buffer data integrity is not guaranteed. This is a regression for Honeycomb only at this point. I got stuck with a ~45 hour debug cycle to

[android-developers] problem with asyntask

2011-04-28 Thread ABSOLUT
Hi I have a function that it consume a long time. Depending the function result there is an if condition that it executes other asyntask. The problem is that it executes the asyntasks consecutive because the first asyntask didnt finished when the code arrives to the if and launch the other

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Doug
On Apr 28, 12:43 pm, Dianne Hackborn hack...@android.com wrote: On Thu, Apr 28, 2011 at 3:31 PM, Eric e...@alum.mit.edu wrote: In addition, my app has a large volume of data displayed in many Activities, not just one set of server data / one Activity. Another way you can approach this is to

Re: [android-developers] problem with asyntask

2011-04-28 Thread TreKing
On Thu, Apr 28, 2011 at 5:42 PM, ABSOLUT davidt...@gmail.com wrote: How could i fix it? Launch both Tasks within a third Task that executes them both, sequentially, using the get() method to block on the first.

[android-developers] Re: problem with asyntask

2011-04-28 Thread Nicholas Johnson
I'm having trouble understanding your problem. From your post, you have 2 AsyncTasks. Launching task B depends upon the result of task A. So, the tasks will run sequentially by design. Is there a specific error that this scenario is generating an error for you? That is, are you having a

[android-developers] Re: Honeycomb / 3.0 / OpenGL ES / Broken / Again!?!

2011-04-28 Thread MichaelEGR
Interesting.. Thanks for your input Elliot.. I do want to clarify things as you allude that the byte order switch occurs on duplicate() and other methods is a specific regression with Honeycomb; is this correct? Elliott: allocate/allocateDirect/map/wrap/duplicate/slice always return a big- endian

[android-developers] widget color

2011-04-28 Thread bob
How do you change the color of a widget when you are graphically editing the layout? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] Re: programming gtablet

2011-04-28 Thread bob
I tried it, but it didn't work. Thanks anyhow. On Apr 28, 4:32 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Apr 28, 2011 at 5:28 PM, bob b...@coolgroups.com wrote: How do I tell it to try the generic driver? http://developer.android.com/sdk/win-usb.html#InstallingDriver --

[android-developers] Re: System.exit

2011-04-28 Thread Indicator Veritatis
You are directing this to the wrong person. I do not call System.exit() in any of my shipping code, not in Android, not in Sun Java. But I have to agree with lbendlin's comments about the paranoid user. Yet at the same time, once corrected for the logical mistakes in expression whose criticism

[android-developers] Re: Non-US buyers still charged in US$.

2011-04-28 Thread Zsolt Vasvari
I got UK pounds orders as well, but some of them are still charged in US$. I'd say 80% goes through in the right currency and than 20% does not. On Apr 28, 8:38 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 28 April 2011 11:36, Zsolt Vasvari zvasv...@gmail.com wrote: I have prices

Re: [android-developers] Re: System.exit

2011-04-28 Thread Miguel Morales
There are some issues with the documentation, specially in regards as to how one should handle the lifecycle appropriately. Although, granted there are several scenarios so there's no 'best practice' but rather 'best practice depending on what you are doing.' So it's probably not easy to make

[android-developers] Re: Acer Iconia A500

2011-04-28 Thread Zsolt Vasvari
AFAIK, to get Market access, you must be able to debug on the device. So, yes, you may need special drivers downloaded from Acer, but it should be available. I'd look first. On Apr 28, 8:27 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 28 April 2011 11:09, Zsolt Vasvari

[android-developers] Re: Honeycomb / 3.0 / Critical Java NIO Regression for duplicate()

2011-04-28 Thread MichaelEGR
Some more clarification... The byte order is not preserved with duplicate(), slice() and potentially other NIO methods, but those two for sure. So if you have a FloatBuffer w/ native byte order of LITTLE_ENDIAN call duplicate() on it will result in a view with BIG_ENDIAN byte order on Honeycomb.

Re: [android-developers] Re: System.exit

2011-04-28 Thread Dianne Hackborn
On Thu, Apr 28, 2011 at 5:43 PM, Indicator Veritatis mej1...@yahoo.comwrote: I have worked for companies where even highly experienced and otherwise valuable employees were fired for making posts like the one you made here. I don't work at those companies. I post on this list in my spare

[android-developers] Re: Honeycomb / 3.0 / Critical Java NIO Regression for duplicate()

2011-04-28 Thread Zsolt Vasvari
You realize 0x1 is 65536 not 65535 On Apr 29, 8:14 am, MichaelEGR foun...@egrsoftware.com wrote: Some more clarification... The byte order is not preserved with duplicate(), slice() and potentially other NIO methods, but those two for sure. So if you have a FloatBuffer w/ native

Re: [android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Dianne Hackborn
On Thu, Apr 28, 2011 at 7:04 PM, Doug beafd...@gmail.com wrote: Another way you can approach this is to have a singleton that arbitrates access to the service -- it binds through the application context, and has a reference count of the current activities using it, to know when to unbind.

[android-developers] Re: Best Practice for Activities that Absolutely Depend on Services

2011-04-28 Thread Indicator Veritatis
Shouldn't the OP also consider implementing all data access over the net with a ContentProvider and then using a managed Cursor to access it? It seems to me that would remove the need to frequently check for null, since the managed Cursor will manage many of the lifecycle issues for him. On Apr

[android-developers] Re: Help needed on porting Flixel Framework to Android. Current issue: switch from canvas draw to opengl es

2011-04-28 Thread Mario Zechner
Neat, a Flixel Android port would indeed be a nice to have. I saw that the project is actually not an Actionscript 3 project but a Java based project. Might i suggest basing the Android Flixel port on libgdx [1]? Benefit: it would also run on the desktop (windows, linux, mac) and the nasty OpenGL

[android-developers] Menu items in ActionBar obscuring Tabs even with showAsAction=ifRoom

2011-04-28 Thread Shri
My Honeycomb activity uses the Tabs navigation mode by doing getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS). The activity also has menu items marked with android:showAsAction=ifRoom. I would have expected that the tabs are first displayed, and then any remaining space in the

[android-developers] Re: Application with Hardware Acceleration, hardware layers, and rotated ImageViews is causing jaggies.

2011-04-28 Thread unclej
I tried adding 10dp padding to the imageview padding with hardware acceleration but the rendering artifact is still showing up. The artifact is not actually attached to the image being rotated in the view; it's a type of ghosting artifact that is appearing outside of the image itself. (A single

[android-developers] Re: problem with asyntask

2011-04-28 Thread Streets Of Boston
I think you mean that one asynctask's background process has to finish before another asynctask's background process can start. This is per design in pre-Donut and in Honeycomb and later. All AsyncTasks use a pool of only one thread. If one asynctasks is 'using' it, others can't and have to

[android-developers] Re: Honeycomb / 3.0 / Critical Java NIO Regression for duplicate()

2011-04-28 Thread MichaelEGR
Hah.. yes.. A minor oversight in prepping.. Doesn't change the bug though.. Having spent over 45 hours to hunt and fix this issue in my NIO code I don't really care to spend too much time on the write up / proof reading. Back to actual productive work.. ;P On Apr 28, 5:28 pm, Zsolt Vasvari

[android-developers] Insights for using query() and MediaStore.Audio.Albums

2011-04-28 Thread Gabriel Simões
Hello, I´ve been trying to figure a way out to search MediaStore.Audio.Albums and MediaStore.Audio.Media to retrieve onlly albums from mp3 files. I can list all albums and retrieve their songs but can´t filter which albums have mp3s and which don't have. Listing albums (all registered albums with

[android-developers] how to test your apk?

2011-04-28 Thread Barry Wey
if you developed some kind of app using emulator, is it time for test on a real device? how to do that? there are a lot of different devices, they might have the same sdk version, but alter all there is some different. have to buy all kind of devices? HTC,Motorala?Sumsung? just wordless

[android-developers] Re: Activity Lifecycle Documentation Question

2011-04-28 Thread Indicator Veritatis
Actually, I think you do need the 'lecture' because you got the facts wrong. Multiple independent groups were developing JVMs, too. Remember IBM? Sun, Microsoft, IBM and BEA all developed their own JVMs. Yet their multiple independence did not have the same effect on the JVM that you attribute to

Re: [android-developers] how to test your apk?

2011-04-28 Thread Nathan Forbes
On 04/28/2011 09:30 PM, Barry Wey wrote: if you developed some kind of app using emulator, is it time for test on a real device? how to do that? there are a lot of different devices, they might have the same sdk version, but alter all there is some different. have to buy all kind of

[android-developers] Re: Honeycomb / 3.0 / Critical Java NIO Regression for duplicate()

2011-04-28 Thread Mario Zechner
My fsm, Mike! You must either be sick or getting tired. A 2 paragraph, 140 words reply? SCNR, just kidding :) Glad to see you alive and kicking. Thanks for the bug report, that will save me some grieve. On 29 Apr., 02:49, MichaelEGR foun...@egrsoftware.com wrote: Hah.. yes..  A minor oversight

[android-developers] Starting a new Task for every TabHost tab

2011-04-28 Thread Eric
I am experimenting with using a TabHost, with a separate Task running in each Tab. This appears to work, however, when I log out getTaskId() on the various lifecycle methods, I see that the Task ID is -1 for all of the Tasks that I start at the root of each tab. I'm wondering what a Task ID of

[android-developers] Developing Android apps for someone else

2011-04-28 Thread Ted Hopp
We have developed several apps and published them on Android Market. We are now writing an app that another company will brand and sell through their own publisher account. The other company has no experience with Android Market or with Android development. I'd appreciate any insights from

Re: [android-developers] Starting a new Task for every TabHost tab

2011-04-28 Thread TreKing
On Thu, Apr 28, 2011 at 8:45 PM, Eric e...@alum.mit.edu wrote: I don't like the idea of using Tabs in the first place, but I'd like some UI for the user to launch from. Menus won't cut it here. Does it make sense to just put a button-bar at the footer of each of my activities to allow the

Re: [android-developers] Starting a new Task for every TabHost tab

2011-04-28 Thread Dianne Hackborn
You can't run tasks in tabs. A task is a collection of related top-level activities. On Thu, Apr 28, 2011 at 9:45 PM, Eric e...@alum.mit.edu wrote: I am experimenting with using a TabHost, with a separate Task running in each Tab. This appears to work, however, when I log out getTaskId() on

Re: [android-developers] Re: Activity Lifecycle Documentation Question

2011-04-28 Thread Dianne Hackborn
On Thu, Apr 28, 2011 at 9:37 PM, Indicator Veritatis mej1...@yahoo.comwrote: Actually, I think you do need the 'lecture' because you got the facts wrong. Multiple independent groups were developing JVMs, too. Remember IBM? Sun, Microsoft, IBM and BEA all developed their own JVMs. Yet their

[android-developers] Re: Starting a new Task for every TabHost tab

2011-04-28 Thread Eric
On Apr 28, 10:19 pm, Dianne Hackborn hack...@android.com wrote: You can't run tasks in tabs.  A task is a collection of related top-level activities. OK. Is that why I'm getting a -1 for the Task ID when I print it out in the Activity running in the Tab? Because it's a child of the parent

[android-developers] Re: Starting a new Task for every TabHost tab

2011-04-28 Thread Eric
On Apr 28, 10:19 pm, Dianne Hackborn hack...@android.com wrote: You can't run tasks in tabs.  A task is a collection of related top-level activities. Can you comment on the API 11 ActionBar, and it's Tab support, and whether or not Tasks can be run in, or launched from, this widget? Just

Re: [android-developers] Build 2 apk same time?

2011-04-28 Thread Kumar Bibek
You can have a variable in a properties file (is_production = true/false), and have a Java class that reads this file and switches the URL accordingly. In your build.xml, you can also check this variable, and name the output apk accordingly. Refer this link :

[android-developers] new to Android wrld and I need some tips

2011-04-28 Thread Ahmad Alturki
Hi folks I am very interested in developing application for smart phones like Galaxy,HTC but the problem I do not know where I start. I want to start from basics to advance concepts. I want to understand how underpinning things work and are related. Is there a good book to start from ... I

[android-developers] Re: Starting a new Task for every TabHost tab

2011-04-28 Thread Dianne Hackborn
No, tasks just do not run inside of activities. They are only top-level. That is how it will always be. If you want to do complicated things inside of an activity, consider using fragments. On Thu, Apr 28, 2011 at 10:58 PM, Eric e...@alum.mit.edu wrote: On Apr 28, 10:19 pm, Dianne Hackborn

[android-developers] Re: Developing Android apps for someone else

2011-04-28 Thread Chris Stratton
On Apr 28, 10:12 pm, Ted Hopp ted.h...@gmail.com wrote: We are now writing an app that another company will brand and sell through their own publisher account. *Signing the app* The alternatives we see are: sign with our usual key; create a signing key pair specific to the other company

[android-developers] Re: programming gtablet

2011-04-28 Thread Chris Stratton
Try a web search for instructions on changing the usb VID/PID in the configuration file for the generic driver to match those of the device. On Apr 28, 7:52 pm, bob b...@coolgroups.com wrote: I tried it, but it didn't work. Thanks anyhow. On Apr 28, 4:32 pm, Mark Murphy

Re: [android-developers] Re: Fragmentation-resistant product design

2011-04-28 Thread Bob Kerns
(See below) On Tue, Apr 26, 2011 at 11:40 PM, Vikram Bodicherla vikram.bodiche...@mchron.com wrote: So coming back to my question, any advice on design for now? The android developers blog suggests abstracting APIs like the Contacts API. But it is not practical to go around abstracting all

[android-developers] Re: new to Android wrld and I need some tips

2011-04-28 Thread imsopov
Personally I started using Sam's teach yourself android application development I found it to be very useful for the teaching me the basics, it starts off slow and had downloadable code for each section of the book which helps. This was written for 2.1 but will still be relevant On Apr 29, 1:49 

[android-developers] Re: Developing Android apps for someone else

2011-04-28 Thread Ted Hopp
Thanks, Chris. That seems obvious now that you point it out. :) Is there any reason that they could not use an .apk file signed with our key to publish to their Android Market account? Signing (and then running zipalign) seems like the kind of work that should fall to us as the developers,

<    1   2   3