[android-developers] Re: Getting installed application Size

2009-04-08 Thread Archana
Hi, if you are looking for your apk size.you can go to this path in device and find out settings / Applications / Manageapplication On Apr 8, 1:35 am, strazzere str...@gmail.com wrote: Thats the size on the screen - right? I believe he is asking for the package (apk) file size. This was

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Glen Humphrey
There is an attribute for the TextView control that sets the number of times the marquee animation is repeated. android:marqueeRepeatLimit=number or you can use this method textView.setMarqueeRepeatLimit(int) On Apr 7, 3:30 pm, Moto medicalsou...@gmail.com wrote: Great that works! But I

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Ask
Hi all, Thanks 4 ur reply. Actually I want to call some methods of one Activity (test.check.Test1.java) from another activity (my current activity) at runtime in the separate Thread. In the main GUI Thread this works fine. This Test1.java activity resides in the test.check.apk file which is

[android-developers] Android XMLRPC client

2009-04-08 Thread Saravanan.K
Hi, I have downloaded the XMLRPC library from http://code.google.com/p/android-xmlrpc/downloads/detail?name=XMLRPC.tar.gzcan=2q= and tried using it to access my webservice. I have modified the Test.java file to consume my own webservice. But i was not quite successfull. This is the first time

[android-developers] SMS to mobile

2009-04-08 Thread vinny.s...@gmail.com
Actually i have a confusion By Emulator can we send the SMS to Mobile . i have a an appliction SMS Message can u give any hints if it possible to sent the Sms by emulator means my code is String SENT = SMS_SENT; String DELIVERED = SMS_DELIVERED;

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-08 Thread Al Sutton
I still remember the Lotus Look Feel lawsuits that put a couple of companies out of business in the late 80's early 90's; http://en.wikipedia.org/wiki/Lotus_Development_Corporation#Look_and_Feel Hence why I'm always wary of look and feel claims. As for the statement you've quoted, as I read

[android-developers] Re: Detecting Noise!

