[android-developers] Re: Request to device test the Android Application

2009-03-28 Thread Nio
HI Niti, I have tested the app for you. When I enter the zip code 10024, and press Insert My Zip, it shows: Working... Searching your zip Code Trying to determine your zip code And then no thing comes up. Nio On 2月26日, 上午12时10分, Sena Gbeckor-Kove s...@imkon.com wrote: I'm retracting my

[android-developers] Global variables

2009-03-28 Thread Zhubham
Hi, Can anyone hep me with how to make a (boolean) variable global in Android? Thanks. Best Regards, Zhubham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mariano Kamp
I am very much looking forward to Mark's writeup. I think that the theory is sound, but that it is ugly to pass in the wake lock in practice. I use a static member for that and it makes my eyes bleed. And it makes it harder to handle cases where start is called more than once. On Sat, Mar 28,

[android-developers] ProgressBar / SeekBar Height

2009-03-28 Thread bestpriv...@googlemail.com
I would like do decrease the height of my seekbar. I tried for hours but I just do not get it. I use a custom drawable so I guess that this is the place to specify the size: shape xmlns:android=http://schemas.android.com/apk/res/android; type=rectangle gradient

[android-developers] Re: Request to device test the Android Application

2009-03-28 Thread Nitichandra I
ok thanks Nio 2009/3/28 Nio luodali...@gmail.com HI Niti, I have tested the app for you. When I enter the zip code 10024, and press Insert My Zip, it shows: Working... Searching your zip Code Trying to determine your zip code And then no thing comes up. Nio On 2月26日, 上午12时10分,

[android-developers] How to scale down image in ImageButton?

2009-03-28 Thread Ren
I have a 32 X 32 png image which I set as the src of ImageButton. When I set the maxHeight of imageButton to 20 the image didn't scale down. How do I tell the ImageButton to scale down the image? Here's my image button definition: ImageButton android:id=@+id/button1

[android-developers] Re: When save image, how to specify image name?

2009-03-28 Thread Ren
I tried values.put(MediaStore.Images.ImageColumns.TITLE, newpic.jpg); values.put(MediaStore.Images.ImageColumns.MIME_TYPE, image/jpeg); It didn't work. On Fri, Mar 27, 2009 at 6:46 PM, for android forandr...@gmail.com wrote: did u try TITLE On 3/27/09, rens...@gmail.com rens...@gmail.com

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Nox
What did you put in your .java file? On 22 Mrz., 18:04, kavitha kavith...@gmail.com wrote: Hii All, I am developing a game in android and i want to capture screen coordinates of a view(ImageView) which is embedded in frame. Hierarchy is LinearLayout android

[android-developers] Re: ProgressBar / SeekBar Height

2009-03-28 Thread birds fly
hi , I have modify the seekbar size of height, you can read of it that source code res/style.xml, where located in ANDROID_HOME/tools/lib/res/default/values/style.xml What I means,you need to modify the seekbar style and override old style. default style: style name=Widget.SeekBar

[android-developers] How load pictures quickly in picture viewer

2009-03-28 Thread admin.androidsl...@googlemail.com
When I try it myself with what appears to be similar code, pictures load at about a tenth of the speed. I am also trying to load from the dcim/.thumbnails directory. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mark Murphy
Mariano Kamp wrote: I use a static member for that and it makes my eyes bleed. Umm...hmm...well...er... If you want your service to completely go away between alarms, you need your BroadcastReceiver to be registered via the manifest, rather than tied into the system via registerReceiver() in

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

2009-03-28 Thread wanzi !
strazzere,thanks for your reply,but could you tell me what is the android id? IMEI code or another one? we can read it without warning information:READ PHONE STATE? if it is,could you tell me how to get that id? thanks very much!! On 3月28日, 上午12时06分, strazzere str...@gmail.com wrote: papi

[android-developers] What about a virtual keyboard?

2009-03-28 Thread Nox
Hi everyone, If I´m using the T-Mobile G1, then the QWERTZ- keyboard is very good. But if I only want to use one hand, then I have to use the keyboard. Is it possible to add a virtual keyboard to the T-Mobile G1? I've heard, the new HTC Magic (with Android) has got one!!! Thanks in advance

[android-developers] Re: What about a virtual keyboard?

