[android-developers] Problem in Geoceder Address and Country name are not Displaying

2009-09-01 Thread ragavendran s
whenever i run this code it shows Latitude and Longitude correctly... but i did'nt get the address,Country name and Postal code.Here I Used Reverse Geocoder. In my output Only Latitude and Longitude shows but Adddress Detaily are not Displaying can u tel me pls. thanks,

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-09-01 Thread James Yum
Hi, Unfortunately, you won't be able to recover that package name. That's the way it works on the regular Market as well. Cheers, James On Mon, Aug 31, 2009 at 9:45 PM, an0...@gmail.com wrote: But I want to use the package name that I've revoked from ADC before it is closed for submission

[android-developers] Re: setPadding() in onDraw() causing ListView draw loop

2009-09-01 Thread Romain Guy
Don't set the padding in onDraw() :) On Mon, Aug 31, 2009 at 10:32 PM, gregsep...@eduneer.com wrote: My application uses a ListView to display a custom TextView as a tree view, with the text indented according to the item's depth in the tree.  In that indentation, a line drawing denotes the

[android-developers] Problem in Reverse Geocoder...Address,Country Name are not Displaying...

2009-09-01 Thread ragavendran s
whenever i run this code it shows Latitude and Longitude correctly... but i did'nt get the address,Country name and Postal code.Here I Used Reverse Geocoder. In my output Only Latitude and Longitude shows but Adddress Detaily are not Displaying can u tel me pls. thanks, WithRegards,

[android-developers] get the path of a file

2009-09-01 Thread SrilankanKK
Hi I have create a zip file on the phone sdk. So i need to create a program to attach that zip file and mail it. For that i need the uri of that file. I used its physical path but it doesn't work. path to the file - sdcard/myfile.zip i used it in the code in foloowing way

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-09-01 Thread Dan Sherman
Could always just use com.company.product.adc, or com.company.product2, or any number of small modifications on the product name... On Tue, Sep 1, 2009 at 2:23 AM, an0...@gmail.com wrote: That's what is recently annoying me, because I didn't know there is such a ridiculous restriction and

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-09-01 Thread an00na
Only if one can bear the ugliness ... On Sep 1, 2009, at 2:35 PM, Dan Sherman wrote: Could always just use com.company.product.adc, or com.company.product2, or any number of small modifications on the product name... On Tue, Sep 1, 2009 at 2:23 AM, an0...@gmail.com wrote: That's what

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-09-01 Thread Fallen Leaf
Now that submission closes in just some minutes, anybody knows when the judge application will be in the market? On 1 sep, 08:35, Dan Sherman impact...@gmail.com wrote: Could always just use com.company.product.adc, or com.company.product2, or any number of small modifications on the product

[android-developers] How do I listen for contact change events ?

2009-09-01 Thread Riyaz
I want to be notified for add / delete / update of contacts. Is there anyway i can listen for such events? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Problem in simple Code SQLite

2009-09-01 Thread Bharath B.G.
Hi, I am very new to SQLite, i referred some books regarding coding in SQLite n went straight for coding But while i run my simple code i am getting error the application has stopped unexpectadly (particularly in the line create table) please tell me where exactly is the error n where i hav to

[android-developers] 5 mins to ADC II submission deadline - so what is your submission?

2009-09-01 Thread Dollars 5
Hello All, Best of luck to all submissions, so what was your submission? We were able to submit only a partner application which I cannot reveal due to NDA. But our submission was unsubmitted as we were unable to finish some critical things..

[android-developers] Re: How to do we take a Screenshot using ADB Comand Line

2009-09-01 Thread Prakash Vel
How Could we use the following file for capturing the screenshot. mydroid/development/tools/screenshot/src/com/android/screenshot/ screenshot.java In that JAVA File they have mentioned, Usage: screenshot2 [-d | -e | -s SERIAL] [-l] OUT_FILE How do we use this from the adb Command line. -It was

[android-developers] Activity | Theme_Dialog

2009-09-01 Thread Atif Gulzar
Hi all, When I apply setTheme(android.R.style.Theme_Dialog); to my activity. The width of the activity is wrapped to its content and some time it is very skinny. Is it possible to force its width to the screen width? Thanks. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ

