[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 hack...@android.com wrote: On Thu, Mar 19, 2009 at 7:33 AM, Hans hkess...@gmail.com 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

[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] 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

[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 jph...@gmail.com wrote: The strategy of Google for Android is very very obscure. I think for a while that the Challenge Two will

[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: 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

[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 fad...@android.com wrote: On Mar 19, 6:57 am, Luca Belluccini lucabellucc...@gmail.com wrote: In Sun Java I can get System endianess using the

[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 bshumsk...@yahoo.com 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

[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 jph...@gmail.com wrote: The strategy of Google for Android is very very obscure. I think for a while

[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: 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,

[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 bshumsk...@yahoo.com wrote: Sorry to be a dolt but I am still getting 0

[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,

[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 alexnt...@gmail.com 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: 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) alexma...@gmail.com 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: 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 paperga...@gmail.com wrote: In the example here: It shows: PowerManager pm = (PowerManager) getSystemService

[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

[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

[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] 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: 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 lucabellucc...@gmail.com wrote: Thanks, but I think it is the java virtual machine byte order. I am communicating to/from low level

[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

[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

[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

[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 a...@funkyandroid.com wrote:

[android-developers] Re: modal ViewGroups

2009-03-19 Thread skink
skink wrote: On 19 Mar, 09:53, skink psk...@gmail.com 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

[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

[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

[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

[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 flyingdutc...@gmail.com 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

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

2009-03-19 Thread fadden
On Mar 19, 2:07 pm, Stoyan Damov stoyan.da...@gmail.com 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

[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 ivanso...@gmail.com 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.

[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 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

[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

[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

[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

[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] 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 mmur...@commonsware.com 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

[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 jammy.fivef...@gmail.com wrote: hello every one.. im new to android... i

[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: Extra Icons in Menu

2009-03-19 Thread Jesse McGrew
On Mar 19, 4:44 am, Grant Kimm grantk...@hotmail.com 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

[android-developers] Re: Extra Icons in Menu

2009-03-19 Thread Grant Kimm
Hi, Thanks for the reply. Here is my code sample. activity android:name=.mainApp android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER /

[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 mmur...@commonsware.comwrote: Does anyone has a complete list of native drawables listed on a webapage

[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 ericfrie...@gmail.com 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

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

2009-03-19 Thread Jiang
activity android:name=.mainApp android:label=@string/app_name     intent-filter     action android:name=android.intent.action.MAIN /     category android:name=android.intent.category.LAUNCHER /     /intent-filter     /activity     activity

[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: ... TableRow

[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 hack...@android.comwrote: 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 paperga...@gmail.com wrote: In

[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

[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 to

[android-developers] Re: Extra Icons in Menu

2009-03-19 Thread Jesse McGrew
On Mar 19, 7:12 pm, Grant Kimm grantk...@hotmail.com wrote: Hi, Thanks for the reply. Here is my code sample.       activity android:name=.mainApp android:label=@string/app_name             intent-filter                 action android:name=android.intent.action.MAIN /                

[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

[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

[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

[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

[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

[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

[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] 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: 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 us are

[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 jagtap...@gmail.com wrote: hello folk what is the maximum size of application's database allowable in Android?

[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 tomei.ninge...@gmail.comwrote:

<    1   2