[android-developers] Re: How to set border to linear layout

2009-09-11 Thread Dianne Hackborn
Views don't have a frame; however, they have a background and padding that you can use to create a frame. Typically how you would do this is draw a 9-patch image of your frame, marking up along the edges where you want it to stretch and where the inner content area is, and set this as your

[android-developers] Re: XML parser

2009-09-11 Thread Sasi Kumar
can you tell what is xmlpullparser and give one example. On Sep 10, 6:25 pm, Keean Schupke keean.schu...@googlemail.com wrote: Use the XmlPullParser. Regards, Keean. On Sep 10, 11:10 am, Lewis lewisandrewba...@googlemail.com wrote: I found XML parsing in android to be slightly buggy,

[android-developers] On Android target, can a folder be created under / (root)

2009-09-11 Thread Royston
Hi All, On Android targets, I observe that / is a read-only file system. We have a requirement where we need to create a folder (like XYZ) under / (root). I tried to create a link too but that too failed. Is this possible using any adb shell command/system utility or this is a limitation?

[android-developers] Re: On Android target, can a folder be created under / (root)

2009-09-11 Thread Dianne Hackborn
This is not possible on a regular device. Why would you have a requirement to put a directory there? On Thu, Sep 10, 2009 at 11:34 PM, Royston roystonra...@gmail.com wrote: Hi All, On Android targets, I observe that / is a read-only file system. We have a requirement where we need to

[android-developers] AndroidManifest compile time checks

2009-09-11 Thread Raja Nagendra Kumar
Hi, No doubt that Android is a great platform to build, however due to its new entry.. we see of issues.. which could make the developers life more better. TejaSoft as part of its efforts to improve the Android platform, would like to report all such issues, with the intent that Google would

[android-developers] Re: when does the ADC judging start?

2009-09-11 Thread CraigsRace
I'm so excited to try out everyone's entries...the waiting is nearly killing me! ...pointless post, I know ;) On Sep 5, 1:15 am, RSTanvir tanvircue...@gmail.com wrote: yeah, beforeADC2client/scoringappgoes up on Market, Google has to filter submitted apps to meet the required criteria

[android-developers] Margins acting wierd

2009-09-11 Thread loctarar
Hello! I have a question about margins. From what I noticed if a RelativeLayout (and probably not only) doesn't know it's size at measurement time, some child margins are ignored. In my case it's the bottom margin of the last child, above the bottom border of the RelativeLayout when the height

[android-developers] Re: Supported Media Formats Programmatically

2009-09-11 Thread AJ
Hi kk See another one. Looks like it has all mime type supprted on platform. But it is just my guess. Hope this helps you. ContentType.java (frameworks\base\core\java\com\google\android\mms) Thanks, Ajeet Singh kk wrote: Hi Ajeet, Thanks for the reply. This is great information, but

[android-developers] Re: sqlite can't show chinese words issue

2009-09-11 Thread tstanly
thanks Dianne, use app to insert record,it work! On 9月11日, 上午11時06分, Dianne Hackborn hack...@android.com wrote: How about trying to put the data in through the API rather than the command line tool? Who knows what in the world is happening to your text as it goes through your desktop

[android-developers] Re: On Android target, can a folder be created under / (root)

2009-09-11 Thread Royston Rodrigues
Hi, The reason being we have a test app that this confirgured to carry out some operation under this custom folder created on the target under root. Instead of customising the app we were trying to explore whether this is doable. On Windows Mobile this was doable. We try porting this test

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Stefano Sanna
On Thu, Sep 10, 2009 at 5:15 PM, Steve Hassenplug hassenp...@gmail.com wrote: You may want to update the project summary, which currently says This library does to require a rooted device: it is intended to work with standard firmware provided by phone manufacturer. I think you want it to say

[android-developers] Re: How to display an arraylist

2009-09-11 Thread sweet
Thanks again for your help Yusuf I can't say where it crashes because the logcat don't give me this information. For the tutorials i've done two of them. One with xml file and on without it. But i'm using a parsing XML to populate my listview and no one speak about it ... So i've done a mix with