[android-developers] Views below ScrollView

2009-09-01 Thread Atif Gulzar
Hi all, How can I add some buttons below ScrollView that always stay on screen. -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Filter out contacts from contacts pick list || option to create new contact from pick list

2009-09-01 Thread Riyaz
Even this is not helping http://developer.android.com/intl/fr/reference/android/provider/Contacts.People.html#CONTENT_FILTER_URI On Aug 19, 6:53 am, Riyaz goo...@riyaz.otherinbox.com wrote: My application wants a functionality of picking a contact from the phone contact, I have achieved this

[android-developers] Re: Views below ScrollView

2009-09-01 Thread Atif Gulzar
ok I find the solution. Set Bottom layout margin of ScrollView to 50dp and the view that you want to stick on screen sets its Up layout margin to -50dp -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ On Tue, Sep 1, 2009 at 1:08 PM, Atif Gulzar atif.gul...@gmail.com wrote: Hi all,

[android-developers] Re: Dialog windowBackground makes parent window go black

2009-09-01 Thread Tikoze
That works like a charm, except Doing it that way causes the application to briefly display the title bar before being removed(at least it is for me, anyway). In my opinion it looks very unprofessional. If I set the needed values in the xml file via the windowNoTitle method then this

[android-developers] Re: Constructor problem

2009-09-01 Thread sweet
Thanks for your answer Bart I've done this: public class Xml extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.liste); }

[android-developers] Re: TelephonyManager.getLine1Number()

2009-09-01 Thread Che
Think I narrowed it down to locked SIM cards. My blank string check works so no worries :D On Sep 1, 12:38 pm, Che che.andr...@googlemail.com wrote: Here's a bit of code to better illustrate this:                 TelephonyManager telephonyMgr = (TelephonyManager) getSystemService

[android-developers] Re: how to make sound hz?

2009-09-01 Thread guruk
thanks for all comments. does anyone have a simple source demo. I could try that buffer[i] = (short) ( Math.sin((2. * Math.PI * i * f) / samplerate) * Short.MAX_VALUE ) ... and what afterwards, how to play it? I am just wondering ( please i am a total newbie in sound) when I fill always a buffer

[android-developers] Listview focus out of order when click rapidly

2009-09-01 Thread jerryfan2000
Hi, I noticed that when item in in a list is clicked rapidly, there is chance that item in other row becomes dark. Especially when you click turn on/off bluetooth in system setting quickly. Has anyone noticed it and is there fix for this? Thanks

[android-developers] Custom Dialog with Home Screen as background

2009-09-01 Thread martina
Hi All, I have one Custom Dialog with Home Screen as Its Background... When I change its orientation,then one black screen comes for a while as its background,then Home Screen comes..I want to remove that black screen which comes for a while on changing orientation... Any help is

[android-developers] Re: Ressource Management / Priorization of applications?

2009-09-01 Thread salza
The other system environment is a vehicle where we have many critical applications e.g. brake or signal lamps etc. Now these critical applications should have max priority. The question is, if this is possible. Other processes should of course not be allowed to do this because then the

[android-developers] Developer review of all Android (Cupcake) devices - HTC vs. Samsung, test cases, etc.

2009-09-01 Thread whitemice
Hi Android Developers I am doing a developer centric review of all the Android devices currently available (retail) and have documented some technical differences on my blog: http://blog.zedray.com/2009/08/22/android-cupcake-hardware-review/ I am now working on individual device reviews, and was

[android-developers] What's the meaning of obtainStyledAttributes() and a custom attrs.xml?

2009-09-01 Thread Matthias
I've seen this in the Gallery API Demo shipping with the SDK. There is an attrs.xml holding declare-stylable tags, and the gallery adapter then does this: in attrs.xml: declare-styleable name=Gallery1 attr name=android:galleryItemBackground / /declare-styleable in

[android-developers] Help regarding large Database....

2009-09-01 Thread android.vinny
HI If i have a large Database in sqlite3 .what is the other option to store DB other that internal memory like SD card . Can any plz help me regarding this ...? TIA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: how to make sound hz?

