[android-developers] Returning from HTTP Intent.ACTION_VIEW

2009-03-23 Thread Chris Streeter
I have an application that needs to have a user visit a web page to authorize it. After spending time in the Browser the user should return the my application. Currently, I'm launching the Browser with: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url.toString())); i.addFlags(Intent.FLAG_

[android-developers] How to test camera on android

2009-03-23 Thread Harishkumar V
Hi, I have android running on beagle. I have usb webcam Logitect QuickCam Express connected to beagle board. The v4l2 driver recognizes the camera. Using v4l-info i can query the video device. Now, from android, if i run Camera.apk, only black and white checked screens (as like in emulator) com

[android-developers] Is Android browser supports Content-Encoding : gzip ???

2009-03-23 Thread Dilli
HI all I am developing a application which launches automatically when the user clicks on any link of pls / m3u in browser it works fine. But some links the response from server is like bellow it dos't launches my activity i founded that the difference is only Content-Encoding: gzip is extra i

[android-developers] Re: Error code

2009-03-23 Thread Eric Wong (hdmp4.com)
That's a great idea. Probably doesn't work work for Google when all employee have free food to start with..(right?) Cheers Eric On Mar 22, 6:42 pm, Al Sutton wrote: > I used to work for a company where anyone who checked in code that broke > the build and didn't fix it within a couple o

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-03-23 Thread havexz
THANKS ITS WOKRING..:) BTW is there a way i can access using the UI DDMS which comes with eclipse IDE.? On Mar 23, 10:40 pm, Jean-Baptiste Queru wrote: > Run "su" in your shell, and you'll be running a root shell. > > JBQ > > > > On Mon, Mar 23, 2009 at 7:45 PM, havexz wrote: > > > Also tr

[android-developers] Urgent help in getting screen coordinatesof a view

