[android-developers] Re: Cursor position in the edit text

2009-07-16 Thread glory
Hi , As appears from your Pic you need to apply gravity parameter to your editText i.e android:gravity=top Hope this works Regards, Glory On Jul 16, 10:43 am, sheik sheik...@gmail.com wrote: Hi.  kindly help me on it .. i am not getting any help while searching on internet regarding this

[android-developers] Lot of unused code is generated when aidl tool is run againt a .aidl file.

2009-07-16 Thread krr_android
Hi This is my aidl file. IRemoteCounterServiceCallback.aidl package com.training; import com.training.IRemoteCounterServiceCallback; import com.training.myCounter; interface IRemoteCounterService { // Remote service interfaces int

[android-developers] no permission to read the sync settings

2009-07-16 Thread T_sky
Dear All: When I install the sync.apk(from G2) to the emulator(SDK1.5), install success, but when run the sync,the log as follows: ERROR/DatabaseUtils(581): java.lang.SecurityException: no permission to read the sync settings: Neither user 10022 nor current process has

[android-developers] Re: Cursor position in the edit text

2009-07-16 Thread sheik
Thank you very much... i was searching a lot on net but turned out be so simple.. just added android:gravity=top as u said... thanks again for ur reply.. regards, sheik glory wrote: Hi , As appears from your Pic you need to apply gravity parameter to your editText i.e

[android-developers] Re: getDeviceId returns null

2009-07-16 Thread MCON Dev
Mark, Good ideas.. I went by your suggestion to move ahead. But this is a potential risk (small one I guess). I assumed that the emulator testing would be enough atleast for the android application. Are there cases where the product has worked well on the emulator but worked differently on the

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-07-16 Thread Kaj Bjurman
What is file_name set to? Does it also include a path to the sdcard? On 13 Juli, 23:53, doubleminus doublemi...@gmail.com wrote: Romain is? I don't understand. Is there something I should be doing to avoid filenotfound exception? On Jul 13, 12:40 am, 郑伟 loveheaven_zheng...@hotmail.com

[android-developers] Re: Unable to write text file to sdcard on physical G1 device

2009-07-16 Thread Kaj Bjurman
I can't see that you are using file1 after that line. You are using file_name. On 14 Juli, 18:09, doubleminus doublemi...@gmail.com wrote: Isn't that what the first lines of code do? File file1 = new File(Environment.getExternalStorageDirectory(), file_name); On Jul 13, 3:02 pm, Streets

[android-developers] error while building the android code using make

2009-07-16 Thread Asif k
Hi all, I have downloaded the code successfully using repo sync on my linux system and now I want to buld it using make but it fails and telling that frameworks/policies/base/PolicyConfig.mk:22:*** No module defined for the given PRODUCT_POLICY (android.policy_phone) . stop. So can

[android-developers] Why the system kill my process?

2009-07-16 Thread Ivy
I have many contacts in my G1,much as 2000. When i call sb, the system will find this one is in my contacts or not.Is there any posibilities that the system will stop searching this contact and kill this process because this search will take a relatively long time ?

[android-developers] about use notification to goto other activity

2009-07-16 Thread tstanly
hi all, can use notification to goto other activity?? eg: from a to b use c. my a.java code is: Intent notifyIntent=new Intent(this,c.class); notifyIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent appIntent=PendingIntent.getActivity(a.this,

[android-developers] Re: Lot of unused code is generated when aidl tool is run againt a .aidl file.

2009-07-16 Thread Dianne Hackborn
All of that code is used for IPC marshalling and unmarshalling. If you are never going to use the interface across processes, there is little reason to use aidl in the first place. On Wed, Jul 15, 2009 at 11:10 PM, krr_android k.rajire...@gmail.com wrote: Hi This is my aidl file.

[android-developers] Re: what is the meaning of dumpsys meminfo PID output

2009-07-16 Thread Dianne Hackborn
There is no exact amount of memory usage, there is just various ways of interpreting the way pages are mapped to the process. The pss field is the same pss you would see in procrank, shared dirty are dirty pages (unable to be paged from disk) that are shared with other processes, and private

[android-developers] Re: Problem of vertical alignment in a RelativeLayout

2009-07-16 Thread elDoudou
Thank you for taking so much care, but unfortunately, the problem is still not solved with your advice of setting the widgets 1 and 3 height to fill_parent (they were actually formerly set to wrap_content). I'm kind of thinking that I should open up a challenge for the person who solves this

[android-developers] Are Binder objects leaked ?

2009-07-16 Thread Guillaume Perrot
I am developing an android service using aidl. I realized that the objects returned in Service.onBind() are never freed (e.g. finalize() is never called) even after onUnbind() and onDestroy() and playing with the eclipse GC button. I checked that the memory leak did not come from my Binder

[android-developers] Re: OpenGL ES, How to rotate a cube?(3D Rotation)

2009-07-16 Thread quill
Er...it makes me headache:) (Let's simplify it, there is only one object, and we don't need to determine which object is touched.) So do you use Euler Angle to rotate your gube or do you use Axis Angle? (I learn it from internet, it seems Euler Angle means rotating objects around X, Y, Z axis,

[android-developers] how to put image(button) on the webview or mapview???

2009-07-16 Thread tstanly
hi all, is there have api that can put image or imagebutton on the webview or mapview?? because I just want to use a little space to put my image, but use linearlayout, they must occupied a raw or a column, not a little space. how can do that??? thanks

[android-developers] Re: BouncyCastle code in dalvik/libcore

2009-07-16 Thread John Smith
Thanks to the help from David of the bouncycastle dev list I found out the bc libs version is 1.34, which is now over 3 years old, is a slightly newer version likely to be put into newer SDKs? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Are Binder objects leaked ?

2009-07-16 Thread Guillaume Perrot
I eventually saw finalize() (just once) on the Binder object after many tests. My guess is that it's a soft reference, when using a WeakHashMap to keep the binders in a pool, I realized that the pool was emptied after each put meaning no hard reference has been kept. So I dropped the pool

[android-developers] No coarse location in emulator

2009-07-16 Thread String
I'm working on an app which only requires approximate location, so naturally, I've requested this in my manifest: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/ This works fine on an actual device (G1), but on the emulator, I can't find a way to get any location data.

[android-developers] Re: Are Binder objects leaked ?

2009-07-16 Thread Guillaume Perrot
It appears that I have to wait some minutes before I can see the finalize trace of my binder, but it eventually happens. Maybe some sort of timeout in android code. 2009/7/16 Guillaume Perrot guillaume.p...@gmail.com: I eventually saw finalize() (just once) on the Binder object after many

[android-developers] Re: Dose Android sdk 1.5 allow to create our own screen when a call is in or out

2009-07-16 Thread Ted Chien
in /platform/packages/apps/Phone/src, check com/android/phone/ InCallScreen.java. For listening to the phone change state, check com/android/phone/ CallNotifier.java. Hope this helps. On Jul 16, 11:37 am, Ivy ytang1...@gmail.com wrote: When a call in or out,what does the android do ?Get the

[android-developers] Re: Brightness change is not smooth

2009-07-16 Thread LD
If I will use the approach of brightness change present in android sources with IHardware interface, what do you think, will it possibly improve brightness transition? On 15 Лип, 20:11, Dianne Hackborn hack...@android.com wrote: If you just change the brightness directly to what you want, the

[android-developers] Re: Dose Android sdk 1.5 allow to create our own screen when a call is in or out

2009-07-16 Thread Ted Chien
However, com.android.phone is an system class and will be the first class to be loaded in the phone (before the home screen is been loaded). That means it's in firmware. If you want to change any screen in it, you need to change the firmware, as other people stated. I don't know if you can write

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Mark Murphy
Asif k wrote: Hi all, I have downloaded the code successfully using repo sync on my linux system and now I want to buld it using make but it fails and telling that frameworks/policies/base/PolicyConfig.mk:22:*** No module defined for the given PRODUCT_POLICY (android.policy_phone)

[android-developers] Re: getDeviceId returns null

2009-07-16 Thread Mark Murphy
MCON Dev wrote: Mark, Good ideas.. I went by your suggestion to move ahead. But this is a potential risk (small one I guess). I assumed that the emulator testing would be enough atleast for the android application. Are there cases where the product has worked well on the emulator but worked

[android-developers] Re: Direct access to GEARS geolocation without going through the browser interface

2009-07-16 Thread Mark Murphy
alexdonnini wrote: I have searched this group's archives, and several other sources for information on direct access to GEARS geolocation functions from an Android application. To date, I have not found any. Google Gears is available for the Browser application, but it is not part of the SDK

[android-developers] How to Convert this Response into Map Object or into List View

2009-07-16 Thread android.vinny
Hi How to Convet this response int o MAP Object or List View Plz help me regarding this getRatingResponse{return=ContestInfo{item=anyType{name=Ankitha; totalimages=2; rating=2.5; }; item=anyType{name=Anushka; totalimages=4; rating=9.5; }; Thanks a lot in advance

[android-developers] nio_char Charset is differnt

2009-07-16 Thread sachmi2
Hi, Do android runtime has different charset then JVM as dalvik/tests/062- character-encoding tests fails because the expected output has different set of charset then actually. Any information in this regard is appreciated Regards --~--~-~--~~~---~--~~ You

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Ask
Hi Mark, I had asked the same question to android platform forum earlier but nobody was responding to that. This is the problem that I am facing when just following the steps showing at http://source.android.com/download . So even I dont know should I report it as bug ??? Regards, Asif On

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Ask
This is the link on android platform group, http://groups.google.com/group/android-platform/browse_thread/thread/208c760eab587239/4974176be9b4ed03?hl=en#4974176be9b4ed03 On Jul 16, 3:46 pm, Ask asifk1...@gmail.com wrote: Hi Mark,   I had asked the same question to android platform forum

[android-developers] Re: BouncyCastle code in dalvik/libcore

2009-07-16 Thread John Smith
2009/7/16 Mark Murphy mmur...@commonsware.com This list is for the SDK. While it sure would be nice if they would re-add Bouncy Castle to the SDK, it's not there now... re-add bouncy castle to SDK? I'm looking at 1.5 code and some bc code is deff in there, mostly to do with ssl/tls/smime

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Mark Murphy
Ask wrote: I had asked the same question to android platform forum earlier but nobody was responding to that. This is the problem that I am facing when just following the steps showing at http://source.android.com/download All I can tell you is that this list is for people developing on

[android-developers] Re: BouncyCastle code in dalvik/libcore

2009-07-16 Thread Mark Murphy
John Smith wrote: re-add bouncy castle to SDK? By which I mean having all the classes be public, documenting the version number, including them in the SDK documentation, etc. I haven't used Bouncy Castle in years, but I seem to recall it offered more than just the provider interface. I could be

[android-developers] Re: How to get the video stream from MediaRecorder?

2009-07-16 Thread zeeshan
how are you saving file on server side? On Jul 13, 11:12 am, manoj manojkumar.m...@gmail.com wrote: I can able to view the video in vlc player if I change the video encoder to VideoEncoder.MPEG_4_SP and output format to OutputFormat.MPEG_4. But the video is playing very fastly not in usual

[android-developers] Re: BouncyCastle code in dalvik/libcore

2009-07-16 Thread John Smith
2009/7/16 Mark Murphy mmur...@commonsware.com John Smith wrote: re-add bouncy castle to SDK? By which I mean having all the classes be public, documenting the version number, including them in the SDK documentation, etc. I haven't used Bouncy Castle in years, but I seem to recall it

[android-developers] Re: BouncyCastle code in dalvik/libcore

2009-07-16 Thread Urs Grob
I think at some point the plan was to throw BC out and implement all the crypto stuff using OpenSSL which is also on the device and should be faster than the pure java impls in BC. (this might still be the plan, not sure though) Also BC is huge and was already reduced in size by throwing out

[android-developers] Re: BouncyCastle code in dalvik/libcore

2009-07-16 Thread John Smith
2009/7/16 Urs Grob grob@gmail.com Someone who needs algorithms from BC would have to include it with the app. I guess this would fail right now. This makes it much harder to use BC stuff that has been dropped in the current BC version included in the core libs. Dropping BC from the core

[android-developers] Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Ivy
i have some static variables and some registerListeners. Do i need to release them all and remove these listeners? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Sujay Krishna Suresh
Yes, it is best to do that... But i tried adding this as a ShutdownHook, but it failed to execute on app exit... I'd suggest that u release resources used by an activity in its onDestroy method. On Thu, Jul 16, 2009 at 5:03 PM, Ivy ytang1...@gmail.com wrote: i have some static variables and

[android-developers] Re: getDeviceId returns null

2009-07-16 Thread MCON Dev
What would a android phone cost me. Is there a place I should look for 2nd hand ones :). On Thu, Jul 16, 2009 at 3:55 PM, Mark Murphy mmur...@commonsware.comwrote: MCON Dev wrote: Mark, Good ideas.. I went by your suggestion to move ahead. But this is a potential risk (small one I

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Ivy
I register a SensorListener,where should i unregister it? In which method? And how to release statics? On 7月16日, 下午7时39分, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: Yes, it is best to do that... But i tried adding this as a ShutdownHook, but it failed to execute on app exit... I'd

[android-developers] Re: getDeviceId returns null

2009-07-16 Thread Mark Murphy
MCON Dev wrote: Is there a place I should look for 2nd hand ones :). eBay has many T-Mobile G1's available. You can probably win one for between 200-300 USD. A Google Ion (HTC Magic with flashable firmware) would be closer to 400-500 USD. There are probably other places to pick up a used one

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Sujay Krishna Suresh
primitive statics will be taken care. jus make others null. in onPause() unregister in onResume register again. 2009/7/16 Ivy ytang1...@gmail.com I register a SensorListener,where should i unregister it? In which method? And how to release statics? On 7月16日, 下午7时39分, Sujay Krishna Suresh

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Ivy
Thank you for answer, but i have another question... How to release these static methods... And can i use the finalize to unregister the listener? On 7月16日, 下午7时53分, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: primitive statics will be taken care. jus make others null. in onPause()

[android-developers] Can not start Media Player Service

2009-07-16 Thread MikaSue
In LogCat, I see E 542 MediaPlayerService Couldn't open fd for content://settings/system/ringtone E 761 MediaPlayer unable to create media player Any help would be appreciated. Im trying to play a mp3 file. --~--~-~--~~~---~--~~ You received

[android-developers] Re: extending parcelables

2009-07-16 Thread Bart van Wissen
2. Use a generic Parcelable class type, in which case the marshalling code will inspect the class type, included that in the marshalled data, and use that to re-construct it on the other side. I don't understand this. My program deals with Condition objects, which can be put in a list to

[android-developers] Re: Direct access to GEARS geolocation without going through the browser interface

2009-07-16 Thread alexdonnini
Mark, Thanks. I am aware of that. My question was different. Have you looked into the GEARS geolocation class? If you have, you will have seen the three Android Java classes I refer to below. My question is about the purpose and intended use of those classes. Given that Google has removed all

[android-developers] Re: Setting Ringer From Resource?

2009-07-16 Thread Donn Felker
Anybody? G1 Team? T-Mobile team? Can anyone help here? --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe

[android-developers] Re: Direct access to GEARS geolocation without going through the browser interface

2009-07-16 Thread Mark Murphy
alexdonnini wrote: Thanks. I am aware of that. My question was different. Have you looked into the GEARS geolocation class? If you have, you will have seen the three Android Java classes I refer to below. My question is about the purpose and intended use of those classes. Then you should be

[android-developers] Help in the HelloMapView tuto

2009-07-16 Thread sweet
Hi, I'm new to android programming and i want to do the HelloMapView tuto (at the URL: http://developer.android.com/intl/fr/guide/tutorials/views/hello-mapview.html ). I've a problem when they said : 5.Now open the HelloMapView.java file. For this Activity, we're going to extend the special

[android-developers] TextView

2009-07-16 Thread Mr.No
Hello, how can i make the text in a textview wrap the tail into ... if the textviews width is not enough for the text? Like this: Text: Hello World. Assumed that the text is too long for the textview, then the textview should display this: Wraped text: Hello ... thx folks in advance

[android-developers] Re: java.net.ConnectException: localhost/127.0.0.1:8000

2009-07-16 Thread Zeeshan Muhammad
Hi Dear, i got the same problem when i run my code below: InetAddress serverAddr = InetAddress.getByName(127.0.0.1); Socket socket = new Socket(serverAddr , 8088 ); i changed the port but same result. anybody help plz On Sat, Apr 18, 2009 at 1:25 AM, Hunter Peress hunt...@gmail.com wrote:

[android-developers] Re: TextView

2009-07-16 Thread Saurav Mukherjee
use this: tv.setEllipsize(TruncateAt.END); hope this helps u... cheers! On Thu, Jul 16, 2009 at 6:31 PM, Mr.No f.hi...@arcor.de wrote: Hello, how can i make the text in a textview wrap the tail into ... if the textviews width is not enough for the text? Like this: Text: Hello World.

[android-developers] Re: Server/Client in different machines

2009-07-16 Thread Zeeshan Muhammad
i have the similar problem, my main java class listening a server socket at port 8088 now when my client (android) try to connect a socket it refused the conenction InetAddress serverAddr = InetAddress.getByName(127.0.0.1); Socket socket = new Socket(serverAddr , 8088 );

[android-developers] com.android.phone not responding

2009-07-16 Thread Ash
I have added a new service (through SystemServer.java), my service get started successfully but the problem is after adding my new service, I keep on getting the popup which says com.android.phone needs to be closed. When I remove my service it doesnot complain about it. What could be the

[android-developers] Re: java.net.ConnectException: localhost/127.0.0.1:8000

2009-07-16 Thread Urs Grob
127.0.0.1 is the device, or the emulator. So as long as you don't have a server listening on that port on the emulator/device itself you won't be able to connect. If you want to connect to to a server running on the host, then you'll have to connect to 10.0.2.2 (or something like that) If

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Sujay Krishna Suresh
Never use finalize for anything i dont no if u can release static METHODS... 2009/7/16 Ivy ytang1...@gmail.com Thank you for answer, but i have another question... How to release these static methods... And can i use the finalize to unregister the listener? On 7月16日, 下午7时53分, Sujay

[android-developers] Re: unknownhostexception in my app on device

2009-07-16 Thread biAji
On Jul 14, 1:19 pm, ravi ramkrishan.r...@gmail.com wrote: Hi Vinod, I have given Internet permission in Manifest.xml file. Currently problem is 40% times it work fine 60% time it gives unknown host exception. I don't why it it happens few times only? It looks the DNS server you are using

[android-developers] Re: android:scrollbars in programmatic way

2009-07-16 Thread Tim
Thanks, nice man :) On Jul 15, 12:45 pm, Romain Guy romain...@google.com wrote: You can: http://developer.android.com/reference/android/view/View.html#setHori...)http://developer.android.com/reference/android/view/View.html#setVert...) On Tue, Jul 14, 2009 at 6:32 PM,

[android-developers] tabhost disappearing randomly

2009-07-16 Thread Pablo Szyrko
I have an application that has two tabs: -First tab contains contacts -Second tab contains chats Some times when I select the second tab it dissapears and a black background is shown. This issue does't happen when the first tab is shown You can find a picture of the issue here:

[android-developers] Re: Avoid Failed Binder Transaction

2009-07-16 Thread biAji
On Jul 13, 1:47 pm, Don Tran arro...@gmail.com wrote: My application is getting a failed binder transaction, which causes it to completely hang,  when I do the following: Process process = Runtime.getRuntime().exec(SOME COMMAND); BufferedReader br = new BufferedReader(new InputStreamReader

[android-developers] Re: Avoid Failed Binder Transaction

2009-07-16 Thread biAji
On Jul 13, 1:47 pm, Don Tran arro...@gmail.com wrote: My application is getting a failed binder transaction, which causes it to completely hang,  when I do the following: Process process = Runtime.getRuntime().exec(SOME COMMAND); BufferedReader br = new BufferedReader(new InputStreamReader

[android-developers] Re: Tabhost Disappearing List view

2009-07-16 Thread Pablo Szyrko
I have posted a new entry (tabhost disappearing randomly) and it looks like a similar issue. On 6 jul, 12:56, Georgios Galyfos yorg...@gmail.com wrote: Hello, did you by any chance found out what was causing this behavbiour? I am facing a similar situation: I set setCurrentTab(0) initially

[android-developers] Re: java.net.ConnectException: localhost/127.0.0.1:8000

2009-07-16 Thread Zeeshan Muhammad
thanks for reply Grob, i tried it on both emulator and on my real device (connected to my pc) but i got the same exception both time java.net.ConnectException: 127.0.0.1:8088 http://127.0.0.1:8000/ - Connection refused i changed the connection to Socket socket = new Socket(10.0.2.2 , 8088

[android-developers] Re: java.net.ConnectException: localhost/127.0.0.1:8000

2009-07-16 Thread Zeeshan Muhammad
i am able to connect on emulator but no route to host exception when i try to connect on real device On Thu, Jul 16, 2009 at 3:16 PM, Zeeshan Muhammad genx...@gmail.com wrote: thanks for reply Grob, i tried it on both emulator and on my real device (connected to my pc) but i got the same

[android-developers] Re: How to send MMS in Android Mobile

2009-07-16 Thread Jimmy Huang
Anyone know it ? On Jul 12, 10:03 pm, Jimmy Huang huan...@gmail.com wrote: Does anyone can help me ? Thanks Jimmy On Jul 10, 10:38 pm, Jimmy Huang huan...@gmail.com wrote: Thanks John, Does I only import thisMMSgit to my application, I can have my application sendMMSprobably?

[android-developers] Re: Content rendering for WebView

2009-07-16 Thread m8
Thanks. But my use case is I would know the MIME type of the data only after I get the data. So using WebViewClient won't help me. As I would not know the MIME when user has selected the link... On Jul 15, 1:40 pm, Jason Proctor jason.android.li...@gmail.com wrote: Hi Can anyone help me to

[android-developers] How do I launch the GMail client programmatically?

2009-07-16 Thread Flying Coder
I know I can do this: Intent intent = pm.getLaunchIntentForPackage(com.google.android.gm); startActivity(intent); But, are there any generic intents that will launch gmail? For instance, I can use ACTION_SEND to send an email, but what similar intent will simply launch gmail? Thanks, Steve

[android-developers] stopService slow to act

2009-07-16 Thread nuno
Hi all, I am starting a service from a broadcast receiver, using android:process=:remote, which from what I understand means unbind. That BR dies. The service is runs some TTS (text2speach) in a cycle until a second broadcast receiver comes into action and executes stopService. I am using

[android-developers] Re: Dose Android sdk 1.5 allow to create our own screen when a call is in or out

2009-07-16 Thread Fred Grott(shareme)
Ted, You probably cannot I did research on this for a potential startup its not possible currently Fred Grott http://mobilebytes.wordpress.com On Jul 16, 5:12 am, Ted Chien hsiangtai.ch...@gmail.com wrote: However, com.android.phone is an system class and will be the first class to be loaded

[android-developers] Re: error while building the android code using make

2009-07-16 Thread Fred Grott(shareme)
simple google search usually turns up the solution ..it did fro my build error on ubunut On Jul 16, 5:48 am, Ask asifk1...@gmail.com wrote: This is the link on android platform group, http://groups.google.com/group/android-platform/browse_thread/thread/... On Jul 16, 3:46 pm, Ask

[android-developers] Re: Uploading/Downloading/Listing files online from application

2009-07-16 Thread biAji
On Jul 12, 8:25 pm, jonne jonne.z...@gmail.com wrote: Dear developers, And I used the below code. The problem with this code is I get an IOException Unable to connect to server: {0}. If you can connect to the same ftp server using the browser?

[android-developers] Why does DDMS sometimes only show one line of logs?

2009-07-16 Thread Anna PS
... usually happens after a force close. Instead of showing the usual 30 lines or so of logs + scrollable history, it only shows a single line or a couple of lines. Very annoying! The only fix that I can find is to restart DDMS. Anyone have any ideas? Thanks Anna

[android-developers] no route to host Exception on Socket

2009-07-16 Thread zeeshan
Hi Experts, i am working on a client server program in android. i have a Main java class running on my pc as a server socket listening to the port 8626 and i am trying to connect android client (on real device ) to that server. Socket socket = new Socket(IP , 8626 ); i tried my local ip and

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-16 Thread dan raaka
in the short run, samsung may host the compatible adb on their site -Dan On Wed, Jul 15, 2009 at 7:38 AM, Kitagua m.wuerth...@googlemail.com wrote: That are quite good news. I always have the Samsung Galaxy phone and planned to do some development using it. I really hope it will not take

[android-developers] why this code can't work

2009-07-16 Thread tstanly
hi all, originall I have a zoomcontrol that can work, the code is: = ViewGroup zoom=(ViewGroup)findViewById(R.id.zoom); zoom.addView(mWebView1.getZoomControls()); == and

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-16 Thread johnny
I'm running into the same problem but i have Vodafone's Htc Magic...do i require a different version of the adb tool as well? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-07-16 Thread David Turner
No, the magic should be supported out of the box with the 1.5 SDK. What exact platform are you on? On Thu, Jul 16, 2009 at 6:22 PM, johnny johnny.ra...@gmail.com wrote: I'm running into the same problem but i have Vodafone's Htc Magic...do i require a different version of the adb tool as

[android-developers] Re: stopService slow to act

2009-07-16 Thread Dianne Hackborn
I would guess you are doing long-running work on the main thread of the service. And any particular reason you are running it in a separate process? There is very rarely a need to do so. (Actually doing this probably hid the problem with blocking the main thread, since there is much less going

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Yusuf T. Mobile
You don't need to release the static variable. For the finalize-is- discouraged and other Android code style rules, see: http://source.android.com/submit-patches/code-style-guide Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the

[android-developers] Re: Do i need to release the static variable and remove the listener when the app is closed?

2009-07-16 Thread Dianne Hackborn
You really probably shouldn't be putting actively registered listeners in statics. It should be associated with your activity, in which class it is very clear when to unregister. 2009/7/16 Ivy ytang1...@gmail.com I register a SensorListener,where should i unregister it? In which method? And

[android-developers] Re: extending parcelables

2009-07-16 Thread Dianne Hackborn
Just use ArrayListParcelable as your data type. On Thu, Jul 16, 2009 at 5:31 AM, Bart van Wissen bartvanwis...@gmail.comwrote: 2. Use a generic Parcelable class type, in which case the marshalling code will inspect the class type, included that in the marshalled data, and use that to

[android-developers] auto mount the usb mass storage?

2009-07-16 Thread jonathan
when connecting the device to pc, it prompts to mount it as usb mass storage, is there a way to force it to auto mount? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Server/Client in different machines

2009-07-16 Thread Yusuf T. Mobile
Connection refused is a standard TCP error, not Android-specific. So see if you can telnet into the same IP address and port, using a PC on the same subnet as your phone, if possible. For example, if you can put both the PC and phone are on the same WiFi network. Yusuf Saib Android ·T· ·

[android-developers] Re: auto mount the usb mass storage?

2009-07-16 Thread Dianne Hackborn
Sorry I don't believe you can do this without modifying the platform. On Thu, Jul 16, 2009 at 9:54 AM, jonathan topcod...@gmail.com wrote: when connecting the device to pc, it prompts to mount it as usb mass storage, is there a way to force it to auto mount? thanks -- Dianne Hackborn

[android-developers] Re: Best Practice for overriding both Theme and Theme.Dialog correctly in an app?

2009-07-16 Thread Robert Green
Surely there is a good solution for this. Anyone? On Jul 15, 1:10 pm, Robert Green rbgrn@gmail.com wrote: I use themes in my apps, which generally just extend android:Theme and then set a bunch of styles. I use dialogs made from layouts, but since I set the theme for the application,

[android-developers] Re: Are Binder objects leaked ?

2009-07-16 Thread Dianne Hackborn
Yeah, the system process holds a reference on it, which won't be released until it GCs. On Thu, Jul 16, 2009 at 2:46 AM, Guillaume Perrot guillaume.p...@gmail.comwrote: It appears that I have to wait some minutes before I can see the finalize trace of my binder, but it eventually happens.

[android-developers] Re: Getting PCM data from the builtin audio decoders

2009-07-16 Thread sandy8531
I have a similar need for my application. http://groups.google.com/group/android-framework/browse_thread/thread/dcd1cd51d3c4d036 Any suggestions ? -thanks. Sandeep On Jul 7, 3:26 am, dworz dw...@amazing.ch wrote: Hi I also need access to the decompressed audio-samples. I saw SoundPool

[android-developers] Re: auto mount the usb mass storage?

2009-07-16 Thread jonathan
is there a design reason for not able to auto mount? has anyone done modifying the platform for auto mount? On Jul 16, 10:07 am, Dianne Hackborn hack...@android.com wrote: Sorry I don't believe you can do this without modifying the platform. On Thu, Jul 16, 2009 at 9:54 AM, jonathan

[android-developers] Background Task Result Reporting Hypothetical

2009-07-16 Thread Ward Willats
Hello. I've been doing background tasks and they work, but I'm interested in best practice. I think this has been talked about on the list before, but I haven't seen a clear discussion, and one of Streets of Boston's posts yesterday got me thinking. Say you have a background chore that needs

[android-developers] Re: Can not start Media Player Service

2009-07-16 Thread Marco Nelissen
On Thu, Jul 16, 2009 at 5:14 AM, MikaSuemika...@mikasuedesigns.com wrote: In LogCat, I see E   542   MediaPlayerService   Couldn't open fd for content://settings/system/ringtone E   761   MediaPlayer     unable to create media player Any help would be appreciated.  Im trying to play a

[android-developers] Re: no route to host Exception on Socket

2009-07-16 Thread Jason Proctor
10.0.2.2 is an emulator-only alias to your computer. the address is not valid from a real device, unless the DHCP server is giving out addresses in that range. in order to connect to a server running on your computer from a real phone, you'll have to determine its name or IP address and

[android-developers] Progress bar like in android market

2009-07-16 Thread sheik
Hello developers, i have used the progress dialog in order to load the contents from the server to list...But i feel that the progress bar small with loading... message that is used in the android market browser ( in dev phone) is better ... here is the problem iam facing.. 1) i have a list of

[android-developers] Handset power/current draw

2009-07-16 Thread Anders Feder
Hi, I am interested in knowing how much power or current my phone draws at any given instant for, among other things, power optimization purposes. Is there any way (API or otherwise) to inspect how much power or current the Android handset currently draws? Thanks, Anders Feder

[android-developers] Should we use jade androide to develop application

2009-07-16 Thread sujitm
Reposting since I could not see my post I am building a social networking application for ADC-II. This needs peer-to-peer communications.Since GTalk service is not there any more (hoping some variant will be back in future), I have one easy option to use JADE. But JADE requires a running JADE

[android-developers] Re: add new sensor?

2009-07-16 Thread Max
Hello I have the same problem. Have you found some usefull info about this post ? thanks Massimo On Jul 9, 5:42 pm, bluestar bluestar8...@gmail.com wrote: I know the Android SDK provieds manySensorclass to use to get data or do something. I already verified mydriverofsensorto get data

[android-developers] Browser versus App to present Web Data

2009-07-16 Thread Fred Vinton
Looking for best practices to deploy a. tabular data, and b. plotted data with comments (title + legend + notes) 1. Display in browser with server generated static graphic plots, or, 2. Download raw data and plot with graphics primitives (API) within Android's SDK? 50 - 500 data points. -

[android-developers] Re: Download manager

2009-07-16 Thread Hod
android.permission.ACCESS_DOWNLOAD_MANAGER has protection level signatureOrSystem. You can read about that at http://developer.android.com/guide/topics/manifest/permission-element.html Basically, only applications signed using the same certificate as Download Manager or installed on the /system

[android-developers] Setting for Poxy based Network Connections

2009-07-16 Thread Aram
Hello all, Can anybody give me the Exact methodology for Connecting through Android Browsers and also Exact way for making the Map application work in my Proxy Networked Machine None of the methodology in the below are working for me 1. placing the http_proxy in settings.db 2. -http-proxy

[android-developers] Android Screen Shot

2009-07-16 Thread Sansiro
Hi,guys: I'm writing an application running on PC. I want to get the android device's screen which is connected to PC. Now I use the method provider by SDK to get the screen image, just like DDMS, and transport the Image to PC via socket. But it's too inefficient. Is there a hook which can

  1   2   >