[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Al Sutton
Market doesn't stop downloading of applications to devices that don't support copy protection because users with a rooted US G1 firmware are allowed to download the apps (see http://strazzere.com/blog/?p=185). I'm going to play devils advocate here because I can see where many of the posters a

[android-developers] Re: What happens to app when a customer requests a refund?

2009-03-01 Thread Al Sutton
And if copy protection is enabled the application can still be copied and re-installed if the user has access to root (see http://strazzere.com/blog/?p=185 for more details). Al. Inderjeet Singh wrote: > > > On Tue, Feb 24, 2009 at 11:03 PM, vivaital > wrote: >

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Al Sutton
Thread's should never be started in a BroadcastReceiver because the containg task ends when the onReceive method ends. The suggestion at http://developer.android.com/guide/practices/design/responsiveness.html is; "But instead of doing intensive tasks via child threads (as the life of a Broadc

[android-developers] Re: TERRIBLE BUG IN MARKET APPLICATION (was Re: Paid apps related questions discussion list?)

2009-03-01 Thread csvy
I just ran into the problem too, when I updated my application. Now my users are getting Force Quits, but I have no way of knowing the problem, because I cannot buy my own app from the Market, and there is no issue with my local copy :( Do I just instruct the affected users to uninstall and reins

[android-developers] Re: upgrade issues and other market problems for developers

2009-03-01 Thread csvy
I have the problem too :( Do I just instruct the users to uninstall and reinstall? Help!!! On Mar 1, 8:30 am, wayne mcfadden- Red Droid wrote: > I have this problem too. Hopefully google will fix the problem and > remove the one star rankings caused by the download issue. This is > obviosly goin

[android-developers] Re: Think twice before turning on the "Copy Protection" option! -- there's a serious bug in Market

2009-03-01 Thread csvy
I just had the same issue happen to my application. I decided to disable Copy Protection after reading how useless it was, and now everyone is getting Force Quit errors on Activities with a WebView!!! I have turned Copy Protection back on and added a note to the description saying to uninstall th

[android-developers] Re: what's the way to put or access a file onthe sdcard

2009-03-01 Thread Cloudy
would you give me a example .pls thanks 2009-03-02 Cloudy 发件人: Marco Nelissen 发送时间: 2009-02-25 02:09:36 收件人: android-developers 抄送: 主题: [android-developers] Re: what's the way to put or access a file onthe sdcard The sdcard is mounted at /sdcard (or rather: E

[android-developers] Goldfish Kernel 2.6.27 problem for emulator

2009-03-01 Thread Joe Petruchi
Hi I was trying to upgrade the kernel image for emulator from 2.6.25 to 2.6.27. I took the gold fish code and compiled as per the goldfish_defconfig file. Loading the new kernel images gives me the following problem. can anybody help ? It will be even better if some body from the android team a

[android-developers] runtime error using exported/signed apk but no runtime error using Eclipse IDE

2009-03-01 Thread gymshoe
1) I am developing my app in Eclipse 3.4.1 with Android (ver 1.1_r1) plugin. My app compiles and executes without errors when using the Eclipse IDE. However, when I export my app (unsigned) using Eclipse (via {select project} >right-click>Android tools>export unsigned application package), sign

[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Luke Hutchison
Dianne -- I suspect that most people in the community do not share the view that Google is treating developers (including, shock, their own kind, googlers running the holiday image!) as pirates and criminals -- and I don't agree with the original poster on this point -- however thanks for spelling

[android-developers] Re: Order Inbox - symbol meaning?

2009-03-01 Thread Inderjeet Singh
Actually, when the "Charge" button is disabled it means that the credit card is authorized but not charged yet. On Sun, Feb 22, 2009 at 3:22 PM, Stoyan Damov wrote: > > When your "Charge" button is disabled it means that the user has been > charged. But don't get very happy! :) They can cancel in

[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-01 Thread Inderjeet Singh
I agree it would be great to have the user give more feedback on refunds: I guess it needs to be balanced with the ease of use, and I hope that appropriate folks in the Android team are looking at improving it. If you have concrete suggestions, you should consider posting them on this forum or file

[android-developers] Re: What happens to app when a customer requests a refund?

2009-03-01 Thread Inderjeet Singh
On Tue, Feb 24, 2009 at 11:03 PM, vivaital wrote: > > Users seem to be taking advantage of the refund policy. Can anyone > tell me what happens to the app when customers get a refund? The application gets uninstalled from the phone if the customer asks for a refund or the developer cancels the

[android-developers] changing position of button at Runtime

2009-03-01 Thread Imran
Hi All can we change position of Button at Runtime...? Cheers, Imran --~--~-~--~~~---~--~~ 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@googleg

[android-developers] Memory info problem

2009-03-01 Thread Anonymous Anonymous
Hi All, I am trying to re-use a function to get free memory available.But in case of full condition getMemoryInfo() always returns a wrong value. -- ActivityManager actman = (ActivityManager) context.getSystemService(Context

[android-developers] Re: Memory info problem

2009-03-01 Thread Anonymous Anonymous
*typo actman.getMemoryInfo(meminfo); On Mon, Mar 2, 2009 at 10:55 AM, Anonymous Anonymous < firewallbr...@googlemail.com> wrote: > Hi All, > > I am trying to re-use a function to get free memory available.But in case > of full condition getMemoryInfo() always returns a wrong value. > --

[android-developers] Re: How to avoid my background thread been killed ??

2009-03-01 Thread Ashrotronics
First thanks for your response.Ye,I start my new Thread from my activity, But the new thread does sth very important,and it should never be killed by the System as long as my activity is alive ,Any way i can get the message when the system killed my thread ?? On Mar 2, 12:28 pm, Jon Colverson wro

[android-developers] Any Listener for shake movement ?

2009-03-01 Thread gganesh
hi, Is there any Listener able to listen for shake movement . when someone shakes the phone an event should be triggered ,how I'm supposed to do that ,any idea on this topic is appreciable. Thanks ganesh --~--~-~--~~~---~--~~ You received this message because yo

[android-developers] Re: How to avoid my background thread been killed ??

2009-03-01 Thread Jon Colverson
On Mar 2, 3:32 am, Ashrotronics <030440...@163.com> wrote: >    As is mentioned above,What i'm trying is to protect a sub- > thread,and keep it going on as long as the App that starts it is still > alive.In other words,If the system need more resources,Let it kill > both the App main thread and th

[android-developers] Re: How ratio of dp-to-pixel change with the screen density?

2009-03-01 Thread Xiongzh
Thank you very much for your clear explaination. Now I agree with you that we had better use dip/sp as the dimention unit to design the UI. However when we shall use px/mm/pt? On 3月1日, 下午12时16分, Romain Guy wrote: > Hi, > > The reason for dip to exist is simple enough. Take for instance the > T-

[android-developers] Re: Pick multiple contacts from the contacts application

2009-03-01 Thread for android
i saw the source code and i dont think there is a way to pick multiple contacts On Mon, Mar 2, 2009 at 1:31 AM, Sanjay wrote: > > Were you able to figure out how to pick multiple contacts from the > addressbook? Is there a way to do it anyone? I'm using > Intent.ACTION_GET_CONTENT to pick one co

[android-developers] Re: Cookies

2009-03-01 Thread Marco Nelissen
On Sat, Feb 28, 2009 at 10:44 PM, Miles Smith wrote: > How does one go about setting a cookie? > > I have an website that sends mp3's to clients, but the request must have a > cookie attached to it. How would I go about setting a cookie for a > MediaPlayer URL request? Is that even possible? No,

[android-developers] Re: Android Xml / Widget reference?

2009-03-01 Thread Romain Guy
XML tags map to classes. Just look at the documentation of the control you want and it should show the list of valid XML attributes at the top with their Java API equivalent (for instance: http://developer.android.com/reference/android/widget/FrameLayout.html) On Sun, Mar 1, 2009 at 12:01 AM, Chr

[android-developers] Re: Detect existence of an app or intent

2009-03-01 Thread Marco Nelissen
Try PackageManager.resolveActivity() On Sun, Mar 1, 2009 at 6:53 PM, Wah wrote: > > Is it possible for one app A to detect whether another app B or some > intent in B exists? > > I know the package name and the intent name in app B, but I don't want > to invoke the intent. > > Wah > > > --~--~-

[android-developers] Re: How to get an interface on a service without destroying the service at unbind

2009-03-01 Thread Marco Nelissen
Call startService() first, and then after that bind to the service as usual. On Sun, Mar 1, 2009 at 10:46 AM, michael.bollm...@googlemail.com wrote: > > My service works exactly the way i want as long as i use start and > stop > and communicate using intents. > > However my activity needs to c

[android-developers] How to avoid my background thread been killed ??

2009-03-01 Thread Ashrotronics
Hello,everyone! As is mentioned above,What i'm trying is to protect a sub- thread,and keep it going on as long as the App that starts it is still alive.In other words,If the system need more resources,Let it kill both the App main thread and the sub-thread started from it,Instead of just kil

[android-developers] Re: Just learning to write apps

2009-03-01 Thread hanifbbz
On Feb 27, 7:12 pm, BryBam wrote: > So, unfortunately i have no exp whatsoever with writing software. > Just html, xhtml, php, sql basically  just web experience. I'm looking > for a guide on writing a simple app using eclipse, i just installed > the android SDK to it.  Something simple i'd like

[android-developers] Cookies

2009-03-01 Thread Miles Smith
How does one go about setting a cookie? I have an website that sends mp3's to clients, but the request must have a cookie attached to it. How would I go about setting a cookie for a MediaPlayer URL request? Is that even possible? --~--~-~--~~~---~--~~ You received

[android-developers] JKS or PKCS12 Keystores

2009-03-01 Thread Markus
Hi, I've read that I can't import private and public keys from a PKCS12 or JKS-Keystore in order to sign or encode a message within my android- application. Are there any other possibilites to import my private key into an app? Is it planned to support these keystores? --~--~-~--~~

[android-developers] Soap issues

2009-03-01 Thread Seer
Guys, Is there a Soap lib for android? I know Soap is not the best for the android but the web services i wish to use are written in soap. I have tried ksoap2 but none of the versons of ksoap i have been able to find will work with android sdk 1.0 or 1.1. I have tried a version of ksoap2 hosted

[android-developers] Re: Easy Eclipse Help?

2009-03-01 Thread abhi
Hi Noam, I am relatively new to Java so don't know what exactly is the issue, maybe there is a shortcut or something, but if I were you I would also post the query in the eclipse forum at eclipse website to get a prompt reply.How about removing all of the equal sign and the code next to it a

[android-developers] Re: Detect shaking

2009-03-01 Thread Miles Smith
As I haven't really implemented anything with the accelerometer yet, I don't know exactly, but I would go about it by monitoring normal, non-shaking values from the sensor, then anything that fell out of those ranges for a certain amount of time would be considered shaking. my 2 cents. On Sun, Ma

[android-developers] Re: Need Official HOW-TO: Upgrade from Original ADP1 firmware to RC33

2009-03-01 Thread MF
This is great news! Where will the ADP1 images be deployed to; i.e. is there an official site (e.g. developer.android.com)? MF On Feb 17, 4:51 pm, Jean-Baptiste Queru wrote: > We're working on having an official 1.1 system image available for the ADP1. > > It will not be PLAT-RC33, which is spe

[android-developers] Re: "Notepad Exercise 1 solution" gives weird errors

2009-03-01 Thread plankeye
Just in case you haven't gotten an answer yet, there are three unwanted files in the Notepadv1\src\com\android\demo\notepad1 directory. Delete these files and refresh the project and you'll be on your way. On Feb 22, 4:33 pm, mpxy wrote: > Hi everybody, > I'm a beginner in development in Androi

[android-developers] Regarding installation of application in memory card in G1

2009-03-01 Thread hoffy
Hi, Just wondering how can we install the applications in my memory card of HTC dream...cause by default it gets installed in the phone memory and my memory is very low now thanks cheers --~--~-~--~~~---~--~~ You received this message because you are subscri

[android-developers] Android application without UI

2009-03-01 Thread Javier Segura
Hello All, I've written a simple app for android that changes the content of a System Setting. For use it I create a simple Activity that makes the job. When I execute this app it shows for less than a second a black ui (the layout of this activity). There is any method for refactor my app in a "

[android-developers] Applicatiom Image Location

2009-03-01 Thread ozkasga...@gmail.com
Hello All, I am triying o make a new Android Template and currently I am working on Windows Emulator. In order to make a better theme I wan to use default Android application icons. Such as the Contacts icon, Google Map Icon, Dialer Icon ect... I have checked every where in emulator. I have look

[android-developers] Scroling in ListView

2009-03-01 Thread lukewar
Hello, I have a ListView and sometimes I need to refresh it but i would like to scroll back to the place before refreshing. Please Help. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] How to get an interface on a service without destroying the service at unbind

2009-03-01 Thread michael.bollm...@googlemail.com
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information. So i thought it would be nice to broadcast some kind of state_changed event from my service

[android-developers] Device Interface to Android Phone

2009-03-01 Thread Mike E K
I'd like to develop a device that interfaces to a G1 or other upcoming Android phone. The phone would be docked to this device in order to provide some external functionality. The G1 has the following interface - HTC ExtUSB™ (11-pin mini-USB 2.0 and audio jack in one) - but I'm not sure if this is

[android-developers] Android Xml / Widget reference?

2009-03-01 Thread Chris Smith (Quirk Software)
Hey. To be plain, the android / xml widget reference material is poor at best. Rather than approaching the controls from an xml point of view, its all driven from a class point of view, which is clunky when you want to figure out how to build a good xml UI. Is there any decent documentation wit

[android-developers] Applicatiom Image Location

2009-03-01 Thread ozkasga...@gmail.com
Hello All, I am triying to build a new template for Android. I am looking for source of the menu items icons, such as Contacts icon, Dialer icons, Map icon etc... I found other graphics but I could not find the location of menu item icons. Can some body show me location of the icons. Thx in adv

[android-developers] Re: unzip

2009-03-01 Thread BenAveling
> > > # An unexpected error has been detected by Java Runtime Environment: > > > # > > > #  Internal Error (classFileParser.cpp:2924), pid=3624, tid=6748 > > > #  Error: ShouldNotReachHere() > > > # > > > # Java VM: Java HotSpot(TM) Client VM (10.0-b23 mixed mode windows- > > > x86) > > > # An err

[android-developers] execute unix command from an android app

2009-03-01 Thread ledzgio
hi all guys, I'am new of Android developement... how can i execute a unix command from an android application? i want to execute the setprop command from an activity and set DNS from a simple UI.. anyone knows how to do it? thanks --~--~-~--~~~---~--~~ You rec

[android-developers] help about SMS BroadcastReceiver conflict with GPS LOCATION_SERVICE

2009-03-01 Thread Kevin AN
code is here: public void onReceive(Context context, Intent intent) { LocationManager lm = (LocationManager) context.getSystemService (Context.LOCATION_SERVICE); loc = lm.getLastKnownLocation("gps").toString(); PendingIntent dummyEvent = PendingInt

[android-developers] Re: How to use proxy server on the g1?

2009-03-01 Thread sparso
Hello, I've written an application which may help, it allows you to use the browser from behind a proxy server on a WIFI network. Search for the "ProxySetting" application on the market (its free). At the moment Android only allows proxy information to be used when you are connected to a GPRS/3G

[android-developers] Re: Pick multiple contacts from the contacts application

2009-03-01 Thread Sanjay
Were you able to figure out how to pick multiple contacts from the addressbook? Is there a way to do it anyone? I'm using Intent.ACTION_GET_CONTENT to pick one contact but don't know if it's possible to pick multiple contacts. On Feb 17, 5:20 am, for android wrote: > Is there any Intent for pick

[android-developers] Re: SAXParser fails on some RSS feeds

2009-03-01 Thread 3D
I just wanted to report that I've tried TagSoup and at first glance it seems to be doing exactly what I want - this is great! Instead of using a SAXParserFactory I'm now using the SAXFactoryImpl class in TagSoup to instantiate a new SAXParser. I will need to look it over a bit more but it just p

[android-developers] Re: what happened to Logcat inside eclipse?

2009-03-01 Thread 3D
Ok, I found it. Thanks. On Mar 1, 5:49 pm, Charlie Collins wrote: > Definitely still there with 1.1. Maybe you closed the view, or > something is corrupt? You can open just that view (Eclipse view I > mean). Window->Show View->Android-> pick from there. > > http://code.google.com/android/intro

[android-developers] Detect existence of an app or intent

2009-03-01 Thread Wah
Is it possible for one app A to detect whether another app B or some intent in B exists? I know the package name and the intent name in app B, but I don't want to invoke the intent. Wah --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 4:55 PM, Paper Coder wrote: > I didn't realize it wouldn't return the media player until it was ready to > play. > > Now the methods in media player make much more sense.  I was wondering why > there wasn't a way to create a new media player object with the new keyword, > t

[android-developers] Re: Detect shaking

2009-03-01 Thread JP
Don't expect it to be terribly accurate. Good luck. On Mar 1, 5:58 pm, Charlie Collins wrote: > You probably want the SensorManager and SensorListener: > > http://code.google.com/android/reference/android/hardware/SensorManag... > > http://code.google.com/android/reference/android/hardware/Sens

[android-developers] Re: Detect shaking

2009-03-01 Thread Charlie Collins
You probably want the SensorManager and SensorListener: http://code.google.com/android/reference/android/hardware/SensorManager.html http://code.google.com/android/reference/android/hardware/SensorListener.html Also TiltLander has a nice concise example: http://code.google.com/p/tiltlander/sour

[android-developers] webview problems when rendering HTML and using loadData

2009-03-01 Thread Clay
I know that many of you know this already but I am making a post because I spent 5 hours trying to figure out why loadData was not working. This does not pop up easily in searches of the mailing list. TAGS: webview background white android loadData WebView momentContent =

[android-developers] Re: what happened to Logcat inside eclipse?

2009-03-01 Thread Charlie Collins
Definitely still there with 1.1. Maybe you closed the view, or something is corrupt? You can open just that view (Eclipse view I mean). Window->Show View->Android-> pick from there. http://code.google.com/android/intro/develop-and-debug.html#developingwitheclipse On Mar 1, 6:39 pm, 3D wrote: >

[android-developers] Re: Android source code to find out which drawable a widget should use for its background?

2009-03-01 Thread Romain Guy
Hi, You should look at StateListDrawable.java. On Sun, Mar 1, 2009 at 4:50 PM, Meryl Silverburgh wrote: > > Hi, > > Can you please tell me where is the android code which picks the > different drawable will be used as background > when it has focus? > > For example, I have the following setup f

[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Dianne Hackborn
The whole premise of this discussion is wrong. What has happened is: 1. The developer asked for their application to be copy protected with forward locking. 2. The user is running a phone that is unlocked, so can not do that kind of copy protection. 3. The Market does not allow the user to downlo

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Paper Coder
I didn't realize it wouldn't return the media player until it was ready to play. Now the methods in media player make much more sense. I was wondering why there wasn't a way to create a new media player object with the new keyword, then set the resource id. Thanks! On Mon, Mar 2, 2009 at 12:03

[android-developers] Android source code to find out which drawable a widget should use for its background?

2009-03-01 Thread Meryl Silverburgh
Hi, Can you please tell me where is the android code which picks the different drawable will be used as background when it has focus? For example, I have the following setup for my widget: http://schemas.android.com/apk/res/android";> Where is the android code which finds out whi

[android-developers] Re: How to enable debug logging in android source

2009-03-01 Thread ying lcs
Thank you. In the View.java, it has code (see below), when will public void debug() get called? Or how to call that function? /** * Prints information about this view in the log output, with the tag * {...@link #VIEW_LOG_TAG}. * * @hide */ public void debug() {

[android-developers] Re: Check EditText for email?

2009-03-01 Thread Mark Murphy
Noam wrote: > Hello everyone, > Is there a way to verify that the text that the user entered into the > EditText widget is actually an email? http://www.google.com/search?q=email+address+validation+java -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Dev

[android-developers] Re: speech to text api

2009-03-01 Thread Rob Franz
I asked the same question. The answer is no, unfortunately. -Rob On Sun, Mar 1, 2009 at 12:24 AM, Zi Yong Chua wrote: > > hi guys > > since android now has speech to text search, anyone know if the API is > available to the developers? > > > --~--~-~--~~~---~--~

[android-developers] what happened to Logcat inside eclipse?

2009-03-01 Thread 3D
With SDK 1.0 I liked using Logcat inside Eclipse. I can't find it with SDK 1.1 so I'm using Logcat in terminal but its not as nice - no color-coding and more difficult to read. Is it still there in Eclipse? --~--~-~--~~~---~--~~ You received this message because y

[android-developers] Re: openGL ... does it make sense?

2009-03-01 Thread Streets Of Boston
I wrote my app using OpenGL. It's "The Gube". The phone is pretty good at rendering the OpenGL vertices, textures, lighting, etc. It works well for my app. There is a bit of a learning curve for OpenGL. But it's doable. It did it :-). The main thing to keep in mind that OpenGL is implemented as a

[android-developers] Re: Assuming Developers are Pirates

2009-03-01 Thread Disconnect
I meant to reply earlier, didn't get a chance. Something you may (or may not) find amusing. So far, google has only assumed their OWN EMPLOYEES are thieves. (Yes, they've said the same restrictions are in the unreleased adp1.1 image, but since its unreleased that could still change..) There is NO

[android-developers] Re: anyway to return to original activity after call ends?

2009-03-01 Thread stematt
Thanks! This defenitely helps, although not an ideal solution. I've tried doing something in phone state listener but didn't work out, still keep looking... On Mar 1, 6:23 am, TAKEphONE wrote: > Hi, > > Been trying to do the same myself. > > Could not find a way besides adding the > >          

[android-developers] Re: How to get auth token (GoogleLoginService?)

2009-03-01 Thread Christine
I can see why the user's Google credentials are not accessible to just any app. I wouldn't want apps to be able to use my Google credentials unless I specify that it's ok. The minimum requirement would be that access to Google credentials would require a line in the manifest file so the user knows

[android-developers] Detect shaking

2009-03-01 Thread J . Pablo Fernández
Hello, Is there an easy way to detect shaking of the phone? Or do I have to implement it myself by monitoring the sensors? If so, any hints on how shaking looks like from the sensor point of view? Thanks. -- J. Pablo Fernández (http://pupeno.com) --~--~-~--~~~---~--

[android-developers] Animation Styles

2009-03-01 Thread skink
hi, i tried to use my popupWindow with some enter/exit animations - it has setAnimationStyle() method for that purpose. after some time i realized i cannot use my own custom animation styles which is ok but a bit limiting. so i tried system ones: R.style.Animation_Toast works ok, but R.style.Ani

[android-developers] openGL ... does it make sense?

2009-03-01 Thread robotissues
I am in the thick of developing an app for the G1. My app is in 2D now ... I am imagining what it would look like in 3D ... I am trying to determine if its worth the effort to go down this road and would appreciate feedback from users who have actually worked with it. 1.) What is the real world

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-01 Thread Derek
To get the login form, use: String url = "http://m.flickr.com/signin/";; On Mar 1, 9:03 pm, Derek wrote: > Hi all, > > I'm facing the following problem. I'm opening Flickr HTML login form > with default Android browser and everything works fine when I'm > logging (click "sign in" button in HTML

[android-developers] HTML login form works in Android browser and fails with WebView ?

2009-03-01 Thread Derek
Hi all, I'm facing the following problem. I'm opening Flickr HTML login form with default Android browser and everything works fine when I'm logging (click "sign in" button in HTML form): String url = "http://m.flickr.com/";; Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW);

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Dianne Hackborn
Yeah that is the correct way to do this.- On Sun, Mar 1, 2009 at 10:50 AM, Jon Colverson wrote: > > I don't think it's valid to start a Thread in a BroadcastReceiver. The > system doesn't know anything about that thread, so it wouldn't know > that it's supposed to keep the process hosting it aro

[android-developers] Check EditText for email?

2009-03-01 Thread Noam
Hello everyone, Is there a way to verify that the text that the user entered into the EditText widget is actually an email? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Jon Colverson
I don't think it's valid to start a Thread in a BroadcastReceiver. The system doesn't know anything about that thread, so it wouldn't know that it's supposed to keep the process hosting it around. My app nanoTweeter does similar background polling and I acquire the WakeLock in the BroadcastReceive

[android-developers] Re: setImageResource causes NullPointerException, so does setVisibility(View.GONE)

2009-03-01 Thread Will
D'oh. Thank-you for the second set of eyes. On Mar 1, 11:46 am, Mark Murphy wrote: > Will wrote: > > I have this exact same problem as here: > >http://groups.google.com/group/android-beginners/browse_frm/thread/da... > > > ImageView IV; > > IV = (ImageView) findViewById(R.drawable.top); > > IV.

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 9:43 AM, Mariano Kamp wrote: > Thanks for not giving up on me ;-) > > I thought about that, but the log shows that I acquired the lock and then > nothing more happens. Except in the last example you gave, where it doesn't even get to the acquire. > Also I would need to us

[android-developers] Re: Easy Eclipse Help?

2009-03-01 Thread Noam
Anyone? --~--~-~--~~~---~--~~ 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-develop

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Mariano Kamp
Thanks for not giving up on me ;-) I thought about that, but the log shows that I acquired the lock and then nothing more happens. Also I would need to use a Thread.join() in the onReceive Method to wait for the thread to finish, which would lead to a long execution of the onReceive() method. If

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Marco Nelissen
One thing you might want to try is to grab the wakelock in the receiver itself, not in the thread. The way it is now, it's theoretically possible for the receiver to exit and the phone to go back to sleep before your threads ever gets a chance to run. On Sun, Mar 1, 2009 at 9:27 AM, Mariano Kamp

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Mariano Kamp
> I realized that almost immediately after hitting 'send' :), Story of my life ;-) That happens all too often to me. >but you still seem to be holding a wakelock for 30 minutes. Yes, I do, but I think for the right reasons. I want to download something in the background and don't want my Thread to

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 9:20 AM, Mariano Kamp wrote: > Marco, > >   thanks for taking the time to respond. > >   (a) If you look at the code ( http://pastie.org/403831) you'll see that it > is in fact a custom log file (see class Persistent Log). The reason behind > that is to be able to have a lo

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Mariano Kamp
And btw. I should have mentioned that the 30 minutes sleep is a placeholder for the real action. In my case that would be downloading stuff from the net. But to show that it doesn't depend on the workload and make it more abstract I just put a sleep in there. On Sun, Mar 1, 2009 at 6:20 PM, Marian

[android-developers] Re: Dev Phone and RC33 update

2009-03-01 Thread Al Sutton
Any attempts by anyone to create a repeatable method that can crack the system for any desired app would be welcomed. I'd rather any problems were named and shamed that try and hide them. Al. Jon Colverson wrote: > On Mar 1, 9:17 am, Al Sutton wrote: > >> I think we're going to have to agr

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Mariano Kamp
Marco, thanks for taking the time to respond. (a) If you look at the code ( http://pastie.org/403831) you'll see that it is in fact a custom log file (see class Persistent Log). The reason behind that is to be able to have a look at the problem over a longer period of time as it doesn't occur

[android-developers] Re: How to intercept KEYCODE_DPAD_CENTER correctly?

2009-03-01 Thread Teo
That did the trick! Thanks! It's a bit complicated... My app is a todo list, and i kind of have a symmetric concept (touch vs. keyboard) there's basically nothing you can't do in either of them. Theoretically there could be an infinity of views, and it would be a little too much overhead to set the

[android-developers] Re: Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Marco Nelissen
It looks like the output you posted is from your custom log file, so the first thing I'd do is to look at the system log to make sure that the problem isn't in your custom logging code. Also, doing anything lengthy in a broadcast receiver is a Bad Idea, and keeping the device awake while you're do

[android-developers] Re: Can I download my code off my phone?

2009-03-01 Thread Edward Falk
I'm going to guess that the only thing installed on your phone is compiled bytecode. There *might* be a way to fetch it back out of the phone with adb, but you'd still have to de-compile the byte code back to Java. Frankly, I think you'd be better off just reconstructing your work. --~--~---

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 8:45 AM, Paper Coder wrote: > So if I load a large sound from a resource, is there any way to tell if it's > ready to play?  I wish there was an isPrepared method for media player.  As > it stands now there seems like there's no way to know for sure. Of course there is: pr

[android-developers] Re: How to get more sales on the Android Market

2009-03-01 Thread Marco Nelissen
I think what Inderjeet meant is that non technical users don't make a conscious choice to use linux. For example, they won't install linux on their desktop PC. The G1 uses a linux kernel and that's about it. Saying that G1 users are linux users is about as useful as saying that people who have Tiv

[android-developers] Re: Is there a standard list of android icons for our apps?

2009-03-01 Thread Edward Falk
On Feb 28, 3:58 am, lotusscript wrote: > http://www.screaming-penguin.com/info/android_drawables/android_drawa... Thank you, that's an excellent visual guide. I realized, after the fact, that the list found in R.drawable is probably the canonical list if there is such a thing. I did note, ho

[android-developers] Re: setImageResource causes NullPointerException, so does setVisibility(View.GONE)

2009-03-01 Thread Mark Murphy
Will wrote: > I have this exact same problem as here: > http://groups.google.com/group/android-beginners/browse_frm/thread/daa2634b42a2975/415dd6e5bf920157?lnk=gst&q=How+to+declare+images+for+ImageView#415dd6e5bf920157 > > ImageView IV; > IV = (ImageView) findViewById(R.drawable.top); > IV.setIma

[android-developers] Re: Need Official HOW-TO: Upgrade from Original ADP1 firmware to RC33

2009-03-01 Thread Disconnect
Yes, but its not official for adp1. It works great, its from google and it is a worldwide image (so no myfaves mess) and its got sdk1.1, but if you want the official -adp1- image from google its not the answer. (Quick recap, to avoid questions from latecomers :) The old "adp1.1" image that was lea

[android-developers] Re: How to intercept KEYCODE_DPAD_CENTER correctly?

2009-03-01 Thread Marco Nelissen
You could try grabbing it in dispatchKeyEvent(), however if another view (visibly) has focus, then your application's users are going to be confused when pressing the trackball does not invoke the selected item, but does something else instead. Can you make your views non-focusable instead? On

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Paper Coder
So if I load a large sound from a resource, is there any way to tell if it's ready to play? I wish there was an isPrepared method for media player. As it stands now there seems like there's no way to know for sure. On Mar 1, 2009 11:40 PM, "Marco Nelissen" wrote: On Sun, Mar 1, 2009 at 7:40 A

[android-developers] Problems with background activities or partial locks or something completely altogether?!

2009-03-01 Thread Mariano Kamp
Hi, I don't really know how to phrase my question as I don't know what the problem is. The symptom is that scheduled background activities are not completed and I want to know why that is and how I can further debug/solve it. This is happening with NewsRob and the background synchronization t

[android-developers] setImageResource causes NullPointerException, so does setVisibility(View.GONE)

2009-03-01 Thread Will
I have this exact same problem as here: http://groups.google.com/group/android-beginners/browse_frm/thread/daa2634b42a2975/415dd6e5bf920157?lnk=gst&q=How+to+declare+images+for+ImageView#415dd6e5bf920157 ImageView IV; IV = (ImageView) findViewById(R.drawable.top); IV.setImageResource(R.drawable.qu

[android-developers] Re: Media Player callbacks only function for an Activity?

2009-03-01 Thread Marco Nelissen
On Sun, Mar 1, 2009 at 7:40 AM, madcoder wrote: > > I thought I had solved this problem here > > http://groups.google.com/group/android-developers/browse_thread/thread/260f2951d4a23445/d676c2a7d6b66c20?hl=en&lnk=gst&q=onpreparedlistener#d676c2a7d6b66c20 > > but apparently not. > > > I have succes

[android-developers] Re: Dev Phone and RC33 update

2009-03-01 Thread Jon Colverson
On Mar 1, 9:17 am, Al Sutton wrote: > I think we're going to have to agree to disagree. > > As I see it you're not willing to factor in the difficulty level in > cracking the system and implementing a generic method as a > differentiating factor between the protection methods, whereas my > viewpo

[android-developers] Re: upgrade issues and other market problems for developers

2009-03-01 Thread wayne mcfadden- Red Droid
I have this problem too. Hopefully google will fix the problem and remove the one star rankings caused by the download issue. This is obviosly going to affect everyone who publishes to the marketplace so just balance it out. On Feb 28, 2:39 pm, "carnivalcom...@gmail.com" wrote: > I agree that Go

  1   2   >