2009-03-23 Thread kavitha
Hi All, I need help in getting coordinates of a view on screen. I tried to print the view coordinates,they print value as 0. If i say v.getLeft() even that print it's value as 0. I am not understanding.Please help on this regard. Here is my code.I am trying to print view values in onStart()

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread Dianne Hackborn
http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String,%20int) And all of the other overloaded methods for various types. On Mon, Mar 23, 2009 at 10:40 PM, me tun wrote: > > How can I do that? Is there a reference you can point me to? > > On Mar 24, 4:35 p

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread me tun
How can I do that? Is there a reference you can point me to? On Mar 24, 4:35 pm, Dianne Hackborn wrote: > Please don't make up URI schemes.  If you are passing app-private data, you > should probably just put it in as extra fields of whatever type you want. > > On Mon, Mar 23, 2009 at 10:20 PM,

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread Dianne Hackborn
Please don't make up URI schemes. If you are passing app-private data, you should probably just put it in as extra fields of whatever type you want. On Mon, Mar 23, 2009 at 10:20 PM, me tun wrote: > > Hello, > > I've tried something similar to this, intent.setData(Uri.parse > ("screenmode://and

[android-developers] How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread me tun
Hello, I've tried something similar to this, intent.setData(Uri.parse ("screenmode://android.ds/ActivityType=MY_ACTIVITY")); Can I just put anything, or is there a specific format I need to follow i.e. screenmode: something else, something else etc... Cheers guys. --~--~-~--~~-

[android-developers] How to change the tab icon dynamically

2009-03-23 Thread manoj
Hi, I have a tab activity with 3 tabs. Each tab has a default icon. I want these icons have to be changed dynamically on each tab selected. I mean, each tab has two icons, one for on tab select, another for on tab deselect. Can any one please suggest me how to do it? Here is my sample code:

[android-developers] Re: SoundPool working correctly yet?

2009-03-23 Thread clark
I believe I solved my issue and wanted to post an update to all those that come across this thread. Previously I thought I had read somewhere that the sound files needed to be .WAV files, and so that is what I was using. I wrote an app yesterday "SchottGunn" and decided to go with using the Soun

[android-developers] Re: When issue "adb shell sendevent", I don't want ADB server redirect any printf's info to terminal at Windows CMD.

2009-03-23 Thread linlone9
My real requirement is that: sendevent will consume more than 10 seconds, so, I wish Windows CMD don't wait so long, and Windows CMD can immediately return to user-input-status. Currently I can bethink of calling close(), likely as belows: -

[android-developers] Re: When issue "adb shell sendevent", I don't want ADB server redirect any printf's info to terminal at Windows CMD.

2009-03-23 Thread David Turner
Why don't y ou try to redirect the output of adb shell to the NUL device instead ? On Tue, Mar 24, 2009 at 4:22 AM, wrote: > > As you know, when issue "adb shell sendevent", the printf of sendevent > will write to "/dev/pts/1", and at that time, ADB server will read from > "/dev/ptmx". > Finally

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-03-23 Thread Jean-Baptiste Queru
Run "su" in your shell, and you'll be running a root shell. JBQ On Mon, Mar 23, 2009 at 7:45 PM, havexz wrote: > > Also tried login to shell using adb but i am unable to browse to that > directory.. the error is given below: > $ ls > ls > sqlite_stmt_journals > cache > sdcard > etc > init >

[android-developers] Re: App localization

2009-03-23 Thread Simon Depiets
2009/3/23 Yossi : > > Hi, > > I'm planning to localize my app (e.g. translate to different > languages). Assuming it will support English and German, does it mean > that users in Germany will get only the German text or would they be > able to choose having it in English? Hi, you should put your s

[android-developers] When issue "adb shell sendevent", I don't want ADB server redirect any printf's info to terminal at Windows CMD.

2009-03-23 Thread linlone9
As you know, when issue "adb shell sendevent", the printf of sendevent will write to "/dev/pts/1", and at that time, ADB server will read from "/dev/ptmx". Finally, the printf of sendevent will show at Windows CMD. But, I don't want any printf's info is shown at Windows CMD. How to do at sendevent

[android-developers] Re: Get scroll position in a list activity

2009-03-23 Thread Romain Guy
Don't refresh it with setListAdapter! Just modify the content of the adapter instead. On Mar 23, 2009 7:03 PM, "Ivan Soto" wrote: But when I refresh the listview with setlistadapter(listadapter) it returns to the top. Mark: Do you have any article/tutorial about the placeholder images to share?

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-03-23 Thread havexz
Also tried login to shell using adb but i am unable to browse to that directory.. the error is given below: $ ls ls sqlite_stmt_journals cache sdcard etc init default.prop logo.rle init.trout.rc data system init.goldfish.rc sys proc init.rc sbin root dev $ ls data ls data opendir failed, Permi

[android-developers] How to login to the root of Android Dev Phone 1?

2009-03-23 Thread havexz
I am unable to copy the files from the data folder of the Android Dev Phone 1. I used to do that on the Emulator. I need to back up the application data so that I can restore it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[android-developers] Re: PreferenceScreen Close

2009-03-23 Thread Noam
This is what I have so far: ListAdapter thisListAdapter = this.getListAdapter(); --~--~-~--~~~---~--~~ 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@goog

[android-developers] block reading a socket

2009-03-23 Thread Weizhong
Hi Currently I have a thread block reading a socket. I would like to what will happen to this thread if my application went to background and system decide to release the resource allocated to my application. Is there anything special need to be take care of in this case? Thanks, Weizhong --~--~

[android-developers] Re: Way to tell when task goes to back of stack?

2009-03-23 Thread Dianne Hackborn
onStop() should be the correct place to do this kind of stuff. Also, note that in the case mentioned (user pressing home) you do not go to the bottom of the stack; home is brought up to the top. If there was anything besides home below you, it will still be below you. For what it's worth. :} On

[android-developers] Re: Get scroll position in a list activity

2009-03-23 Thread Ivan Soto
But when I refresh the listview with setlistadapter(listadapter) it returns to the top. Mark: Do you have any article/tutorial about the placeholder images to share? I'm trying to find one with no luck. Thanks for helping. Ivan Soto Fernandez Web Developer http://ivansotof.com On Mon, Mar 23

[android-developers] Re: Center drawable?

2009-03-23 Thread Keith Wiley
On Mar 23, 4:22 pm, Mark Murphy wrote: > Keith Wiley wrote: > > Question: I can place a drawable png on a button no problem, but the > > only placement options are along the sides. > > Have you tried ImageButton? Sweet. Much thanks. --~--~-~--~~~---~--~~ You rece

[android-developers] Re: Get scroll position in a list activity

2009-03-23 Thread Romain Guy
ListView does not use scrollY. There's no need to save the scroll anyway because ListView does it for you. On Mon, Mar 23, 2009 at 6:26 PM, Ivan Soto wrote: > Hi, > I'm trying to get the scroll position on a ListActivity. Here is what I'm > trying to do: > I have a list activity that is populate

[android-developers] Re: Get scroll position in a list activity

2009-03-23 Thread Mark Murphy
Ivan Soto wrote: > I'm trying to get the scroll position on a ListActivity. Here is what > I'm trying to do: > I have a list activity that is populated from an XML file. Another > thread downloads all pictures so the user can see the list while the > thread is still downloading the files. > > Wha

[android-developers] Get scroll position in a list activity

2009-03-23 Thread Ivan Soto
Hi, I'm trying to get the scroll position on a ListActivity. Here is what I'm trying to do: I have a list activity that is populated from an XML file. Another thread downloads all pictures so the user can see the list while the thread is still downloading the files. What I'm trying to do is when

[android-developers] Re: PreferenceScreen Close

2009-03-23 Thread Noam
Mark, The onContentChanged() did not seem to do the trick. I am still trying to figure out how to do the second option. I have tried looking for code that contains the DataSetObserver but have not found any. Can you please write an example code to show me how it works? Thanks, Noam. --~--~--

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

2009-03-23 Thread AndroidApp
Not if you stay anonymous (hint, hint) ;-) On Mar 23, 7:58 pm, Anonymous Anonymous wrote: > " Someone from Google? " makes it official i guess :D > > On Tue, Mar 24, 2009 at 12:47 AM, AndroidApp wrote: > > > Can someone capable just compile the SDK and post it online for > > everyone? Someone f

[android-developers] Re: Are you localizing an app? Do you want to be?

2009-03-23 Thread clark
Anyone know if it is possible to localize the application description which shows up in the market? It's great that all my strings can be localized, but how are the users in other regions going to know what an application does if the description is not in their native language? Regards, ~clark

[android-developers] Re: Construct typeface object from file?

2009-03-23 Thread Stoyan Damov
On Tue, Mar 24, 2009 at 2:12 AM, Mark Murphy wrote: > > Stoyan Damov wrote: >> Now, the thing is, why isn't this supported, >> and would it be supported? > > FWIW, most of Typeface's logic is implemented in C via JNI. We'd need to > modify lower-level firmware stuff to expose the right behaviors

[android-developers] Re: Construct typeface object from file?

2009-03-23 Thread Mark Murphy
Stoyan Damov wrote: > Now, the thing is, why isn't this supported, > and would it be supported? FWIW, most of Typeface's logic is implemented in C via JNI. We'd need to modify lower-level firmware stuff to expose the right behaviors for Typeface to surface. I've logged this as: http://code.goog

[android-developers] Re: Way to tell when task goes to back of stack?

2009-03-23 Thread Stoyan Damov
As a hack, you could do this (depends on how many activities you have, whether they cover the entire screen, etc.): Let's say you have activity A, which launches activity B. Activity A is the one spawning the threads. Now, apparently, you know when you're launching activity B, so you could do som

[android-developers] Way to tell when task goes to back of stack?

2009-03-23 Thread Ward Willats
Thanks for the response Stoyan. I like having the UI preserved so I don't want to toss everything down to the root. I just want to stop some worker threads when going into the background. >See if "clearTaskOnLaunch" [1] is not what you're looking for. > >[1] http://developer.android.com/guide/

[android-developers] Re: Construct typeface object from file?

2009-03-23 Thread Stoyan Damov
On Tue, Mar 24, 2009 at 1:52 AM, Mark Murphy wrote: > > zl25drexel wrote: >> Hi, does anyone know how to construct a typeface object from a file? >> Say i have a .ttf file on the SD card, how do i load it into my app? > > I do not believe you can. > > You can create a Typeface object from a suita

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

2009-03-23 Thread Anonymous Anonymous
" Someone from Google? " makes it official i guess :D On Tue, Mar 24, 2009 at 12:47 AM, AndroidApp wrote: > > Can someone capable just compile the SDK and post it online for > everyone? Someone from Google? I dont really care if it's not > official, i just dont want to download the source tree j

[android-developers] Re: Construct typeface object from file?

2009-03-23 Thread Mark Murphy
zl25drexel wrote: > Hi, does anyone know how to construct a typeface object from a file? > Say i have a .ttf file on the SD card, how do i load it into my app? I do not believe you can. You can create a Typeface object from a suitable TTF that is packaged as an asset with your application, but t

[android-developers] Construct typeface object from file?

2009-03-23 Thread zl25drexel
Hi, does anyone know how to construct a typeface object from a file? Say i have a .ttf file on the SD card, how do i load it into my app? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: Center drawable?

2009-03-23 Thread Mark Murphy
Keith Wiley wrote: > Question: I can place a drawable png on a button no problem, but the > only placement options are along the sides. Have you tried ImageButton? -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~---

[android-developers] Center drawable?

2009-03-23 Thread Keith Wiley
Question: I can place a drawable png on a button no problem, but the only placement options are along the sides. Is there no way to center it? I'm sure there is, but I'm missing it. For example, what is the equivalent of "android:drawableBottom" that centers? Oh, and I would love a patient poi

[android-developers] Re: Way to tell when task goes to back of stack?

2009-03-23 Thread Stoyan Damov
See if "clearTaskOnLaunch" [1] is not what you're looking for. [1] http://developer.android.com/guide/topics/fundamentals.html Cheers On Tue, Mar 24, 2009 at 12:57 AM, Ward Willats wrote: > > Is there a way to tell when my task gets put on the back of the UI > stack (user pressed "home" say?)

[android-developers] Way to tell when task goes to back of stack?

2009-03-23 Thread Ward Willats
Is there a way to tell when my task gets put on the back of the UI stack (user pressed "home" say?) I have some resources I'd like to free when not foregrounded. The lifecycle routines seem dicey to use to try and infer this. The "home" key does not seem to be passed to onKeyDown(), and moveT

[android-developers] Re: Accelerometer or orientation for rolling ball code?

2009-03-23 Thread clark
IMO, I'd go with the accelerometer implementation. The reason being that for a rolling ball you could use the values for the X and Y axis, perhaps scale them a bit to meet your needs. I've done exactly that on a test application I was working on. Going with the orientation implementation, you w

[android-developers] Accelerometer or orientation for rolling ball code?

2009-03-23 Thread Carl Whalley
If I'm reading things right, the accelerometer measures physical forces (i.e. movement) and the orientation sensor gives the tilt of the handset. If you are coding a rolling ball type app which would you use? You could argue accelerometer, in which case you measure each delta force and apply it to

[android-developers] Re: backup database

2009-03-23 Thread daniel.benedykt
Thanks Mark. ok, transfer to some other place is a good idea. Is there any way to Sync files or XML with Google SYNC from the phone? Thanks On Mar 23, 6:28 pm, Mark Murphy wrote: > daniel.benedyktwrote: > > Is there a standard way to backup the database of my app. > > Standard? No. > > > I kno

[android-developers] Re: PendingIntent problem

2009-03-23 Thread Mark Murphy
info+farm wrote: > Am I the only one who is having this problem? > Actually, I am going to find a workaround for this problem, but I > would like to know what I am doing wrong. I do not remember the answer, but I do know this was discussed on this list within the past few months. Search the list

[android-developers] Re: backup database

2009-03-23 Thread Mark Murphy
daniel.benedykt wrote: > Is there a standard way to backup the database of my app. Standard? No. > I know I can write data to a file from the DB and restore it at any > time with my code, but what happens if for some reason the user loose > all the data on the phone. Is there a way to make a bac

[android-developers] Custom tab design

2009-03-23 Thread Al
Hi, I want to make my own tab design, the default ones in Android are too large for what I need. I'm not sure how to go around doing it though, I'm assuming I would need to extend one of the sdk classes? But I'm not sure which one to extend. Any pointers are appreciated. --~--~-~--~~--

[android-developers] What need to be save when application has to save state in onSaveInstanceState?

2009-03-23 Thread havexz
I am implemented a activity which contains the two text boxes. Now during the state saving i save the data i am working on. But when the orientation is changed the cursor position in the edit box comes back to 0th postion. And now my question do i need to save the cursor position also and also the

[android-developers] App localization

2009-03-23 Thread Yossi
Hi, I'm planning to localize my app (e.g. translate to different languages). Assuming it will support English and German, does it mean that users in Germany will get only the German text or would they be able to choose having it in English? Thanks, Yossi --~--~-~--~~~

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Rajendrakumar Chinnaiyan
ok that's good... On Tue, Mar 24, 2009 at 12:28 AM, Dianne Hackborn wrote: > On Mon, Mar 23, 2009 at 12:39 PM, Rajendrakumar Chinnaiyan < > rajendran.b...@gmail.com> wrote: > >> I need a help from you... can I send a mail to you mail ID... > > > I need to keep discussions on the list; I don't hav

[android-developers] backup database

2009-03-23 Thread daniel.benedykt
Hi Is there a standard way to backup the database of my app. I know I can write data to a file from the DB and restore it at any time with my code, but what happens if for some reason the user loose all the data on the phone. Is there a way to make a backup to a computer? Thanks Daniel --~--~--

[android-developers] Re: Draw a bitmap rotated onto another bitmap

2009-03-23 Thread thesquib
Hi William, Check out Canvas.Rotate, Canvas.Translate, Canvas.Restore, Canvas.Save You can call Canvas.Rotate just before drawing the image and it will be drawn on the rotated canvas. On Mar 23, 10:25 am, William wrote: > i also have the same problem when I want to flip and image around, i > ha

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 12:39 PM, Rajendrakumar Chinnaiyan < rajendran.b...@gmail.com> wrote: > I need a help from you... can I send a mail to you mail ID... I need to keep discussions on the list; I don't have time to provide private support. -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Rajendrakumar Chinnaiyan
ok Dianne I need a help from you... can I send a mail to you mail ID... On Tue, Mar 24, 2009 at 12:06 AM, Dianne Hackborn wrote: > On Mon, Mar 23, 2009 at 12:16 PM, Rajendrakumar Chinnaiyan < > rajendran.b...@gmail.com> wrote: > >> If they won't change the internal API's.. Our applicati

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 12:16 PM, Rajendrakumar Chinnaiyan < rajendran.b...@gmail.com> wrote: > If they won't change the internal API's.. Our application also won't get > any problem.. The very reason APIs are internal is because they can change. -- Dianne Hackborn Android framework engine

[android-developers] Re: PendingIntent problem

2009-03-23 Thread info+farm
Dear all, Am I the only one who is having this problem? Actually, I am going to find a workaround for this problem, but I would like to know what I am doing wrong. Any help would be appreciated. Regards, info+farm info+farm wrote: > Hello all, > > I have more than one notification in notifica

[android-developers] Re: How is android's AlertDialog layout define?

2009-03-23 Thread Lucius Fox
Can you please tell me where I can the layout xml file for the AlertDialog? I try to do a 'grep for 'alert1' in all the files in the source tree, it does not return anything. Thanks for tips. On Sun, Mar 22, 2009 at 11:56 AM, Dianne Hackborn wrote: > The layout is an xml file, and an implementa

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Streets Of Boston
And that's a BIIIGG 'if'. :-) Trust Dianne on this. Do not use any API that is private. If you do, at some point in time you will (and that's a 100% sure) break your application and you will get a lot of angry customers. On Mar 23, 3:16 pm, Rajendrakumar Chinnaiyan wrote: > If they won't c

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