2009-03-28 Thread Mark Murphy
Nox wrote: Hi everyone, If I´m using the T-Mobile G1, then the QWERTZ- keyboard is very good. But if I only want to use one hand, then I have to use the keyboard. Is it possible to add a virtual keyboard to the T-Mobile G1? I've heard, the new HTC Magic (with Android) has got one!!!

[android-developers] Re: Pretty ways to animate a list?

2009-03-28 Thread Carl Whalley
Look in the API demos: Views | Layout Animation | List cascade -- Android Academy: http://www.androidacademy.com On Mar 28, 1:32 am, Keith Wiley kbwi...@gmail.com wrote: AK Notepad does this nice little thing where, on displaying the file list, it unravels rapidly down the screen.  Are they

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

2009-03-28 Thread Stoyan Damov
android.provider.Settings.System.getString(context.getContentResolver(), android.provider.Settings.System.ANDROID_ID); 2009/3/28 wanzi ! wanzihe...@gmail.com: strazzere,thanks for your reply,but could you tell me what is the android id? IMEI code or another one? we can read it without

[android-developers] How to place small icon in top-right corner?

2009-03-28 Thread Sebastian Pawlak
Hello, I need to place small icon (40x40px) in right-top corner of a view. The problem is, that there will be many widgets around such icon.. How to achieve my purpose? (please see picture: http://img19.imageshack.us/img19/9904/androidk.jpg) Thanks in advance for help. Robbo

[android-developers] Re: How to place small icon in top-right corner?

2009-03-28 Thread Mark Murphy
Sebastian Pawlak wrote: Hello, I need to place small icon (40x40px) in right-top corner of a view. The problem is, that there will be many widgets around such icon.. How to achieve my purpose? (please see picture: http://img19.imageshack.us/img19/9904/androidk.jpg) Thanks in advance for

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mariano Kamp
There is one more thing I'd like to add that I think you haven't covered yet ... and probably don't need to, but I want you to be aware of that. I have an app that synchronizes with Google Reader every hour (alarm) and also the user can run a sync manually. So both need the background service to

[android-developers] Re: ProgressBar / SeekBar Height

2009-03-28 Thread bestpriv...@googlemail.com
Many thanks. Works fine now :-) On 28 Mrz., 12:43, birds fly birdsact...@gmail.com wrote: hi ,       I have modify the seekbar size of height, you can read of it that source code res/style.xml, where located in ANDROID_HOME/tools/lib/res/default/values/style.xml What I means,you need to  

[android-developers] Re: Routing UDP data to the emulator

2009-03-28 Thread Tim
I did a check using netstat and found that when I routed the udp packet using telnet localhost 5554 redir add udp:5000:5000 that the port that is listening to is 0.0.0.0:5000 which does make things a bit better in terms of where its going to, but the emulator can't seem to make that last

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mark Murphy
Mariano Kamp wrote: Now you would have two active wake locks and actually when using a naive approach to a static variable you would have overwritten the old wake lock, which would lead to the old lock not being releases which would lead to the phone not shutting down. Have you tried using

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mariano Kamp
On Sat, Mar 28, 2009 at 4:37 PM, Mark Murphy mmur...@commonsware.comwrote: Have you tried using setReferenceCounted(true) on the WakeLock? No, I didn't know about that. Sounds interesting. Thanks for the pointer. In the scenario you described: -- The activity tells the service, yo! sync

[android-developers] Re: What about a virtual keyboard?

2009-03-28 Thread Nox
Thank you! On 28 Mrz., 13:18, Mark Murphy mmur...@commonsware.com wrote: Nox wrote: Hi everyone, If I´m using the T-Mobile G1, then the QWERTZ- keyboard is very good. But if I only want to use one hand, then I have to use the keyboard. Is it possible to add a virtual keyboard to the

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mark Murphy
Mariano Kamp wrote: On Sat, Mar 28, 2009 at 4:37 PM, Mark Murphy mmur...@commonsware.com mailto:mmur...@commonsware.com wrote: Have you tried using setReferenceCounted(true) on the WakeLock? No, I didn't know about that. Sounds interesting. Thanks for the pointer. In the

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Nox
How can I install the JDK on Linux??? On 22 Mrz., 18:04, kavitha kavith...@gmail.com wrote: Hii All, I am developing a game in android and i want to capture screen coordinates of a view(ImageView) which is embedded in frame. Hierarchy is LinearLayout android

[android-developers] Re: Pretty ways to animate a list?

2009-03-28 Thread Keith Wiley
Ah, I was looking in the list section. I feel silly. Thank you. --~--~-~--~~~---~--~~ 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

[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-28 Thread Tseng
I don't think your idea is going to work well too. The problem is, there are some applications that need to run in the background (and i'm not talking about the system applications here). Let's assume you got some kind of scheduler which shall notify a user when a certain event or time occurs.

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Nox
Does anyone know how to install the JDK on Linux? The location of the downloaded JDK is: /home/viktor/Desktop/android-sdk-linux_x86-1.1_r1/jdk-6u13-linux- i586.bin I put this in the command line: export PATH=$PATH;/home/viktor/Desktop/android-sdk-linux_x86-1.1r1/ jdk-6u13-linux-i586.bin But

[android-developers] Re: App Idea: Very interesting, unique, and information efficient text-entry method -- (no keyboard(not even on screen KB))

2009-03-28 Thread TjerkW
I used dasher before, but it was not easy to input text. I prefer just buttons. My collegues and i thought of a new way of text input: not a full qwerty keyboard, but only 1/2 the buttons but on all buttons 2 characters. Then use T9 like /dasher like language probability models to get the correct

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Mark Murphy
Nox wrote: Does anyone know how to install the JDK on Linux? The location of the downloaded JDK is: /home/viktor/Desktop/android-sdk-linux_x86-1.1_r1/jdk-6u13-linux- i586.bin Usually, *.bin packaged JDKs are programs you run. But, generally speaking, installation instructions for the JDK

[android-developers] Re: Sensors don't work on partial wake lock

2009-03-28 Thread Jordan Frank
I'm having the same problem, and have asked a few times on the mailing lists for more information, but have never seen any response from anyone in the know. That issue that romario13 posted concludes by saying that the sensor code has changed significantly in the cupcake branch. That's pretty

[android-developers] Re: Global variables

2009-03-28 Thread Tseng
Unlike in C/C++ or PHP you can't have global variables in Java (or C#). The closest thing to a global is a public static variable. for example class YourActivity extends Activity { public static boolean bMyBoolean; } Now you could access it with if(YourActivity.bMyBoolean) { // Do

[android-developers] Re: Spying camera application

2009-03-28 Thread Tseng
This kind of application is strongly discouraged in Android. The philosophy behinde it is that the user is always aware what's going on his phone to give malware as chance as possible and your application pretty much sounds like malware/backdoor/spying tool. This is one of the reasons why you

[android-developers] Re: Intercept Incoming SMS

2009-03-28 Thread Tseng
For security reasons this is not possible and works is by design, to prevent abuse and make it harder to run undetected malware on your phone. On Mar 24, 11:29 pm, Jorge Fonseca jcbfons...@gmail.com wrote: Hi All, Does anyone known if its possible to intercept incoming SMS to my app? Similar

[android-developers] Re: Spying camera application

2009-03-28 Thread srikanth reddy
hi Instead of sending the images to the internet can I able to save the images  in  memory card.I want to develop application to take the pictures automatically, before running first time user should asked for the permission.Once application is installed with user permission it should start

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Nox
If I tap to search Jarsigner with the command: find / -name jarsigner there always appears Permission denied !!! I do not know if I've done wrong. The bettest way is, I tell you what I've done. At first I've downloaded the JDK from Sun. The download-manager from the JDK has automatically

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Mark Murphy
Nox wrote: So, how can I run or execute the JDK??? http://java.sun.com/javase/6/webnotes/install/jdk/install-linux.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available!

[android-developers] Re: Pretty ways to animate a list?

2009-03-28 Thread Keith Wiley
So, I can get it to work if I replicate that demo perfectly, which doesn't assign a context to the layout, it just uses some default. I am trying to build off the extended ListActivity example, however, in which a context is assigned so that a special item is shown in the list when and only when

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Dianne Hackborn
Sorry this is currently such a pain. First, don't use registerReceiver(). Having a service always running is a -huge- waste of resources. In fact this will probably be counter-productive, because as the system gets low on resource and starts struggling to see what it can free up, it will see

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Nox
Sorry, it ins't working!!! On 28 Mrz., 18:33, Mark Murphy mmur...@commonsware.com wrote: Nox wrote: So, how can I run or execute the JDK??? http://java.sun.com/javase/6/webnotes/install/jdk/install-linux.html -- Mark Murphy (a Commons

[android-developers] Re: How to find Jarsigner

2009-03-28 Thread Pd
The Internet is a big place but does have little nuggets. Try here: http://www.openjdk.org/install/ Pd. Nox wrote: Sorry, it ins't working!!! On 28 Mrz., 18:33, Mark Murphy mmur...@commonsware.com wrote: Nox wrote: So, how can I run or execute the JDK???

[android-developers] Re: Spying camera application

2009-03-28 Thread Nox
I think you are only allowed to do it, if you write in the application that it takes every 2 mins photos. But is your target only to make screenshots??? On 28 Mrz., 18:31, srikanth reddy sri_reddy...@yahoo.com wrote: hi Instead of sending the images to the internet can I able to save the

[android-developers] Global touch events listener

2009-03-28 Thread el Nino
What I want to achieve is either to register a system-wide touch listener service or draw a window to capture touch events , handle them and dispatch to the underlying windows. Is there a way to forward a touch event to the underlying window, say, if the top window is transparent ? Something like

[android-developers] Detect an outgoing call is being answered?

2009-03-28 Thread hongbo...@gmail.com
Dear all, I learned that I can detect an outgoing call by either a BroadcastReceiver or a PhoneStatusListener, but is there anyway to get the event when this call is being answered? Thanks. Hongbo --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How do I get the source code of Android 1.1_r1?

2009-03-28 Thread luggie
hi,everyone, How do I get the source code of Android 1.1_r1? repo init -u git://android.git.kernel.org/platform/manifest.git repo sync? Is that the source code of Android 1.1_r1? Thank you! --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] subproject

2009-03-28 Thread mbaroukh
Hi all. I'd like to create a helperProject to develop on Android. On eclipse, I tried to make a new project, remove main activity on it, include resources (layout, animatins, themes, images, ...). then, I make a new project that is configured to use the helper project. When I run the main

[android-developers] getting around Phoneapp activity 1.1?

2009-03-28 Thread Andy Liu
Hi, Is it possible to get around the phone app InCallScreen in Android 1.1? thanks, I greatly appreciate it! * Below is the message sent during Android 1.0 and the answer from Dianne was, Sorry, you currently can't intercept

[android-developers] Event when an outgoing call is being amswered?

2009-03-28 Thread hongbo...@gmail.com
Dear all, I learned that I can detect a new outgoing call by either a BroadcastRecerver or a PhoneStateListener, but is there anyway to get the event when the call is picked up? Thanks. Hongbo --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How to add radiobuttons in menu structure

2009-03-28 Thread Brian Smith
The key is to use group/item elements, not RadioGroup/RadioButton, as documented here: http://developer.android.com/guide/topics/resources/available-resources.html#menus Wrapping the radio button menu items in a group, giving that group an ID, and setting its checkableBehavior attribute to

[android-developers] Re: How do I get the source code of Android 1.1_r1?

2009-03-28 Thread Jean-Baptiste Queru
The exact source code for 1.1 is not available. 1.1 isn't hugely different from 1.0, which you can get with repo init -u git://android.git.kernel.org/platform/manifest.git -b release-1.0 repo sync but that's most probably not going to be line-exact. JBQ On Fri, Mar 27, 2009 at 6:05 PM, luggie

[android-developers] Re: Spying camera application

2009-03-28 Thread srikanth reddy
Hi Thanks for the reply My aim is to control the camera for every 1 min to take the picture and to store the images in file without user involvement . Mobile camera works like  surveillance camera. Thank you, Sri --- On Sat, 3/28/09, Nox v.beh...@googlemail.com wrote: From: Nox

[android-developers] Re: Observation and comments on Android and regularly scheduled events

2009-03-28 Thread Mark Murphy
Dianne Hackborn wrote: Yes you need to use a global variable for the wake lock. Gross, but it works. OK, here's a cut at a sample app: http://groups.google.com/group/cw-android/web/Alarm.zip [NOTE: If you found this message in the archives and are reading it after June 1, 2009, please visit

[android-developers] Activity with no UI

2009-03-28 Thread Hans
Anyone know if this is possible? I want to handle something launched by an ActivityChooser as invisibly as possible. Currently I simply do the processing in onCreate and tell the activity to close. This is fast, but there's a blink as the old activity is replaced with the new which immediately

[android-developers] Debug.startMethodTracing InternalError: file open failed

2009-03-28 Thread William
i put this in my oncreate method and get an error, file open failed. what am i doing wrong? Debug.startMethodTracing(rufio); 03-28 17:32:31.402: ERROR/AndroidRuntime(11951): Uncaught handler: thread main exiting due to uncaught exception 03-28 17:32:31.432: ERROR/AndroidRuntime(11951):

[android-developers] Buffering Background Image - Graphics Advice Sought

2009-03-28 Thread robotissues
I am unsure of the jargon so please bear with me, I am seeking advice on the best way to go about drawing the graphics for an app I am developing. Imagine you are creating a game of checkers, where you can drag/drop one piece at a time to a blank space on the board. When the piece is being

[android-developers] Can we call framework classes directly?

2009-03-28 Thread admin.androidsl...@googlemail.com
e.g. it would be useful to call some methods in com.android.camera.ImageManager / ImageLoader rather than trying to copy / paste them into my project and figure out all missing references etc. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Activity with no UI

2009-03-28 Thread Pd
Use a service http://developer.android.com/reference/android/app/Service.html Pd. Hans wrote: Anyone know if this is possible? I want to handle something launched by an ActivityChooser as invisibly as possible. Currently I simply do the processing in onCreate and tell the activity to

[android-developers] Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Marc
So I have the following code... StringBuilder sb = new StringBuilder(4096); while (true) { int i = in.read(); if (i == 0) break; else if (i == -1)

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Mark Murphy
So I have the following code... StringBuilder sb = new StringBuilder(4096); while (true) { int i = in.read(); if (i == 0) break; else if (i == -1)

[android-developers] Re: Can we call framework classes directly?

2009-03-28 Thread Mark Murphy
e.g. it would be useful to call some methods in com.android.camera.ImageManager / ImageLoader rather than trying to copy / paste them into my project and figure out all missing references etc. If they are not in the SDK, do not attempt to call them. If you feel there are classes that should

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Dan Bornstein
On Sat, Mar 28, 2009 at 3:16 PM, Marc gram...@gmail.com wrote: So I have the following code... StringBuilder sb = new StringBuilder(4096); while (true) { int i = in.read(); if (i == 0)

[android-developers] Re: Activity with no UI

2009-03-28 Thread Hans
On Mar 28, 6:14 pm, Pd lotusscr...@gmail.com wrote: Use a service http://developer.android.com/reference/android/app/Service.html Pd. ...want to handle something launched by an ActivityChooser ... Hans ;) --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Question about one application requiring another application or service

2009-03-28 Thread Streets Of Boston
Bump :-) Has anyone dealt with a similar problem before? Thanks! On Mar 24, 3:32 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Hi everyone, I'm writing an app that needs one or more applications/services that are distributed with their own seperate apk file. I'm writing a user-app

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Marc
Thanks for the replies. Those were some of the next steps I was considering, but I very much appreciate the time you guys took to respond. I was just astounded by the overhead involved in reading byte by byte! BTW, this was with a fast connection (2mbps+). Best, Marc On Mar 28, 3:42 pm, Dan

[android-developers] Re: Current Preference Screen? (easyy)

2009-03-28 Thread Noam
? --~--~-~--~~~---~--~~ 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 from this group, send email to

[android-developers] Re: Question about one application requiring another application or service

2009-03-28 Thread Mark Murphy
Streets Of Boston wrote: Bump :-) Has anyone dealt with a similar problem before? I will be dealing with a similar problem over the next month or so. Take these thoughts with a decent-sized grain of salt. I'm writing a user-app that allows the user to upload pics using a service. The

[android-developers] Save TextView/ScrollView Data

2009-03-28 Thread Bobbie
I am putting text into a TextView that is inside of a ScrollView (so that they can scroll through the text) via the append command and HTTP posts. When I switch views from vertical to horizontal (or vice- versa), all of the text in the TextView/ScrollView goes away, the data is not saved. Is

[android-developers] DDMS running on Vista64

2009-03-28 Thread John Doe
How can we achieve to have DDMS running on Vista? I have a Vista64 installed computer and when I try to run DDMS it gives me the error below. I tried several methods but it was of no use. Can anybody help me ? 49:56 E/ddms: shutting down due to uncaught exception 49:56 E/ddms:

[android-developers] Capture POST headers

2009-03-28 Thread bo
I'm overriding WebViewClient#shouldOverrideUrlLoading(WebView view, String url) to do some aggregate loading of remote HTML. Works great for regular links and GET forms, but the loaded data may also contain POST form. Is it possible to get form field values if form method is set to POST? Or in