[android-developers] Accessibility with ImageViews, custom views

2010-10-26 Thread vol
I'm attempting to make my app more usable for users who need accessibility support, so I am attempting to have my app perform better for users who use TalkBack. I would like to have a custom description spoken for a widget I have made. The widget contains a LinearLayout, and that layout contains an

[android-developers] undefined behavior with getResultExtras and setResultExtras

2009-10-07 Thread vol
I've created a test project with three identical classes that extend BroadcastReceiver, named TestReceiverOne TestReceiverTwo TestReceiverThree They each have the following function as their content: @Override public void onReceive(Context context, Intent intent) {

[android-developers] Updating permissions for apps that modify sharedUserId

2009-10-06 Thread vol
Hi All, I'm looking to update my app and provide a sharedUserId as part of my manifest, so that the several apps I have can all nicely look at each other's private files if necessary. Unfortunately, I've discovered that adding a sharedUserId where it did not exist before will change the userId an

[android-developers] R.java generation location

2009-06-18 Thread vol
Is it possible to specify where R.java will be generated to? Or will it always be placed in gen/my.package.name.here, no matter what? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] ADB via USB

2008-10-20 Thread vol
In a move sure to spark envy, my G1 was delivered today. I wanted to play with an app I have been developing on my phone, so I plugged in my USB cable, set the "Debug when USB plugged in" option, and tried to use adb. No joy. No setting I used seemed to do anything. Is there a special "allow adb a

[android-developers] Re: ADB via USB

2008-10-20 Thread vol
Actually, to clarify, I'm using ubuntu 8.04. I tried adb -d shell, adb -p /dev/sdb shell, adb shell. Android automounted on /dev/sdb, though when I specified debug mode it seemed to unmount itself. On Oct 20, 8:09 pm, vol <[EMAIL PROTECTED]> wrote: > In a move sure to spark e

[android-developers] Re: Android JNI

2008-08-22 Thread vol
Actually, the errors stemmed from some compile-related incompatabilities. Is it possible to do this from win32, or do I have to do it from Linux? On Aug 22, 11:36 am, vol <[EMAIL PROTECTED]> wrote: > I'm having trouble building the JNI example > athttp://davanum.wordpre

[android-developers] Android JNI

2008-08-22 Thread vol
I'm having trouble building the JNI example at http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java/ . First up, is it possible to actually do this from windows? Do I have to do this in a linux environment? I would think that doing this from windows is pos

[android-developers] Re: JUnit

2008-05-15 Thread vol
I'm having a bit of trouble using Positron. Is there any way to contact someone to ask for help? On May 9, 11:38 am, vol <[EMAIL PROTECTED]> wrote: > Great. Thanks! > > On May 7, 2:33 pm, Steve918 <[EMAIL PROTECTED]> wrote: > > > You might want to check out Po

[android-developers] Re: How can I call apk to run???

2008-05-15 Thread vol
To invoke an activity from another activity, create an Intent that specifies the other activity by class name, or by an intent which the other activity is set up to recieve. Then, call startActivity or startSubActivity using that intent. Please look at the tutorial for more help with this. To sta

[android-developers] Re: JUnit

2008-05-09 Thread vol
Great. Thanks! On May 7, 2:33 pm, Steve918 <[EMAIL PROTECTED]> wrote: > You might want to check out Positron. > > http://code.google.com/p/android-positron/ > > On May 6, 8:40 am, vol <[EMAIL PROTECTED]> wrote: > > > Sorry if someone has already answered this

[android-developers] JUnit

2008-05-06 Thread vol
Sorry if someone has already answered this elsewhere, but does anyone know how to use JUnit with Android? Are the JUnit packages in android just for internal google usage? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[android-developers] Re: how to detect longpress on touchscreen?

2008-05-06 Thread vol
As I understand, the DOWN event is triggered the moment the user presses the screen. Thus, by definition, the time the user has spent pressing the screen is 0ms. You will have to wait until the UP event to determine how long the user has been pressing on the screen. Alternately, if you want a men

[android-developers] Re: The entire lifetime of an activity and static variables

2008-04-25 Thread vol
If you look in DDMS, the resources are kept in memory even after onDestroy has been called. This is, as far as I can tell, for faster startup times. I too would like further information on this. So far I haven't gotten any good answers. I am hoping that we will not have to explicitly initialize e

[android-developers] Re: Error no space left on device

2008-04-25 Thread vol
Your device is probably out of space. If you start the emulator with the -wipe-data argument, it will wipe all user data from the device before starting. Please note that certain activities such as creating MediaPlayer resources via MediaPlayer.create and then failing to release them may cause thi

[android-developers] Re: How android can i work with MAP in android

2008-04-25 Thread vol
You'll need to create an overlay ( http://code.google.com/android/reference/com/google/android/maps/Overlay.html ) and display any points you wish to display on that. Then, in your MapView ( http://code.google.com/android/reference/com/google/android/maps/MapView.html ) use the OverlayController

[android-developers] Re: failure to import java.rmi.RemoteException

2008-04-25 Thread vol
Android does not utilize the entirety of the J2SE API. Remember, it's designed for mobile devices which are resource limited, so they have to choose what they put in. See the complete list of public packages here http://code.google.com/android/reference/packages.html See the complete list of pub

[android-developers] Re: How to draw Bitmap outside of onDraw()

2008-04-25 Thread vol
The canvas passed in onDraw is used for drawing to the screen, so you shouldn't store it. You can create your own canvas from your own Bitmap outside of onDraw easily. private Bitmap mBitmap; private Canvas mCanvas; private Paint mPaint = new Paint(); private void createSurface() { Bitmap bmp

[android-developers] Re: Updating the UI via IPC, Handler runs on the wrong thread

2008-04-22 Thread vol
Nevermind, I just realized (had pointed out) that I was using dispatchMessage instead of handleMessage. Thanks anyway! vol wrote: > Some quick background: In an effort to teach myself Services, IPC, and > the general interplay, I have been creating a Music Player program. > There i

[android-developers] Updating the UI via IPC, Handler runs on the wrong thread

2008-04-22 Thread vol
Some quick background: In an effort to teach myself Services, IPC, and the general interplay, I have been creating a Music Player program. There is a Music Player Activity, and a Music Player Service. The Activity binds to the Service, and in the onServiceConnected method starts the Service. The S

[android-developers] How do I create a MediaPlayer for a resource without using the resId?

2008-04-21 Thread vol
Hello everyone, This one has had me stumped for the last couple of days. I'm trying to create a MediaPlayer for a resource I have in res/raw, but I (!!!)DO NOT(!!!) want to create it by performing MediaPlayer.create(Context context, int resid), because I am experimenting with a few different thin