2009-03-23 Thread AndroidApp
Can someone capable just compile the SDK and post it online for everyone? Someone from Google? I dont really care if it's not official, i just dont want to download the source tree just to build the SDK, plus i need to do the tricks you mentioned to make it work on windows. On Mar 23, 1:11 pm, Ma

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Rajendrakumar Chinnaiyan
If they won't change the internal API's.. Our application also won't get any problem.. On Mon, Mar 23, 2009 at 11:42 PM, Dianne Hackborn wrote: > On Mon, Mar 23, 2009 at 11:42 AM, AndRaj wrote: > >> oh... Good.. So it will change only if they change in new release > > > They will. You w

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 11:42 AM, AndRaj wrote: > oh... Good.. So it will change only if they change in new release They will. You will break. Plus, you are linking against a special build of a part of the Android platform that was designed to run on the desktop for the UI editor. There

[android-developers] Re: Multiple ListViews in one Activity

2009-03-23 Thread Romain Guy
> And it's a bit off topic, but yes, a ListView handles scrolling, which > is messed up when in a ScrollView, but I really would have liked my > list to be at the bottom of an interface that happened to scroll off > the screen, just like this scrollable text box I'm typing in is at the > bottom of

[android-developers] Re: ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-23 Thread droozen
Have you tried following the Notepad tutorial and this line in your onCreate method? registerForContextMenu(getListView()); On Mar 23, 1:31 pm, Matthias wrote: > Hi, > > I have been struggling for over two hours now getting a custom > ListActivity to respond to touch/click events direct

