[android-developers] Re: Building on Ant

2008-12-10 Thread Mihai
Hi, You should make sure you have set the JAVA_HOME and the ANT_HOME variables, also it is probably best to set the Android home as a environment variable (http://code.google.com/android/intro/ installing.html). Also, after setting these variables, add them to your system PATH variable, that wa

[android-developers] Re: Receiving SMS Messages in 1.0?

2008-12-10 Thread Cristina
Hi, The permissions you need to receive and send SMS are About binarys SMS, AFAIK is not possible to emulate binanies SMS from DDMS. Maybe there is an option via telnet (doing a telnet to the emulator port, it opens an emulator console..look there if there is an appropiate command for bi

[android-developers] Re: java.util.Timer NOT make sense in Activity?

2008-12-10 Thread Shubham
Ya, it better to stick to Handler.postX(Runnable) technique. I dont know about TimerTask in particular but i have noticed if you try to stop a thread you created, it does not stop. Btw, when you resched ur task are yoy getting an Illegal Thread state Exception ? Can you post the stack trace? On

[android-developers] Re: Receiving SMS Messages in 1.0?

2008-12-10 Thread for android
Though I have not sent a binary SMS,i think this would work http://code.google.com/android/reference/android/telephony/gsm/SmsManager.html#sendDataMessage(java.lang.String,%20java.lang.String,%20short,%20byte[],%20android.app.PendingIntent,%20android.app.PendingIntent)

[android-developers] Re: How To Start a RTSP connection

2008-12-10 Thread Dave Sparks
MediaPlayer m = new MediaPlayer(); m.setDataSource("rtsp://rtsp.yourserver.com/stream.mp3"); m.prepare(); m.start(); You probably want to call the prepare() statement from something other than your UI thread, because it may take awhile. Alternatively, you can call prepareAsync() and call start()

[android-developers] Re: need help for MediaRecorder

2008-12-10 Thread Dave Sparks
Generally, if you need a permission, you'll see an error message in the log output. I'm pretty sure AudioFlinger outputs an error message if an app tries to record without the permission. Anything that might lead to privacy or security issues generally requires special permission from the user. I

[android-developers] Re: Building on Ant

2008-12-10 Thread tharun
Hi Fred, Now, I'm not facing the location error. But one more error is occurring D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant - buildfile C:\myAndroid\build.xml Buildfile: C:\myAndroid\build.xml dirs: [echo] Creating output directories if needed... resource-src:

[android-developers] Re: How to send email programmatically?

2008-12-10 Thread nt94043
On Dec 9, 12:47 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote: > There is no standard settings dialog, we already have to e-mail apps that > are very different: gmail and email. I don't think it makes sense to try to > come up with a general-purpose UI for this as part of the platform, though >

[android-developers] Re: Contacts insertion failure

2008-12-10 Thread Abraham
HI all, Appreciate if some one could shed some light on my below query. A passing thought that just popped up in my mind regarding this issue. If the phonebook is not able insert record then wouldn't it be throwing an SQLLiteException. So even during memory full case can we expect the same behav

[android-developers] Re: new activity from PhoneStateListener callback method

2008-12-10 Thread dreamerBoy
You should be able to define your own constructor or setter that takes the context as a parameter, no? Does that not work? MyPhoneStateListener(Context ctx) { sthustfo wrote: > Hi, > > I would like to know how I can start a new activity from within the > PhoneStateListener method, say onCallSt

[android-developers] Re: new activity from PhoneStateListener callback method

2008-12-10 Thread dreamerBoy
You should be able to define your own constructor or setter that takes the context as a parameter, no? Does that not work? MyPhoneStateListener(Context ctx) { sthustfo wrote: > Hi, > > I would like to know how I can start a new activity from within the > PhoneStateListener method, say onCallSt

[android-developers] Re: new activity from PhoneStateListener callback method

2008-12-10 Thread dreamerBoy
You should be able to define your own constructor or setter that takes the context as a parameter, no? Does that not work? MyPhoneStateListener(Context ctx) { this.ctx = ctx; } or something - sthustfo wrote: > Hi, > > I would like to know how I can start a new activity from within the > P

[android-developers] Contact insertion successfull...But contact not be viewed through contacts app

2008-12-10 Thread Abraham
HI All, I am facing a weird issue related to contacts. Issue: I'm able to insert a contact successfully to the phonebook from my application. But when I try verify the same by opening contacts application on SDK I'm not able to find this contact. My code for inserting contact Cursor cur =

[android-developers] detect earphone

2008-12-10 Thread eric
Hello, Anyone know how to detect if the ugly earphone has been plugged? Any API related to this? thanks! --~--~-~--~~~---~--~~ 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] Re: the fastest way to draw on screen

2008-12-10 Thread Romkin
To be honest the surface in created in C, as char* and originally i wanted to use 16bit colour, but Bitmap takes int[], which means i have to use 32bit, is there a way i can solve it to use 16bit? On 9 Dec, 17:38, Mike Reed <[EMAIL PROTECTED]> wrote: > I am assuming you have predrawn what you wan

[android-developers] Exception error while building on Ant

2008-12-10 Thread tharun
Hi, When try to build on Ant, I'm facing this problem, D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant - buildfile C:\myAndroid\build.xml Buildfile: C:\myAndroid\build.xml dirs: [echo] Creating output directories if needed... resource-src: [echo] Generating R

[android-developers] Re: Contact insertion successfull...But contact not be viewed through contacts app

2008-12-10 Thread Charlie Collins
I believe the built in Contacts app is using the "My Contacts" group, not just all of the contents of the People table, etc. Looks like (at a quick glance) you are putting a record in People just fine, but not also putting the record in the group. You might find it easier to use the static "crea

[android-developers] Re: MenuBuilder

2008-12-10 Thread diya blore
Hi, ya.. when i added to my app.. MenuBuilder as error like MenuBuilder cannot be resolved to a type. i have done like this MenuBuilder builder = new MenuBuilder(this); http://wiki.droiddocs.net/Reference:Android.widget.

[android-developers] Re: How to make an application run at boot-up?

2008-12-10 Thread Charlie Collins
Re-reading your question, I may not understand exactly what you want to do on second thought. I use the receiver approach to start Services at boot time, I am not sure if you can start an Activity that way or not - but either way you probably don't really want to start an "application" (meaning A

[android-developers] bindBrowser what does it do?

2008-12-10 Thread Fred Grott(shareme)
I am going through the process of embedding webkit to develop an applicatin using html, css, and javascript and a little native classes thrown in I was looknig at PhoneGap code which now supports Android and was wondering what bindBrowser(webviewObject) does.. Thanks for whatever answer you ca

[android-developers] Re: Exception error while building on Ant

2008-12-10 Thread tharun
Hi Fred, I'm unable find to autoandroid in code.google.com. Could you tell me the exact name of it? Regards, Tharun On Dec 10, 4:23 pm, "Fred Grott(shareme)" <[EMAIL PROTECTED]> wrote: > Its not finding the anndroid.jar via the sdk.. > > Go to googlecode and in the search box type autoandroid..

[android-developers] Spinner - problems with padding and wrap_content

2008-12-10 Thread code_android_festival_way
Hello I got the following XML style for my spinner: http://paste.pocoo.org/show/94667/ (just a snippet) In code I'm adding content to the spinner like this: http://paste.pocoo.org/show/94668/ (just a snippet) But this leads me to the following result: http://img.skitch.com/200

[android-developers] Re: MapActivity Problem --Debugs but won't launch from signed apk.

2008-12-10 Thread Ludwig
I would assume that there is an additional check on the app that there is a map key for it on the phone that is not present in the emulator. Try it with a map key and see what happens on the phone. Ludwig 2008/12/10 joshbeck <[EMAIL PROTECTED]> > > Problem: > -I have the simplest MapActivity know

[android-developers] Re: How to make an application run at boot-up?

2008-12-10 Thread Charlie Collins
You need to create a BroadcastReceiver, use the RECEIVE_BOOT_COMPLETED permission in the manifest, and catch the ACTION_BOOT_COMPLETED action. http://code.google.com/android/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED On Dec 9, 6:05 am, VVPrasad <[EMAIL PROTECTED]> wrote: > Hi, >

[android-developers] Re: MenuBuilder

2008-12-10 Thread Charlie Collins
Yes. It's not called "MenuBuilder" but the Menu class has methods to let you add MenuItems in a variety of ways. http://code.google.com/android/reference/android/view/Menu.html On Dec 10, 1:00 am, "diya blore" <[EMAIL PROTECTED]> wrote: > Hi All,Do we have  MenuBuilder object in android api's?

[android-developers] Re: start your application on camera button

2008-12-10 Thread shimo...@gmail.com
Hi, So are you saying it cant be done ? There is no way I make my app launch when the user presses the CALL button ? Only access to 3rd party is by tapping their icon on the screen ? Or can I pretent to be the built-in app ? TIA Shimon On Dec 3, 10:26 pm, "Dianne Hackborn" <[EMAIL PROTECTED]

[android-developers] Re: MapActivity Problem --Debugs but won't launch from signed apk.

2008-12-10 Thread joshbeck
Hello there, Thanks for the response. I debug using the actual device, but you are right. It probably treats the phone as if it were the emulator in that case. I've followed the directions and obtained an MD5 fingerprint of my keystore. I used the sign-up form and passed it the fingerprint in th

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Mark Murphy
Al Sutton wrote: > Go to http://sites.google.com/site/piggybanksoftwarehomepage/dowloads Are you sure you don't have any examples with shorter URLs? ;-) > On my system the desktop browser gives me the save as dialogue box, the > android browser 404? I get a save-as on the desktop and I get a

[android-developers] Re: Multiple email accounts

2008-12-10 Thread tanshi...@gmail.com
Hi Andrew, Many thanks for this, it's great! There's an application called ContactSync which at the moment only supports Outlook 2007. I'm pretty certain that most organisations still use previous versions of it so I'm basically wondering if you guys will create something that accommodates this?

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Al Sutton
Mark Murphy wrote: > Al Sutton wrote: > >> Go to http://sites.google.com/site/piggybanksoftwarehomepage/dowloads >> > > Are you sure you don't have any examples with shorter URLs? > > ;-) > > *http://tinyurl.com/5hnbz5 could be a bit easier on the fingers :). * >> On my system the desk

[android-developers] Re: Exception error while building on Ant

2008-12-10 Thread Fred Grott(shareme)
Its not finding the anndroid.jar via the sdk.. Go to googlecode and in the search box type autoandroid..its the ant library most developers use once that is set up it detects your SDK home location and handles that.. On Dec 10, 4:41 am, tharun <[EMAIL PROTECTED]> wrote: > Hi, > > When try to b

[android-developers] Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Al Sutton
Quick example; Go to http://sites.google.com/site/piggybanksoftwarehomepage/dowloads Try to download TNTManic_1.7.apk using the link from both a desktop browser & the android built in one. On my system the desktop browser gives me the save as dialogue box, the android browser 404? Anyone els

[android-developers] Re: bindBrowser what does it do?

2008-12-10 Thread Fred Grott(shareme)
Never mind found the answer On Dec 10, 5:20 am, "Fred Grott(shareme)" <[EMAIL PROTECTED]> wrote: > I am going through the process of embedding webkit to develop an > applicatin using html, css, and javascript and a little native classes > thrown in > > I was looknig at PhoneGap code which now sup

[android-developers] Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Chandrakar Aravind-rqj386
Hi, I am trying to read non-local txt file, but I am getting error: java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator Any one has any idea? My code is like that: FileInputStream orifile = openFileInput("/data//samplefile.txt");

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Mark Murphy
Chandrakar Aravind-rqj386 wrote: > I am trying to read non-local txt file, but I am getting error: > > java.lang.IllegalArgumentException: File /data/testing.txt > contains a path separator You probably don't have a file at /data/testing.txt. > My code is like that: > > FileInputS

[android-developers] Re: detect earphone

2008-12-10 Thread Dave Sparks
You want to register to receive Intent.ACTION_HEADSET_PLUG from package android.content. Check out: http://code.google.com/android/reference/android/content/Intent.html On Dec 10, 2:38 am, eric <[EMAIL PROTECTED]> wrote: > Hello, > Anyone know how to detect if the ugly earphone has been plugged?

[android-developers] Re: How to send email programmatically?

2008-12-10 Thread David Given
Mark Murphy wrote: [...] > Those cases all require you to send emails. You can do this today. You > need to get yourself a Java JAR that supports SMTP, ask the user for > SMTP credentials (server, from address, SMTP authentication settings, > etc.), and you're set. Speaking as a user, I don't

[android-developers] Re: How to query for my current location?

2008-12-10 Thread Alemao
I created the Listener and requested updates (see code below), but for some reason I'm not being notified. The method onStatusChanged() is being called instead, firstly with STATUS set to TEMPORARILY_UNAVAILABLE, then when I send the first GPS coordinate via DDMS, the method is called again with S

[android-developers] Re: the fastest way to draw on screen

2008-12-10 Thread Mike Reed
If the image is predrawn, then you can just store it as .png, and then decode it (BitmapFactory) with a preferred config as RGB_565 (see BitmapFactory options). If the image is drawn by your code, and you can create a Bitmap in RGB_565, and use setPixels(int[]), which will down-sample your

[android-developers] Does android browser support plugins?

2008-12-10 Thread Juliana
Does current android browser support pulgins whether the plugins are implemented by native code or java? If it does, how? As all know, gears is a plugin implemented by google. I investigated it, unfortunately, I haven't had a clear idea on it, anyone can help me? Best Regards Juliana --~--~--

[android-developers] Re: Android Dev Phone 1

2008-12-10 Thread Nuutti Kotivuori
>From the order page (visible only after registering as a developer): Software features: ... * AndroidMarket ... So, yes. On Dec 9, 5:38 am, Joel <[EMAIL PROTECTED]> wrote: > Thought this would be the best place to post this, as the Dev Phone is > clearly not for typical users.  However, on any

[android-developers] Programatically Changing Default Name of Bluetooth Device "Without Activating the Device Itself"

2008-12-10 Thread Daisuke Miyakawa
Hi, I'm now investigating how to programatically change the default device name of bluetooth device ("dream"?) "without activating the device", but as far as I looked over the code (around BluetoothSettings.java), it seems impossible, since the Preference is not a named SharedPreference. I assume

[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-10 Thread DazBy
Does the phone have to be shipped to the billing address or can I specify a different address to that on my Credit Card? On Dec 7, 5:53 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > Any appropriate customs duties and taxes will be added on top of the > $399 purchase price. You are c

[android-developers] Get downloads at GetJar

2008-12-10 Thread chris
If you’re interested in an alternative to the Andriod market, check out GetJar. We have 20 million downloads a month now. GetJar is testing in-app ads and payments to monetize your apps. The benefit of GetJar is that you can get free distribution and not rely on placement in the market. The lea

[android-developers] The problem of installing Repo

2008-12-10 Thread Morris
Dear Sirs: When I follow the steps of installing repo, I face the below errors. [EMAIL PROTECTED]:~/mydroid$ repo init -u http://android.git.kernel.org/platform/manifest.git Getting repo ... from git://android.kernel.org/tools/repo.git fatal: Unable to look up android.kernel.org (port 9418) (

[android-developers] Has anybody received an android dev phone in the US yet?

2008-12-10 Thread Rajesh
Where in US are you? How long did it take to reach and what was the mode of shipping you used? I plan to order one if it is sure to reach in two weeks. And is it illegal to personally carry a single phone from US to UK? (Well without the carton box for myself). --~--~-~--~~--

[android-developers] Regarding .apk files

2008-12-10 Thread Naina
Hello, I would like to know, if i have only .apk file with me, how to get the APIs and Classes that are present in the .apk file. Please let me know if anybody has any idea. Thanks, Naina --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Shipping a European dev phone to the US?

2008-12-10 Thread DazBy
So is that a veiled yes then? ;) On Dec 8, 5:54 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > The charger that ships with theDevPhone1 works from 100-240V, so it > supports European voltages, but you may need a plug adapter to > physically adapt the plug. > > Additionally, if it doe

[android-developers] Re: "Cannot finish download. There is not enough space."

2008-12-10 Thread DSprink
Hi all, I'm still having this problem, I'm still using the original SD card and haven't done anything revolutionary with my software. Simply put, since the RC30 release I haven't been able to download files (images, in particular) at all...I get the "Cannot finish download" error. I've got at lea

[android-developers] Re: The problem of installing Repo

2008-12-10 Thread Mark Murphy
Morris wrote: > When I follow the steps of installing repo, I face the below errors. This mailing list is for application developers. Questions regarding the Android open source project are best asked on lists for the Android open source project: http://source.android.com/discuss -- Mark Mur

[android-developers] Re: Does android browser support plugins?

2008-12-10 Thread Jean-Baptiste Queru
Plugins aren't supported at this point. JBQ On Tue, Dec 9, 2008 at 11:13 PM, Juliana <[EMAIL PROTECTED]> wrote: > > Does current android browser support pulgins whether the plugins are > implemented by native code or java? > > If it does, how? > > As all know, gears is a plugin implemented by go

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Chandrakar Aravind-rqj386
Hi Mark, Thanks for reply, is there any methods to read non-local file (file present outside my application specific area). Arvind -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Murphy Sent: Wednesday, December 10, 2008 7:52 PM

[android-developers] Re: Shipping a European dev phone to the US?

2008-12-10 Thread Justin (Google Employee)
Its not really either a 'yes' or a 'no', and there is no veil. The real point is there is no 'European version', every Android Dev Phone 1 charger will work anywhere in the world where power is between 100 and 240 volts. Cheers, Justin Android Team @ Google On Dec 10, 3:07 am, DazBy <[EMAIL PROT

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-10 Thread Justin (Google Employee)
I'm glad that you've found a solution that works for you. Yes, unfortunately while we expect most Android devices to be pretty powerful and have fairly large amounts of memory, they still aren't desktop machines and more careful design and implementation will sometimes be necessary. Cheers, Justi

[android-developers] Re: Shipping a European dev phone to the US?

2008-12-10 Thread DazBy
Hehe I meant in regard to getting one shipped to a US address but yeah thats good to know, thanks. On Dec 10, 3:44 pm, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > Its not really either a 'yes' or a 'no', and there is no veil. The > real point is there is no 'European version', every A

[android-developers] Re: Exception is raised when remove the last item in ExpandedListView

2008-12-10 Thread android_soft
You didn't paste all of your code. But looking at the exception, it means that you are accessing a list item(at index 0, which means its of size 1) when infact the list is empty(size 0) . Its probably a bug in your code in the way you are removing the items --~--~-~--~~~---

[android-developers] Include/insert existing layout in an other layout ?

2008-12-10 Thread Maxence Warzecha
Hi all, I have a myform.xml layout with a simple form. I have also a main.xml layout. I would like to know if we can include/insert existing layout (myform.xml) in an other layout (main.xml). I would like to do that in my main.xml directly without use java programmation but if it's not possible

[android-developers] Re: Programatically Changing Default Name of Bluetooth Device "Without Activating the Device Itself"

2008-12-10 Thread Nick Pelly
It gets set to the product name property the first time bluetooth is turned on. You could have it use another property. This is done internally by the bluez daemon. There is no easy way to change the device name with bt off, because the bluez daemon is not running. The bluetooth api is not avail

[android-developers] Clone inner-class Dalvik bug? or "Don't do that"

2008-12-10 Thread Ward Willats
Hello. On the G1 Say you have a custom view class. It has an inner-class with some view state. This inner-class references some variables in the outer class. The outer-class instances the inner-class and holds a reference to it. Now, say you clone the inner class reference, and pass the

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread kelly
You might try just using java.io.File, which works well for me: File file = new File("/whatever/path/to/file.txt"); try { InputStream in = new FileInputStream(file); ... } catch(Exception ex) { ... } I've noticed in the documentation that openFileInput() is supposed to be what you use, bu

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Mark Murphy
kelly wrote: > You might try just using java.io.File, which works well for me: > > File file = new File("/whatever/path/to/file.txt"); > try { > InputStream in = new FileInputStream(file); > > ... > } > catch(Exception ex) > { > ... > } That works, so long as you have read access to whate

[android-developers] Re: Include/insert existing layout in an other layout ?

2008-12-10 Thread Romain Guy
:) On Wed, Dec 10, 2008 at 5:18 PM, Maxence Warzecha <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a myform.xml layout with a simple form. > I have also a main.xml layout. > > I would like to know if we can include/insert existing layout > (myform.xml) in an other layout (main.xml). > I wou

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread kelly
Ah, that makes sense. What I'm doing with the java.io.File approach is reading/writing to/from areas on the sd card. On Dec 10, 10:38 am, Mark Murphy <[EMAIL PROTECTED]> wrote: > kelly wrote: > > You might try just using java.io.File, which works well for me: > > > File file = new File("/whatever

[android-developers] Re: OpenAL

2008-12-10 Thread reillyse
ok, I've searched on the web but can't find a datasheet for the msm7201A which I believe to be the chip in the G1 ? Can you confirm that there is no positional audio in the G1 chipset ? I have a data sheet/brochure for the msm7200A which claims to support positional sound( QAudioFX™enhanced gamin

[android-developers] Re: Include/insert existing layout in an other layout ?

2008-12-10 Thread Maxence Warzecha
Ho my good it's so simple! I didn't see... Thank you Romain Guy ;) On 10 déc, 17:56, Romain Guy <[EMAIL PROTECTED]> wrote: > > > :) > > > > On Wed, Dec 10, 2008 at 5:18 PM, Maxence Warzecha <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I have a myform.xml layout with a simple form. > > I have a

[android-developers] Re: Clone inner-class Dalvik bug? or "Don't do that"

2008-12-10 Thread Andrew Stadler
Ward- This is not a Dalvik bug. It's a common side-effect of the way Java inner classes work. Not only will your approach not work properly, but it will cause significant memory leaks (the back-trail of outer-class "this" pointers will prevent the previous Activity from being GC'd). If you don

[android-developers] Re: How to send email programmatically?

2008-12-10 Thread Andrew Stadler
David- This is already supported in both the Email and Gmail apps. Is there a reason that you believed that it wasn't? Here is the raw Javadoc straight from Intent.ACTION_VIEW: /** * Activity Action: Display the data to the user. This is the most common * action performed on dat

[android-developers] Re: java.util.Timer NOT make sense in Activity?

2008-12-10 Thread cindy
But this implementation doesn't have same functionality as Timer, you can't update the screen at predefined interval. On Dec 9, 10:33 pm, Xiongzh <[EMAIL PROTECTED]> wrote: > My reimplementation using view.postDelay(Runnable action, long > milliseconds); > > package com.example.android.helloactiv

[android-developers] Re: java.util.Timer NOT make sense in Activity?

2008-12-10 Thread Mark Murphy
cindy wrote: > But this implementation doesn't have same functionality as Timer, you > can't update the screen at predefined interval. That implementation has a predefined interval of 3000 milliseconds -- the second parameter to the postDelayed() call. If you want a different interval, change t

[android-developers] Change screen brightness immediately

2008-12-10 Thread junker37
Does anyone know how to change the brightness immediately? I'm looking for a response to: http://groups.google.com/group/android-developers/browse_thread/thread/432802c9ad58d4f5/8adbb7c9c129519a?lnk=gst&q=brightness#8adbb7c9c129519a --~--~-~--~~~---~--~~ You receiv

[android-developers] How to control a sound notification duration?

2008-12-10 Thread elDoudou
Hello. Could not find a thread of discussion nor information on the web on how to control the duration of a sound playing for a notification. The "Notification" class does not seem to offer that feature. Am I missing something, please? Thank you. Édouard --~--~-~--~~~

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-10 Thread BobW
Mark, Great book. I recommend it to all. I like the subscription model also. Very cool. Bob On Dec 10, 7:57 am, "Justin (Google Employee)" <[EMAIL PROTECTED]> wrote: > I'm glad that you've found a solution that works for you. Yes, > unfortunately while we expect most Android devices to be pret

[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-10 Thread Mark Murphy
BobW wrote: > Mark, > Great book. I recommend it to all. > I like the subscription model also. Very cool. Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~

[android-developers] Is there a way to tell the emulator to kill an activity?

2008-12-10 Thread Cheryl Sedota
Is there a way to tell the emulator to kill an activity (not the entire process / just the activity)? An adb or ddms command perhaps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Problem with Callbacks while restoring UI state

2008-12-10 Thread code_android_festival_way
What is the right way to disable callback methods (onChangeListener etc) untill the UI is restored to the last status? While setting my UI back to the last status (setting checkboxes etc) a lot of callback methods get called that I don't want to be called. Since it is no interaction from the user.

[android-developers] Re: Has anybody received an android dev phone in the US yet?

2008-12-10 Thread Al Sutton
You can carry up to 300 GBP (approx 490 USD) of goods into the UK for personal use without having to pay UK Tax or Duty, so you can legally carry a G1/Dev Phone 1 in lwithout paying tax if its for your PERSONAL use ;). See http://customs.hmrc.gov.uk/channelsPortalWebApp/channelsPortalWebApp.p

[android-developers] Re: Has anybody received an android dev phone in the US yet?

2008-12-10 Thread szeldon
I have ordered G1 Dev 1 on Sunday and I didn't get it as yet. I assume that nobody got it: http://groups.google.com/group/android-beginners/browse_thread/thread/997f5bfc633feb37# On Dec 10, 1:02 pm, Rajesh <[EMAIL PROTECTED]> wrote: > Where in US are you? How long did it take to reach and what w

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Al Sutton
I suppose the question now is is this an Android bug or a Google sites bug? Al. Al Sutton wrote: > Mark Murphy wrote: > >> Al Sutton wrote: >> >> >>> Go to http://sites.google.com/site/piggybanksoftwarehomepage/dowloads >>> >>> >> Are you sure you don't have any examples w

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Bill Napier
Have you tried accessing it on Wifi vs. cell data? Could also be a t-mobile data issue. On Wed, Dec 10, 2008 at 10:52 AM, Al Sutton <[EMAIL PROTECTED]> wrote: > > I suppose the question now is is this an Android bug or a Google sites bug? > > Al. > > Al Sutton wrote: >> Mark Murphy wrote: >> >>>

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Mark Murphy
Bill Napier wrote: > Have you tried accessing it on Wifi vs. cell data? Could also be a > t-mobile data issue. My test was WiFi, FWIW. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~-

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Al Sutton
I can only use Wi-Fi where I live (due to shabby T-Mobile reception), so both tests left my house via the same network link (my ADSL line) Al. Bill Napier wrote: > Have you tried accessing it on Wifi vs. cell data? Could also be a > t-mobile data issue. > > On Wed, Dec 10, 2008 at 10:52 AM, Al

[android-developers] ExpandableListAdapter Crash

2008-12-10 Thread Gil
My uses an expandable list adapter. I ran into a problem when I update the adapter content. Here is the sequence of events: 1) Adapter contains groups A, B, C. Group A and C contain 2 children 2) I update the adapter data (I call notifyDataSetChanged) due to the fact that Group B is removed by th