2009-09-01 Thread Bart van Wissen
On 1 sep, 10:01, guruk ilovesi...@gmail.com wrote: thanks for all comments. does anyone have a simple source demo. I could try that buffer[i] = (short) ( Math.sin((2. * Math.PI * i * f) / samplerate) * Short.MAX_VALUE ) ... and what afterwards, how to play it? I am just wondering (

[android-developers] Application using service in different project

2009-09-01 Thread themanol
I want create a service and that other application use this service. I want that the other application is in a different project that the service. It is possible? If is possible somebody can show me a sample code. Thanks in advance. --~--~-~--~~~---~--~~ You

[android-developers] Problem in Reverse Geocoder...Address,Country Name are not Displaying...

2009-09-01 Thread ragavendran s
whenever i run this code it shows Latitude and Longitude correctly... but i did'nt get the address,Country name and Postal code.Here I Used Reverse Geocoder. In my output Only Latitude and Longitude shows but Adddress Detaily are not Displaying can u tel me pls. thanks, WithRegards,

[android-developers] Re: Load of applications in RAM

2009-09-01 Thread salza
How can I set a trigger of an application? And which triggers do built-in applications like e.g. Phone have? As you said, that as little as possible should be loaded at system startup, is there any regulation system that controls that not too many applications are loaded into RAM at system

[android-developers] hardware interrupts

2009-09-01 Thread salza
If there is any hardware interrupt, what is Android's worst-case latency to respond on that? Has anyone already experimented on that topic? On the other hand, if we have differentely priorized threads, what is the worst-case latency to switch threads when a higher-priority thread becomes ready?

[android-developers] Re: CPU bandwidth control for threads/apps

2009-09-01 Thread salza
Well, does maybe someone have an alternative idea how I could solve that in another way? On Aug 28, 9:08 am, salza floriansa...@googlemail.com wrote: Does Android provide a facility to ensure certain applications and/or threads receive a minimum of CPU bandwidth (and other apps/threads are

[android-developers] How to build Uri to an image present at the APK ?

2009-09-01 Thread Umesh
Hi all, I have been working on building an Uri to an image present at the APK, in the following way. Uri path = Uri.parse(android.resource:// + package + / + ImageId); but when I pass this Uri to the Intent, I'm always getting ActivityNotFoundException. can someone help me

[android-developers] Map view

2009-09-01 Thread Sasi Kumar
Can any one help to create map view with a marker. When we are clicking marker it should display info window. By clicking that info window it shoul goto another layout. Ple. reply me. thanks in advance. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Resizing dialog window does not work

2009-09-01 Thread Matthias
In one of my activities, I use the Theme.Dialog style, and I can't get the window to launch at full size. What I do is this: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WindowManager.LayoutParams lp = new

[android-developers] Re: Application using service in different project

2009-09-01 Thread Mark Murphy
themanol wrote: I want create a service and that other application use this service. I want that the other application is in a different project that the service. It is possible? Yes, via AIDL: http://developer.android.com/guide/developing/tools/aidl.html

[android-developers] Re: Map view

2009-09-01 Thread Anton Pirker
Hi Sasi! Have a look at the Hello-mapView Sample Code from Google: http://developer.android.com/guide/tutorials/views/hello-mapview.html There is everything you need! regards, Anton Sasi Kumar wrote: Can any one help to create map view with a marker. When we are clicking marker it should

[android-developers] Re: Resizing dialog window does not work

2009-09-01 Thread matthias
additional note: I even added a LinearLayout with FILL_PARENT for width and height to the activity view root, but still, the activity window is not resizing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Map view

2009-09-01 Thread Panut Sunyakorn
You have to set boundaries of your info window or icon overlay. private int minX = 0; private int maxX = 0; private int minY = 0; private int maxY = 0; boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when){ ... minX = screenPoint.x; maxX = screenPoint.x +

[android-developers] Customing the lookfeel of DatePicker and TimePicker widgets

2009-09-01 Thread Armond Avanes
Hi Guys, I'm seeking a way to customize the lookfeel of DatePicker and TimePicker. But I couldn't find any theme attribute to be related to these two widgets... Any help is greatly appreciated! Cheersss, Armond --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: CPU bandwidth control for threads/apps

2009-09-01 Thread CraigsRace
android.os.Process.setThreadPriority (android.os.Process.THREAD_PRIORITY_...); On Sep 1, 8:10 pm, salza floriansa...@googlemail.com wrote: Well, does maybe someone have an alternative idea how I could solve that in another way? On Aug 28, 9:08 am, salza floriansa...@googlemail.com wrote:

[android-developers] Re: Map view

2009-09-01 Thread Sasi Kumar
The requirements i'm expecting is not there in that link On Sep 1, 3:55 pm, Anton Pirker an...@ignaz.at wrote: Hi Sasi! Have a look at the Hello-mapView Sample Code from Google:http://developer.android.com/guide/tutorials/views/hello-mapview.html There is everything you need! regards,

[android-developers] Re: Map view

2009-09-01 Thread Sasi Kumar
Thanks for ur reply. Can you pls provide the full source of the program. Its very urgent. thanks in advance. On Sep 1, 4:10 pm, Panut Sunyakorn panu...@gmail.com wrote: You have to set boundaries of your info window or icon overlay. private int minX = 0; private int maxX = 0; private int

[android-developers] PVMFFailure when using MediaPlayer for radio streams

2009-09-01 Thread siliconeagle
I am trying to build streaming radio into my app, which works fines streaming files over the internet, but when i try to use a shoutcast url in get the error below, which from the soruce code looks liek the mediaPlayer is looking for the duration in the header. Does anyone know if shoutcast urls

[android-developers] start browser via intent and pass cookie to it

2009-09-01 Thread dev_rob
Hi, I am building an browser app, from which a android application is launched. from within the android app i want to exit back to the browser. i am already able to pass the session id from the browser into the android app. what i don't know is how to create a cookie with JSESSIONID=sessionId

[android-developers] Re: Customing the lookfeel of DatePicker and TimePicker widgets

2009-09-01 Thread matthias
Just out of curiosity, why are you hijacking this thread? On Sep 1, 1:25 pm, Armond Avanes armond...@yahoo.com wrote: Hi Guys, I'm seeking a way to customize the lookfeel of DatePicker and TimePicker. But I couldn't find any theme attribute to be related to these two widgets... Any help is

[android-developers] Location/GPS and SqlLite help needed

2009-09-01 Thread BarbieDahl
I have two applications that I'm trying to finish and I need some help. I'm looking for two good android developers who can help me finish my applications or who have Intents or Activities that will enable my applications to use Location based awareness and import/ query a large amount of data

[android-developers] DatePicker throw java.lang.StackOverflowError when embbeded with TableRow

2009-09-01 Thread FBear
A strange error: when DatePicker is used as child item of TableRow, it throws out StackOverflowError and then the application crashes. It would work fine if it is defined outside of TableRow. Do not know why ... Is it related to my UTF-8 strings defined in strings.xml? Do anyone know what's

[android-developers] Don't receive intent

2009-09-01 Thread Lutz Schönemann
Hi, my current problem is that I don't receive an intent. I have a BroadcastReceiver and defined in the AndroidManifest.xml file that it also should receive intents with these actions - android.intent.action.PACKAGE_ADDED - android.intent.action.PACKAGE_CHANGED -

[android-developers] Re: Don't receive intent

2009-09-01 Thread Lutz Schönemann
Okay, found the missing line in my AndroidManifest.xml file by digging deep inside the android code ;-) To receive these intents you have to set also the data scheme. The filter should look like this: intent-filter action android:name=android.intent.action.PACKAGE_ADDED/action

[android-developers] Re: Changing audio path to earpiece from speakerphone

2009-09-01 Thread CR
Thanks for your response. I am trying this on the G1, and it is not working for me. On Aug 31, 7:03 pm, Doug dougforp...@gmail.com wrote: PS: MODE_NORMAL is basically the routing mode for Media - such as music, or stuff that's played using the mediaplayer classes... On Aug 31, 4:01 pm, Doug

[android-developers] How to make a RotateDrawable actually rotate?

2009-09-01 Thread Matthias
Hi, I've been struggling to find out how Android's animation framework works, as it's basically undocumented. What I want to do is create a custom rotating spinner graphic (similar to an ajax loader). Now, I looked at how the framework uses RotateDrawable, and basically copied the XML used to

[android-developers] Re: Application using service in different project

2009-09-01 Thread themanol
Thank you very much. The last link give me the life. On Sep 1, 11:52 am, Mark Murphy mmur...@commonsware.com wrote: themanol wrote: I want create a service and that other application use this service. I want that the other application is in a different project that the service. It is

[android-developers] Re: GLSurfaceView does not invoke OnKeyDown(...)

2009-09-01 Thread Gameboy
Wow, it works only with setFocusableInTouchMode(true) (strange meaning, I have not read details in android yet). Remember I have tried with it but seems because the thread does not work to hide the reason. Well you all give me clues to have the second try, thanks a lot!

[android-developers] Re: Dialog cannot fill whole screen

2009-09-01 Thread matthias
Hi, I am also trying to find a solution to this... On Jul 31, 4:41 pm, nEx.Software email.nex.softw...@gmail.com wrote: Just out of curiosity, why are you using a dialog if you want it to fill the screen? simply because there are occasions where you need to replace content in the dialog

[android-developers] How to display an animated GIF file

2009-09-01 Thread Nithin
Hi, I just want to display an animated GIF file. I tried and its static only, its not animating. There are other ways like frame by frame or using animation classes. But I want to know, whether android supports animated GIF image. Thanks Nithin

[android-developers] Re: How to display an animated GIF file

2009-09-01 Thread Maps.Huge.Info (Maps API Guru)
Animated gif's aren't supported by the current version of the Android browser. It's been noted as a bug and should be fixed in some future release of the OS. What you can do is do the animation with JavaScript. You'll need access to each individual frame as separate images, it's fairly simple,

[android-developers] Re: setPadding() in onDraw() causing ListView draw loop

2009-09-01 Thread greg
Wise Guy. :*) If there is no easy method to add left indentation without causing an onDraw() loop, I'll pre-pad the char buffer with spaces and use setText (char[] text, int start, int len) to select the correct amount of left spacing. I thought I might be overlooking a simpler approach. By

[android-developers] Re: XML-RPC

2009-09-01 Thread Wouter
Hey Mark, Thank you this worked great! Now I have another issue.. I make another request: HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveDetails,sessionKey, 500); I only can save the response as an HashMap (androidxmlrpc client..) to get movie details and