[android-developers] Re: Multiple ListViews in one Activity

2009-03-23 Thread droozen
Ah, I see. I guess I assumed he was using a ListActivity, the way he was describing it. How else would you access the OnListItemClicked or a similar such capture to be able to manipulate both lists outside of a ListActivity? And it's a bit off topic, but yes, a ListView handles scrolling, which i

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread AndRaj
oh... Good.. So it will change only if they change in new release i fthey won't change that it also won't change rt... On Mar 23, 9:40 pm, Dianne Hackborn wrote: > On Mon, Mar 23, 2009 at 3:05 AM, Lars wrote: > > Could you please explain why? > > You are using this to bypass the SDK and ac

[android-developers] Re: ProgressBar - Emulator not working?

2009-03-23 Thread droozen
That worked, thanks. On Mar 23, 12:27 pm, Marco Nelissen wrote: > Try adding this to your xml: > style="?android:attr/progressBarStyleHorizontal" > > On Mon, Mar 23, 2009 at 9:50 AM, droozen wrote: > > > I just wanted to run a ProgressBar test, as it's my first time using > > them on the Androi

[android-developers] Re: who can tell me how to achieve this function?! thx!!!!

2009-03-23 Thread droozen
They're probably saving your name on their webserver somewhere, and perhaps using your phone number to identify the phone and display that name. On Mar 22, 9:06 pm, "wanzi !" wrote: > Is anybody download the PaPi games from market and played it? > > I found when I played one of this series of Pa