[android-developers] Optional Permissions

2008-12-10 Thread Brad Gies
Is there a way to make a permission optional for the user? I would like my app's user to be able to send emails to their contacts if they want, but don't want them to have to approve the Contacts permissions when the app is installed. What I'd like to do is have a button in the app that the

[android-developers] Re: Anyone else seeing problems with the browser & Google Sites?

2008-12-10 Thread Al Sutton
Just tried the 1.0r2 emulator browser and it fails in the same way as the G1 Al. Al Sutton wrote: > I can only use Wi-Fi where I live (due to shabby T-Mobile reception), so > both tests left my house via the same network link (my ADSL line) > > Al. > > Bill Napier wrote: > >> Have you tried

[android-developers] manage files

2008-12-10 Thread alberto
Hello. I would like to know if there is possible to use txt or xml files that I put in the assets folder. I mean, I´m integrating a program into android, this program needs to use some files, so I can put those files in the assets folder, but now, I don´t know how to pass the path of those files.

[android-developers] Re: manage files

2008-12-10 Thread alberto
Or maybe I should put those files in a raw folder inside res? --~--~-~--~~~---~--~~ 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 unsu

[android-developers] Re: WindowManager$BadTokenException: Unable to add window -- token null is not for an application

2008-12-10 Thread Ash
It seems that my problem was due to using Activity.getApplicationContext as the context. On Nov 29, 9:23 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote: > It would help if you would include the stack crawl of the error and such. > > One cause of this error may be trying to display an application

