[android-developers] Cupcake Bluetooth handsfree problem?

2009-03-19 Thread Long
I meet some problem while using cupcake bluetooth handsfree. 1. Phone only can pair with pin "" BT headset automatically, but never pair succeed with headset with pin "1234" (never prompt pin code dialog for input?) 2. Connecting BT headset always fail if the BT headset only suport HFP/ HSP

[android-developers] Re: adb version failed

2009-03-19 Thread jammy
i installed android in windows and checked it... the problem that i am facing is in windows eclipse R.java is created as soon as i create new project but in fedora 10 R.java is not created.. because of that it is showing error. "Erron while loading shared libraries:libncurses.so. 5:wrong ELF class

[android-developers] Re: How to create transparent Window without starting a new activity

2009-03-19 Thread Dianne Hackborn
PopupWindow lets you make a window on top of another directly. You can do a similar thing with Dialog (using the translucent theme). One or the other may be easier for you depending on exactly what you are doing. On Thu, Mar 19, 2009 at 4:52 PM, Tomei Ningen wrote: > Hello, > > I have a 2D app.

[android-developers] Re: what is maximum size of application database allowable in Android?

2009-03-19 Thread Dianne Hackborn
There isn't a maximum size, but the total flash space available is I believe ~60MB, and of course the sd card can be anywhere from 1GB to 16GB. On Thu, Mar 19, 2009 at 10:27 PM, jj wrote: > > hello folk > what is the maximum size of application's database allowable in > Android? > In other word

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Al Sutton
Moved to -discuss before Dianne asks us to ;). Al. gjs wrote: > Hi, > > Also I think some of us are holding our app's for ADC II rather than > releasing to Market. > > Without any idea if existing apps in the Market will be eligible for > ADC II, this is difficult decision. > > Finally, a lot of

[android-developers] what is maximum size of application database allowable in Android?

2009-03-19 Thread jj
hello folk what is the maximum size of application's database allowable in Android? In other words whats max capacity of android appl private database, as well as whats max capacity of content provider available? thank you --~--~-~--~~~---~--~~ You received this

[android-developers] Re: shared Jar files between different project

2009-03-19 Thread Greg Krimer
Hi, I am confused. Which project is running A or B? Is com.example.A.test1 in project A or B? What is the type of the object that you do create? Try this: Object tmp = c.newInstance(); System.out.println(tmp); Is framework/base in project A or B? Finally, and this may not be important at all,

[android-developers] Re: openInputStream problem

2009-03-19 Thread Greg Krimer
What do you mean readBytes never gets set to -1? Is the code going into an infinite loop? Or are you stepping though it in a debugger. In the later case, it would take a *very* long time for readBytes to be set to -1 because you are reading and writing one byte at a time. I am not sure if this is

[android-developers] Re: When another activity is called from main activity, The calling activity get destroyed?

2009-03-19 Thread jj
thank u for reply I got the with it when another activity called from activity by using startActivity (), the calling activity get destroyed, and it is gain created onCreate when control return from called activity. --~--~-~--~~~---~--~~ You received this mess

[android-developers] Re: How to use traceview to analyze performance problems?

2009-03-19 Thread Greg Krimer
My strategy for analyzing traces is to simply drill down on the child with the largest percentage until I get to a method called from my activity or the callstack is exhausted without reaching any of my methods. In the warm trace, for example, starting at the top level I drill down on the followi

[android-developers] Why doesn't WebIconDatabase work?

2009-03-19 Thread whizziwig
Here's some really simple code that I think should get me the favicon for facebook, but my callback is never called, and all I see in the logs after my app launches is (running logcat *:V) D/skia( 245): xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x%02x ... which is obvious,

[android-developers] How to create transparent Window without starting a new activity

2009-03-19 Thread Tomei Ningen
Hello, I have a 2D app. When the user presses a button, I need to quickly open a translucent 3D animation and overlay that on top of the 2D app. This is similar to the "Translucent GLSurfaceView" demo in APIDemo. However, with APIDemo on G1, it takes about 100~200ms for the new Activity to come u

[android-developers] How to build the wlan module (driver)