[android-developers] Changing a Back button press to Home button press

2009-09-01 Thread Ne0
Trying to the do as the title describes with the following code, but it doesn't seem to work. It just does nothing once i have altered the keyCode. Do i have to do something to the event? public boolean onKeyDown(int keyCode, KeyEvent event) { /* * The back key usually destroys

[android-developers] Re: Getting failed to copy 'content' to '/sdcard/content': Read only file system on donut compilation.

2009-09-01 Thread Marco Nelissen
Since the card isn't mounted at all, that probably means the system couldn't find a valid filesystem on it. Check the log to see if there's anything there, and also look at 'adb shell dmesg'. On Mon, Aug 31, 2009 at 9:44 PM, Anandanandss2...@gmail.com wrote: Below are the responses of

[android-developers] Re: Setting internal storage in the AVD

2009-09-01 Thread WoodManEXP
Well, I edited the avd's .ini file to have a line like hw.ramSize=256 and restarted the avd. The avd does not show an increase in internal storage like I thought it might. I am just wondering if/how this parameter in the .ini file works. On Aug 31, 1:41 pm, Balwinder Kaur (T-Mobile USA)

[android-developers] Re: Changing a Back button press to Home button press

2009-09-01 Thread Romain Guy
This won't work. You just cannot do this. On Tue, Sep 1, 2009 at 8:21 AM, Ne0liamjamesalf...@googlemail.com wrote: Trying to the do as the title describes with the following code, but it doesn't seem to work. It just does nothing once i have altered the keyCode. Do i have to do something to

