[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove
got the some clues, if I add com.example.base into BOOTCLASSPATH , it resolved. but every process will map my jar, does we have better solution? On Mar 26, 11:45 am, Jove wrote: > Maps of my process, it's strange. com.example.base.jar is mapped > twice. :( > > 41036000-41037000 r--s 1

[android-developers] Re: Is it possible to start an application programmatically?

2009-03-25 Thread Joseph Teo
ah ok... cool... Many thanks Dianne! :) On Thu, Mar 26, 2009 at 2:02 PM, Dianne Hackborn wrote: > Just use startActivity(), possibly with the NEW_TASK flag. You can look at > the home screen sample code in the SDK for an example. > > > On Wed, Mar 25, 2009 at 10:45 PM, Joseph Teo wrote: > >> Hi

[android-developers] Re: Is it possible to start an application programmatically?

2009-03-25 Thread Dianne Hackborn
Just use startActivity(), possibly with the NEW_TASK flag. You can look at the home screen sample code in the SDK for an example. On Wed, Mar 25, 2009 at 10:45 PM, Joseph Teo wrote: > Hi there... > > I know u can start a program using the adb shell... BUT I am trying to > write a program which i

[android-developers] Is it possible to start an application programmatically?

2009-03-25 Thread Joseph Teo
Hi there... I know u can start a program using the adb shell... BUT I am trying to write a program which is able to start another application (e.g. Browser or Dialer or Maps etc) programmatically (from the program)... is it possible to do so in the program? If so, can someone kindly post some cod

[android-developers] how to prevent the special application of android to access the network?

2009-03-25 Thread trust_chen chen
how to prevent the special application of android to access the network? 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@googl

[android-developers] Re: How do the services communicate with each other?

2009-03-25 Thread Gordon
Seems RIL can only support one client that is telephony manager. You can either use telephony manager's interface in Java space or running a native proxy going directly under RIL. On Mar 25, 4:30 pm, Nio wrote: > HI there, > I am trying to send AT commands via Ril from LocationManager as there >

[android-developers] contacting commenters?

2009-03-25 Thread Bob
Hi, Is there any way to contact someone who has asked a question in a comment about your app on the android marketplace? Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Multi Touch support in Android

2009-03-25 Thread Pratap
Hi I want to implement multi-touch gesture detection in my application. Does android provides support multi-touch? If yes, then how can we simulate multi-touch on emulator. If no, then is there any hack, which we can use to get multi finger touch in our application. Kindly provide suggestions T

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-25 Thread suhas gavas
hi, have u checked ipingpong 3D on android market .its pais app check the touch screen event which has got smooth scroll On Thu, Mar 26, 2009 at 2:32 AM, Romain Guy wrote: > > The trick is simple: avoid any allocation that might trigger a GC. > > On Wed, Mar 25, 2009 at 1:18

[android-developers] Re: Any more info about android.os.RemoteException ??

2009-03-25 Thread Dianne Hackborn
It is thrown when you make a call on a Binder object/interface whose hosting process no longer exists. On Wed, Mar 25, 2009 at 8:47 PM, Ashrotronics <030440...@163.com> wrote: > > Hello everyone: > I'm looking for more info on this exception and much confused on > why and when will this excepti

[android-developers] need some collection help

2009-03-25 Thread Josh
I want to store objects into an array or collection(whichever is best suited to this in dalvik). the objects are basically just VO's all of the same class that i want to keep track of. I have looked everywhere and can't seem to figure this out. --~--~-~--~~~---~--~~

[android-developers] SMS encoding?? how can i receive Chinese SMS???

2009-03-25 Thread SinFrancis
I wanna receive Chinese SMS , i use eclipse send Chinese SMS to emulator, but the message all like this "?", if the English SMS, not prob. I wanna know the encoding of SMS in Android. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] Any more info about android.os.RemoteException ??