[android-developers] Canvas.drawBitmap(int[] colors, ...) creates wrong alpha blending

2008-12-10 Thread Toothy Bunny
Hi All, I'm trying to use Canvas.drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) to draw an integer color array containing an image pixels array in the format of ARGB_ (with alpha channel). This function is provided in SDK 1

[android-developers] Re: Canvas.drawBitmap(int[] colors, ...) creates wrong alpha blending

2008-12-10 Thread Toothy Bunny
I could not find a way to attach pictures with my post, so I post the screen shot on the web, and here is the link: The test screen shot: http://www.omnigsoft.com/TechnicalSupport/TestResult.png The original PNG image (with alpha channel) I used for the test: http://www.omnigsoft.com/TechnicalSu

[android-developers] Re: how to access file system

2008-12-10 Thread EvgenyV
Hi! I have similar question. Can I install any external file xml or text file next to apk like .config file? It will allow me to send updates without actually binary changes. Is it possible? Thanks On Nov 26, 8:18 pm, Christine <[EMAIL PROTECTED]> wrote: > What do you mean by "accessthefilesy

[android-developers] Re: how to access file system

2008-12-10 Thread Mark Murphy
EvgenyV wrote: > Can I install any external file xml or text file next to apk > like .config file? If your program downloads or creates data, it can store the data on the device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www