[android-developers] request data from mobile youtube

2009-09-11 Thread tstanly
hi all, is possiable request data from the mobile youtube website, (http://m.youtube.com) such as scrennshot of movie,address of movie,description of movie...etc. like youtube on the g1 phone. thanks. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: AndroidManifest compile time checks

2009-09-11 Thread Dianne Hackborn
There is no DTD. The resource compiler, aapt, deliberately knows very little about the semantics of the XML file, but just how to compile any generic XML file into an optimized binary format. The parsing happens on the device, and when you install this .apk you should see plenty of warning

[android-developers] Re: Margins acting wierd

2009-09-11 Thread Romain Guy
Android 1.6 brings many fixes to RelativeLayout, especially in this case. On Thu, Sep 10, 2009 at 11:53 PM, loctarar andrei.bu...@gmail.com wrote: Hello! I have a question about margins. From what I noticed if a RelativeLayout (and probably not only) doesn't know it's size at measurement

[android-developers] Why MediaPlayer couldn't open file on client side, trying server side?

2009-09-11 Thread yjshi
I use the mediaplayer to create an app and try to play rtsp in the device . I don't know why this could happen.I haven't modify the code in the source code.So I can understand why couldn't open file on client side, trying server side the log. I/ActivityManager( 1102): Starting activity: Intent {

[android-developers] Why MediaPlayer Couldn't open file on client side, trying server side?

2009-09-11 Thread yjshi
I use the mediaplayer to create an app and try to play rtsp on the device . I don't know why this could happen.I haven't modify the source code.So I can not understand what couldn't open file on client side, trying server side meaning is. the log. I/ActivityManager( 1102): Starting activity:

[android-developers] AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley
Anything around? In particular, exactly what do those buttons do and are we to assume to use the DPAD in portrait mode the phone is turned 180 from what you'd expect normal portrait mode to be (see the pic, you'll see what I mean: http://ota.cc/az). I'm just guessing here but as a developer would

[android-developers] Re: A Simple Graphic App on Android

2009-09-11 Thread Maxood
Hi Brian, You have directed me to the right place i must say. One important question i like to ask you is whether android phones support flash plugin or not. I heard that some do and some don't. Motorola has announced its new phones yesterday, wonder if they support flash. I think they should

[android-developers] Re: launching m3u playlist with intent

2009-09-11 Thread hav...@gmail.com
Awesome. I love you! :) This was just what I was looking for. On Aug 17, 2:36 pm, Seb sxercav...@gmail.com wrote: Hi Marco, Thank you very much for the response. You give me the key to find the solution. I had to study the code of PlaylistBrowserActivity to find the solution. I give it

[android-developers] Get active context dynamically of an application

2009-09-11 Thread Atif Gulzar
Hi, How can get the active context of an application? The scenario is, I have an AsyncTask inside an activity_A. And on successful completion (means in onPostExecute) of this AsyncTask I want to show a dialog (AlertDialog.Builder builder = new AlertDialog.Builder(*Activity_A.this*);) But in

[android-developers] Invitation to connect on LinkedIn

2009-09-11 Thread Anthony Bisong
LinkedIn Anthony Bisong requested to add you as a connection on LinkedIn: -- Michele, I'd like to add you to my professional network on LinkedIn. - Anthony Accept invitation from Anthony Bisong

[android-developers] Re: Invitation to connect on LinkedIn

2009-09-11 Thread Robert Green
Now this is good humor. On Sep 11, 4:19 am, Anthony Bisong abis...@gmail.com wrote: LinkedIn Anthony Bisong requested to add you as a connection on LinkedIn: -- Michele, I'd like to add you to my professional network on LinkedIn. -

[android-developers] Is it safe to queue KeyEvents and MotionEvents for deferred processing?

2009-09-11 Thread Robert Green
I decided to start pipelining input to increase responsiveness in my games. Basically what I do is when the activity receives a Key or Motion event, it sends it to a feed method in the game, which encapsulates it with a time and whatever else I need and puts it in a queue then immediately

[android-developers] Re: Is it safe to queue KeyEvents and MotionEvents for deferred processing?