2009-03-25 Thread Ashrotronics
Hello everyone: I'm looking for more info on this exception and much confused on why and when will this exception happen, Any comments will be much appriciated ! Thanks and Regards! Ashrotronics --~--~-~--~~~---~--~~ You received this message because you are s

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove
Maps of my process, it's strange. com.example.base.jar is mapped twice. :( 41036000-41037000 r--s 1f:00 291/system/framework/ com.example.base.jar 41037000-41038000 r--s 1f:01 780/data/dalvik-cache/ sys...@framework@com.example.base@classes.dex 41038000-41040

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove
Hi, I didn't get what you mean. Could you explain more? I build system.img and sdk myself, so I can add my com.example.base.jar into system.img. Thanks, Jove On Mar 26, 3:14 am, Dianne Hackborn wrote: > You can't currently make your own library in the SDK, so the questions > should be on a

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove
I create my JAR myself same with "android.test.runner" or "com.android.im.plugin" Briefly speaking, I add line "include $(BUILD_JAVA_LIBRARY" in Android.mk under directory "com.example.base" to create com.example.base.jar, Then I modify framework/base/data/etc/platform.xml to include my jar

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove
I create my JAR myself same with "android.test.runner" or "com.android.im.plugin" Briefly speaking, I add line "include $(BUILD_JAVA_LIBRARY" in my "com.example.base" to create com.example.base, Then I modify framework/base/data/etc/platform.xml to include my jar in system.img. My example applica

[android-developers] Re: opencore

2009-03-25 Thread Dave Sparks
The current G1 software uses the OpenCORE software codecs except for H. 264 where the hardware codec is used. On Mar 25, 3:38 am, wangxianjian8311 wrote: > hi all! > i want to know whether the g1 use the pv omxcore in opencore . if i do > not have any hardware codec. > if i just use the pv

[android-developers] Re: handle Camera preview data without a SurfaceView

2009-03-25 Thread Dave Sparks
This is not currently possible. On Mar 25, 11:11 am, denzel wrote: > Hello, > > I want to receive the data from the preview of the Camera, but without > having to set a SurfaceView with a SurfaceHolder in the view of my > application. > > I want to do something like this: > > Camera cam = Camera

[android-developers] Re: Emulator crashing

2009-03-25 Thread Mark Murphy
青铜 wrote: > I also have this question. > Every time I run HelloMapView (the example code in dev.android), I > only can see the title of the app, and the content is just black. Did you get your own Maps API key, as outlined in step #4? -- Mark Murphy (a Commons Guy) http://commonsware.com _The B

[android-developers] Re: Emulator crashing