[android-developers] Re: setPadding() in onDraw() causing ListView draw loop

2009-09-01 Thread Romain Guy
You can call setPadding(), but just don't call it from onDraw(). Why do you want to call it from onDraw()? It has to be called only once. On Tue, Sep 1, 2009 at 7:40 AM, gregsep...@eduneer.com wrote: Wise Guy. :*) If there is no easy method to add left indentation without causing an

[android-developers] BitmapDrawable gravity ignored in ImageView???

2009-09-01 Thread Sam
Hi, I have created a BitmapDrawable and have set the gravity to clip vertically and to position at the bottom. Then I have added this to the imageView object, but the clipping is ignored and instead is being scaled instead. What am I doing wrong? Sample code below in an Activity:

[android-developers] Why does my EditText hint have different font spacing?

2009-09-01 Thread gnugu
Hi, my activity screen has 3 EditText's for changing the password. Somehow the hint on the oldPassword has different font spacing then the other two. I have not changed any properties of the EditText in the Activity code. I'm sure it's something obvious, I just don't see it. Thanks. Here is

[android-developers] Re: Why does my EditText hint have different font spacing?

2009-09-01 Thread gnugu
When all fails you start removing the code to find out the offending line... In this case it was android:password=true attribute on EditText id=@ +id/oldPassword. The other two EditText's had the transformation set in the code like so setTransformationMethod(new PasswordTransformationMethod());