[android-developers] Re: how to access file system

2008-12-10 Thread Evgeny V
No. There are preferences coming with apk. But I would avoid to include it to apk as reource file(s). It will give the flexibility when will send updates without recompile the apk. Thanks On Wed, Dec 10, 2008 at 10:44 PM, Mark Murphy <[EMAIL PROTECTED]>wrote: > > EvgenyV wrote: > > Can I install

[android-developers] Re: Optional Permissions

2008-12-10 Thread Disconnect
This has been kicked around the #android irc channel off and on for a while, and the basic answer from Google devs seems to be "no, thats not how we want it to work". (Which leads to only one alternative really - ship multiple versions of your app into the marketplace, with different security reque

[android-developers] Re: MapActivity Problem --Debugs but won't launch from signed apk.

2008-12-10 Thread joshbeck
--PROBLEM SOLVED-- The Code Above will generate a simple map if you use a correct api key. (Which I was using.) Here is why the application wouldn't launch: I ran the program with the phone plugged in using Eclipse->Run As- >Android Application: -This ran the map activity, but onl

[android-developers] Re: Is there a way to tell the emulator to kill an activity?

2008-12-10 Thread dar
On osx you select the process and click the "stop" button, and it appears to kill the process. I don't know if that simulates the kernel killing the process selectively though. On Dec 10, 1:35 pm, Cheryl Sedota <[EMAIL PROTECTED]> wrote: > Is there a way to tell the emulator to kill an activity

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread enervatron
On Wed, Dec 10, 2008 at 8:38 AM, Mark Murphy <[EMAIL PROTECTED]> wrote: > openFileInput() gives you a storage spot unique to your application in > the on-board flash. It is not for use for, say, accessing /sdcard. This brings up a question I have: is there an etiquette for apps putting stuff on t

