[android-developers] Re: android emulator is slow on vmware

2010-09-17 Thread Lance Nanek
Took 28 seconds to go from pressing Launch to the Press Menu to unlock screen on Windows here, when I timed it just now. 24 when I killed it and ran it again. Tested using an Android 1.5 emulator image with a 64MB SD card image on a 2.8GHz Core 2 Duo laptop with an SSD running Windows 7. The

[android-developers] Re: Shape with different stroke and fill

2010-09-15 Thread Lance Nanek
Just draw it twice using different paints each time. On Sep 15, 10:09 am, Baran Ozgul baran.oz...@gmail.com wrote: How can I draw a shape (e.g. circle, rectange) that has different stroke and fill colors? Eg. A circle with green perimeter, but black inner fill. -- You received this message

[android-developers] Re: Apkbuilder problems with new android SDK tools revision 7

2010-09-14 Thread Lance Nanek
You are missing the new resourcefile attribute on apkbuilder. Also, the value you are using for apkfilepath looks weird as well. Did you just copy it from what you were using for the old basename attribute? It probably won't break due to that, but if you want the same behavior as before you should

[android-developers] Re: Slow response of discussion group

2010-09-14 Thread Lance Nanek
Probably just moderation combined with the fact that you can't keep regulars white listed all the time because spammers often spoof as them. On Sep 14, 2:05 pm, DanH danhi...@ieee.org wrote: I assume that others have noted this as well -- you make a post and it doesn't appear for hours

[android-developers] Re: Min SDK Bug ???

2010-09-12 Thread Lance Nanek
When you don't set minSdkVersion/targetSdkVersion, it is considered to be 1 by default. One thing that does is convince the system you don't support all screen types: http://developer.android.com/guide/topics/manifest/supports-screens-element.html So on a Nexus One the system will report a

[android-developers] Re: AsyncTask and screen rotation

2010-09-12 Thread Lance Nanek
. But knowing this group, if there are any such, someone will pop up out of the woodwork and show us:) On Sep 11, 2:36 am, Lance Nanek lna...@gmail.com wrote: peculiar problems in the way the classes are designed. Service by definition is already in the background, it HAS no UI thread, so

[android-developers] Re: How to disable asset compression in eclipse builds?

2010-09-12 Thread Lance Nanek
It's a hack, but couldn't you just name it with one of the extensions that isn't compressed by default? .mp3, for example? On Sep 12, 7:51 pm, SChaser crotalistig...@gmail.com wrote: Does anyone know how to disable asset compression in eclipse builds? In other words, how to cause the -0 flag to

[android-developers] Re: AsyncTask and screen rotation

2010-09-11 Thread Lance Nanek
peculiar problems in the way the classes are designed. Service by definition is already in the background, it HAS no UI thread, so why Services, by default, run in the same on process and on the main/UI thread. http://developer.android.com/reference/android/app/Service.html Note that

[android-developers] Re: about android Reversepengineering !!!!

2010-09-10 Thread Lance Nanek
Some obfuscations make your code smaller/faster, like ProGuard changing all your method names to a(), b(), etc.. You also never look at the code after running it. Thinks like stack traces have to be translated back by a tool. On Sep 7, 2:19 pm, DanH danhi...@ieee.org wrote: You can use an

[android-developers] Re: Getting variables from tab activity in the child activities

2010-09-08 Thread Lance Nanek
http://developer.android.com/reference/android/app/Activity.html#getParent%28%29 On Sep 8, 4:31 pm, tatebn brandonnt...@gmail.com wrote: If I have a tab activity with multiple tabs, each containing a different activity, is it possible to have a variable in the tab activity and access it from

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-08 Thread Lance Nanek
Just testing is showing up fine here on a Nexus One, Evo 4G, Droid, and G1. All running 2.2 except the G1, which is running 1.6. Are you running custom ROMs on your phones instead of official updates? I've heard some users of custom ROMs say they have paid apps in the Market. Paid apps are only

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-08 Thread Lance Nanek
... and this is not even the first time I'm doing this =( Any other ideas? - Gus On Sep 3, 8:19 pm, Lance Nanek lna...@gmail.com wrote: Two other things you can check are if you enabled copy protection, and if any uses-feature entries are getting added for you by the build tools. There's

[android-developers] Re: Reading precomputed vertex arrays in application?