[android-developers] Re: How to display an animated GIF file

2009-09-01 Thread Fred Grott(shareme)
you can do it via css and js if you have a film-strip style set of image frames On Sep 1, 9:55 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Animated gif's aren't supported by the current version of the Android browser. It's been noted as a bug and should be fixed in some future

[android-developers] Re: Intent.ACTION_SEND problems with platform\emulator 1.1

2009-09-01 Thread JKrapp
Hi, thanks for the reply :) But it's not clear to me why the emulator 1.1, with a running email and text messages clients (the default ones) , doesn't handle the intent ACTION_SEND, while the Emulator 1.5 does it, with the same clients. Does it mean that smathphones with Android platform API

[android-developers] Re: setPadding() in onDraw() causing ListView draw loop

2009-09-01 Thread greg
The required indentation is variable, not known until the row data is retrieved during the ListAdapter's getView(). I'm not looking for a way to re-layout the view (which setPadding() apparently does), just a simple way to indent text within a TextView. I think the approach of pre-padding the

[android-developers] Re: Changing a Back button press to Home button press

2009-09-01 Thread Marco Nelissen
Couldn't you just 'eat' the back key, and use startActivity() to launch home when you receive it? That should pretty much give you the effect the effect you're looking for. Of course, then your app is behaving in a nonstandard way, which might confuse users, so you should ask yourself whether

[android-developers] Re: setPadding() in onDraw() causing ListView draw loop

2009-09-01 Thread Dianne Hackborn
Then set it in getView(). It's a typical pattern to fiddle with views in getView() to have the exact layout appropriate for the data being displayed -- that's kind-of a main point of getView(). On Tue, Sep 1, 2009 at 9:30 AM, greg sep...@eduneer.com wrote: The required indentation is

[android-developers] Re: Intent.ACTION_SEND problems with platform\emulator 1.1

2009-09-01 Thread Dianne Hackborn
Those apps may not have handled ACTION_SEND in 1.1. This has nothing to do with the platform API level, and everything to do with the capabilities of the various applications that are current installed. The platform knows -nothing- about ACTION_SEND vs. ACTION_VIEW or whatever other action -- it

[android-developers] Re: Dialog cannot fill whole screen