[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator

2008-12-10 Thread Michael
I noticed that lots of apps have been making a mess of my SD card. So when I had to store some data there, I made the decision to keep things cleaner. The path I used is /var/MyProgramName/ and then various directories below. --~--~-~--~~~---~--~~ You received t

[android-developers] SubMenu MenuItem icon?

2008-12-10 Thread Jamie
Is it by design that we can't set icons in a submenu's menu item? SubMenu sub = menu.addSubMenu(...); MenuItem item = sub.add (...); item.setIcon(...); <-- icon does not show up Any Idea? Thanks, J --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Cannot delete rows from sqlite database

2008-12-10 Thread techvd
Ah! I did not realize the setTransactionSuccessful() part. Thanks!! On Dec 4, 2:14 pm, visionera gmbh <[EMAIL PROTECTED]> wrote: > hi, > > you have to use setTransactionSuccessful() as in > > int nRows = 0; > mDb.beginTransaction(); > try { >   nRows = mDb.delete("mytable", KEY_ITEM + "=" + rowId

[android-developers] Re: problem answering a call

2008-12-10 Thread dreamerBoy
I did an upgrade to SDK r2 but it appears to be a Manifest file problem: appears to fix the crash. On Dec 9, 6:04 pm, dreamerBoy <[EMAIL PROTECTED]> wrote: > code: > >       try >

  1   2   >