2009-03-19 Thread QuasiCodo
How do I build the wlan module? When I build, the makefiles copy the vendor/.../wlan.ko to out/.../wlan.ko. What I really want to do is put some new features in the wifi driver for Android. Anybody know? Thx, ((&-> --~--~-~--~~~---~--~~ You received this messa

[android-developers] Re: Extra Icons in Menu

2009-03-19 Thread Jesse McGrew
On Mar 19, 7:12 pm, Grant Kimm wrote: > Hi, > > Thanks for the reply. > > Here is my code sample. > >       >             >                 >                 >             >         >         >             >                 >                 >                 >             >        

[android-developers] Accessing System Brightness

2009-03-19 Thread joby
Hi, I want to use the system brightness in android,anybody can give me a sample code of getting the brightness from android. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post t

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread gjs
Hi, Also I think some of us are holding our app's for ADC II rather than releasing to Market. Without any idea if existing apps in the Market will be eligible for ADC II, this is difficult decision. Finally, a lot of us are in regions where the Market is not yet accepting paid apps so are again

[android-developers] Re: Putting Android on Par with the iPhone Software

2009-03-19 Thread Schiffres
Unfortunately, being moved to Android discuss, which is a group that has a much lower activity level, has somewhat halted the conversation. Remember, go to the new group discussion (even though this is being aimed at developers, we can't chat in the Android developers group) and please contribute

[android-developers] Re: power manager and wake lock

2009-03-19 Thread Paper Coder
Thanks! On Fri, Mar 20, 2009 at 2:03 AM, Dianne Hackborn wrote: > Um, you need to release it at some point. Once you release it, you don't > need to do anything with it any more if you don't want. > > On Thu, Mar 19, 2009 at 11:17 AM, madcoder wrote: > >> >> In the example here: >> >> It shows

[android-developers] TableLayout problem

2009-03-19 Thread Sheepz
Hi all, this is my first post so please excuse any noobiness. I'll cut directly to the problem to save everyone's time: I have made a tableLayout in order to display a grid (should simulate a card game table, but that's not important to this post) take a look at this code: ... For some ann

回复: [android-developers] Re: Extra I cons in Menu

2009-03-19 Thread Jiang
                        --- 09年3月20日,周五, Grant Kimm 写道: 发件人: Grant Kimm 主题: [android-developers] Re: Extra Icons in Menu 收件人: android-developers@googlegroups.com 日期: 2009,320,周五,10:12上午 #yiv2114977463 .hmmessage P { margin:0px;padding:

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread gjs
Hi, Many thanks Dan for saying something about ADC II ( at last :-) Regards On Mar 20, 11:21 am, Eric Friesen wrote: > I just hope there's a phone besides the G1 that can do 3G on all of > the frequencies by the time the second challenge rolls around. Also, > it would be great if the APIs that

[android-developers] Re: Getting a complete list of android native drawables

2009-03-19 Thread Dianne Hackborn
That list is... very questionable. It contains lots and lots of resources that are not in the public SDK, and which you should not be using. On Thu, Mar 19, 2009 at 5:47 PM, Mark Murphy wrote: > > > Does anyone has a complete list of native drawables listed on a > > webapage ? I don't want to d

[android-developers] Re: Extra Icons in Menu

2009-03-19 Thread Grant Kimm
Hi, Thanks for the reply. Here is my code sample. What do I need for the intent information for activities that are wit

[android-developers] Re: Extra Icons in Menu

2009-03-19 Thread Jesse McGrew
On Mar 19, 4:44 am, Grant Kimm wrote: > Hi, > > When I run my app, I see about 8 or 9 icons in the main phone menu. One > is to run the app, and the others actually run activities within the > app. > > I want there to only be one icon for users. Any ideas as to why this is > happening? > > My co

[android-developers] Re: Getting a complete list of android native drawables

2009-03-19 Thread Mark Murphy
> I've checked that one out, that's for Android 1.0 which is old. Not that old. Are there any you've found that do not work? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~-

[android-developers] Re: adb version failed

2009-03-19 Thread Xavier Ducrohet
it looks like you have a linux 64 bit only installation. Please follow the Installation Notes for linux at the bottom of http://developer.android.com/sdk/1.1_r1/installing.html Xav On Thu, Mar 19, 2009 at 4:06 AM, jammy wrote: > > hello every one.. im new to android... i have installed android

[android-developers] Re: Getting a complete list of android native drawables

2009-03-19 Thread Agus
I've checked that one out, that's for Android 1.0 which is old. On Thu, Mar 19, 2009 at 5:47 PM, Mark Murphy wrote: > >> Does anyone has a complete list of native drawables listed on a >> webapage ? I don't want to do trial and error.. >> Any help is appreciated. > > There's this list, which ha

[android-developers] Re: Getting a complete list of android native drawables

2009-03-19 Thread Mark Murphy
> Does anyone has a complete list of native drawables listed on a > webapage ? I don't want to do trial and error.. > Any help is appreciated. There's this list, which has been accurate for all the images I've used: http://www.screaming-penguin.com/info/android_drawables/android_drawables.html

[android-developers] Problem in converting byte array in Bitmap.

2009-03-19 Thread Komal
Hello, I want to store image in sqlite database. I tried to store it using BLOB and String, in both cases it store the image and can retrieve it but when i convert it to Bitmap using BitmapFactory.decodeByteArray(...) it return null. Below is my code please have a look and suggest me where i m ma

[android-developers] Getting a complete list of android native drawables

2009-03-19 Thread Agus
Does anyone has a complete list of native drawables listed on a webapage ? I don't want to do trial and error.. Any help is appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Eric Friesen
I just hope there's a phone besides the G1 that can do 3G on all of the frequencies by the time the second challenge rolls around. Also, it would be great if the APIs that were initially going to be in Android (specifically, in my case, Bluetooth and bluez) are actually in it by the time this happ

[android-developers] Re: Launch Browser without starting a new Window

2009-03-19 Thread Alec
Hi Did you manage to find a solution? or is this still an issue? Alec On Feb 9, 7:48 pm, "mattaku.betsu...@gmail.com" wrote: > Hello, > > Let's say I have an app that has a "search on Google" button. Every > time the user choose it, I want to bring up thebrowserand run a > Google search. Curre

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Mattaku Betsujin
What about only limiting to open-source apps? On Thu, Mar 19, 2009 at 3:58 PM, Ivan Soto wrote: > If my application sells for like $.99 and the top seller is selling around > 600 to 1000 a month, a lot of developer would be spending $1500 just to make > themselves to the top. The price would be

[android-developers] Re: How to get System Endianess

2009-03-19 Thread fadden
On Mar 19, 2:07 pm, Stoyan Damov wrote: > int n = 1; > char *p = (char*)&n; > int little_endian = *p == 1; If it's C you don't even need to booleanize it: int isLittleEndian(void) { /*static*/ short order = 0x0001; return *((char*) &order); } At any rate, the original poster was using

[android-developers] Re: Problem launching my own (camera) application on press of Camera-button

2009-03-19 Thread Marco Nelissen
Try calling abortBroadcast() in your receiver. On Thu, Mar 19, 2009 at 7:18 AM, Streets Of Boston wrote: > > When i press the phone's camera button, both my application and the > system's camera application are launched: > - I press camera button > - After a few seconds, my camera app appears a

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Ivan Soto
If my application sells for like $.99 and the top seller is selling around 600 to 1000 a month, a lot of developer would be spending $1500 just to make themselves to the top. The price would be more than that amount. Just a thought. I don't like that idea. I really prefer a challenge that favor to

[android-developers] Re: raw data from sound file

2009-03-19 Thread clark
Sure, you just need an appropriate codec to decode it. Since Android apps use Java, you may want to look for a java implementation of a decoder. IIRC, 3GPP is just a container and therefore the actual compression used can vary. If it is from a recording from the G1 microphone, chances are its a

[android-developers] Re: MediaPlayer and onRetainNonConfigurationInstance()

2009-03-19 Thread Andres Calvete
Thanks a lot...that makes a lot of sense and the reason of why it wasnt working.! On Mar 18, 2:50 pm, Marco Nelissen wrote: > You will have to handle the orientation change yourself, since > otherwise the surface that the video is displayed on goes away. > > On Wed, Mar 18, 2009 at 11:30 AM,Andr

[android-developers] Re: How do I draw on canvas instantly?

2009-03-19 Thread Streets Of Boston
Use a different Thread that draws on the SurfaceView directly. You can draw as fast and as immediate as your Thread allows. http://developer.android.com/reference/android/view/SurfaceView.html - Get the SurfaceHolder of the SurfaceView. - Every time you want to draw, begin by calling the Surface

[android-developers] Re: "modal" ViewGroups

2009-03-19 Thread skink
skink wrote: > On 19 Mar, 09:53, skink wrote: > > i'm aware of setDescendantFocusability(boolean) but still such > ViewGroup can process TouchEvents and setEnabled doesn't do the trick > since its not overriden by ViewGroup... so if there is not any setDescendantEnabled, is there any way to d

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Dan Morrill
We have considered and are considering ideas along those lines. That is *not* to say that that's what we are going to do, so don't take it as confirmation. :) But yes, many different structures are on the table. - Dan On Thu, Mar 19, 2009 at 2:46 PM, Al Sutton wrote: > > Dan, > > Thanks for th

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Al Sutton
Dan, Thanks for the clarification. How about making the ADC II a set of awards which are given to the best selling apps in each category each month for the next couple of years. This would allow the Android user community to vote on what is good for them, give developers a reason to push thei

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Dan Morrill
Oops. Looks like that page was collateral damage when we did the move to developer.android.com. We're looking into it; thanks for pointing it out. At any rate the content that would be there refers only to the first Developer Challenge. Regarding the second Developer Challenge, it definitely isn

[android-developers] How do I draw on canvas instantly?

2009-03-19 Thread mcmc
Hello, I'm trying to use java and android's 2D drawing APIs (no openGL) to draw to a canvas instantly. Right now, I am using the SurfaceView class (surfaceCreated, surfaceChanged, and surfaceDestroyed functions) to draw to a canvas, but it does not get called at the time I want it to. I underst

[android-developers] Re: How to get System Endianess

2009-03-19 Thread Stoyan Damov
well, assuming you code in C: int n = 1; char *p = (char*)&n; int little_endian = *p == 1; does that help? On Thu, Mar 19, 2009 at 8:09 PM, Luca Belluccini wrote: > > Thanks, but I think it is the java virtual machine byte order. > I am communicating to/from low level stuff (kernel driver). >

[android-developers] how to set android font style to bold

2009-03-19 Thread Meryl Silverburgh
Hi, In android, if I have a TextPaint object, how can I set the font style to be 'bold'? I can't find any method in TextPaint or Paint to allow me do that. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Help with Emulator warning (related to QuickDraw and Quartz)

2009-03-19 Thread David Turner
The emulator uses SDL 1.2.12 which itself uses Quickdraw in order to draw surfaces to the application window. QuickDraw is now deprecated by Apple, and this is why this warning is displayed when you start the emulator. It doesn't mean that the emulator doesn't work. I would love to replace the SDL

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-03-19 Thread Keith Wiley
Thanks for the various responses. Well received. I will consider them in depth when I get a chance to tear myself away from the debugger. Cheers! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...

2009-03-19 Thread Dianne Hackborn
On Thu, Mar 19, 2009 at 10:29 AM, Hans wrote: > What "don't"? If the receiver is in my service, it's going to my > service - just via the receiver. Or are you saying that if my service > contains a broadcast receiver, which registers for broadcasts when the > service starts up, it won't receive

[android-developers] Re: raw data from sound file

2009-03-19 Thread maisonobe alexandre
sure , when recording with the android application , i get a. 3gppfile. i would need to read the data to perform some signal processing on it . I was thinking about java , but if it isn't possible is it a good solution to write a C app to do the job and handle it with java ? thanks 2009/3/19 Iliya

[android-developers] Re: detect screensize

2009-03-19 Thread Pd
My bad. I read it as a literal. Bob asked for the current screen resolution and not the width and height of a view or control etc :-) Dianne Hackborn wrote: > You almost certainly don't want to do that. It does not tell you the > actually available space (taking into account any screen deco

[android-developers] Re: power manager and wake lock

2009-03-19 Thread Dianne Hackborn
Um, you need to release it at some point. Once you release it, you don't need to do anything with it any more if you don't want. On Thu, Mar 19, 2009 at 11:17 AM, madcoder wrote: > > In the example here: > > It shows: > > PowerManager pm = (PowerManager) getSystemService > (Context.POWER_SERVIC

[android-developers] Re: raw data from sound file

2009-03-19 Thread Iliyan Malchev
Can you be more specific? What file formats? Native code ort Java? On Thu, Mar 19, 2009 at 10:31 AM, Maisonobe.A (MaaKs) wrote: > > Hello, > does someone could tell me if it is or not possible to get raw data > from a sound file ? > thanks > > > --~--~-~--~~~---~--

[android-developers] Re: How to set color to String?

2009-03-19 Thread mathiastck
Strings don't have color. Things that display strings do. On Mar 18, 11:38 pm, AlexNguyen wrote: > I have the String, how can I set color the text in String? > For example: > > String S1; > S1 =    "Name: " + "\t" + this.Name1 + "\n" + >         "Country/Area: " + "\t" + this.Country1 + "\n" +

[android-developers] Re: how to let my shared library, libhello.so, work

2009-03-19 Thread Iliyan Malchev
The shared library can be in the current directory of the code that's dlopen()ing it, and native code may refer to the library by an absolute pathname, but otherwise it would have to be in the approved places, yes. You can look at open_library() in bionic/linker/linker.c Thanks Iliyan On Tue, M

[android-developers] Re: detect screensize

2009-03-19 Thread Romain Guy
Because you are telling the view to measure itself with AT_MOST 0 pixels on both axis. Look at the MeasureSpec class to see what methods you can use to create a proper measure spec. On Thu, Mar 19, 2009 at 11:26 AM, Bob wrote: > > Sorry to be a dolt but I am still getting 0 for my measuredheight

[android-developers] Re: detect screensize

2009-03-19 Thread Bob
Sorry to be a dolt but I am still getting 0 for my measuredheight (ht). What am I doing wrong? setContentView(R.layout.simplelinear); LinearLayout ll=(LinearLayout)this.findViewById(R.id.linearLayout); ll.forceLayout(); ll.measure(View.MeasureSpec.AT_MOST, View.MeasureSpe

[android-developers] power manager and wake lock

2009-03-19 Thread madcoder
In the example here: It shows: PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); PowerManager.WakeLock wl = pm.newWakeLock (PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); wl.acquire(); ..screen will stay on during this section.. wl.release(); Once the wake lock is

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread pod
For those who speak French, there is still the SFR Android Challenge (http://sfrjtd.fr/). No need to be French (but have to speak french anyway) On Mar 19, 11:01 am, De San Nicolas Jean Philippe wrote: > The strategy of Google for Android is very very obscure. I think for a while > that the Chal

[android-developers] Re: detect screensize

2009-03-19 Thread Romain Guy
You have to measure the widget before you can get its dimension. On Thu, Mar 19, 2009 at 11:08 AM, Bob wrote: > > Thanks.  What is the proper method to use on the control to get its > total size?  I have tried getHeight, getMeasuredHeight, and > getDrawingRect but they all return 0 to me on the

[android-developers] Re: How to get System Endianess

2009-03-19 Thread Luca Belluccini
Thanks, but I think it is the java virtual machine byte order. I am communicating to/from low level stuff (kernel driver). On 19 Mar, 15:45, fadden wrote: > On Mar 19, 6:57 am, Luca Belluccini wrote: > > > In Sun Java I can get System endianess using the System.getProperty > > ("sun.os.endian")

[android-developers] Re: detect screensize

2009-03-19 Thread Bob
Thanks. What is the proper method to use on the control to get its total size? I have tried getHeight, getMeasuredHeight, and getDrawingRect but they all return 0 to me on the first pass when I need to figure out how much content to put into the control. On Mar 19, 11:57 am, Dianne Hackborn wr

[android-developers] Re: Help with Emulator warning (related to QuickDraw and Quartz)

2009-03-19 Thread Romain Guy
It has nothing to do with your app, this warning is about the emulator on Mac OS X. You can safely ignore it. On Thu, Mar 19, 2009 at 11:02 AM, Priyanka G wrote: > > When I run one of my apps on emulator, I get this warning and it never > runs. > > "emulator[223:10b] Warning once: This applicati

[android-developers] Help with Emulator warning (related to QuickDraw and Quartz)

2009-03-19 Thread Priyanka G
When I run one of my apps on emulator, I get this warning and it never runs. "emulator[223:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz." However, my other apps work just fine

[android-developers] Re: Android Developer Challenge II Cancelled?

2009-03-19 Thread Teo
I too feel very sad about the lack of ADC news, but i think one of the explanations might be the financial crisis. On Mar 19, 12:01 pm, De San Nicolas Jean Philippe wrote: > The strategy of Google for Android is very very obscure. I think for a while > that the Challenge Two will not come. As I

[android-developers] raw data from sound file

2009-03-19 Thread Maisonobe.A (MaaKs)
Hello, does someone could tell me if it is or not possible to get raw data from a sound file ? thanks --~--~-~--~~~---~--~~ 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] Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-03-19 Thread Mariano Kamp
Hi, I wrote an app that downloads web sites and all their assets (images/stylesheets) to "disk" and therefore stores lots of small files on the SD card. Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal

[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...

2009-03-19 Thread Hans
On Mar 19, 1:08 pm, Dianne Hackborn wrote: > On Thu, Mar 19, 2009 at 7:33 AM, Hans wrote: > > > Services are just completely different from receivers, which are > > different > > > from activities.  They don't receive any broadcasts at all. > > They certainly do when you register for them dyna

[android-developers] Re: Getting current on-screen GUI objects?

2009-03-19 Thread Romain Guy
If you want to do it from another tool, it's pretty easy. Run the following commands from a shell: Make sure you have a dev device/emulator (if you see "1", you're out of luck): $ adb shell getprop ro.secure 0 Start the server: $ adb shell service call window 1 i32 4939 You should see the follo

[android-developers] Re: Polite discussion of lite/trial vs pro distribution

2009-03-19 Thread Mattaku Betsujin
I think you can make the situation a lot better for yourself by accepting that people generally suck. There are lots of free loaders who don't want to pay for anything. And there are lots of people with lots of free time creating free apps, thus reinforcing the mentality of the free loaders.

[android-developers] webview contentwidth

2009-03-19 Thread Bob
Hi, Is there anyway to get the measured width of a webview's rendered html. There is a getContentHeight method that gets the height but there doesn't seem to be a analogous method for widths. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: When the system launches a ResolverActivity or ChooserActivity it doesn't present...

2009-03-19 Thread Dianne Hackborn
On Thu, Mar 19, 2009 at 7:33 AM, Hans wrote: > > Services are just completely different from receivers, which are > different > > from activities. They don't receive any broadcasts at all. > They certainly do when you register for them dynamically. > Seriously, they don't. sendBroadcast() will

[android-developers] How to open files from browser or mail or filebrowser or so with my application?

2009-03-19 Thread sdz
Hi, how can I tell Android that I want all files (with mimetype for example application/msword) open with my application. And in my application, I want to be able to read the file. Is there any example? Thank you. Greetings --~--~-~--~~~---~--~~ You received th

[android-developers] how to color key 2d sprite backgound?

2009-03-19 Thread Tazzer
Hi, I am working on a 2d library for creating a game including sprite collisions, sorting and animation converting (.spr to Java classes/ bmp's). At first I used png's with the background color being transparant (24 bits png image) but I want to use 256 color bitmaps with the background color b

[android-developers] Signal strength seen by the G1 phone

2009-03-19 Thread Matthew
Hello, This is my first post here. Please let me know if I should be posting this question elsewhere or if I should be asking the question in a different manner. I am trying to obtain the signal strength seen by the G1 phone. I have implemented a PhoneStateListener and onSignalStrengthChanged

[android-developers] adb version failed

2009-03-19 Thread jammy
hello every one.. im new to android... i have installed android in eclipse every thing was going fine but at last when i gave path of android sdk it is giving error as ' adb version failed!' error while loading shared libraries:libncurses.so.5:wrong ELF class:ELFCLASS64. im not able to rectify

[android-developers] How to open files from browser or mail or filebrowser or so with my application?

2009-03-19 Thread sdz
Hi, how can I open all files (for example all files with mime type application/msword or application/msexcel) with my Application? And how can I read the content of the files? Are there any examples? Thank you. --~--~-~--~~~---~--~~ You received this message bec

[android-developers] shared Jar files between different project

2009-03-19 Thread Jove
Hi guys, I meet a problem when using jar files, I simplify my question by below examples: test.jar include a class of "com.example.test.class" eclipse project A using test.jar and declare test1 extend from com.example.test eclipse project B using test.jar too and declare test2 extend

[android-developers] Re: onResume called while device is "off" for hours??

2009-03-19 Thread Dianne Hackborn
If something is starting an activity while the screen is off, it can happen. If the screen is off during that time, it should quickly be re-paused though. On Thu, Mar 19, 2009 at 8:39 AM, Marc wrote: > > Hi, all. > > I have documented cases of an activity's onResume method getting > called HOUR

[android-developers] Re: catching a trackball event

2009-03-19 Thread Dianne Hackborn
Make sure your view has input focus. On Wed, Mar 18, 2009 at 7:51 PM, djr wrote: > > I have tried all day to capture a trackball event in a View. Basically > I want to use the trackball to move a Sprite in a 2D game left and > right. The onTouchEvent works perfectly well in the View to move the

[android-developers] Re: Handling Sensor Events and optimal way of using SensorGestureDetector?

2009-03-19 Thread Dianne Hackborn
Didn't we just have this discussion on another list? 1. This class is not part of the platform at this point, it is stuff people are working on separate and you can just use if you want. 2. Statically link the class into your platform and use it, as has already been suggested. On Thu, Mar 19, 200

[android-developers] Re: Getting current on-screen GUI objects?

2009-03-19 Thread Dianne Hackborn
You can look at the hierarchyviewer app. Note that this only works on dev phones for security reasons. On Thu, Mar 19, 2009 at 8:43 AM, adil.b wrote: > > Hello all, >Is there any way for an Android application to retrieve some sort > of Collection object that contains references to all of t

[android-developers] Re: detect screensize

2009-03-19 Thread Dianne Hackborn
You almost certainly don't want to do that. It does not tell you the actually available space (taking into account any screen decorations that may or may not be showing), just the raw size. You should always use the view hierarchy layout system to place your UI. On Thu, Mar 19, 2009 at 9:36 AM,

[android-developers] Re: detect screensize

2009-03-19 Thread Ikon
Using DisplayMetrics also works. I read somewhere in the documentation that DisplayMetrics should be used. On Mar 19, 12:36 pm, Bob wrote: > Thanks, that seems to work. > > On Mar 19, 9:54 am, Pd wrote: > > > this may work but I've not tested it  :-) > > >         getWindow().getWindowManager()

[android-developers] Using WifiManager or WifiConfiguration.Status

2009-03-19 Thread wafa
Hi all, Does anyone have an idea how use those Class(WifiManager or WifiConfiguration.Status) this is my code but doesn't work even if the manifestxml has all the necessary permession WifiManager manager= (WifiManager) getSystemService (Context.WIFI_SERVICE); if( manager.isWifiEnabled()){ .

[android-developers] How do I cleanup my Android application/Market?

2009-03-19 Thread Andrew
Hi In the process of updating some software on my ADP1 using Market I apparently created an inconsistent state which I cannot resolve. I have reported it as a bug (http://code.google.com/p/android/issues/ detail?id=2238) but to make a long story short. When I start Market the application is marke

[android-developers] regarding android screenshot source code

2009-03-19 Thread rajiv
hello.. we are trying to use the screen shot source code in our project, we tried to compile screenshot code on eclipse, there is a "write" function used which uses "renderd image" as one of its parameter , but the one which is being passed is "buffered image", and we are getting an error .. s

[android-developers] Handling Sensor Events and optimal way of using SensorGestureDetector?

2009-03-19 Thread Learning_Android
Hi All My dbt is that lets say I have the applications like Gallery and Calendar which want to use Sensor input as another input apart from touch i/p and key i/p and for this there is a utility say SensorGestureDetector(Example SensorGestureDetector: http://code.google.com/p/openintents/source/br

[android-developers] Getting current on-screen GUI objects?

2009-03-19 Thread adil.b
Hello all, Is there any way for an Android application to retrieve some sort of Collection object that contains references to all of the GUI elements which are currently on the phone's screen? This could be very useful for testing purposes and so on. If I have overlooked a well-known class o

[android-developers] Extra Icons in Menu

2009-03-19 Thread Grant Kimm
Hi, When I run my app, I see about 8 or 9 icons in the main phone menu. One is to run the app, and the others actually run activities within the app. I want there to only be one icon for users. Any ideas as to why this is happening? My code is structured similar to examples from the bo

[android-developers] Browser, videoo, plugins ... why is it not so ?

2009-03-19 Thread sjol
Hello, I have a question concerning the browser and embeds. How can I have the browser play embeded mp4 ( eg : ) As I have a site that is running with embeds that are declared to work with quicktime (if this has to change I will do it gladly ), so the site works A+ with the iPhone but on Androi

[android-developers] Re: Accessing contact' email addresses

2009-03-19 Thread what
I think you can try ContactMethods.DATA,this field contains the email address. Good luck! On Mar 18, 2:10 pm, Umair wrote: > Posted: Tue Mar 17, 2009 11:47 am    Post subject: Accessing contact' > email addresses > Hi! > > I'm developing an application in which I need to display user a list > of

[android-developers] content://sms/sent Read SMS

2009-03-19 Thread Martin
Hi, I'm having a problem reading the SMS messages from the device. When acquiring a content provider for the URI content://sms/inbox - everything is fine, I read the "person" column to find the foreign key into the people table and I can ultimately reach the contact and their name. However, I als

[android-developers] Is there a Color Picker widget in Android?

2009-03-19 Thread Oceanedge
Hi, Is there a Color Picker widget which developer can call in Android? 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: Android and Java Security Running Together

2009-03-19 Thread Aubrey-Derrick Schmidt
Hi, do you have any official publications on this. This sounds very interesting. Good look in progressing. BR, Aubrey Daniel Janev wrote: > Hi Guys, > > I've just succeeded in changing the security model of the dalvik VM! So > I've run an OSGi implementation on the android platform with s

[android-developers] Adding Sensor Events as i/p and right way to use SensorGestureDetector

2009-03-19 Thread Learning_Android
Hi All My dbt is that lets say I have the applications like Gallery and Calendar which want to use Sensor input as another input apart from touch i/p and key i/p and for this there is a utility say SensorGestureDetector(Example SensorGestureDetector: http://code.google.com/p/openintents/source/br

[android-developers] Long Click Event of Button

2009-03-19 Thread Omer Saatcioglu
Hello all, I have a problem. I use Click and Long Click Event in a button. Everything's seems fine. However; whenever a user long click the button, the click event also triggers. I couldn't find what I am doing wrong. On the other hand, I noticed something might highly relevant showDialog functio

[android-developers] Re: Unified Database Populating Solution

2009-03-19 Thread Carlo
On Mar 14, 2:17 am, Dianne Hackborn wrote: > On Tue, Mar 10, 2009 at 6:36 PM, Justin Allen Jaynes > wrote: > > > 1.  Why is there a file size limit on resources in the raw or assets > > folders (such a small limit, that is)? > > Assets are normally stored compressed, so currently opening it re

[android-developers] Re: How to config G1 to make both browser and MMS work?

2009-03-19 Thread Weizhong
If I leave apn type to blank, is that same to "default"? Actually I have tested with cmnet apn type blank, and cmwap apn type mms, it's not working either. On Mar 19, 3:18 am, David Turner wrote: > when you want to use different APNs for both data and MMS, you need to set > the "apn type" field

[android-developers] openInputStream problem

2009-03-19 Thread Tejas
Hi, I'm trying to read an image (taken on camera) that I need to POST to a server. I'm using the following code: OutputStream os = urlConn.getOutputStream(); ContentResolver cR = this.getContentResolver(); InputStream is = cR.openInputStream(photoUri); BufferedI

  1   2   >