2009-09-01 Thread Dianne Hackborn
The dialog theme, as part of its nature, sets the top-level window layout to be WRAP_CONTENT. You could try manually setting the Window layout width and height to FILL_PARENT, though this is going to make for a kind-of weird dialog (especially if one day you find yourself running on a large

[android-developers] Re: Suggestions on how to stop threads with long operations?

2009-09-01 Thread Streets Of Boston
Yep, that is pretty much the safe of doing this. In this way, although a bit cumbersome, you know how your thread will be terminated and that your app's state is in a predictable state. Calling 'stop' on a thread is deprecated, because it can put your app in an unpredictable state. Another thing

[android-developers] Re: Resizing dialog window does not work

2009-09-01 Thread Dianne Hackborn
Try doing this after setContentView() -- it is the first call to setContentView() where the window theme is applied. On Tue, Sep 1, 2009 at 3:48 AM, Matthias m.kaepp...@googlemail.com wrote: In one of my activities, I use the Theme.Dialog style, and I can't get the window to launch at full

[android-developers] Re: Load of applications in RAM

2009-09-01 Thread Dianne Hackborn
This describes how processes are managed: http://developer.android.com/guide/topics/fundamentals.html#proclife You can look at the log during boot to get an idea of what goes on during that time -- each time a process is a started a log is printed saying so with a string reason code for why it

[android-developers] Re: Problem in simple Code SQLite

2009-09-01 Thread cadlg
Have you checked the value of db before the call to openOrCreateDatabase ? On Sep 1, 12:56 am, Bharath B.G. bharath.ml...@gmail.com wrote: Hi, I am very new to SQLite, i referred some books regarding coding in SQLite n went straight for coding But while i run my simple code i am getting

[android-developers] Re: Intent.ACTION_SEND problems with platform\emulator 1.1

2009-09-01 Thread Steve
I'm getting the same problem. Works fine on my device. On Sep 1, 9:39 am, JKrapp skelfmob...@gmail.com wrote: Hi,  thanks for the reply :) But it's not clear to me why the emulator 1.1, with a running email and text messages clients (the default ones) , doesn't handle the

[android-developers] Re: Threads and Screen Orientation Change

2009-09-01 Thread Streets Of Boston
You're welcome :-) And you can make your show/dismissDialogSmart 'static'. Then you never need a reference to an Activity at all. Just call OrientationAwareActivity.showDialogSmart(id) On Aug 31, 5:44 pm, CraigsRace craig...@gmail.com wrote: I deal with these situations by just keeping a

[android-developers] Re: Ressource Management / Priorization of applications?

2009-09-01 Thread Dianne Hackborn
It's Linux. You can use the normal Linux facilities for controlling thread priorities. If you want the full gory details about how Linux schedules threads, you might want to look specifically for Linux material. Android runs on top of Linux, so it's the same thing. That said, in a normal

[android-developers] Re: CPU bandwidth control for threads/apps

2009-09-01 Thread salza
well, but with that method I can not say give a minimum of 50 MHz to thread A prioritized threads are always dependant from the other threads that have priorizations - i can not grant a minimum of bandwidth to a thread. or have I not understood it correctly? On Sep 1, 1:38 pm, CraigsRace

[android-developers] Re: Problem in simple Code SQLite

2009-09-01 Thread Marco Nelissen
Look at the system log ('adb logcat' , or the logcat tab in the DDMS perspective in Eclipse), and it will tell you exactly where and why your app crashed. On Mon, Aug 31, 2009 at 11:56 PM, Bharath B.G.bharath.ml...@gmail.com wrote: Hi, I am very new to SQLite, i referred some books regarding

[android-developers] App Widget and Orientation Changes

2009-09-01 Thread lilbyrdie
Hello, I've built an app widget -- a fairly simple one -- that draws an image inside a frame. (If that sounds familiar, that's because it's very similar to the built-in one, but it's a start to something else.) The RemoteView consists of little more than a FrameView and an ImageView. I have a

[android-developers] problem animating a view object

2009-09-01 Thread Andy Droid
Attempting a fairly simple animation of a View. I'm trying to display a panel, and then just animate it if the user touches the screen. Code for my simplified test is below. The function animateMe() definitely gets called, but nothing happens. Any help greatly appreciated, thanks. MAIN

[android-developers] Re: Inserting Photo to Contacts

2009-09-01 Thread Michel Albert
On Aug 29, 2:49 pm, Michel Albert exh...@gmail.com wrote: Hmmm... I am trying the same thing. The method with setPhotoData does indeed run without a hitch. Except that the photo does not show on the contact when displaying it with the default Contacts application. I double checked both the

[android-developers] Re: setPadding() in onDraw() causing ListView draw loop

2009-09-01 Thread greg
Thanks! Moving the setPadding() into getView() works perfectly. I guess I hadn't read enough custom view examples to realize that it is typical for getView() to modify the view. In fact, I didn't even know it was possible. Thanks again, Greg On Sep 1, 12:50 pm, Dianne Hackborn