[android-developers] ListActivity.onListItemClick() only responds to trackball/dpad clicks

2009-03-23 Thread Matthias
Hi, I have been struggling for over two hours now getting a custom ListActivity to respond to touch/click events directly on its list items. However, onListItemClick() is only called when first focusing a list element and then pressing the trackball or dpad-center button. The odd thing is that i

[android-developers] Re: How to get the current battery level of the device using an API call

2009-03-23 Thread monmonja
Have you tried something like int level = this.getIntent().getIntExtra("level", 0); int scale = this.getIntent().getIntExtra("scale", 100); if((level * 100 / scale) > 70){ // dl } monmonja http://almondmendoza.com/2009/01/04/getting-battery-information-on-android/ --~--~-~--~~--

[android-developers] Re: Multiple ListViews in one Activity

2009-03-23 Thread Romain Guy
> Short Answer: I don't think you can Yes you can. > ListActivity hosts a ListView object that can be bound to different > data sources. -- Note the singular "a", as in "one" That's with a *ListActivity*. You can use a regular Activity instead. And actually even with a ListActivity you can use

[android-developers] Re: " IWindowManager Not Available "

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 3:05 AM, Lars wrote: > Could you please explain why? You are using this to bypass the SDK and access various internal APIs and data structures. Worse, what is probably happening is that you are bundling the internal IPC interfaces into your app, which will break pretty

[android-developers] how can i pick audio in startActivityForResult

2009-03-23 Thread zeeshan
Hi Experts, i need to select audio from my playlist which intent can help me? --~--~-~--~~~---~--~~ 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@google

[android-developers] Re: Accessing System Brightness

2009-03-23 Thread Dianne Hackborn
On Sun, Mar 22, 2009 at 10:45 PM, joby wrote: > IHardwareService hardware = IHardwareService.Stub.asInterface > ( > ServiceManager.getService("hardware")); > > try { >hardware.setScreenBacklight(150); >} catch (RemoteException e) >// TODO Auto-generated catch

[android-developers] Re: Why my application get "Not granting permission warning" when i install it by adb and AppsInstaller

2009-03-23 Thread Dianne Hackborn
On Mon, Mar 23, 2009 at 6:18 AM, Disconnect wrote: > On a related note, since I am without my build machine at the moment (sigh, > apple, boo) do you know off the top of your head if master allows rebinding > the 'talk' and general phone/contact UI to a different app? (There is a 3rd > party phon

[android-developers] Re: How to control the SurfaceView's z-order

2009-03-23 Thread Dianne Hackborn
I strongly recommend against using multiple surface views in a window. The way surface view is implemented is that a separate surface is created and Z-ordered behind its containing window, and transparent pixels drawn into the rectangle where the SurfaceView is so you can see the surface behind. W

[android-developers] Re: Multiple ListViews in one Activity

2009-03-23 Thread droozen
Short Answer: I don't think you can Longer Answer: ListActivity, as described in the javadocs: ListActivity hosts a ListView object that can be bound to different data sources. -- Note the singular "a", as in "one" Screen Layout ListActivity has a default layout that consists of a single, full

[android-developers] Re: Implications of Using Non Standard Packages

2009-03-23 Thread Dianne Hackborn
Also com.google.android.maps is an optional API provided by Google that is not part of Android, so there will be phones that don't have it. This is why you need to declare its use in the manifest, so that Market and the system can know your app won't work. On Mon, Mar 23, 2009 at 10:28 AM, Romain

[android-developers] Re: Implications of Using Non Standard Packages

2009-03-23 Thread Romain Guy
Your app is likely to break. More precisely, it depends on the package. For instance, the com.google.android.maps package is a public API and won't change. However, packages like com.android.internal or even com.android.* contain private APIs and are subject to changes at anytime. On Mon, Mar 23

[android-developers] Re: ProgressBar - Emulator not working?

2009-03-23 Thread Marco Nelissen
Try adding this to your xml: style="?android:attr/progressBarStyleHorizontal" On Mon, Mar 23, 2009 at 9:50 AM, droozen wrote: > > I just wanted to run a ProgressBar test, as it's my first time using > them on the Android. Here's my XML (in a Linear Layout): > >        android:layout_width="fil

[android-developers] Re: Want to learn it to develop app

2009-03-23 Thread Ivan Soto
That's good. Please use android-beginners group if you are really new into the platform. Ivan Soto Fernandez Web Developer http://ivansotof.com On Mon, Mar 23, 2009 at 9:08 AM, liqiu...@gmail.com wrote: > > I am very intreseting in Android.It very new to me,so I want to know > about it. > > >

[android-developers] Re: Multiple ListViews in one Activity

2009-03-23 Thread Romain Guy
You can do that. A ListView does not have to have the @android:id/list id, only when used in a ListActivity. On Mon, Mar 23, 2009 at 4:44 AM, Wouter wrote: > > Hey, > > I want to have multiple listviews in my activity. Every listview will > have a different adapter and every item in the listview

[android-developers] Re: Building user interfaces at runtime with layouts from server

2009-03-23 Thread droozen
We might have to know why you want to build this way. There could be other possibilities, including using a much simpler xml that you could parse yourself and add UI elements programmatically. Or have a variety of layouts available that you could set, depending on a value you've downloaded, though

[android-developers] How to get south asian unicode fonts on android?

2009-03-23 Thread nrain
Hii, I hope Android os supports unicode fonts. I want to use some otf fonts on my handset. Is there any tutorial or suggestion available? Here is the unicode font chart: http://unicode.org/charts/PDF/U0980.pdf Example font: http://omicronlab.com/download/fonts/SolaimanLipi_20-04-07.ttf any help

[android-developers] Re: Deleting Incoming SMS???

2009-03-23 Thread Mani
Matt: Not all the Incoming Messages will be displayed in the Inbox . There are certain type of messages, which are not supposed to be shown in Inbox , instead , they are Processed by Some application on the phone. There are certain Messages called Port Messages, where in the the TP- UD ( Please

[android-developers] Multiple ListViews in one Activity

2009-03-23 Thread Wouter
Hey, I want to have multiple listviews in my activity. Every listview will have a different adapter and every item in the listview must be clickable (other actions for every listview). So my problem now is that I can't create multiple clickable listviews. I have one listview like this http://gro

[android-developers] Can we charge some externals stuffs for a paid Android Market game

2009-03-23 Thread jokamax
Hi all, I have a question about paid applications from AndroidMarket. I developp a multiplayer game witch interact with a Web site Can I sell on Android Market an application, and then sell from the web site (not by the android market) some downloadable content or some extendable rights ? Examp

[android-developers] HelloGallery tutorial "android.R.styleable cannot be resolved"

2009-03-23 Thread ppmoore
Hello, I've been following the View tutorials included in the android developer site. When testing hte HelloGallery view, I get this compile- time error. I searched for this error on this group but is wasn't answered. Can anyone help. The problem reference occurs in the imageAdapter class that

[android-developers] Implications of Using Non Standard Packages

2009-03-23 Thread jason.delport
Hi Android Developers, What are the implications for future Android device releases if we are using non-standard packages such as "com.google.android.maps"? Thanks in advance. Regards, Jason Delport --~--~-~--~~~---~--~~ You received this message because you ar

[android-developers] How to get the currently foreground activity class name?

2009-03-23 Thread Leon
Hi, does any one konw how to get the currently foreground activity class name? In my project, I need get the info of the foreground activity, not only my own application, but also the third party application. --~--~-~--~~~---~--~~ You received this message becaus

[android-developers] Want to learn it to develop app

2009-03-23 Thread liqiu...@gmail.com
I am very intreseting in Android.It very new to me,so I want to know about it. --~--~-~--~~~---~--~~ 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@google

[android-developers] Re: Deleting Incoming SMS???

2009-03-23 Thread Mani
Matt : There are certain Set of SMS , which is not meant for the User , like SMSPP- Data Download ( which goes to the SIM Card ) and is not Displayed in the Inbox . Similarly , there are set of Port Messages ( where in , the TP-User Data [ Refer 3GPP TS 23.040 ] ) , will contain the Port IE , wh

[android-developers] Building user interfaces at runtime with layouts from server

2009-03-23 Thread Daniel
Hi all, Q: What is the recommended way to build user interfaces on the device based on layouts provided by a server at runtime? I am aware of this: http://developer.android.com/reference/android/view/ LayoutInflater.html"> For performance reasons, view inflation relies heavily on pre- processing

[android-developers] How to play Video files from MediaStore

2009-03-23 Thread Ramesh
Hi everybody.. Can anyone help me in this? I would like to list the video files available in the provider and playing according to user selection. Thanks, Ramesh. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] How to create a composer for QCELP

2009-03-23 Thread david
Hi, Anybody knows how to create such the composer? I've searched OpenCore source for a sample from which I can do learn to create it. But I just found the one for MPEG4. Meanwhile, It looks like very complicated and I think it has little things relative with Audio/QCELP. So, any hint for this is

[android-developers] How to control the SurfaceView's z-order

2009-03-23 Thread hurri
Hi, I created a RelativeLayout which has 2 SurfaceView. The layout looks like below It seems that the main surface is always above on pip surface even put the pip definiation before the main. So how can i change the z-order to bring the pip to front. --~--~-~--~~-

[android-developers] who can tell me how to achieve this function?! thx!

2009-03-23 Thread wanzi !
Is anybody download the series of PaPi game form the market and played it? I found after I enter one of this series game and input my name,all of this series games can read this name. At beginning, I think maybe the application save some data in the phone which can be shared by all the PaPi gam

[android-developers] Re: Where is the source code for "Pictures" app

2009-03-23 Thread tuvok.com...@gmail.com
It's Gallery in source code. On Mar 22, 11:01 pm, "yves...@gmail.com" wrote: > I just downloaded Android source code, but I can't find the source > for "Pictures" app. I did see "Calculator" code. Anyone know where I > can find the "Pictures" or why it is not in the source code package? --~--~-

[android-developers] Returning from HTTP Intent.ACTION_VIEW

2009-03-23 Thread Chris Streeter
I have an application that needs to have a user visit a web page to authorize it. After spending time in the Browser the user should return the my application. Currently, I'm launching the Browser with: Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url.toString())); i.addFlags(Intent.FLAG

  1   2   >