2009-09-11 Thread XingChao Wang
2009/9/11 Robert Green rbgrn@gmail.com I decided to start pipelining input to increase responsiveness in my games.  Basically what I do is when the activity receives a Key or Motion event, it sends it to a feed method in the game, which encapsulates it with a time and whatever else I

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Stefano Sanna
On Fri, Sep 11, 2009 at 6:57 AM, windstorm likunarmstr...@gmail.com wrote: Hi Stefano, thanks for your great effort! Thank you. Right now I am trying to use your library on a ongoing student project, and here is some basic questions about it 1 The discoverable attribute on Android will be

[android-developers] Re: Is it safe to queue KeyEvents and MotionEvents for deferred processing?

2009-09-11 Thread Robert Green
Thanks for replying quickly but I'm asking about key and motion events (touch), not sensor events. Also the problem I was having was that for whatever reason, the UI thread was having problems acquiring the lock on the synchronized block to push input into the game, even though the game loop

[android-developers] Re: Is it safe to queue KeyEvents and MotionEvents for deferred processing?

2009-09-11 Thread Robert Green
I just added some debugging in and got a funny result. For this game, I only want MotionEvents that have the Action ACTION_DOWN. I filter and only put ACTION_DOWN events in the queue. When processing the queue, I sometimes get events that are not ACTION_DOWN! That should be impossible - unless

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Jonas Petersson
Hi all, Stefano Sanna wrote: On Fri, Sep 11, 2009 at 6:57 AM, windstorm likunarmstr...@gmail.com wrote: BTW: one question to all, I saw this sdk from sybase: http://www.sybase.com/detail?id=1064424 Anyone tried it before? Do you know if there is any trial/demo of it? I've been in

[android-developers] Re: How to get webview's content into a bitmap?

2009-09-11 Thread AJ
Thanks gjs, that works :) Anyway sorry for being redundant and impatient. thanks, AJ On Sep 10, 8:12 pm, gjs garyjamessi...@gmail.com wrote: Hi again, I thought you pasted the correct code already ? Anyway for risk of being accused of writing the code for you, the following will write a

[android-developers] Execute chown command

2009-09-11 Thread Francesco Pace
Hi guys, I have an rooted Galaxy. I want to change owner to my application with chown command. I have a FileBrowser and I want to see files in /data directory (for example). Which files I have to change permission? Sorry for my english, Thanks Francesco

[android-developers] Why we need to do static compilation?

2009-09-11 Thread Rajesh N
Hi, I was working on Freescale iMX31 board, I ported android and it was working fine , but when it came to integration of WiFi Bluetooth, android forum recommended me to do static compilation for porting over android ! Can I know why some drivers have to be statically compiled before it is

[android-developers] Memory Leak in layout with an image file statically linked as background