[android-developers] Re: Touch Listener

2009-09-01 Thread vanquisher sinner
I am calling requestFocus() on both views. But only one of the views works properly everytime. Where should I place the requestFocus() so that either of the views can be in focus? On Sun, Aug 30, 2009 at 5:54 PM, Romain Guyromain...@google.com wrote: Focusable in touch mode has nothing to do

[android-developers] how do you position an image src inside an ImageButton

2009-09-01 Thread sdphil
I want the image to be right aligned within the image button. This -- ImageButton android:id=@+id/MyButton android:layout_width=fill_parent android:layout_height=fill_parent

[android-developers] ADC2 Submit vs Upload

2009-09-01 Thread Sri2
We submitted the app. After submitting, I see a Upload button, what's that for? Is it to upload to Android market? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: get the path of a file

2009-09-01 Thread Dexter's Brain
The Uri seems to be incorrect. file://sdcard/myfile.zip You can directly specify a file uri like Uri.fromFile(new File(/ sdcard/myfile.zip)) Regards, Dexter. On Sep 1, 11:35 am, SrilankanKK k2er...@gmail.com wrote: Hi I have create a zip file on the phone sdk. So i need to create a program

[android-developers] problem loading libraries

2009-09-01 Thread anuj tyagi
the open gl application shows error in logcat that not able to connect to GLS. the application do not show any o/p except textview. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Suggestions on how to stop threads with long operations?

2009-09-01 Thread fadden
On Sep 1, 9:54 am, Streets Of Boston flyingdutc...@gmail.com wrote: that is pretty much the safe of doing this. In this way, although a bit cumbersome, you know how your thread will be terminated and that your app's state is in a predictable state. Calling 'stop' on a thread is deprecated,

[android-developers] problem loading opengl

2009-09-01 Thread anuj tyagi
logcat shows errors in loading GLS and some other errors like sys\ and application terminates --~--~-~--~~~---~--~~ 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] How to retain EditText data when BACK key is pressed

2009-09-01 Thread pink 444
Hai, I have a EditText filed in my Activity class,Where i need to retain data,when orientation is changed or HOME button is pressed or BACK(FINISH) is pressed. Android internally maintaining EditText when orientation is changed or HOME button is pressed .But it is not maintaining

[android-developers] Re: Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...

2009-09-01 Thread John B. Hansen
To workaround this problem, I've had to re-provision one of my old machines with Ubuntu Intrepid (8.10). Its slower but it works fine. For now, I cannot do Android development in Ubuntu Jaunty (9.04). On Aug 31, 9:07 pm, John B. Hansen jnahan...@gmail.com wrote: I just updated my Ubuntu Linux

[android-developers] Re: how do you position an image src inside an ImageButton

2009-09-01 Thread Dexter's Brain
Remove the background tag. That should help. Regards, Dexter. On Sep 1, 11:10 pm, sdphil phil.pellouch...@gmail.com wrote: I want the image to be right aligned within the image button. This --                 ImageButton android:id=@+id/MyButton                              

[android-developers] Re: How to build Uri to an image present at the APK ?

2009-09-01 Thread Dexter's Brain
Hi, The code for starting the intent is correct. But I am not sure about the data, i.e the Uri that you have passed. Normally, other application cannot access your application specific files, unless you expose them through a content provider. One option would be to save your file to the sdcard,

[android-developers] Re: Contacts photos does not work after insert

2009-09-01 Thread Michel Albert
Incidentally, I am also writing a small backup tool and had a problem that sounds very similar to yours. I figured out, that adding photos does not work properly on the emulator. I added a new menu option which, when clicked, added a photo from a binary stream to a hard-coded contact URI. When I

[android-developers] Re: ADC2 Submit vs Upload

2009-09-01 Thread nuno
There was always an upload button.That was the button you pressed before the submit. You could upload more than one app. On Sep 1, 6:43 am, Sri2 vat...@gmail.com wrote: We submitted the app. After submitting, I see a Upload button, what's that for? Is it to upload to Android market?

  1   2   >