2009-03-25 Thread 青铜
I also have this question. Every time I run HelloMapView (the example code in dev.android), I only can see the title of the app, and the content is just black. After I close the emulator, I can see these words: DeviceMonitor]Error reading jdwp list: EOF [2009-03-26 09:22:48 - DeviceMonitor]Connect

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 2:50 AM, Dianne Hackborn wrote: > On Wed, Mar 25, 2009 at 5:44 PM, Stoyan Damov > > Can you please just provide a complete example that doesn't work?  We have > lots of manifest files with spaces in them.  This isn't enough to help > reproduce the problem. I have attache

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Anonymous Anonymous
Sorry i coundt find mmcblk0 but i can see mtdblock0 mtdblock1 and mtdblock2 *and btw this will not help much :( as i need it inside application to browse data Thanks everyone On Thu, Mar 26, 2009 at 6:26 AM, Victor wrote: > > you may try: > > 1. adb shell > 2. mount -t vfat /dev/block/mmcbl

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 2:42 AM, David Turner wrote: > >> I can reproduce the crash ALL I want. I just remove a single empty >> line in AndroidManifest.xml and the crash occurs. Add the line and the >> crash is gone. > > can you attach these two files to the bug report? Attached > Please follow

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Victor
you may try: 1. adb shell 2. mount -t vfat /dev/block/mmcblk0 /sdcard but Gallery and Camera do not recognize the SD card even it's mounted, but you may brows sd card by adb shell and Eclipse On Mar 26, 9:48 am, Anonymous Anonymous wrote: > Hi JBQ, > Thanks for the reply.. i do see mountd.con

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 2:43 AM, Dianne Hackborn wrote: > On Wed, Mar 25, 2009 at 4:59 PM, Stoyan Damov > wrote: >> >> The information I provided (consistent crash address and assembly >> around it) should be sufficient to any skilled Windows C++ developer >> to find the bug in 10 minutes, provi

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 1:44 AM, Stoyan Damov wrote: > I don't have a problem sharing my manifest file, but here's the > current difference between a manifests with which the app builds, and > one it doesn't - a SINGLE empty line. > For example, if my manifest contains these lines: > > > > > > i

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 5:44 PM, Stoyan Damov wrote: > I don't have a problem sharing my manifest file, but here's the > current difference between a manifests with which the app builds, and > one it doesn't - a SINGLE empty line. > For example, if my manifest contains these lines: > > > > Can

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Anonymous Anonymous
Hi JBQ, Thanks for the reply.. i do see mountd.conf in my older version and no mountd.conf or vold.conf in my current working version.. i do have a valid sdcard image.. by any chance can i mount it? On Thu, Mar 26, 2009 at 6:16 AM, Jean-Baptiste Queru wrote: > > Code drops before the one that wa

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread David Turner
the vold.conf thing is a new feature of Cupcake so it's normal that this is not available in previous builds. "vold" is the name of the new mount daemon (the old one was named "mountd" I believe) that adds support for encrypted partition and other stuff, though most of this is currently disabled.

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 2:39 AM, Mark Murphy wrote: > > Stoyan Damov wrote: >> It would be nice, if you stopped playing Google's advocate for one day :) > > You mean like this: > > http://www.networkworld.com/community/node/40044 > http://www.networkworld.com/community/node/39099 > http://www.net

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Jean-Baptiste Queru
Code drops before the one that was done about 2 weeks ago had another mechanism for the management of the SD card (mountd vs vold), so that vold.conf wouldn't be necessary there. JBQ On Wed, Mar 25, 2009 at 5:27 PM, Anonymous Anonymous wrote: > For me too the sdcard problem ...The file is missi

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 2:36 AM, David Turner wrote: > On Thu, Mar 26, 2009 at 1:17 AM, Stoyan Damov > As I said previously, we need the input passed to aapt, or at a minimum some > information about the things that contributed to the crash (e.g. your > manifest file, > for example). I don't

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 4:59 PM, Stoyan Damov wrote: > The information I provided (consistent crash address and assembly > around it) should be sufficient to any skilled Windows C++ developer > to find the bug in 10 minutes, provided that the appt tool was built > with Microsoft Visual Studio, or

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 1:34 AM, Stoyan Damov wrote: > > Now that I can continue working, and being the single developer > experienced this particular crash, and realizing I was being very > harsh to Android engineers tonight, I *want* to help others. > > I can reproduce the crash ALL I want. I ju

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy
Stoyan Damov wrote: > It would be nice, if you stopped playing Google's advocate for one day :) You mean like this: http://www.networkworld.com/community/node/40044 and this: http://www.networkworld.com/community/node/39099 and this: http://www.networkworld.com/community/node/38830 and many

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 1:17 AM, Stoyan Damov wrote: > > > > > A crash is a problem. We need the input that aapt receives to be able to > > reproduce and analyze the crash, otherwise even having the symbols is not > > going to help tremendously. > > David, give me a break. The tool should have bee

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
Now that I can continue working, and being the single developer experienced this particular crash, and realizing I was being very harsh to Android engineers tonight, I *want* to help others. I can reproduce the crash ALL I want. I just remove a single empty line in AndroidManifest.xml and the cra

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Anonymous Anonymous
For me too the sdcard problem ...The file is missing(vold.conf) :( , but i checked another old sourcebase..where sdcard work.. there also that file missing !! Any clues? Thanks On Wed, Mar 25, 2009 at 10:55 PM, David Turner wrote: > I fear it's a packaging problem. Is there a file named vold.co

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
Mark, It would be nice, if you stopped playing Google's advocate for one day :) If my game crashes, I'm the ONLY one to suffer the consequences. If a tool, such as appt crashes, it could seize the development of unlimited number of development companies (and affect even more users). Plus, I do

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy
Stoyan Damov wrote: > David, give me a break. The tool should have been instrumented in the > 1st place to catch these crashes (SetUnhandledExceptionFilter and > MiniDumpWriteDump ring a bell?). To quote yourself: "Am I supposed to wrap ALL my code in exception handlers? What good if I do that?"

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 2:09 AM, David Turner wrote: > > > On Thu, Mar 26, 2009 at 12:12 AM, Stoyan Damov > wrote: >> >> David, >> >> I can't provide a way to reproduce the problem. This is not a problem, >> it is a crash. It's not like I'm tapping this menu here, and that >> button there and so

WORKED AROUND (was Re: [android-developers] Re: TERRIBLE BUG: aapt crashes on Windows)

2009-03-25 Thread Stoyan Damov
HOW HORRIBLE bug is this?!?!?! I started experimenting what would happen if I comment out an activity, and so I did - I commented out a RANDOM activity in AndroidManifest.xml and WHAT THE ..., the build SUCCEEDED. And I just sensed that this bug is SO RIDICULOUS that I should probably remove the

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 12:12 AM, Stoyan Damov wrote: > > David, > > I can't provide a way to reproduce the problem. This is not a problem, > it is a crash. It's not like I'm tapping this menu here, and that > button there and something crashes. A crash is a problem. We need the input that aapt

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 1:37 AM, Mark Murphy wrote: > > Stoyan Damov wrote: >> I can't provide a way to reproduce the problem. > > 1. Create a fresh project. > > 2. Copy your entire res/ tree out of your current project into the fresh > project. > > 3. Try building. Will try. If this helps, I wi

[android-developers] Re: java.nio.channels.IllegalSelectorException

2009-03-25 Thread friedger
Any updates on this one? Is it allowed to open a socket channel? Any hints appreciated! Regards, Friedger If you want to see my stack trace: 03-25 23:16:26.279: ERROR/AndroidRuntime(869): Caused by: java.nio.channels.IllegalSelectorException 03-25 23:16:26.279: ERROR/AndroidRuntime(869): at

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dan Bornstein
On Mar 25, 4:37 pm, Mark Murphy wrote: > Stoyan Damov wrote: > > I can't provide a way to reproduce the problem. > [... helpful advice elided ...] > > Providing steps to reproduce failures, whether in tools or class > libraries or whatever, has been a standard of professional application > develo

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy
Stoyan Damov wrote: > I can't provide a way to reproduce the problem. 1. Create a fresh project. 2. Copy your entire res/ tree out of your current project into the fresh project. 3. Try building. If the build crashes, then zip up the new project and attach it to the issue. Or, try winnowing ou

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
Actually it might be exactly deferencing a null pointer! It's possible that I'm mistaken that if the debugger breaks on a line, the error occurred on the line above. In this case, the crash would be here: 004363AC mov ecx,dword ptr [ebp-8Ch] 004363B2 cmp word ptr [ecx],7Ch <---

[android-developers] View caching?

2009-03-25 Thread gsmd
I'm developing an app that runs both on Android and JSE/Swing so there's a platform-independent part (~90% of code) that operates in terms of interfaces for UI (sqlite, xmlpullparser, etc.) with implementations being provided by a homebrew 'DependencyContainer'. At the very beginning of app startu

[android-developers] Re: HttpUrlConnection - Authentication

2009-03-25 Thread John Spurlock
You can use Authenticator with HttpUrlConnection: http://java.sun.com/j2se/1.5.0/docs/api/java/net/Authenticator.html Hope that helps, - John On Mar 24, 9:12 am, "nEx.Software" wrote: > I am beating my head against a wall trying to figure out why I cannot > get Authenticated on my server whilst

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-25 Thread Noam
Do I need to clarify? --~--~-~--~~~---~--~~ 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 a

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
On Thu, Mar 26, 2009 at 1:13 AM, Marco Nelissen wrote: > > On Wed, Mar 25, 2009 at 3:38 PM, Stoyan Damov wrote: >> >> This is a showstopper, and I'm experiencing for the 2nd time. >> >> Shouldn't be hard to find, if the apt tool developers have created a >> .map file for the release build. >> It

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Marco Nelissen
On Wed, Mar 25, 2009 at 3:38 PM, Stoyan Damov wrote: > > This is a showstopper, and I'm experiencing for the 2nd time. > > Shouldn't be hard to find, if the apt tool developers have created a > .map file for the release build. > It seems like the dev has dereferenced a null pointer (see below).

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
David, I can't provide a way to reproduce the problem. This is not a problem, it is a crash. It's not like I'm tapping this menu here, and that button there and something crashes. I can't possibly know how and what the aapt tool does. Like I said, I added probably 50 lines of code tops, tried to

[android-developers] Re: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Dianne Hackborn
Drawable doesn't define the touch area, so you would need to customize the view for that. On Wed, Mar 25, 2009 at 3:51 PM, Moto wrote: > > But would the touch area be only around my "weird shaped" area? or > just the typical rectangular area? > > > -- Dianne Hackborn Android framework enginee

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
thanks, still it would be nice if you could provide a simple example that exhibits the crash. On Thu, Mar 26, 2009 at 12:02 AM, Stoyan Damov wrote: > > Found the URL for bug submissions, submitted here -- > http://code.google.com/p/android/issues/detail?id=2301 > > On Thu, Mar 26, 2009 at 12:38 A

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
Found the URL for bug submissions, submitted here -- http://code.google.com/p/android/issues/detail?id=2301 On Thu, Mar 26, 2009 at 12:38 AM, Stoyan Damov wrote: > This is a showstopper, and I'm experiencing for the 2nd time. > > Shouldn't be hard to find, if the apt tool developers have created

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
It would be better if you could provide a way to reproduce the problem. try b.android.com to report the problem On Wed, Mar 25, 2009 at 11:38 PM, Stoyan Damov wrote: > > This is a showstopper, and I'm experiencing for the 2nd time. > > Shouldn't be hard to find, if the apt tool developers have cr

[android-developers] Re: The specified child already has a parent. You must call removeView() on the child's parent first.

2009-03-25 Thread gsmd
Thanks for your replies & sorry for taking so long. The reason for this issue was a bit weird app architecture on my side which is a result of code reuse (80% of code is shared with a swing app, got a sort of homegrown dependency injection). Namely, a widget was created using the previous context,

[android-developers] Re: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Moto
But would the touch area be only around my "weird shaped" area? or just the typical rectangular area? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

[android-developers] Current Preference Screen? (easyy)

2009-03-25 Thread Noam
Hello everyone, I have two PreferenceScreens - A and B. Let's say that the default for the variable i = 0; PrefScreen B is a child screen of A. When I first get to A, i = 0; When I move to B, i = 1; When I move BACK to A, i = 2; when I move back to B, i = 1 again; Whenever i = 2, I want to run a

[android-developers] Providing text-to-speech (TTS) capability in my Android application?

2009-03-25 Thread Mike Pastor
Hello Fellow Developers, I am looking for the best way to provide an audible speech component for my Android application (Eliza Mobile Therapist game). Is the Android TTS (text-to-speech) API viable at this time? I want to call a function from my Java code with the spoken text and hear it (hop

[android-developers] TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov
This is a showstopper, and I'm experiencing for the 2nd time. Shouldn't be hard to find, if the apt tool developers have created a .map file for the release build. It seems like the dev has dereferenced a null pointer (see below). I didn't do anything fancy. Just added a dozen lines of code and

[android-developers] Re: Overlapping non-rectangular buttons

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 1:35 PM, Ward Willats wrote: > Is there a framework way to "clip to region" touch events in a view? > Or do I have to get in and muck with the dispatchTouchEvent()? (It > gets tricky because of the overlap, the system might have given the > event to the wrong child.) Eit

[android-developers] Re: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Dianne Hackborn
You can just make a Drawable that draws (and changes based on its state) however it wants. On Wed, Mar 25, 2009 at 2:16 PM, Moto wrote: > > I guess the title says it all Could I technically make a custom > button using this Class? > > Thanks! > Moto! > > > -- Dianne Hackborn Android fram

[android-developers] Re: Issues with Ontouch

2009-03-25 Thread William
I figured it out. YOU MUST RETURN return true; everytime onTouchEvent for it to continue to return you events On Mar 25, 4:12 pm, William wrote: > I just created another project that uses View instead of SurfaceView > that View recieves all of the events.  Why does surfaceview not > reviece all

[android-developers] Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Moto
I guess the title says it all Could I technically make a custom button using this Class? Thanks! Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-25 Thread Romain Guy
The trick is simple: avoid any allocation that might trigger a GC. On Wed, Mar 25, 2009 at 1:18 PM, admin.androidsl...@googlemail.com wrote: > > Getting a bit disillusioned after spending most of the day trying to > make a smooth scrolling app. I've tried everything, views, surface > views, dela

[android-developers] Large Scrollable Image Help

2009-03-25 Thread G
Hi all, I'm having trouble displaying an oversized scrolling image. I accomplished this originally by creating the custom class below to replace the standard ImageView. My original large image was a png that was a little over 1000x1000 in resolution and about 722kb in size. For that image, the cla

[android-developers] Re: .apk install fails: package conflict

2009-03-25 Thread AlCapwn
If they are downloading via 3G, GRPS (anything non-wifi), then it might be the cause. I know thats what caused the problem for my application and for others also. See http://groups.google.com/group/android-beginners/browse_thread/thread/4f82b29159a341fe On Mar 24, 10:46 pm, bee wrote: > I'm test

[android-developers] Re: written file not found

2009-03-25 Thread Mark Murphy
Mak wrote: > Hi. > I've written an file with the following comands: > > String ausgabe; > > try{ >java.io.BufferedWriter fos = (new java.io.BufferedWriter( new > java.io.OutputStreamWriter( > openFileOutput("testfile.txt", MODE_APPEND ; > > if (ausgabe.length() !=

[android-developers] written file not found

2009-03-25 Thread Mak
Hi. I've written an file with the following comands: String ausgabe; try{ java.io.BufferedWriter fos = (new java.io.BufferedWriter(new java.io.OutputStreamWriter( openFileOutput("testfile.txt", MODE_APPEND ; if (ausgabe.length() != 0){ fos.write(a

[android-developers] Overlapping non-rectangular buttons

2009-03-25 Thread Ward Willats
I have a custom view group control with children views that act as buttons. What should be their "active" area is non-rectangular. Also, their bounding rectangles overlap a little. Is there a framework way to "clip to region" touch events in a view? Or do I have to get in and muck with the dis

[android-developers] Anything on Android that can do smooth scrolling?

2009-03-25 Thread admin.androidsl...@googlemail.com
Getting a bit disillusioned after spending most of the day trying to make a smooth scrolling app. I've tried everything, views, surface views, delaying threads, just scrolling tiny pictures, etc., but whatever I try, there is always an unsightly flicker even though I can easily achieve 20 - 30 fps

[android-developers] Re: Issues with Ontouch

2009-03-25 Thread William
I just created another project that uses View instead of SurfaceView that View recieves all of the events. Why does surfaceview not reviece all the events? On Mar 25, 4:00 pm, William wrote: > I am trying to figure out how the touch functionality of the emulator > works.  I override onTouchEven

[android-developers] Issues with Ontouch

2009-03-25 Thread William
I am trying to figure out how the touch functionality of the emulator works. I override onTouchEvent and am getting info for onDown but nothing for onrelease. How do I listen for onrelease. Also when I drag the mouse, only one event is sent instead of multiple. how do i listen to all of the eve

[android-developers] Re: Receiving SMS Messages in 1.0?

2009-03-25 Thread thesquib
Sorry this was meant to be a reply to this thread: http://groups.google.com/group/android-developers/browse_frm/thread/c51383cc8761ffd5?tvc=1&q=sms+port There was no reply button. On Mar 26, 8:57 am, thesquib wrote: > I can confirm that joe.scheidegger information about data sms does > work on

[android-developers] re: Receiving SMS Messages in 1.0?

2009-03-25 Thread thesquib
I can confirm that joe.scheidegger information about data sms does work on device. However, the port specified on the receiver does not seem to matter. Joe wrote: and then you must add the following permission: --~--~-~--~~

[android-developers] Re: Process is not ending ?

2009-03-25 Thread Dianne Hackborn
That is showing you the correct information. Please be sure to read this: http://developer.android.com/guide/topics/fundamentals.html In particular, for your question: http://developer.android.com/guide/topics/fundamentals.html#proclife On Wed, Mar 25, 2009 at 7:55 AM, AndRaj wrote: > > Hi A

[android-developers] Re: how can i check landscap orientation ?

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 9:25 AM, Kather Jailani wrote: > Pls add andoid:configChanges="orientation|keyboard" > And override onConfigurationChanged and check the orientation against > Configuration.ORIENTATION_LANDSCAPE or potrait > Please don't do that unless you really have a good reason to do s

[android-developers] Re: How to make single row Menu with 4 MenuItem?

2009-03-25 Thread Romain Guy
You can't. This is controlled by the system. On Wed, Mar 25, 2009 at 11:53 AM, ezmobile wrote: > > Hi, > > I am trying to use menu button for my application menu. When I add > upto 3 MenuItem it show them in a single row, but if i add one more it > shows two rows and that's not what I want. Plea

[android-developers] Re: .apk install fails: package conflict

2009-03-25 Thread Dianne Hackborn
What is the exact UI you are seeing and error message? What is in the log? What is your package name? Generally if the system can't install an .apk because that package already exists, well that package already exists somewhere. :} On Tue, Mar 24, 2009 at 3:46 PM, bee wrote: > > I'm testing an

[android-developers] Re: Task activity stack always reset when launched from Home

2009-03-25 Thread Dianne Hackborn
That means you are using some CLEAR_TOP or finish flag in an intent or in the manifest. Or possibly it has been > 30 minutes since the app was last launched, in which case the system will restart it automatically. On Wed, Mar 25, 2009 at 11:12 AM, jseghers wrote: > > Thank you for your reply! >

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Dianne Hackborn
You can't currently make your own library in the SDK, so the questions should be on android-platform. On Wed, Mar 25, 2009 at 11:14 AM, Mark Murphy wrote: > > Jove wrote: > > Hi guys, > > I meet an issue. > > I have two services, both of them lies in separate apk, which run > > in same p

[android-developers] Re: How to change orientation of AlertDialog?

2009-03-25 Thread Dianne Hackborn
You can't. Its orientation will be whatever the orientation is of what is behind it. On Wed, Mar 25, 2009 at 12:01 PM, ezmobile wrote: > > Hi all, > > I am building a AlertDialog in java code, so by default it is portrait > but I want to show it in landscape orientation. How to do it in Java >

[android-developers] Re: No RTSP streaming via Wireles LAN on G1????

2009-03-25 Thread bestpriv...@googlemail.com
I have the same problem in my Android appkication. It seeems like cannot buffer the video while being in WLAN mode. This is what LogCat tells me. Note that I do not get an onPrepared callback. Instead, onCompletion is called after an error has been given. Again, the same code works fine via a cell

[android-developers] Re: Switch to SurfaceView

2009-03-25 Thread ellipsoidmob...@googlemail.com
I had the exact same problem. I never found a way to replace the content without getting the black screen, so in the end I moved the SurfaceView to a separate activity which I launch when start button is pressed - so now I have a menu activity (based on linearlayout) and a game activity (surfacevi

[android-developers] Re: is video recording available in V1.1?

2009-03-25 Thread Mark Murphy
zeeshan wrote: > i am looking for video recording example, it suppose to be in api- > sample but not available > i am wondering if 1.1 release still missing this feature? Video recording is not available in the current version of Android. -- Mark Murphy (a Commons Guy) http://commonsware.com An

[android-developers] How to change orientation of AlertDialog?

2009-03-25 Thread ezmobile
Hi all, I am building a AlertDialog in java code, so by default it is portrait but I want to show it in landscape orientation. How to do it in Java code? Help is appreciated Sersoun --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] How to make single row Menu with 4 MenuItem?

2009-03-25 Thread ezmobile
Hi, I am trying to use menu button for my application menu. When I add upto 3 MenuItem it show them in a single row, but if i add one more it shows two rows and that's not what I want. Please help me in understanding what am I missing. Thanks Sersoun --~--~-~--~~~---

[android-developers] is video recording available in V1.1?

2009-03-25 Thread zeeshan
Hi Experts, i am looking for video recording example, it suppose to be in api- sample but not available i am wondering if 1.1 release still missing this feature? if it does support then in which format and where is the example also i am trying to figure out mp3 encoding long ago but still no so

[android-developers] crash application on change mode

2009-03-25 Thread zeeshan
Hi Experts, i am trying to set an image which is working fine but when i change mode to/from portrait, it crashes at the following line imageicon.setImageURI(image_uri); here is my imageicon in xml any solution? --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-25 Thread Marco Nelissen
On Wed, Mar 25, 2009 at 9:30 AM, Zhubham wrote: > > “All SYMBIAN based end devices accept Java language Applications” > > (i)     Does this mean that the applications made for Android would run in > S60 , without any modifications?? No. > (ii)    If not then what exactly we mean when we say the

[android-developers] Re: Eclipse Layout editor and Java 6

2009-03-25 Thread Alexey
bump .. still have this problem and only on Mac - linux is fine - anybody ? Google ? You guys using Macs as dev machines aren't you ? On Feb 27, 11:36 am, Alexey wrote: > System config is MacOSX with default JDK 1.5.0_16. Eclipse 3.4 > The problem is - I have a project in workspace that has bee

[android-developers] handle Camera preview data without a SurfaceView

2009-03-25 Thread denzel
Hello, I want to receive the data from the preview of the Camera, but without having to set a SurfaceView with a SurfaceHolder in the view of my application. I want to do something like this: Camera cam = Camera.open(); cam.setPreviewCallback(new MyPreviewCallback()); cam.startPreview(); This

[android-developers] Re: Questions related to android, please answer

2009-03-25 Thread Avraham Serour
name to name forum topics properly On Wed, Mar 25, 2009 at 8:06 PM, Howie wrote: > > Learn to Google. > > http://developer.android.com > > On Mar 24, 11:04 pm, "tharunandr...@gmail.com" > wrote: > > 1. What is the name of the alliance that supports Android? > > 2. Which is the kernel that Andro

[android-developers] Re: SimpleCursorAdapter and blobs

2009-03-25 Thread prout
hi, On 24 mar, 17:40, prout wrote: > the favicon field returned by the browser bookmark provider is a > sqlite blob. ... > I tried using a SimpleCursorAdapter.ViewBinder but I get an exception. ... > according to my logs, the exception occurs before my viewbinder is > called. I gave a look to th

[android-developers] Re: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-25 Thread Sahil Arora
Please refer; http://www.macrobug.com/blog/2007/12/08/android-versus-symbian-os/ section :: End-user openness Thanks. On Wed, Mar 25, 2009 at 10:23 AM, Avraham Serour wrote: > where did you find this declaration? > > > On Wed, Mar 25, 2009 at 6:30 PM, Zhubham wrote: > >> >> “All SYMBIAN based

[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread David Turner
I fear it's a packaging problem. Is there a file named vold.conf in /system/etc ?I.e. what is the output of "adb shell /system/etc/vold.conf" If the file is missing, the SDCard cannot be mounted even if it is recognized by the kernel. On Wed, Mar 25, 2009 at 12:40 PM, Victor wrote: > > I'm also

  1   2   >