2010-09-07 Thread Lance Nanek
One bizarre option you might want to consider is pre-generating Java files with arrays in them. It benchmarked faster than reading files in via Java NIO when I tested it for my purposes. I'm only doing 2D, though. I use a script that takes a bunch of individual graphics files and puts them into a

[android-developers] Re: Market:// links in WebView

2010-09-06 Thread Lance Nanek
WebView should be asking the system to open any links by default anyway. A normal URL should open the Browser app, a market URL should open the Market app, provided you are testing on a phone with the Market app installed. Are you sure the phone you are testing on has the Market app installed? If

[android-developers] Re: Android Market Licensing: Now Available!

2010-09-05 Thread Lance Nanek
how a pirated app can be updated 5 minutes after a submission ? I actually have seen a repeatable case where the Market app will start tracking an app as if it were purchased when it wasn't. Back when my G1 was running Android 1.5, I had one of my paid apps installed already, then tried to buy

[android-developers] Re: Android libraries

2010-09-04 Thread Lance Nanek
There's an Error Log view in Eclipse that is particularly helpful to check when trying to figure out why the Android plugin is failing to create the link to the library source code for a particular project. Usually it is something like having an illegal character, like a hyphen in the library

[android-developers] Re: Group of views as buttonn

2010-09-03 Thread Lance Nanek
I've seen it done for fixed size buttons entirely in XML just by using FrameLayout, which overlaps all its children. Inside the FrameLayout you put the button and another layout with the content, then tweak the sizes/padding/margins such that the content looks like it is in the button when really

[android-developers] Re: limited distribution

2010-09-03 Thread Lance Nanek
Maybe he comes from the iPhone world. There are some sort of limits there. 100 specifically provisioned device IDs, 50 promo codes after app acceptance, etc. - stuff like that, I think. I suppose technically we do have a limit in the Android world as well, because ATT forces some phones to not

[android-developers] Re: Group of views as buttonn

2010-09-03 Thread Lance Nanek
changes color when you touch it and everything. On Sep 3, 11:37 am, Zsolt Vasvari zvasv...@gmail.com wrote: Ok, thanks to the both of you. On Sep 3, 10:40 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 3, 2010 at 10:32 AM, Lance Nanek lna...@gmail.com wrote: I've seen it done

[android-developers] Re: OpenGL ES - Color Picking - Front/Back Buffer

2010-09-03 Thread Lance Nanek
Weird, even if the command queue filled up and some were sent to the hardware automatically, that shouldn't cause a buffer swap, which must have happened for you to see things in progress... On Sep 2, 3:50 pm, Thiago Lopes Rosa thiago.r...@gmail.com wrote: Hi, I have a 3D game and I am using

[android-developers] Re: Bug in minSdkVersion or what?

2010-09-03 Thread Lance Nanek
Two other things you can check are if you enabled copy protection, and if any uses-feature entries are getting added for you by the build tools. There's a aapt dump badging command you can run to check the latter: http://android-developers.blogspot.com/2010/06/future-proofing-your-app.html On Sep

[android-developers] Re: can an application have more than one icon in the launcher?

2010-09-03 Thread Lance Nanek
Make sure you test starting the app from the after install screen. I've seen crashes there before due to multiple activities with the main action and launcher category. On Aug 30, 10:49 pm, Anil anil.r...@gmail.com wrote: can an application have more than one icon in the launcher? (No, not

[android-developers] Re: ByteBuffers and GLES

2010-09-01 Thread Lance Nanek
The Javadoc for the OpenGL ES API does a good job explaining why you can't use wrapped arrays for everything: http://download.oracle.com/javame/config/cldc/opt-pkgs/api/jb/jsr239/index.html Because these functions do not consume the data located at the given pointer immediately, but only at

[android-developers] Re: IllegalArgumentException: parameter must be a descendant of this view related issue

2010-09-01 Thread Lance Nanek
I have Donut customers who get this crash, so it can still happen there. T-Mobile G1 and T-Mobile myTouch 3G particularly. Also MB501 users, but that's Cupcake. Very frustrating because the stack traces don't mention any of my own code, so I can't figure out what is causing it or how to avoid it.

[android-developers] Re: Goodbye friends and thanks for all the help.

2010-09-01 Thread Lance Nanek
Even the country list provided isn't very useful for developers trying to figure out if they should make the button going to the market for a paid app from a free app visible to a particular user, or any other form of linking to paid apps. The list includes the United States, but AFAIK Puerto Rico