2009-09-11 Thread Sreekanth Rao
My friend was quoting as said below. Can somebody validate his statement whether it is true. My Friends Quote : Apparently there is a problem in UI Framework with drawable resources management. If an activity uses a layout with an image file statically linked as background (and possibly some

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Mark Murphy
Carl Whalley wrote: Anything around? In particular, exactly what do those buttons do and are we to assume to use the DPAD in portrait mode the phone is turned 180 from what you'd expect normal portrait mode to be (see the pic, you'll see what I mean: http://ota.cc/az). I'm just guessing here

[android-developers] for loop gives NullPointer Exception

2009-09-11 Thread Asif k
Hi all, I am getting null pointer exception at the bellow mentioned line in the for loop. char[] buffer= {'s','d','c'}; char[] test; for(int i=0; buffer[i]!='\n';i++) { test[i] = buffer[i]; //This line gives Null pointer Exception at runtime } I am getting the same error in

[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread joyband
Use Log to debug the index number i On 9月11日, 下午7时35分, Asif k asifk1...@gmail.com wrote: Hi all, I am getting null pointer exception at the bellow mentioned line in the for loop. char[] buffer= {'s','d','c'}; char[] test; for(int i=0; buffer[i]!='\n';i++) { test[i] = buffer[i];

[android-developers] Is there any Android Handset which CDMA based?

2009-09-11 Thread javame_android
Hi, I would like to know whether Android handsets support CDMA network also. Are there any handset which currently supports CDMA or every handset has support for that. Actually I want to retrieve the location information such as Cellid, LAC, MCC, MNC. But if the network is of CDMA type then will

[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread Ask
I had used the same.. but it gives the Exception in first iteration itself.. On Sep 11, 4:41 pm, joyband joyb...@163.com wrote: Use Log to debug the index number i On 9月11日, 下午7时35分, Asif k asifk1...@gmail.com wrote: Hi all, I am getting null pointer exception at the bellow

[android-developers] Re: Is there any Android Handset which CDMA based?

2009-09-11 Thread Mark Murphy
javame_android wrote: I would like to know whether Android handsets support CDMA network also. In the US, Sprint reportedly will have the HTC Hero later this year. Sprint is a CDMA network. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android

[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread Mark Murphy
Ask wrote: I had used the same.. but it gives the Exception in first iteration itself.. 1. You have not allocated any space for your test char[]. 2. You are going to go past the end of your buffer char[], since your loop is testing for '\n', which does not exist in your statically-declared

[android-developers] Re: XML parser

2009-09-11 Thread Android Development
XML parsing is definitely a pain point in Android. I will be processing XML heavily in the future, and the current status of parsing support has me worried. There is an issue for it here regarding the resolution of a JAXB bug, that has been declined, God only knows why :

[android-developers] Re: XML parser

2009-09-11 Thread JoaJP
Let me take exception to the concept... For large scale XML work (in the mobile environment, I qualify 1000+ lines as that), you should consider setting up a web server for the heavy lifting. Not only does that allow you to rely on established parsers, but CPU time is not nearly an issue as it is

[android-developers] Extract video frame at particular time

2009-09-11 Thread Siu Man Yu
I am making an video application. In the list of the media, I would like to show the video frame as thumbnail to indicate my video. There is standard method to extract the first frame from the video. However, I would like to let the user to use any frame as the thumbnail. Is there any method

[android-developers] Genre filtering for music application

2009-09-11 Thread Siu Man Yu
I am implementing an music application with browser function. In original music application, it support to browse through Artist- Album-Media. However, I would like to add one more level, Genre. Such that Genre- Artist-Album-Media. The Genre information is storing at Media level. Could I do

[android-developers] TextView with layout wrap_content problem

2009-09-11 Thread GPU
Hi , I have two TextView with arabic text one with layout_width fillparent another with wrapcontent ,while displaying time the textview with wrap_content value text in splitted into twolines --~--~-~--~~~---~--~~ You received this message because

[android-developers] importing java.image.io into android

2009-09-11 Thread mmkr
Hai, In my application in need to use the java.image.io package, but it is not suppoted by android. Is there any way i can import packages into android. Please help me. I need to do the image processing in my app, which can be done through image.io. If it is not really possible please let me

[android-developers] magic?

2009-09-11 Thread Christine
I was explaining to my friend Martijn how something works in one of my apps, and I was wondering why it worked on my G1 and Magic phones but not on a Hero: I start the camera, than a lot of magic happens, then I get a link to the picture and I work from there. Martijn says ah, that's the problem.

[android-developers] Webview foreground and background colors?

2009-09-11 Thread dpackham
I cant find anywhere how to change the Text COLOR in a webview. I can change the background color but not the Text. Any Ideas? I want my webview to be white text on a black background instead of black text on a white background Thanks Dave --~--~-~--~~~---~--~~

[android-developers] Re: Webview foreground and background colors?

2009-09-11 Thread Mark Murphy
dpackham wrote: I cant find anywhere how to change the Text COLOR in a webview. I can change the background color but not the Text. Modify the HTML you are displaying in the WebView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_

[android-developers] Re: About intercept api calls

2009-09-11 Thread nEx.Software
Well said Mark, well said... On Sep 9, 3:14 pm, Mark Murphy mmur...@commonsware.com wrote: tony wrote: I want to write an app to do the api calls interception just like what Detour does under windows. Once the app is running it can hijack all the api calls other app made to the system.

[android-developers] Re: Can android extend Google Finance ?

2009-09-11 Thread nEx.Software
There is already a Google provided Google Finance app in the Market if I am not mistaken... On Sep 9, 10:22 am, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: Yes, it can be done; but someone would have to write an app to access the GF API:http://code.google.com/apis/finance/

[android-developers] Recommended uses of a class extending android.app.Application

2009-09-11 Thread Android Development
Hello, The docs here: http://developer.android.com/reference/android/app/Application.html say that, if the application needs to maintain global state, it should do it here. Suppose, i need to load some configurable data from a config file (to be used later at runtime by my application's various

[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-11 Thread Mark Murphy
Android Development wrote: The docs here: http://developer.android.com/reference/android/app/Application.html say that, if the application needs to maintain global state, it should do it here. On the other hand, Ms. Hackborn has indicated that she thinks the Application object is not that

[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-11 Thread Tom Gibara
I think it's more accurate to say *you may choose* to maintain global state by extending Application. It's my preferred approach, though it's important to to instantiate global state lazily wherever it's sensible to do so. I describe my default approach here:

[android-developers] Re: importing java.image.io into android

2009-09-11 Thread Romain Guy
This package is not part of the Android APIs. On Fri, Sep 11, 2009 at 6:38 AM, mmkr manutd...@gmail.com wrote: Hai, In my application in need to use the java.image.io package, but it is not suppoted by android. Is there any way i can import packages into android. Please help me. I need

[android-developers] Soft keyboard in Fullscreen/extract mode

2009-09-11 Thread Howard M. Harte
When Android is in portrait mode and the soft keyboard IME is shown, my app is resized properly. When in landscape mode, the soft keyboard IME is always in fullscreen/extract mode, and even though I can see the top portion of my app, it doesn't resize my app. I couldn't find any way to make the

[android-developers] Re: Memory Leak in layout with an image file statically linked as background

2009-09-11 Thread Romain Guy
Apparently there is a problem in UI Framework with drawable resources management. If an activity uses a layout with an image file statically linked as background (and possibly some other attributes), every time the activity is created, a new bitmap object is generated and never gets

[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-11 Thread Android Development
Thanks for the replies. The data is hidden from the human user and is totally consumed by the application. Its a small file..some 4-5 attributes only. I am also somewhat inclined towards using a static singleton option. On Fri, Sep 11, 2009 at 8:43 PM, Tom Gibara m...@tomgibara.com wrote:

[android-developers] Re: XML-RPC

2009-09-11 Thread Wouter
Hey, I get a nice solution from skink, thank you so much for it! Now i have another problem. I do a call with film.retrieveCinema (to get newest moviest in cinema). this is response: {2009-09-03=[Ljava.lang.Object;@43663720, 2009-08-27=[Ljava.lang.Object;@43599b60,

[android-developers] Battery Status and Signal Strength Acheivement

2009-09-11 Thread Alex Tang
First I want to acheive battery status and signal strength instantly. For Battery Status, we can use SystemProperties.get (status.battery.level_raw) to get current battery level. This class is not in SDK reference, but we can see this function is used in BatteryService and other fields. I use it

[android-developers] Android License compatibility with LGPLd code

2009-09-11 Thread Android Development
Hello, I have a query: Is LGPL'd code compatible with Android applications ? Or are there any gotchas ! Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Contact Listener

2009-09-11 Thread Alex Tang
It seems only Observers and onChange() function can work now. On Sep 10, 11:06 am, Stephen Leong stephen.leon...@gmail.com wrote: Is there any API can use to listening to the change of the contact? Such as add/delete/edit the contact it will invoked certain method and I can know which contact

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Android Development
You can use: http://developer.android.com/reference/android/telephony/PhoneStateListener.htmlhttp://developer.android.com/reference/android/telephony/PhoneStateListener.htmlto listen to the signal strength changes, just like the Android notification bar does. On Fri, Sep 11, 2009 at 9:16 PM,

[android-developers] Re: XML-RPC

2009-09-11 Thread Wouter
Ok it get all the dates with response.keySet(); response: [2009-09-03, 2009-08-27, 2009-09-09, 2009-08-19, 2009-09-10, 2009-08-20] But how can i loop every date now to get the Objects? Wouter On 11 sep, 17:34, Wouter wouterg...@gmail.com wrote: Hey, I get a nice solution from skink, thank

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Bonifaz
Great job Stefanno, your library helps me a lot!!! I also use your library (RFCOMM) already. The only thing I found is, that when I try to pair to a device which is offline the library still calls the callback method paired(). LocalBluetoothDevice(15638): _localDevice is NOT null

[android-developers] Re: Contact Listener

2009-09-11 Thread Android Development
try this link: http://stackoverflow.com/questions/866769/how-to-call-android-contacts-listIt might be of some help. On Fri, Sep 11, 2009 at 9:23 PM, Alex Tang tangli1987...@gmail.com wrote: It seems only Observers and onChange() function can work now. On Sep 10, 11:06 am, Stephen Leong

[android-developers] Re: How to listen for any change in the contact database

2009-09-11 Thread Alex Tang
What does your context refer to? It must refer to an correct context, I think On Sep 10, 2:25 am, hap 497 hap...@gmail.com wrote: Hi, I am trying to listen for any change in the contact database. So I create my contentObserver which is a child class of ContentObserver:  private class

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Alex Tang
So it only gives asu, not dBm? I find there are two functions: onSignalStrengthChange(int asu) and onSignalStrengthsChange(SignalStatus signalStatus) (maybe the parameter is incorrect), can the latter one be used now? On Sep 11, 11:54 pm, Android Development indodr...@gmail.com wrote: You can

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Alex Tang
Attention: SystemProperties.get(status.battery.level_raw) can get battery status instantly! Like typing #getprop status.battery.level_raw in adb shell On Sep 11, 11:46 pm, Alex Tang tangli1987...@gmail.com wrote: First I want to acheive battery status and signal strength instantly. For

[android-developers] How to have a horizontal scroll view with multiple buttons?

2009-09-11 Thread Vishal Gaonkar
I have a layout with multiple buttons. Now I need to scroll them horizontally. Below is the part of my xml file. But I am not able to get the scroll bar and also not able to see the Buttons 4 5. ScrollView

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Mark Murphy
Alex Tang wrote: SystemProperties.get(status.battery.level_raw) can get battery status instantly! Like typing #getprop status.battery.level_raw in adb shell This is not part of the SDK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training

[android-developers] Re: How to have a horizontal scroll view with multiple buttons?

2009-09-11 Thread Mark Murphy
Vishal Gaonkar wrote: I have a layout with multiple buttons. Now I need to scroll them horizontally. Below is the part of my xml file. But I am not able to get the scroll bar and also not able to see the Buttons 4 5. ScrollView

[android-developers] Re: Soft keyboard in Fullscreen/extract mode

2009-09-11 Thread Andrei Bucur
There's a post on this groups regarding the resize issue. It seems that using the FULL_SCREEN flag actually (as it's name suggests) makes the IME unable to steal a part of the screen for display purposes. And regarding the other problem... try using InputType.TYPE_NULL +

[android-developers] Checking the user's country

2009-09-11 Thread Anna PS
Hi Anyone know how to check the user's country? I'm looking for a way that's faster than using GPS and reverse geocoding. (I need the country where the phone is registered, not their current location, in any case.) Is there any constant in the settings? Thanks, Anna

[android-developers] Re: Soft keyboard in Fullscreen/extract mode

2009-09-11 Thread Dianne Hackborn
When in landscape, you aren't seeing -any- of your application, the IME is running in fullscreen mode and completely covering it (so there is no reason to do more work and resize the app to... nothing). On Fri, Sep 11, 2009 at 8:27 AM, Howard M. Harte hhar...@gmail.com wrote: When Android is

[android-developers] Re: Free space required for a package install

2009-09-11 Thread Dan Sherman
I _think_ the market has the same issue, I'll try to confirm it tonight, but from what I've heard from users they're experiencing download errors if they don't have a large amount of space free. Again, I'll try to get some more concrete info later tonight :) Thanks for taking a look at this

[android-developers] Re: Battery Status and Signal Strength Acheivement

2009-09-11 Thread Dianne Hackborn
On Fri, Sep 11, 2009 at 9:10 AM, Alex Tang tangli1987...@gmail.com wrote: SystemProperties.get(status.battery.level_raw) can get battery status instantly! Like typing #getprop status.battery.level_raw in adb shell Don't do that. It is not part of the SDK, and your app will break. --

[android-developers] IOException from RandomAccessFile ?

2009-09-11 Thread WoodManEXP
Hello, I have a RandomAccessFile in the main activity opened r (read only) and can read from it no problems. A menu choice from the main Activity launches another Activity (from an intent set on the MenuItem). The newly launched Activity instantiates a RandomFileAccess also with r (readonly)

[android-developers] Re: Recommended uses of a class extending android.app.Application

2009-09-11 Thread Dianne Hackborn
On Fri, Sep 11, 2009 at 8:10 AM, Mark Murphy mmur...@commonsware.comwrote: The four main options I have used are: 1. Custom application class, like you are proposing 2. Static data (e.g., singleton class instance holding your configuration) 3. A service 4. Shared preferences Best is

[android-developers] hi, i need help with a simple counter and timer app for use while refereeing fencing

2009-09-11 Thread jonthebear
ive installed the sdk and have no idea what to do, so could you either give me step by stpp instructions or better yet make the following app for me. i require an app with a double counter, (green on left, red on right) with an + and - button for each and a button which adds 1 and removes 1 from

[android-developers] Re: routing audio to speaker

2009-09-11 Thread Pras
Hi, Thanks for the info. I am also facing this similar problem and am new to Java. In the code base i found that we have the HeadsetObserver.java file but there is no similar Speaker observer java class. Kindly advice if we need to create a similar java class for Speaker or where we can invoke

[android-developers] How to run all test cases on Android emulator or devices?

2009-09-11 Thread Horse
Hi, If I write several applications, and also write test cases for these applications, how can I run all test cases on Android emulator or devices automatically? Because adb shell am instrument -w TestPackage/ InstrumentationTestRunner can only run one package, but I want to run several packages

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Dianne Hackborn
I am pretty sure it is basically like the G1, except you can only access the DPAD when the screen is open instead of it being on the front. So opening the screen would rotate it unless an application has explicitly forced an orientation, and the platform should rotate the DPAD key events for you

[android-developers] how to change ListView Item Text Color?

2009-09-11 Thread Mohsin
I have problem can any one suggest me any alternative solution other then mention below case: i populate ListView Using ArrayAdapter, constraint: each item Text in ListView represting some actions, and each action (Item text in ListView) represent its individual color. problem: i cant change the

[android-developers] drop call after some time duration

2009-09-11 Thread Shrenik Vikam
i want to drop a call after some time duration let me know how to send the event to it or how to throw event on ACTION_DIAL intent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Our app force closes on 1.6, Is SDK or image available yet?

2009-09-11 Thread chrispix
We have had a couple users on the myTouch phone have issues in our application. It apparently is force closing on them. I am not sure of why it is, and the 1.6 SDK is not out yet. Has 1.6 been released into the wild? If so, do you know where I can download the image for my G1 dev phone to test

[android-developers] Needs info about vendor who makes OEM handset and support Android

2009-09-11 Thread Dani Firmansyah
Hi everybody, I need info about vendor who makes OEM handset and ready to using with Android OS especially origin countries from China or Taiwan. I am looking for OEM product that support for Android with QWERTY keyboard and support for internet mobile connections (GPRS/HSDPA). If you have

[android-developers] Re: Why we need to do static compilation?

2009-09-11 Thread Dianne Hackborn
This belongs on android-porting, thanks. On Fri, Sep 11, 2009 at 3:57 AM, Rajesh N rajesh.andr...@gmail.com wrote: Hi, I was working on Freescale iMX31 board, I ported android and it was working fine , but when it came to integration of WiFi Bluetooth, android forum recommended me to do

[android-developers] textview scrolling help.

2009-09-11 Thread m|ch
I want to enable scrolling for textview. I set vertical scrollbar which appears but scrolling doesn't work. Why? I am not using ScrollView because HomeScreen widget doesn't support that component. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Emulator

2009-09-11 Thread Mahendra
Emulator is working fine. Sometimes i getting the error like emulator disconnected. Could you send me the problem of the application or system and how to resolve it ? Thanks, Mahendra --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Is it safe to queue KeyEvents and MotionEvents for deferred processing?

2009-09-11 Thread Dianne Hackborn
The framework owns those objects, and recycles them when you return. You will need to make a copy if you want to hold on to something for later. On Fri, Sep 11, 2009 at 2:35 AM, Robert Green rbgrn@gmail.com wrote: I decided to start pipelining input to increase responsiveness in my

[android-developers] Re: About Services

2009-09-11 Thread Shrenik Vikam
can i send end call event or kill event to call/dial activity On Sep 2, 9:40 pm, Dianne Hackborn hack...@android.com wrote: Correct, end call can't be seen by applications at all, so you need to modify the platform.  You can start with PhoneWindowManager where the key is handled.  From there,

[android-developers] Re: Android market application on emulator

2009-09-11 Thread stadolf
Hi Amit, you'll find valuable infos over here: http://forum.openhandsetdevelopers.com/running-android-market-on-emulator-no-download-issue-t82.html I got the market running on an SDK1.1 (!) emulator using the tips and patches provided by the recent postings (page 5 or so) from that thread.

[android-developers] Re: Our app force closes on 1.6, Is SDK or image available yet?

2009-09-11 Thread Romain Guy
The myTouch does not run 1.6. On Fri, Sep 11, 2009 at 10:03 AM, chrispix chris...@gmail.com wrote: We have had a couple users on the myTouch phone have issues in our application. It apparently is force closing on them. I am not sure of why it is, and the 1.6 SDK is not out yet. Has 1.6 been

[android-developers] Re: Our app force closes on 1.6, Is SDK or image available yet?

2009-09-11 Thread Dianne Hackborn
No it hasn't been released. These people must have flashed their devices with some pre-release version of the platform. I wouldn't spend much time on them at this point. :} On Fri, Sep 11, 2009 at 10:03 AM, chrispix chris...@gmail.com wrote: We have had a couple users on the myTouch phone

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-11 Thread Shrenik Vikam
i have some question which are as follows so when the serial port server profile will be ported ?? can we customize bluecove api use it on android ?? On Sep 11, 2:59 pm, Stefano Sanna gerda...@gmail.com wrote: On Fri, Sep 11, 2009 at 6:57 AM, windstorm likunarmstr...@gmail.com wrote: Hi

[android-developers] SearchManager

2009-09-11 Thread mardah
Hi I'm trying to understand how the SearchManager works. I have one activity Activity A from which I would like to invoke the Search UI. When the user enters a query and clicks search I would like to start a new activity Activity B that handles the query. How should I implement this? In the

[android-developers] New Screen

2009-09-11 Thread Boozel
I know this is probably a really stupid question but have tried for ages and searched but cant get it to work. I'm trying to create a new screen when an item in a list in my first screen is selected. i use the code Intent intent = new Intent(); intent.setClass(this, Ingredients.class);

[android-developers] Re: for loop gives NullPointer Exception

2009-09-11 Thread Boozel
the condition buffer[i]!='\n' is never met so i gets larger than the array size i think what you need is buffer[i]!=null. '\n' is the new line character which is never in your array On Sep 11, 1:35 pm, Asif k asifk1...@gmail.com wrote: Hi all,   I am getting null pointer exception at the

[android-developers] Re: AVD for Motorola Cliq?

2009-09-11 Thread Buzz Android
There is an AVD. Access to it has been one of the benefits of the MOTODEV App Accelerator Program. There is no keyboard open portrait mode... Like the G1, portrait mode is considered to be when the keyboard is closed. When the keyboard is opened, the device enters landscape. Of course, like the

  1   2   >