2009-04-08 Thread John Doe
Yeah getMaxAmplitude is exactly what I was looking for. I want to run this application as a background service. So I want it to use as little battery power as possible. I dont want it to record voice save it and consume so much battery (though I dont know if saving audio consumes much battery

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-08 Thread Al Sutton
From the same copyright page that was quoted (http://www.copyright.gov/fls/fl108.html); Some material prepared in connection with a game may be subject to copyright if it contains a sufficient amount of literary or pictorial expression. For example, the text matter describing the rules of the

[android-developers] Can javax.xml.parsers.DocumentBuilder be used to parse html?

2009-04-08 Thread quill
Hi, all. My app will recieve html data from Internet. And I want to pick up some usful information in the data. So I use: Reader reader = new InputStreamReader(entity.getContent()); InputSource inputsource = new InputSource(reader); DocumentBuilderFactory dbf =

[android-developers] Re: Send Email Automatically

2009-04-08 Thread mikas
The thing is, this code with external libraries worked fine for me with android-sdk_m5-rc15 and ADT-0.4.0 plugin for eclipse, but you have to install adt plugin manually, and then again you have to use proper javax.mail and activation libraries, I used those from maven java repository, eventually

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread Marco Schmitz
hi, I don't know this framework, but I know the user. pskink. he is an android developer from poland, mostly writing into the forum anddev.org. maybe you can post him a pm there, I am sure he will help you. greetings, darolla ps: maybe you can tell him greetings from darolla ;) 2009/4/8

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread Saravanan.K
Thanks for the reply..I will try there... Also if anyone has used this... please reply Marco if you have any other method to access a WSDL please let me know so that i can try that also Thank you --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread Sandy
seems there has some bugs when parsering struct data. On Wed, Apr 8, 2009 at 4:05 PM, Saravanan.K saravinfot...@gmail.com wrote: Thanks for the reply..I will try there... Also if anyone has used this... please reply Marco if you have any other method to access a WSDL please let me

[android-developers] Re: Activities with different orientations

2009-04-08 Thread Michael Bollmann
thanks for your reply. I figured out that locking to a specific orientation isn't bulletproof anyway since any third party dialog might screw my presentation at any time. I guess i'll HAVE TO provide a landscape display for my main activity that simply states please switch to portrait for proper

[android-developers] Re: ContentProvider instance

2009-04-08 Thread davidandroid2...@yahoo.com
After defined the authority in the manifest, can other class in the application read into the manifest and find out the authority to call ContentProvider? Thanks, David On 4月6日, 上午10时07分, Dianne Hackborn hack...@android.com wrote: I'm not sure what you are asking, but you can't define the

[android-developers] Re: How to update the SDK

2009-04-08 Thread david 1
many thanks. 2009/4/8 Al Sutton a...@funkyandroid.com You'll probably get a better answer in the android-platform or android-framework groups as they tend to deal with extensions to the core OS. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky

[android-developers] Parsing XML from the Net - Using the SAXParser

2009-04-08 Thread AlexNguyen
I really have a problem: When I want to parse this XML file: XML file: marketexport createtime_timestamp1236801648/createtime_timestamp createtime_date11.03.09 - 21:00/createtime_date ressources ressource nameEnergie/name price14/price number11967033/number /ressource /ressources race

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Mariano Kamp
Mariano : I have not used Looper.prepare(), Is it required?? If yes then where and how to define handler for that? I honestly don't understand what you're trying to achieve, so it's hard to answer that question. I once tried to inflate GUIs in a separate thread for performance

[android-developers] Re: Is bionic/libc/include/sys/msg.h removed from cupcake branch?

2009-04-08 Thread Al Sutton
You'll probably get a better answer on the android-framework or android-platform lists as they're focused on the core OS. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909.

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread skink
On 8 Kwi, 04:49, Saravanan.K saravinfot...@gmail.com wrote: Hi, I have downloaded the XMLRPC library fromhttp://code.google.com/p/android-xmlrpc/downloads/detail?name=XMLRPC and tried using it to access my webservice. I have modified the Test.java file to consume my own webservice.

[android-developers] Re: Can javax.xml.parsers.DocumentBuilder be used to parse html?

2009-04-08 Thread Mark Murphy
quill wrote: My app will recieve html data from Internet. And I want to pick up some usful information in the data. So I use: Reader reader = new InputStreamReader(entity.getContent()); InputSource inputsource = new InputSource(reader); DocumentBuilderFactory dbf =

[android-developers] Re: InputMethodService

2009-04-08 Thread Ahmed Azzouz
Thanks for your reply i have downloaded the sample and I started developing my input method. i want to develop a input method but the problem is not knowing what to override and what to call :( . PS im developing a Input method that can recognize handwriting. thanks for your time. On Apr 7, 9:32 

[android-developers] Re: Android XMLRPC client

2009-04-08 Thread skink
Sandy wrote: seems there has some bugs when parsering struct data. Sandy, did you download sources via svn? attached tar.gz may have some problems when parsing structs from old legacy servers --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] HTTP put

2009-04-08 Thread gunar
Hi! I tried to make an HTTP PUT request to send an xml file to a server. Something like: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPut httpPut = new HttpPut(url_encoded); httpPut.setEntity(new StringEntity(the xml goes here)); httpPut.setHeader(Content-Type,

[android-developers] Is bionic/libc/include/sys/msg.h removed from cupcake branch?

2009-04-08 Thread eric
Hi, We use repo sync to get the latest codes of cupcake branch and find that bionic/libc/include/sys/msg.h is removed. Does the msg queue sys call not support any more? Or it just be removed temporarily? Thanks for any help --~--~-~--~~~---~--~~ You received

[android-developers] Software install

2009-04-08 Thread Nithin
Hi to all Is it possible to install software like tinytube etc to emulator... Can anyone tell me about software installation...] Thank You NITHIN N V --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Catch Exception in JavaScript

2009-04-08 Thread kevin
My application uses WebView to load javascript which calls into Java class (through webview javascript iterface). Can the JavaScript catch exceptions thrown from Java? This is very important for the application, any help is appreciated. Thanks Kevin

[android-developers] Re: HTTP put

2009-04-08 Thread Mark Murphy
gunar wrote: Hi! I tried to make an HTTP PUT request to send an xml file to a server. Something like: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPut httpPut = new HttpPut(url_encoded); httpPut.setEntity(new StringEntity(the xml goes here));

[android-developers] How to find the height of HTML content displayed in a webview

2009-04-08 Thread Abraham
HI All, My application generates an HTML file which needs to be displayed to the user . For this purpose I'm using the loadData() API provided by Webview. This HTML file is updated every 2 secs the same is loaded again using loadData() to display the updated values. On reloading the file the

[android-developers] Re: Problem when updating ListView

2009-04-08 Thread Vince
I have an additional problem. The second time the ArrayAdapter is updated, I can't click on any item of the ListView! It seems that ListView loses onListItemClick! But after scrolling using the trackball, everything works well. I'm totally disapointed...

[android-developers] How to update the SDK

2009-04-08 Thread david
Hi Everyone, I've added one new feature to Opencore Framework to let them support encoding qcelp. But I found that Eclipse cannot figure out this new feature, e.g. recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_QCELP);

[android-developers] Re: How to update the SDK

2009-04-08 Thread Al Sutton
You'll probably get a better answer in the android-platform or android-framework groups as they tend to deal with extensions to the core OS. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company

[android-developers] Speed difference between DOM and SAX parser for small documents

2009-04-08 Thread Matthias
Hi, currently, we use the SAX parser bundled with Android to parse XML coming from our servers. We found however that parsing the XML using a SAX handler is prone to errors and difficult to maintain. Therefore I thought about switiching to a DOM parser, and probably also a wrapper around it

[android-developers] How to get the original string data?

2009-04-08 Thread manoj
Hi I am doing a small example which parses the .xml file and displays it. The problem is, I am unable to parse properly. some characters are not displaying properly. for example, there's is displaying as thereâs. I am using dom parser. Can some one please help me to resolve this problem.

[android-developers] Re: Exception locking surface - lockCanvas() returns a null?

2009-04-08 Thread ellipsoidmob...@googlemail.com
Sorry, I misread your code before. It looks the same as lunarview and also the same as my game loop, both of which work fine, so I think it must be something you are doing outside of this code snippet. You do have to unlock for every successful lock (but not if you get a null back), so your code

[android-developers] Re: How to find the height of HTML content displayed in a webview

2009-04-08 Thread for android
Probably these might help you... I have not tried them though..View. getScrollX() and View.getScrollY() and View.scrollTo(int x, int y) On Wed, Apr 8, 2009 at 4:40 PM, Abraham abraham_thamarapal...@yahoo.co.inwrote: HI All, My application generates an HTML file which needs to be displayed

[android-developers] Re: traceview and dmtracedump fails to start

2009-04-08 Thread Magnus
Tried to trace in run mode instead but got another error when trying traceview. Now I get the following error m...@labbe:/tmp$ traceview /tmp/img Exception in thread main java.lang.NumberFormatException: For input string: �Z�MSWIN4.1 � ���SDCARDFAT32U�RRaArrAa ��U��Z�MSWIN4.1 � ���SDCARDFAT32

[android-developers] Re: traceview and dmtracedump fails to start

2009-04-08 Thread Magnus
Forget it I was being stupid. Ran the application without the debugger and traceview worked fine! thx On Apr 8, 3:11 pm, Magnus maneman...@gmail.com wrote: Tried to trace in run mode instead but got another error when trying traceview. Now I get the following error m...@labbe:/tmp$ traceview

[android-developers] Re: MediaRecorder.VideoSource and MediaRecorder.VideoEncoder classes can't be resolved.

2009-04-08 Thread nagaraj attimani
U can check .. does andriod.jar libary has VideoSource VideoEncoder in MediaRecorder class. If it doesn't .. theni it seems till now it is not exposed to framework layer.. On Tue, Apr 7, 2009 at 12:35 PM, Anji anji.sac...@gmail.com wrote: Hello fellow Android developers, I am developing

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Ask
yess right, in short i was trying to instantiate a view comp. Still not clear logic for using Looper. might be Google engineers can answer this. On Apr 8, 6:14 pm, Mariano Kamp mariano.k...@gmail.com wrote: Glad it works. Well, what you were trying to instantiate was a View Component, weren't

[android-developers] how to use the Intent.createChooser ...

2009-04-08 Thread Gerby
to display all audio or media application, which were installed at the android phone? i don't want to set a media file as extra, i only want to show all available applications to play audio or media files. Can somebody help me? Please! Cheers Gerby

[android-developers] Re: Start after boot - autostart

2009-04-08 Thread Mark Murphy
Manfred wrote: Hi! If i insert a receiver in my manifest, my application starts after a reboot: activity android:name=.RNAutostart android:label=RNAutostart/ receiver android:enabled=true android:name=.Autostart

[android-developers] Re: how to let an application as the default app of certain file type

2009-04-08 Thread nEx.Software
This is how I get the filename: File f1 = new File(getIntent().getData().getPath()); I don't know how to enumerate applications which can handle a certain type of file though. On Apr 7, 10:49 pm, Derek xianguan...@gmail.com wrote: the other question is that if I'm develop an file explorer,

[android-developers] Android Market Wait Time

2009-04-08 Thread Kirk
Does anyone know approximately how long it takes for an application to get published in the Android Market? Hopefully it's not like the iPhone App Store where you could be waiting months. Is there an approval process or does it pretty much just get posted up when you pay? Thanks in advance!

[android-developers] Re: Android Market Wait Time

2009-04-08 Thread Ivan Soto
Instant Ivan Soto Fernandez Web Developer http://ivansotof.com On Wed, Apr 8, 2009 at 9:21 AM, Kirk kirk.mora...@gmail.com wrote: Does anyone know approximately how long it takes for an application to get published in the Android Market? Hopefully it's not like the iPhone App Store where

[android-developers] Re: Android Market Wait Time

2009-04-08 Thread admin.androidsl...@googlemail.com
And no need to pay per app (only one time $25 waiting fee). Its kind of weird - with my apps I have submitted them and had reviews within the first 10 minutes. Its actually kind of nervewracking not knowing how the app is going to be received. On Apr 8, 4:23 pm, Ivan Soto ivanso...@gmail.com

[android-developers] Re: how to let an application as the default app of certain file type

2009-04-08 Thread nEx.Software
To get a list of activities which can handle a data type: Intent.queryIntentActivities() or Intent.queryIntentActivityOptions() appear to be the ticket. or, just use: Intent.createChooser() On Apr 8, 7:56 am, nEx.Software justin.shapc...@gmail.com wrote: This is how I get the filename: File

[android-developers] Re: Android Market Wait Time

2009-04-08 Thread Kirk - Actual Metrics
Great! Thanks for the quick responses! On Apr 8, 8:25 am, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: And no need to pay per app (only one time $25 waiting fee). Its kind of weird - with my apps I have submitted them and had reviews within the first 10 minutes.

[android-developers] Re: Android Market Wait Time

2009-04-08 Thread admin.androidsl...@googlemail.com
Sorry $25 waiting fee should read $25 registration fee. A bit tired today! On Apr 8, 4:26 pm, Kirk - Actual Metrics kirk.mora...@gmail.com wrote: Great! Thanks for the quick responses! On Apr 8, 8:25 am, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: And no

[android-developers] Animating a Layout

2009-04-08 Thread mscwd01
How do I animate a Layout? I have a RelativeLayout which sits in a certain position within my Activity; I want to glide it in and out from the bottom of the screen when a certain button is pressed. I have found examples of animating the children of lists etc but this is not what I want. I

[android-developers] Re: Animating a Layout

2009-04-08 Thread mscwd01
I having trouble understanding how to apply and then run an animation with a view though. I create the animation: Animation identityOverlayAnimationIn = new AlphaAnimation(0.0f, 1.0f); identityOverlayAnimationIn.setDuration(5000); identityOverlayAnimationIn = new

[android-developers] Re: Animating a Layout

2009-04-08 Thread Mark Murphy
mscwd01 wrote: I having trouble understanding how to apply and then run an animation with a view though. I create the animation: Animation identityOverlayAnimationIn = new AlphaAnimation(0.0f, 1.0f); identityOverlayAnimationIn.setDuration(5000);

[android-developers] Re: Make My App Available By Intent

2009-04-08 Thread droozen
Sorry. The second way I tried to start the intent was: Intent intent = new Intent(intent.action.VOLUME_CONTROL); startActivity(intent); (without the com.roozen in front) On Apr 8, 11:12 am, droozen droozenr...@gmail.com wrote: Maybe this belongs in the beginners group, but I'm trying to make

[android-developers] Re: Send Email Automatically

2009-04-08 Thread Noam
The problem is that the application will send out an email every 10 seconds. The user can't click send every 10 seconds --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Start after boot - autostart

2009-04-08 Thread droozen
For this kind of operation, using a SharedPreferences object might be a little easier, less dirty, and take less space for you. On Apr 8, 9:52 am, Manfred manfred.fettin...@gmail.com wrote: I write now in a file if the user wants autostart, at booting the file is read and i finish activity if

[android-developers] Re: OOM errors during inflation

2009-04-08 Thread Dianne Hackborn
On Wed, Apr 8, 2009 at 8:27 AM, Ward Willats goo...@wardco.com wrote: If you do a (nested) series of startActivtyForResult() (say 2-3) is the view hierarchy of the parent held in memory (yes, I think). Yes. If so, would a good strategy be to setContentView( null ) in onStop() of the

[android-developers] Re: InputMethodService

2009-04-08 Thread Dianne Hackborn
Have you looked at the documentation on InputMethodService? On Wed, Apr 8, 2009 at 3:59 AM, Ahmed Azzouz ahmeda.azz...@gmail.comwrote: Thanks for your reply i have downloaded the sample and I started developing my input method. i want to develop a input method but the problem is not knowing

[android-developers] Re: how to let an application as the default app of certain file type

2009-04-08 Thread Derek
I called getIntent in both onCreate and onPostCreate, but both return null. below is my test code the caller Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.fromFile(new File(/sdcard/abc.doc))); //int.putExtra(Intent.EXTRA_TEXT, /sdcard/abc.doc); //

[android-developers] Re: how to let an application as the default app of certain file type

2009-04-08 Thread Dianne Hackborn
Use queryIntentActivities(). On Wed, Apr 8, 2009 at 8:25 AM, nEx.Software justin.shapc...@gmail.comwrote: To get a list of activities which can handle a data type: Intent.queryIntentActivities() or Intent.queryIntentActivityOptions() appear to be the ticket. or, just use:

[android-developers] Re: how to let an application as the default app of certain file type

2009-04-08 Thread Dianne Hackborn
Um, getIntent() will never return null in onCreate(). On Wed, Apr 8, 2009 at 10:44 AM, Derek xianguan...@gmail.com wrote: I called getIntent in both onCreate and onPostCreate, but both return null. below is my test code the caller Intent intent = new Intent(Intent.ACTION_VIEW);

[android-developers] Re: How to get the original string data?

2009-04-08 Thread clark
Is this on an android device that you are doing this on? If not, I'd suggest finding a more suitable group. If it is, then do you happen to have some code to show us. Its hard to isolate your problem without knowing how you are approaching it. Regards, ~clark On Apr 8, 5:35 am, manoj

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Dianne Hackborn
On Wed, Apr 8, 2009 at 6:51 AM, Ask asifk1...@gmail.com wrote: yess right, in short i was trying to instantiate a view comp. Still not clear logic for using Looper. might be Google engineers can answer this. Do it on the main thread. If you want to actually run UI on another thread, read up

[android-developers] Re: Exception locking surface - lockCanvas() returns a null?

2009-04-08 Thread mcmc
The exception is thrown the 1st time around the loop. And Unlock is never called, since there was never a successful Lock in the first place... :( Right now, my code looks like this one: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/GLSurfaceView.html

[android-developers] abd shell ps output

2009-04-08 Thread Lucius Fox
Hi, I invoke 'adb shell' process, and did a ps. But in the ps output, I don't any process for 'shell' , can you please tell me why? # ps USER PID PPID VSIZE RSS WCHANPC NAME root 1 0 264 176 c008b8ac c36c S /init root 2 0 0 0 c004b138

[android-developers] Re: Send Email Automatically

2009-04-08 Thread Noam
What interval could I send an email at that won't drain the battery? 30 seconds? 60 seconds? --~--~-~--~~~---~--~~ 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: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Streets Of Boston
Maybe your example is simplified, but if this method you want to call (xyz()) is really this simple (i.e. it does not really need a whole activity and all its functionality (Looper and such)), refactor your code and put this 'xyz()' in a class that is not an activity and refer to this class by

[android-developers] Optimizing a ListView with SimpleCursorAdapter and setViewBinder

2009-04-08 Thread DavidG
In my application, I have a ListView with a SimpleCursorAdapter, and using setViewBinder to format each row of data accordingly. It works, but I noticed while debugging that as I scroll up and down my list, the binder's setViewValue() function is called for each row as it is shown on the screen,

[android-developers] Re: Accessing System Brightness

2009-04-08 Thread Todd Sjolander
Dianne, Is there a new way to do this in Cupcake, or is the functionality being removed? On Mar 23, 1:37 pm, Dianne Hackborn hack...@android.com wrote: This is a private API and will break in Cupcake. -- Dianne Hackborn Android framework engineer hack...@android.com

[android-developers] Re: Optimizing a ListView with SimpleCursorAdapter and setViewBinder

2009-04-08 Thread Romain Guy
SimpleCursorAdapter already does the convertView optimization for you. Just avoid allocations in setViewValue(). On Wed, Apr 8, 2009 at 12:00 PM, DavidG dgu...@gmail.com wrote: In my application, I have a ListView with a SimpleCursorAdapter, and using setViewBinder to format each row of data

[android-developers] Visibility of ImageButton

2009-04-08 Thread intbt
I am trying to change visibility of a button (Image). However this code does not affect the image - any ideas? Prevword_btn = (ImageButton) this.findViewById(R.id.prev_btn); Prevword_btn.setVisibility(View.INVISIBLE); Nextword_btn = (ImageButton)

[android-developers] Re: Visibility of ImageButton

2009-04-08 Thread Mark Murphy
intbt wrote: I am trying to change visibility of a button (Image). However this code does not affect the image - any ideas? Prevword_btn = (ImageButton) this.findViewById(R.id.prev_btn); Prevword_btn.setVisibility(View.INVISIBLE); Nextword_btn =

[android-developers] Re: Accessing System Brightness

2009-04-08 Thread Dianne Hackborn
There is a new API to be able to force the screen brightness while your window is on-screen. On Wed, Apr 8, 2009 at 12:08 PM, Todd Sjolander guyfantas...@gmail.comwrote: Dianne, Is there a new way to do this in Cupcake, or is the functionality being removed? On Mar 23, 1:37 pm, Dianne

[android-developers] Re: Send Email Automatically

2009-04-08 Thread Dianne Hackborn
Basically as little as possible. At the end of the day, you need to run your code on a device, and tune it to make the battery use tradeoff that you think is correct. On Wed, Apr 8, 2009 at 11:49 AM, Noam noam.ha...@gmail.com wrote: What interval could I send an email at that won't drain the

[android-developers] Re: Help...Exception in the Background Thread :Can't create handler inside thread that has not called Looper.prepare()

2009-04-08 Thread Dianne Hackborn
A view is bound to the thread it is created in. (Actually not view itself, but many subclasses have an internal Handler for scheduling work.) Yes, it can be annoying in some cases, but that's the way it is. On Wed, Apr 8, 2009 at 11:49 AM, Mariano Kamp mariano.k...@gmail.comwrote: Hi Dianne,

[android-developers] Re: How To Rotate A View?

2009-04-08 Thread Moto
Anyone? It seems that no one has this problem, or am I looking in the wrong place? --~--~-~--~~~---~--~~ 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: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Moto
Nice! but there is no reverse animation at the end of the slide? because currently it just goes right back to the start... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Romain Guy
That's how the animation behaves. On Wed, Apr 8, 2009 at 1:09 PM, Moto medicalsou...@gmail.com wrote: Nice! but there is no reverse animation at the end of the slide? because currently it just goes right back to the start... -- Romain Guy Android framework engineer

[android-developers] zero duration for some media

2009-04-08 Thread Peter Jeffe
Some audio files return 0 from MediaPlayer.getDuration(), even though they're perfectly valid files that play ok and that players on Windows can find the duration of. There seem to be two different cases here: certain file types such as .wma and .wav always return 0 duration, and others only do

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Moto
It would have been nice to be able to set if you like it to reverse animation at the end... and loop infinity if needed Moto! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How To Rotate A View?

2009-04-08 Thread Moto
I know I say I want a lot on this post :P I guess would be I wis --~--~-~--~~~---~--~~ 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: Sliding Text just like the phone's icon texts??

2009-04-08 Thread Dianne Hackborn
You can implement your own label that does something specific if you want. We can't throw every possible feature for animating text in to TextView. :} On Wed, Apr 8, 2009 at 1:16 PM, Moto medicalsou...@gmail.com wrote: It would have been nice to be able to set if you like it to reverse

[android-developers] Re: Accessing System Brightness

2009-04-08 Thread Dianne Hackborn
It will only modify the screen while that window/activity is being shown to the user. This allows it to be done in a safe way (no permission required) which the system can recover from if there is a bug in the application (or if the application gets killed for some reason, as we tend to do). On

[android-developers] How to use AutoCompleteTextView with SimpleCursorAdapter

2009-04-08 Thread Paul Moore
Hello, I have an application that involves reading a text dictionary file with about 7000 entries, and allowing the user to choose one of these. My first approach was to allow the user to select one of these by using a AutoCompleteTextView together with ArrayAdapterString. This works, but is very

[android-developers] Re: Webview Question: onCreate always get called when activity comes to foreground

2009-04-08 Thread UBZack
I did a little poking around and I think I can DEFINITELY shine some light on this. Basically, I think the difference lies in the way Eclipse ports the apk to the emulator and launches it. I just downloaded GeoWebOne from the AdvAndroid site, created an Eclipse project out of it. No problems

[android-developers] Re: Apps labeled as Tetris Clones removed from Android Market

2009-04-08 Thread fadden
On Apr 8, 12:00 am, Al Sutton a...@funkyandroid.com wrote: Some material prepared in connection with a game may be subject to copyright if it contains a sufficient amount of literary or pictorial expression. For example, the text matter describing the rules of the game, or the pictorial

[android-developers] Re: Problem with writing to SD card / deleting files on it. Number of files relevant?

2009-04-08 Thread fadden
Complaints from the filesystem code will appear in the output of dmesg, not in the Android log file. You may want to check there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How to completely Destroy application

2009-04-08 Thread fadden
On Apr 7, 9:48 pm, manohar manohar...@gmail.com wrote: Thanks, android.os.Process.killProcess(android.os.Process.myPid()); this got worked for me System.exit(), or possibly Runtime.halt(), are quite a bit simpler (and more portable). Initializing your static variables so that your app

[android-developers] Re: calling servlet from application

2009-04-08 Thread mark . kahrl
Yes that is a wonderful feature of Android, in that much of the backend functionality is the same as 'regular' java. You can even stream objects back and forth to servlets, no need for chossy xml/soap type web data services. M On Apr 6, 11:06 am, Mark Murphy

[android-developers] How to completely Destroy application

2009-04-08 Thread Ward Willats
At 3:37 PM -0700 4/8/09, fadden wrote: On Apr 7, 9:48 pm, manohar manohar...@gmail.com wrote: Thanks, android.os.Process.killProcess(android.os.Process.myPid()); this got worked for me System.exit(), or possibly Runtime.halt(), are quite a bit simpler (and more portable). When I call

[android-developers] Uninstall reason survey - where are the results?

2009-04-08 Thread Jesse McGrew
(No response on android-discuss, trying here instead.) I've noticed that when I uninstall applications from my G1, I'm asked to give a reason. I have an application on the market. Is there any way to see the reasons people have given for uninstalling? There's no mention of this in the developer

[android-developers] Re: how to get the first frame of a video file ?

2009-04-08 Thread Wei
Hi Dave, I can build the AP in cupcake \packages\apps folder. But I still want to build the AP in eclipse. Is any way to do that? -wei On 4月6日, 上午9時54分, Wei twc0...@gmail.com wrote: Hi Dave, Are you meaning I can not use this class in my own application? But in

[android-developers] Re: GWT and the Android Browser

2009-04-08 Thread JP
I've done some GWT work in 2007 so I've fired up the site and checked it with Android's browser (for the first time, it never occurred to me to try this out. I also tried Opera Mini but it wouldn't even start loading). 1. I cannot confirm your layout issues. I need to add however that the web

[android-developers] Re: How To Rotate A View?

2009-04-08 Thread Moto
Graphical design restrictions... --~--~-~--~~~---~--~~ 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

[android-developers] list of request codes - their names and values?

2009-04-08 Thread Rob Franz
Hi all I just can't seem to find this anywhere... I've been googling! I have a RingtonePreference in one of my classes and, upon return, the onActivityResult says that the requestCode being returned is 100. Unfortunately, I can't seem to find the *constant name* for this value. Is there a

[android-developers] file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-08 Thread Richard Schilling
O.K., Three problems in one, perhaps all related? My application writes data to a file in the /sdcard directlry. There are no errors during the write. But, the file never shows up on the card, in the file browser (on the device - I use Glance). Where did the file go? When trying to browse

回复: [android-developers] Re: How to delete package programmatically without UI

2009-04-08 Thread Jiang
Thanks for your help. BR, -Jiang --- 09年4月8日,周三, Al Sutton a...@funkyandroid.com 写道: 发件人: Al Sutton a...@funkyandroid.com 主题: [android-developers] Re: How to delete package programmatically without UI 收件人: android-developers@googlegroups.com 日期: 2009,48,周三,2:40下午 A user should always know

[android-developers] Re: Can javax.xml.parsers.DocumentBuilder be used to parse html?

2009-04-08 Thread quill
Thank you for your answer, Mark. I think that the open-source html-parsers in java-source.net should do some fixes in order to run on android. Is there any version for android? And I find that android sdk provides android.text.Html.fromHtml(String source) to parse html data to a Spanned type

Re: 回复: [android-developers] Re: How to del ete package programmatically without UI

2009-04-08 Thread Birjodh Tiwana
This is obvious. Otherwise you can create an app to delete all other apps on your gphone! What an attack that would be ! On Wed, Apr 8, 2009 at 9:47 PM, Jiang webs...@yahoo.cn wrote: Thanks for your help. BR, -Jiang --- *09年4月8日,周三, Al Sutton a...@funkyandroid.com* 写道: 发件人: Al Sutton

[android-developers] Re: Make My App Available By Intent

2009-04-08 Thread Birjodh Tiwana
So did the second way work for you? On Wed, Apr 8, 2009 at 12:24 PM, droozen droozenr...@gmail.com wrote: Sorry. The second way I tried to start the intent was: Intent intent = new Intent(intent.action.VOLUME_CONTROL); startActivity(intent); (without the com.roozen in front) On Apr 8,

[android-developers] Re: file written to /sdcard is missing AND USB Mass Storage option missing AND no browsable drive valid...

2009-04-08 Thread Richard Schilling
Some follow up. I'm actually reading the bytes to put into the file off the internet through a socket. When I open the file for writing, I get this in the DDMS log: 04-09 02:04:35.154: ERROR/SOCKETLOG(323): add_recv_stats recv 0 04-09 02:04:36.684: INFO/global(323): Apr 9, 2009 2:04:36 AM

  1   2   >