[android-developers] Re: Licensing server, app cracked.

2010-08-27 Thread Lance Nanek
There's lots of information on using ProGuard with Android apps if you just Google those terms. I implemented it once with one of my apps to see if it would help my frame rates, but decided not to ship it. Wasn't much performance improvement in my case and not sure if I want the extra annoyance of

[android-developers] Re: Remember my whines about lack of Android Game Framework ?

2010-08-18 Thread Lance Nanek
Not sure how to port the audio part though. The Quake 3 port pulls it off apparently: Audio is implemented on the Java side and using JNI, kwaak3 requests a number of audio samples when it needs some. from http://code.google.com/p/kwaak3/ On Aug 18, 3:04 am, Лоик lamers...@gmail.com wrote:

[android-developers] Re: Drawing an Image Using OpenGL

2010-08-15 Thread Lance Nanek
See lesson 6: http://insanitydesign.com/wp/projects/nehe-android-ports/ There's also the triangle demo in Android's API demos, although that's just a triangle portion of an image, I think. To show a square image you actually need to map the texture to two triangles that form a square. On Aug 10,

[android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Lance Nanek
The supports-screens line in your app's badging information looks suspicious: aapt dump badging it.tidalwave.bluebill.mobile.android-1.apk package: name='it.tidalwave.bluebill.mobile.android' versionCode='1619' versionName='0.14' sdkVersion:'3'

[android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Lance Nanek
that it retains the dimensions it was originally designed for. On Aug 13, 11:27 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/13/10 17:14 , Lance Nanek wrote: I'd make sure the supports-screens element is present in your

[android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Lance Nanek
, Lance Nanek wrote: Apps that do not support large screens are still available to large screen devices. Apps that do not support small screens are not available to small screen devices. Thanks. I've verified with the customer and he's indeed running an HTC wildfire, which is a 240 x 320

[android-developers] Re: NSPredicate-like functionality for Collections?

2010-07-11 Thread Lance Nanek
I've filtered collections using this library on the server side before: http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/Collections2.html#filter%28java.util.Collection,%20com.google.common.base.Predicate%29 I don't know if it works on Android, however. -Lance

[android-developers] Re: how to set setImageResource to null

2010-07-09 Thread Lance Nanek
I've done that before by calling one of the other setImage* methods that takes an object. Something like setImageDrawable(null), etc.. On Jul 9, 5:37 pm, ArcDroid jacobrjohn...@gmail.com wrote: hello, I have a picture in the setImageResource, but I want to make it null; so far I am using

[android-developers] Re: App Not Visible On Donut

2010-07-07 Thread Lance Nanek
:'android.hardware.telephony' uses-feature:'android.hardware.touchscreen' main app-widget other-activities other-receivers other-services supports-screens: 'small' 'normal' 'large' locales: '--_--' densities: '160' '240' u...@n7 ~ $ On Jul 6, 3:32 am, Pent lee.wil...@googlemail.com wrote: On Jul 6, 2:47 am, Lance

[android-developers] Re: App Not Visible On Donut

2010-07-05 Thread Lance Nanek
Have you tried the aapt dump badging command on the APK to see if any uses-feature are getting added? Maybe all you'll have to do to fix it is drop this in or whatever: uses-feature android:name=android.hardware.bluetooth android:required=false / See the blog entry on this for more details:

[android-developers] Re: multitouch for a piano

2010-07-04 Thread Lance Nanek
Ontouch might give the perception of multitouch by having a faster response when playing the piano, but repeats way to fast. How do I make it play once for a single on touch? The onTouchEvent method is called with a parameter that is an instance of MotionEvent. You need to check the action of

[android-developers] Re: Is android 2.2 emulator support any flash or flash lite?

2010-07-03 Thread Lance Nanek
what kinds of devices are supporting flash currently? In addition to what Mark said, my HTC Evo 4G running Android 2.1- update1 has Flash Lite. Maybe all phones with HTC Sense have this? It's something, at least. On Jul 1, 4:09 am, choi devmc...@gmail.com wrote: Hello, I read several article.

[android-developers] Re: Request for test of a game on an Evo

2010-07-03 Thread Lance Nanek
Works as you intended on my Evo here. I can see how some users might be confused, though. The control scheme you've chosen sometimes results in the user tapping the left side of the screen and the car turning away from their finger, not always towards it. So if the user is expecting the car to

[android-developers] Re: Application state being lost

2010-07-03 Thread Lance Nanek
I've seen this happen when someone was forgetting to call superclass methods. If you override onSaveInstanceState, for example, you have to call super.onSaveInstanceState if you still want the default behavior of saving the state of all view's with an ID. There's a similar method in buttons and

[android-developers] Re: onLocationChanged doesn't draw

2010-07-03 Thread Lance Nanek
Typically you would change some variable or model object in your program onLocationChanged, invalidate some view you are showing, that will cause the view's onDraw method to be called, then you would draw to the Canvas provided to you in that method of the view:

[android-developers] Re: Video Render application using Native SurfaceFlinger APIs

2010-07-03 Thread Lance Nanek
It's not Java, but there was an interesting mention of something related here that is still in your app at least: http://developer.android.com/sdk/ndk/index.html Adds support for Android 2.2, including a new stable API for accessing the pixel buffers of Bitmap objects from native code. On Jul

[android-developers] Re: OpenGL DrawTexture and Alpha

2010-07-01 Thread Lance Nanek
You can try adding this: gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); Although I think it is the default and I don't see anything like this turning it off in your posted code: gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); Which is what I was expecting. On Jul

[android-developers] Re: Marketplace behavior when version is wrong.

2010-06-28 Thread Lance Nanek
I've been wondering about the same thing, but re paid apps in countries or with carriers that don't support them. It isn't just a problem for links on web sites for that, though. I can't even tell from the free versions of my apps if I can launch the market intent for the paid versions

[android-developers] Re: How to capture game screens on device

2010-06-27 Thread Lance Nanek
in the settings app. I assume you could use a modern, bloated Android version, though. On Jun 27, 3:30 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jun 26, 2010 at 10:12 PM, Lance Nanek lna...@gmail.com wrote: 3 - I haven't convinced Android x86 running in a VM to run at Android standard

[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-27 Thread Lance Nanek
go look in this usb_driver folder for files.  I've deleted a billion things out of my registry but so far no success. On Jun 26, 5:49 pm, Lance Nanek lna...@gmail.com wrote: I have to uncheck Show compatible hardware before Windows 7 will offer Android ADB Interface for theDroid

[android-developers] Re: This Community Map could not be displayed because it contains errors

2010-06-27 Thread Lance Nanek
That looks like the URL for an RSS feed version or something like that, not a KML version. Last time I showed a My Map the way you are trying, not only did I need a KML version produced by adding the output=kml parameter to the My Map's normal viewing URL, I also had to proxy the KML via my server

[android-developers] Re: “Failed to find provider info for android.server.checkin ” ?

2010-06-27 Thread Lance Nanek
Your app should always be coded to be able to handle getLastKnownLocation returning null. Something has to have requested location updates for there to be any last known location. For the GPS provider, for example, getLastKnownLocation will not turn the GPS on, but requestLocationUpdates will. See

[android-developers] Re: discoverability

2010-06-27 Thread Lance Nanek
Even developers sometimes miss that certain apps have menus: we've had questions in this group about clearing Market app reviews, and skipping entries in the ADC2 app, for instance. Users probably have the problem even more since they won't know as much about Android and won't be as technically

[android-developers] Re: Do VBOs really improve performance? Really?

2010-06-27 Thread Lance Nanek
Do VBOs do anything on a device with unified memory? There is no separate graphics memory on many of these devices, right? On Jun 20, 9:51 pm, Robert Green rbgrn@gmail.com wrote: Navigateur, Performance is highly device-dependent.  If you're not seeing any performance differences, it

[android-developers] Re: Best way to determine device capabilities, chipset, etc

2010-06-27 Thread Lance Nanek
scaling, min/max freq). And I'm pretty sure you can query OpenGL for all kinds of stuff without the need for any hacks. Checking glGetString(GL_RENDERER) for Adreno nails down a lot of high quality phones, particularly. On Jun 22, 2:31 am, Piotr Buła piotr.b...@gmail.com wrote: On Jun 19,

[android-developers] Re: How to clean DDMS view of the logs though ant script

2010-06-26 Thread Lance Nanek
Wouldn't you just use Ant's exec task to execute 'adb logcat -c'? On Jun 24, 11:32 pm, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, Is it possible to clean DDMS logs clean up though ant script pl. Regards, Raja Nagendra Kumar, C.T.Owww.tejasoft.com -Enterprise Mobile Products

[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-26 Thread Lance Nanek
I ran into the same problem connecting both the Evo 4G and Droid to my Windows 7 Tablet PC. After installing the HTC software off the Evo's SD card, the Droid stopped working. I guess I did update a lot of SDK stuff around then too, so that's also a potential factor. I did eventually get both

[android-developers] Re: Download and install application

2010-06-26 Thread Lance Nanek
Do you mean doing it via code? Or do you mean how to explain to a user how to do it manually? On Jun 26, 4:47 pm, Nando Android nando.andr...@gmail.com wrote: Hello all, Is there any howto on donwloading via HTTP an application package and installing it afterwards? Thanks. -- You received

[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-26 Thread Lance Nanek
in this list but nothing ever changes. On Jun 26, 1:47 pm, Lance Nanek lna...@gmail.com wrote: I ran into the same problem connecting both the Evo 4G and Droid to my Windows 7 Tablet PC. After installing the HTC software off the Evo's SD card, the Droid stopped working. I guess I did update

[android-developers] Re: How to capture game screens on device

2010-06-26 Thread Lance Nanek
I've been trying to find a good way myself, although for Android OpenGL games. Some options I've considered: 1 - There's a utility called dr...@screen which can do continuous captures. It's useless for real-time OpenGL, however, because it ends up with parts of different frames. 2 - The emulator

[android-developers] Re: OpenGL EGL 1.0 Context sharing does not work

2010-06-26 Thread Lance Nanek
Does the G1 driver support that? http://groups.google.com/group/android-framework/browse_thread/thread/49dd4346c3324c53 On Jun 23, 4:51 pm, OpenG openg.andr...@gmail.com wrote: Hello, I have problems sharing texture resource between two OGL contexts. I have created two OGL contexts using

[android-developers] Re: Package com.google.android.gtalkservice importing problem

2010-06-26 Thread Lance Nanek
The GTalk classes have been removed from the public API and the bug report declined: http://code.google.com/p/android/issues/detail?id=201 On Jun 23, 8:19 am, madhusudhan reddy madhusdu...@gmail.com wrote: Hi, I am not able to import com.google.android.gtalkservice package application in

[android-developers] Re: Sensor listeners - threads and responsiveness

2010-06-25 Thread Lance Nanek
You get them on the main thread, in my experience, unless you use the SensorManager#registerListener method that takes a Handler argument with a Handler created for a different thread. On Jun 24, 5:50 pm, kamiseq kami...@gmail.com wrote: hi, I have two questions about sensor listeners 1. from

[android-developers] Re: Crash dumps - Market vs Homegrown

2010-06-24 Thread Lance Nanek
I‘ve seen Android's built-in crash report option on my Nexus One running 2.1-update1, so it isn't limited to just Froyo, at least. That said, it does require the user to manually press the report and then send buttons after a crash. I imagine an automatic system that requires no work on the user's

[android-developers] Re: ScrollView and programmatically scrolling

2010-06-17 Thread Lance Nanek
There are past threads on this you can dig up. Basically you have to give the ScrollView a chance to realize it has had stuff added to it. For example: scroll.post(new Runnable() { public void run() { scroll.fullScroll(ScrollView.FOCUS_DOWN); }

[android-developers] Re: How to test onCreate with saved Bundle?

2010-06-12 Thread Lance Nanek
There's an option in the Dev Tools app in the emulator to destroy activities immediately when left even if not needed. On Jun 10, 3:15 pm, Jeff jeff.th...@gmail.com wrote: My app launches the camera to allow the user to capture a picture. Sometimes this causes the OS will kill my App to free up

[android-developers] Re: Market problems again

2010-06-12 Thread Lance Nanek
Theoretically the lower number could be correct and the old number wrong. Not saying it is, just saying it is possible. Or they could both be correct, but the definition changed. If the market is now coded such that apps that request newer permissions like the Bluetooth one don't show up on older

[android-developers] Re: Updated MultiTouchController.java for simplifying the development of multi-touch applications on Android

2010-06-09 Thread Lance Nanek
Not showing up in a Market app search for multitouch visualizer on my Evo 4G here. On Jun 9, 8:35 am, luke luke.hu...@gmail.com wrote: OK, I found the problem with running the controller on Android-2.1, and updated the code in the android-multitouch-controller project linked above.  If

[android-developers] Re: Strange Media Player Behavior on EVO

2010-06-09 Thread Lance Nanek
SoundPool seems screwed up on the Evo 4G too. On G1/N1/Droid I can play a sound at low priority, then change its stream to high priority. This prevents sounds from stopping each other, even when the maximum streams are reached. The new sound just won't play instead. I think it is nicer than

[android-developers] Re: EGL initialized failed

2010-06-09 Thread Lance Nanek
One thing to check is to make sure are loading your textures again when you come back. I use GLSurfaceView, so any EGL stuff is handled for me, but I know I have to load textures again in GLSurfaceView.Renderer#onSurfaceChanged, not GLSurfaceView.Renderer#onSurfaceCreated, which is called less

[android-developers] Re: Fastest Android Phone -- HTC EVO 4G?

2010-06-08 Thread Lance Nanek
It isn't a good choice if you are writing high frame rate OpenGL stuff. It gets stuck at 30FPS: http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices/2890169#2890169 On Jun 7, 2:34 pm, Eric e...@alum.mit.edu wrote: Hello, Is it correct to assume

[android-developers] Re: Close alertdialog.builder from an external button

2010-06-06 Thread Lance Nanek
The create method of the builder creates and returns a new dialog each time you call it. So when you do that you are creating a second dialog that hasn't been shown, then calling dismiss on it. If you used Activity#showDialog to show your dialog, then just use Activity#dismissDialog with the same

[android-developers] Re: LocationListener not refreshing ???

2010-06-05 Thread Lance Nanek
http://code.google.com/p/android/issues/detail?id=2545 On May 25, 8:35 am, Squ36 romain.goncal...@gmail.com wrote: Hi all. I'm trying to develop a small app, that can retrieve GPS coordinates, and store them, so I can retrace the path I took. The thing is, the GPS on Android emulator is kind

[android-developers] Re: glGenTextures going crazy on actual device

2010-06-04 Thread Lance Nanek
If I take a default API level 3 app, load the icon using BitmapFactory.decodeResource, and check Bitmap#getWidth and Bitmap#getHeight, then I get the values of 48 on the Droid. Now if I set android:minSdkVersion to 4 or higher in the manifest, then I get the values of 72. This is because changing

[android-developers] Re: Creating an Android VN

2010-06-04 Thread Lance Nanek
Overlapping things in Android is pretty trivial. For example, when you put multiple children in a FrameLayout, they are all shown on top of each other as per the documentation: http://developer.android.com/reference/android/widget/FrameLayout.html Another method is the Toast utility for showing

[android-developers] Re: Best way to live demo apps

2010-06-03 Thread Lance Nanek
All the ones I saw at Google I/O had WolfVision on them, which I guess is another company making them. On May 30, 5:49 am, Ted Neward ted.new...@gmail.com wrote: Aw, and here I was hoping for a much better story. So prosaic. ;-) Ted Neward Java, .NET, XML Services Consulting, Teaching,

[android-developers] Re: Tvout with Android Phones

2010-06-01 Thread Lance Nanek
Be careful, apparently some phones that can output a TV signal can only do it in certain situations, like when playing videos. I was really happy I got an HTC Evo 4G recently, because I thought I might be able to somehow record high frame rate demo videos for my games using the TV out feature. The

[android-developers] Re: Android Library Project

2010-05-23 Thread Lance Nanek
The only time I've seen that Could not find otherproject.apk warning was in the same situation as mentioned above, when the project being run used an Eclipse, Java Build Path, Project dependency on the other project. If you want to double check that you don't have that, right click on the project

[android-developers] Re: Certain apps not being shown in Android Market?

2010-05-23 Thread Lance Nanek
Are you using the copy protection option in the Market publishing console? On May 23, 11:33 am, niko001 ebs...@googlemail.com wrote: Hi, thanks for your answers. Yahel, that's a good point, the Google I/O-Android-Keynote talked about market filtering for certain features (so that an

[android-developers] Re: make your application multimedial

2010-05-22 Thread Lance Nanek
http://developer.android.com/reference/android/app/Activity.html#setVolumeControlStream%28int%29 On May 22, 4:23 am, Simone simone.russ...@gmail.com wrote: Hi, I need for my application to be recognized as multimedial. In particular, I want that if the user sets the volume, it's the volume of

[android-developers] Re: Displaying the ProgressDialog from the OpenGL thread.

2010-05-13 Thread Lance Nanek
Create an android.os.Handler subclass on the UI thread and pass that to the renderer instead of a Runnable. It has methods for sending messages and handling them. The renderer would send a message. The subclass would handle it to show a dialog on the UI thread. On May 9, 6:25 am, Dmitriy

[android-developers] Re: Yellow colored background on button click

2010-05-09 Thread Lance Nanek
You can control the graphics used for a button by making your own copies of Android's base/core/res/res/drawable/btn_default.xml file, specifying whatever drawables you like for various states in them, then changing the background on the buttons you want to change. On May 7, 10:20 am, kramasundar

[android-developers] Re: Gps Signal Strength

2010-05-09 Thread Lance Nanek
Watch out using the satellite count if you end up using that. I've seen the accuracy get worse at the same time as the sat count goes up before. I was walking inside, so I guess the phone started seeing signal reflections or something. On May 5, 5:15 pm, Tommy droi...@gmail.com wrote: Is there a

[android-developers] Re: A couple of Rom questions for the experts

2010-05-09 Thread Lance Nanek
You might want to try a different group. This one is for the SDK. On May 6, 6:55 am, draf...@gmail.com draf...@gmail.com wrote: I have a couple of questions for the Rom developers/experts on here regarding things that can be done with Android ROM's. Is a parser Rom upgrade possible? So is it

[android-developers] Re: Paid apps in more countries - I am sick about it

2010-05-04 Thread Lance Nanek
Heh, all I get is a no flash dead end page trying to check out that site on my Droid just now. On May 2, 4:51 am, androidpublisher.com dpack...@gmail.com wrote: Now developers worldwide can publish theirpaidappsthroughhttp://www.androidpublisher.com On Apr 14, 12:33 pm, r0ytlay

[android-developers] Re: Can't upload my .apk to the market - minSdkVersion error every time.

2010-05-02 Thread Lance Nanek
'No resource identifier found for attribute 'targetSdkVersion' in package 'android' This sort of error is usually from having a project build target lower than when a feature was introduced. I think targetSdkVersion was added in Android 1.6, for example, so you'd have to increase the project

[android-developers] Re: Maximum Texture Units

2010-05-02 Thread Lance Nanek
It wouldn't surprise me if the Droid has that little. Its graphics solution breaks the scene up into tiles, which results in less data being needed at any one time. It also performs depth testing before doing the texturing, so uses less texture data due to that as well. Isn't OpenGL supposed to

[android-developers] Re: Market

2010-05-02 Thread Lance Nanek
I'm not even quite sure why it would be necessary. This ability would be great for any application that has a free version and a paid version. Often the free version wants to offer a button to open the market details page for the paid version. There's no good way to tell if the paid version is

[android-developers] Re: import com.google.android.gtalkservice.IGTalkSession

2010-04-24 Thread Lance Nanek
Early versions of the SDK had public XMPP support. It was later renamed to Google Talk specific classes, then removed from the public API entirely. All the versions you mention are too new to have it. I remember using it back on the M5-RC15 SDK version, for example. There's a declined issue here

[android-developers] Re: Facebook Connect in WebView Failing

2010-04-24 Thread Lance Nanek
I ran into a lot of trouble using FaceBook in WebView as well. I don't recall the specifics exactly, but it was countless issues like: hitting a post or login button before the page fully loaded resulted in a JavaScript error that then kept the page from working even when it did finally load,

[android-developers] Re: Accelerometer not working when screen turns off

2010-04-24 Thread Lance Nanek
http://code.google.com/p/android/issues/detail?id=3708 On Apr 13, 6:32 am, Jonathan jharrisweinb...@gmail.com wrote: As I understand it, there seems to have been a change in the OS that prevents the accelerometer from running when the screen turns off and the phone CPU goes into its power

[android-developers] Re: business card design in opn gles

2010-04-24 Thread Lance Nanek
wheter itz possible to superimpose multiple textures on another? On Apr 21, 4:49 pm, tina lincon tina.theresalin...@wipro.com wrote: taaanx lance but is it possible to superimpose one texture upon another?wat u talkng isnt it concept abt multitexturing On Apr 21, 2:47 pm, Lance

[android-developers] Re: How to apply different textures on different faces of a cylinder

2010-04-24 Thread Lance Nanek
. On Apr 14, 11:56 pm, kirti kaul kirti.k...@wipro.com wrote: Thanks,can you give me an example/Snippet on how to use Atlas Texture in openGL ES? On Apr 13, 4:08 pm, Lance Nanek lna...@gmail.com wrote: Put all the images needed for texturing all the faces into a single texture. Then refer

[android-developers] Re: business card design in opn gles

2010-04-21 Thread Lance Nanek
Creating a texture with the whole text for each business card would be slow and take up a lot of texture memory. Instead you should create one texture that has all the characters needed from the font. To draw the whole text for any business card you then, for each character of that text, use a

[android-developers] Re: Performance comparison NDK vs SDK

2010-04-21 Thread Lance Nanek
most sprites are rendered via the draw_texture extension For very large numbers of sprites I've found that the standard draw arrays/elements methods are much faster than the draw_texture extension in cases where you can arrange to draw multiple sprites per draw call. That's impossible with the

[android-developers] Re: How to apply different textures on different faces of a cylinder

2010-04-13 Thread Lance Nanek
Put all the images needed for texturing all the faces into a single texture. Then refer to coordinates inside the texture to use different parts of it in different places. This is called an atlas texture. I suppose it is also possible to draw the different parts in separate draw calls with a

[android-developers] Re: new service: link to android market from device and computer

2010-04-09 Thread Lance Nanek
is if the Android device doesn't have Market installed. There's no good way for the server to know if that is the case or not. On Apr 8, 2:42 am, ko5tik kpriblo...@yahoo.com wrote: On Apr 7, 8:49 pm, Lance Nanek lna...@gmail.com wrote: In this case just stream out your apk That would be great if it could

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-09 Thread Lance Nanek
There are a lot of built in classes in Android and Java that you can use to avoid having to write any synchronization or lock code yourself. In my case GLSurfaceView sets up my render thread. I use HandlerThread for my game thread. The game thread sends an update object detailing all the draw

[android-developers] Re: new service: link to android market from device and computer

2010-04-07 Thread Lance Nanek
the market redirect or stream the APK. On Apr 5, 1:48 pm, ko5tik kpriblo...@yahoo.com wrote: On Apr 5, 2:22 pm, Lance Nanek lna...@gmail.com wrote: What about Android devices without the Market app? I think I asked that last thread on this technique too, heh. In this case just stream out your apk

[android-developers] Re: Why launch is canceled

2010-04-07 Thread Lance Nanek
I was getting that recently with a Nexus One. What fixed it in my case was updating everything and restarting. Both Eclipse plugin and all the available packages in the AVD/SDK manager. On Apr 5, 6:42 am, Umer Farooq uu_far...@hotmail.com wrote: [2010-04-05 11:43:21 - Notepadv2]

[android-developers] Re: Retrieving OS Version

2010-04-06 Thread Lance Nanek
http://developer.android.com/reference/android/os/Build.VERSION.html On Apr 6, 5:35 am, MobDev developm...@mobilaria.com wrote: Hi, I am trying to retrieve the Android OS Version (like 1.5 or 1.6 or 2.1) and I am using this code : TelephonyManager mTelephonyMgr =

[android-developers] Re: problem in large screen resolution

2010-04-05 Thread Lance Nanek
Are you sure you want the large qualifier and not the hdpi qualifier? Large refers to the physical size. Note how the density vs. size matrix in the docs indicates a device can have FWVGA resolution and still not be considered large:

[android-developers] Re: new service: link to android market from device and computer

2010-04-05 Thread Lance Nanek
What about Android devices without the Market app? I think I asked that last thread on this technique too, heh. On Apr 5, 4:18 am, patbenatar patbena...@gmail.com wrote: So on the Web side, check the user_agent request header to determine if the user is on Android and if so do a direct link to

[android-developers] Re: plotting Market sales - determining if your android work is profitable

2010-04-04 Thread Lance Nanek
Neat. I wonder if the market API could be used to do graphs for free apps as well: http://code.google.com/p/android-market-api/ On Apr 4, 1:54 am, kostmo kos...@gmail.com wrote: I thought I'd share a script that I've been working on:http://www.anddev.org/viewtopic.php?p=30732 It lets you

[android-developers] Re: Moving a graphic on different screen sizes with the right ratio?

2010-04-04 Thread Lance Nanek
That field is documented as being a bit mask: http://developer.android.com/intl/fr/reference/android/content/res/Configuration.html#screenLayout That means that it is one number, but different bits within the number are being used to indicate different things. To check any particular thing about

<    1   2   3   4   5   >