[android-developers] Should onSaveInstanceState call super?

2009-01-28 Thread J . Pablo Fernández
Hello, At the beginning of my onSaveInstanceState I was calling super.onSaveInstanceState(outState) and everything was working fine. But now I wrote an instrumentation test case which basically does: Activity activity = getActivity(); getInstrumentation().callActi

[android-developers] Re: How do you save the state of an activity on an ActivityUnitTestCase

2009-01-28 Thread J . Pablo Fernández
Thanks. I did give ActivityInstrumentationTestCase a try but it didn't work. Now I gave it another try with a fresh look and it's partly running (the test is failing, but I believe the problem is somewhere else so if I post I'd do it as another thread). On Sat, Jan 24, 2009 at 9:19 AM, Andrew Sta

[android-developers] Re: Dial a USSD code

2009-01-28 Thread sabdart
Not a bug and it is in the documentation (http://code.google.com/ android/reference/android/net/Uri.html) I should have been escaping the # symbol with %23 String encodedHash = Uri.encode("#"); startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:**004*+668190099" + encoded

[android-developers] DEVICE_POWER permission denied for using goToSleep

2009-01-28 Thread mnj
Hi, I wanted to use the funcion goToSleep() in PowerManager Class to force the device to sleep. But I'm getting an exception and the application crashes when I call this function. I already have added the DEVICE_POWER permission in Androidmanifest.xml. When I checked the logs I could see below er

[android-developers] AdMob for Android

2009-01-28 Thread dbradby
If anyone is interesting in putting some ads in their apps, AdMob released an SDK today. Seems to work ok and I put a quick start guide together on http://jtribe.blogspot.com/2009/01/admob-for-android.html Hope it helps ... Daniel -- iPhone, Android and Geolocation ramblings - http://jtribe.blo

[android-developers] maps not getting displayed

2009-01-28 Thread sankalp
hi group i was making a location based service applictaion but i was not getting maps rendered in to my mapview . i checked the ddms log i saw an error in mapactivty tags "couldnt get connection factory client" please can anyone help out of this .ASAP thnx sankalp --~--~-~--~~-

[android-developers] Not able to build Browser Source Code on android-sdk-windows-1.0_r1

2009-01-28 Thread Pratap
Hi All I am trying to build the Browser source code downloaded from the http://android.git.kernel.org/ site with android-sdk-windows-1.0_r1. I am getting a lot of compilation errors and it seems that many classes are missing in 1.0 which are being used by the Browser. I am stuck into this and no

[android-developers] For launching a camera from appl which action requires?

2009-01-28 Thread jj
For launching a camera from appl which action requires? If start a camera from my appl and captured image, how should I pick-up (retrieve) that current image to my appl from camera provider. what is process for this(which Uri). --~--~-~--~~~---~--~~ You received th

[android-developers] Re: Is SDK(r2) support camera capture from desktop devices * (webcams etc). ?

2009-01-28 Thread jj
In other words, What I mean is to pick current image from camera provider which is captured by my appl, So how should I achieve this, some body suggest me process. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Re: Is SDK(r2) support camera capture from desktop devices * (webcams etc). ?

2009-01-28 Thread jj
Actually I am working on emulator, dont have android phone, I am developing app of capture image using camera and use that in my appl. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" gr

[android-developers] Is SDK(r2) support camera capture from desktop devices * (webcams etc). ?

2009-01-28 Thread jj
Is SDK(second release) support for camera capture from desktop devices * (webcams etc). ? If no Since real device have its camera. so how should I code for appl which capture images from camera? Thank you --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: JavaScript XMLHTTPRequest

2009-01-28 Thread kevin
Can you point me to an example of implement native layer? Is it just a javascript interface call back object which register in webview? Thanks, Kevin On 1月27日, 下午9时53分, Tez wrote: > Hi, > > Basically, AJAX calls are not allowed within the android web view > I implemented a native layer that int

[android-developers] Re: How to Code following logic to make a turning effect of page.

2009-01-28 Thread Kather Jailani
Hi, You can do it, but you have cross the bridge...to Microsoft, please search for MSDN magazines(2008) for the logic, The algorithm is provided in one of the articles. On Wed, Jan 28, 2009 at 12:59 AM, tahera rabadi wrote: > hello, > > Here, i m proposing a logic to make a turn over of page

[android-developers] Re: Context of a class

2009-01-28 Thread Immy
Thanks a lot guys... That should solve my problem.. On Jan 29, 8:28 am, Dianne Hackborn wrote: > Don't use getBaseContext(), just use the Context you have. > > And if you are doing something from a background service, Service is-a > Context, so you can just use the service instance. > > > > On W

[android-developers] Re: MapsApplication missing from source code?

2009-01-28 Thread Dianne Hackborn
I don't think anyone will have time to put together such a thing. There is lots of sample code showing how to use it. On Wed, Jan 28, 2009 at 8:07 PM, jsm wrote: > > If thats the case, could you provide some samples of the > implementation to understand the views created, the search, etc.? > >

[android-developers] Re: MapsApplication missing from source code?

2009-01-28 Thread jsm
If thats the case, could you provide some samples of the implementation to understand the views created, the search, etc.? On Jan 28, 11:01 pm, Jean-Baptiste Queru wrote: > It's not part of the Android platform, it's a Google-proprietary > add-on that is not open-source. > > JBQ > > > > On Wed,

[android-developers] Re: startup sequence

2009-01-28 Thread Dan Raaka
I think this will really help you .. http://sites.google.com/site/io/anatomy--physiology-of-an-android -Dan On Jan 28, 12:42 pm, Dianne Hackborn wrote: > The system doesn't generally install .apks during boot, and doesn't start > any application services during boot (there are a handful of sys

[android-developers] Re: Context of a class

2009-01-28 Thread Dianne Hackborn
Don't use getBaseContext(), just use the Context you have. And if you are doing something from a background service, Service is-a Context, so you can just use the service instance. On Wed, Jan 28, 2009 at 7:26 PM, suhas gavas wrote: > > try passing getBaseContext() in place of this > > > > > On

[android-developers] Re: Context of a class

2009-01-28 Thread suhas gavas
try passing getBaseContext() in place of this On Wed, Jan 28, 2009 at 9:28 PM, Immy wrote: > > Hi, > > Thanks for the reply.. > > This is what I'm doing in all other classes, which happen to be > Activities... > But here, > > Database_mob mDbHelper = new Database_mob(this); > > generates an er

[android-developers] Force close (exception) during rotation

2009-01-28 Thread Sean E. Russell
I have a strange problem where, if the screen is rotated while a dialog is displayed, an exception gets thrown every time. It happens _only_ during this single dialog, and the exception is thrown outside of the app (there's no trace information that touches any of my code). It happens in both th

[android-developers] Re: Updated app not showing up in Market's "by date" sorting?

2009-01-28 Thread Sean E. Russell
That sounds like it would do it. I don't dislike new versions being bumped to the top, actually. That's how I keep track of which ones have new versions, to be honest... only now I know it isn't a reliable way to do that. --- SER On Jan 26, 8:01 am, A T wrote: > Yeah, I did that by accident on

[android-developers] Re: Simultaneous Photography using Andriod

2009-01-28 Thread Faber Fedor
As Dave Sparks pointed out, it shouldn't be too difficult to do this, at least from the Android side. I haven't played with the camera yet, so I can't give any concrete tips. Have you thought how you are going to coordinate the "thousands of users"? For that, IMO, you're going to need a website th

[android-developers] Re: Instantiating a layout from an xml file and/or resource id

2009-01-28 Thread steele johnson
Thank you, I'll give it a try. On Jan 28, 9:05 pm, Mark Murphy wrote: > steele johnson wrote: > > Hello, > > I'm interested in instantiating a LinearLayout object from an xml file > > that has a LinearLayout file configuration. I want to do this within a > > method of my Activity. > > > I tried

[android-developers] Re: Instantiating a layout from an xml file and/or resource id

2009-01-28 Thread Mark Murphy
steele johnson wrote: > Hello, > I'm interested in instantiating a LinearLayout object from an xml file > that has a LinearLayout file configuration. I want to do this within a > method of my Activity. > > I tried findViewById() but that returned null. I've made sure that the > LinearLayout id is

[android-developers] Instantiating a layout from an xml file and/or resource id

2009-01-28 Thread steele johnson
Hello, I'm interested in instantiating a LinearLayout object from an xml file that has a LinearLayout file configuration. I want to do this within a method of my Activity. I tried findViewById() but that returned null. I've made sure that the LinearLayout id is the one I'm passing. Note that this

[android-developers] Re: Apple Granted Multitouch Patent

2009-01-28 Thread gjs
Hi, Maybe EFF's Patent Busting Project can help - http://w2.eff.org/patent/ Regards On Jan 29, 4:37 am, JP wrote: > On Jan 28, 8:05 am, Al Sutton wrote:> You can see > from the article > athttp://www.infoworld.com/article/09/01/16/Firm_seeks_to_bar_Nokia_RIM... > > that the worst that a fi

[android-developers] Re: orange in R.color ?

2009-01-28 Thread gsmd
Thanks, I'll have a try. Do you know a way to achieve the same in .xml? On Jan 17, 5:41 pm, android_soft wrote: > getBaseContext().getResources().getDrawable > (android.R.drawable.list_selector_background) > > On Jan 17, 2:49 am,gsmd wrote: > > > Thanks! Could you plz suggest how to dynamically

[android-developers] SharedPreference bug - commit() always returns false

2009-01-28 Thread Justin (Google Employee)
I just got bit by http://code.google.com/p/android/issues/detail?id=940 and a search for related issues on this group and the web didn't seem to be very helpful. Hopefully this post will end up being more findable for those in a similar situation. Also note that this bug is already fixed and the

[android-developers] Need help in running the android junit test case for andriod APIDemo in eclipse

2009-01-28 Thread ying...@gmail.com
Hi, I am trying to run Junit test case for the android APIDemo project under eclipse. I create an eclipse project from the APIDemo source, it compiles fine and then I did: 1. Debug->Run as Junit tests But I get this error: 'Lanuching AllTests' has encountered a problem. Cannot connect to VM. A

[android-developers] Re: Rendering the G1 screen on a computer screen via VNC software?

2009-01-28 Thread Tim Bray
Yow, it works... You da geek! -T On Wed, Jan 28, 2009 at 4:06 PM, Mark Murphy wrote: > > I tossed together an app based on the notes I posted previously on this > thread. See: > > > http://groups.google.com/group/cw-android/browse_thread/thread/d2dbcabee6bcba1a > > or > > > http://groups.googl

[android-developers] Difference between kernel on git and kernel on code.google.com

2009-01-28 Thread ttho02
I successfully ported Android to a custom platform (S3C24A0 based) by taking a diff between a stock 2.6.25 kernel and the kernel available at http://code.google.com/p/android/downloads/list and applying the patch to a 2.6.25 kernel that was already patched to run on the platform. Now I have check

[android-developers] Re: When the dev phone will be available in Greece

2009-01-28 Thread trevorpower
I would also like to ask a similar question, availability for Ireland? I would like to know if there are any plans for the short term. If not I'll try importing a phone an unlocking it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Zip inflate failed error

2009-01-28 Thread fadden
On Jan 28, 5:22 am, krish24 wrote: > While booting,  Android is segfaulting when it scans /system/app for >  most of .apk present in that dir. Each time it segfaults in a similar > fashion; e.g.: > > W/zipro   ( 1555): Zip inflate failed, zerr=-3 (nIn=0x4101910e > aIn=1101 nOut=0x1 > ac708 aOut=3

[android-developers] Re: is there a way to access the install date of an application?

2009-01-28 Thread Dianne Hackborn
No there is currently no such thing. On Wed, Jan 28, 2009 at 3:24 PM, Josh Dobbs wrote: > I know that i can write something to take care of this but i was just > wondering if there's already something available in android that would give > me the date when the application was installed. > > >

[android-developers] Re: Gesture detection

2009-01-28 Thread Moto
I currently have a class that handles some complex scrolling of a view... this class implements OnGestureListener and in that class I have no way of telling when the event OnUp() is triggered... I have all other touch event handlers that OnGestureListener provides except OnUp() Thanks.. --~--~--

[android-developers] Re: what display resolution to expect?

2009-01-28 Thread Dianne Hackborn
You should pretty much never do anything based on the system-reported screen size, since there can be any number of arbitrary decorations around the screen -- we already have the status bar on the G1, soon there will be an input method of arbitrary size that slides up from the bottom, other devices

[android-developers] Re: Cannot View Images from SD Card Image on Emulator

2009-01-28 Thread myIP
What is your environment? As you know, I am having the same problem and still cant find a solution yet. Perhaps its something with our environment. Below is my environment details: - Microsoft Windows Server 2003 R2 (running off Microsoft Virtual PC 2007) - Version 6 SE Update 11 (build 1.6.0_

[android-developers] Re: Rendering the G1 screen on a computer screen via VNC software?

2009-01-28 Thread Mark Murphy
I tossed together an app based on the notes I posted previously on this thread. See: http://groups.google.com/group/cw-android/browse_thread/thread/d2dbcabee6bcba1a or http://groups.google.com/group/android-discuss/browse_thread/thread/939b320cea3c81d4 -- Mark Murphy (a Commons Guy) http://co

[android-developers] Re: what display resolution to expect?

2009-01-28 Thread Sundog
You can of course use AbsoluteLayout if you virtualize all the coordinates and calculate them on the fly based on the system-reported screen size. For some apps (like mine) there is no alternative to AbsoluteLayout. On Jan 28, 3:53 pm, Dianne Hackborn wrote: > You can actually use any layouts ex

[android-developers] is there a way to access the install date of an application?

2009-01-28 Thread Josh Dobbs
I know that i can write something to take care of this but i was just wondering if there's already something available in android that would give me the date when the application was installed. --~--~-~--~~~---~--~~ You received this message because you are subscrib

[android-developers] Layout editing Eclipse refreshes with every key pressed event... a bug?

2009-01-28 Thread Noonien Soong
Am I the only one who this is happening to? When I'm editing my layout xml files, literally every time after I type one character into the editor, Eclipse refreshes the other windows, e. g. the properties window. This slows down Eclipse to the point were I have to stop typing.. Is this a glitch

[android-developers] Re: How to launch Market to point to specific application

2009-01-28 Thread Brad Gies
This works for me: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("market://search?q=pname:PriceBunnyClient")); startActivity(intent); Sincerely, Brad Gies - Brad Gies 27415 Greenfield Rd, # 2, Sou

[android-developers] Re: AnimationDrawable: animation can't be started in onResume

2009-01-28 Thread blake
Thank you Romain! -blake On Jan 28, 1:07 pm, Romain Guy wrote: > It's a framework bug that I recently fixed in cupcake. > > You can work around this by setting the drawable not as the background > drawable of a View but as the content (in an ImageView for instance.) > > > > On Wed, Jan 28, 2009

[android-developers] Re: Background Repeat in relativeLayout

2009-01-28 Thread Romain Guy
http://schemas.android.com/apk/res/android"; android:src="@drawable/shelf_panel" android:tileMode="repeat" /> You can also use clamp and mirror instead of repeat. On Wed, Jan 28, 2009 at 3:00 PM, Emmanuel wrote: > > Hi Romain, > > > Can you elaborate a little on how to do it on the Xml

[android-developers] How to launch Market to point to specific application

2009-01-28 Thread Tomei Ningen
Hello, sorry if this is an FAQ: If someone publish a "free" and "paid" version of a game, how can the free app easily point to the paid version of the app in the Android Market? Can this be done via an intent? What I am looking for is some sort of API: launchTheMarkert("com.foofoo.MyVeryC

[android-developers] Re: Background Repeat in relativeLayout

2009-01-28 Thread Emmanuel
Hi Romain, Can you elaborate a little on how to do it on the Xml side ? I succeeded to do it by code, on the java side ( Sebastien, it's on my blog if you are interested ). But I didn't found how to do it with the xml, and I feel it would be cleaner this way. thanks, Emmanuel http://androidbl

[android-developers] Re: what display resolution to expect?

2009-01-28 Thread Dianne Hackborn
You can actually use any layouts except AbsoluteLayout. :) On Wed, Jan 28, 2009 at 1:27 PM, deepdr...@googlemail.com < deepdr...@googlemail.com> wrote: > > Hi Dianne, > > thanks for your statement! > and, sure, about using relative layouts wherever possible. > > thanks - > > > On Jan 28, 9:35 pm,

[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-01-28 Thread Khuong
The ADT's PreCompilerBuilder uses aapt to generate the R.java file. The android.jar includes a compressed resources file called resources.arsc that appt needs to extract out to a buffer. The first error indicates that it failed to create this buffer. The root cause is that the buffer max size is

[android-developers] Re: Gesture detection

2009-01-28 Thread Phill Midwinter
Could you not just write an override? Or do you not know the specific listener? 2009/1/28 Moto > > Let me ask the following: > > Romain Guy you said: > -A fling is simply an onDown() followed by several ACTION_MOVE > MotionEvent then an onUp(). > > Were is this OnUp() call? > I looked at the API

[android-developers] Re: AnimationDrawable: animation can't be started in onResume

2009-01-28 Thread Phill Midwinter
I'm afraid I can't help, but I'd be interested to know how you got it to work? 2009/1/28 blake > > Apparently no-one else can figure it out, either... ;) > > -blake > > On Jan 27, 7:36 am, blake wrote: > > There's already been some discussion of this, in various lists and > > blogs. I finally

[android-developers] contacts/BUG/android.process.acore

2009-01-28 Thread kurdebajer
Hello, unfortunatelly i can not determine exact conditions for this error to occur, but be patient... sooner or later it happens. in contact application while viewing contact list while keeping contact entry pressed i get: The process android.process.acore has stopped unexpectedly. Please try a

[android-developers] Re: exit button - or not?

2009-01-28 Thread Mark L. Chang
On Jan 28, 12:40 am, Dianne Hackborn wrote: > Yeah there are two big things I have on my priority list to address this: > > - Some facility to figure out which applications are draining your battery. > > - A way to entirely force stop an application: kill all its processes, stop > all its service

[android-developers] Re: what display resolution to expect?

2009-01-28 Thread deepdr...@googlemail.com
Hi Dianne, thanks for your statement! and, sure, about using relative layouts wherever possible. thanks - On Jan 28, 9:35 pm, Dianne Hackborn wrote: > Android currently runs on 320x480 / 480x320 screens, and that is all. > Whenever the platform supports smaller screens, it will need to ensure

[android-developers] How to read all connected UMTS Node Bs (CIDs) ??

2009-01-28 Thread onlythoughtwo...@googlemail.com
Is there a way to get all the CIDs which a phone is connected too (using UMTS), or what are the criterias which CID is shown me in GsmCellLocation (when called via TelephonyManager.getCellLocation). Signal Strength, Highest Cell ID etc... ?? And is there any way for a CID -> Location resolution??

[android-developers] Re: Gesture detection

2009-01-28 Thread Moto
Let me ask the following: Romain Guy you said: -A fling is simply an onDown() followed by several ACTION_MOVE MotionEvent then an onUp(). Were is this OnUp() call? I looked at the APIs for OnGestureListener and I don't see it? How could I overwrite this call for the OnGestureListener class?

[android-developers] Re: AnimationDrawable: animation can't be started in onResume

2009-01-28 Thread Romain Guy
It's a framework bug that I recently fixed in cupcake. You can work around this by setting the drawable not as the background drawable of a View but as the content (in an ImageView for instance.) On Wed, Jan 28, 2009 at 1:03 PM, blake wrote: > > Apparently no-one else can figure it out, either.

[android-developers] Re: AnimationDrawable: animation can't be started in onResume

2009-01-28 Thread blake
Apparently no-one else can figure it out, either... ;) -blake On Jan 27, 7:36 am, blake wrote: > There's already been some discussion of this, in various lists and > blogs. I finally got an AnimationDrawable to work, but I cannot start > it from onResume. I can start it from a timer that onRe

[android-developers] Re: startup sequence

2009-01-28 Thread Dianne Hackborn
The system doesn't generally install .apks during boot, and doesn't start any application services during boot (there are a handful of system services that it starts during boot, but these look nothing like what you would think about a service from the application perspective). The only thing syst

[android-developers] Re: Can you play a local video not on the sdcard?

2009-01-28 Thread Marco Nelissen
VideoView currently only works with paths and URIs though, not file descriptors. On Wed, Jan 28, 2009 at 12:29 PM, Dave Sparks wrote: > > Right, which means that you need to open the resource file in your > process and pass the file descriptor in setDataSource instead of the > URI. > > On Jan 27

[android-developers] Re: Video and Audio format Supported by Android

2009-01-28 Thread Dave Sparks
We are getting ready to post some new pages in the SDK area that will cover this information. If you can't wait for that, do a search on this forum for codecs. It has been covered a number of times. On Jan 28, 2:33 am, Tom wrote: > Hi All > >  i want to knw what r the Audio and Video format r s

[android-developers] Re: Wrong resultCode when sending email?

2009-01-28 Thread Dianne Hackborn
The ACTION_SEND protocol doesn't return a result, so you are just getting the default result. On Wed, Jan 28, 2009 at 11:52 AM, Noonien Soong wrote: > > My goal: Open a "compose email" activity and then determine whether > the email was sent. > >I open the email app with this: > >

[android-developers] Re: Reg playing youtube video in android

2009-01-28 Thread Dave Sparks
If you specifically want to play a YouTube video, you need to register as a YouTube developer to get the keys you need to access the Gdata feeds. I think that the Cupcake release will support a new intent for playing YouTube videos with the YouTube app, but it will be some time before that featur

[android-developers] Re: what display resolution to expect?

2009-01-28 Thread Dianne Hackborn
Android currently runs on 320x480 / 480x320 screens, and that is all. Whenever the platform supports smaller screens, it will need to ensure that existing applications run acceptably there. So basically assume the G1 screen and don't sweat the noise you hear. The only caveat is that we strongly r

[android-developers] Re: Simultaneous Photography using Andriod

2009-01-28 Thread Dave Sparks
The simplest approach is just firing off an intent to the existing camera app to take a picture. This requires the user to push the shutter button. If you want it purely under program control, you could have the application snap the picture without the user pressing a button. It just takes a bit

[android-developers] Re: Can you play a local video not on the sdcard?

2009-01-28 Thread Dave Sparks
Right, which means that you need to open the resource file in your process and pass the file descriptor in setDataSource instead of the URI. On Jan 27, 4:16 pm, Marco Nelissen wrote: > Playback/decoding actually happens in a different process (the media > server), so that process needs to have p

[android-developers] Re: Access resources from another application

2009-01-28 Thread Mark Murphy
Romain Guy wrote: >> One application cannot access the Java code or resources from another >> application, at least at runtime. > > Actually, you can. That's what Home does for shortcuts for instance :) > But to do this you need the package name and the resource id within > the target package. A

[android-developers] Re: Access resources from another application

2009-01-28 Thread Romain Guy
> One application cannot access the Java code or resources from another > application, at least at runtime. Actually, you can. That's what Home does for shortcuts for instance :) But to do this you need the package name and the resource id within the target package. -- Romain Guy Android framew

[android-developers] what display resolution to expect?

2009-01-28 Thread deepdr...@googlemail.com
Hi there, I wonder whether there is a minimal display resolution I can expect for Android programs. Especially with the news about the Kogan Agora, which is said to have too low a resolution at 240 x 320. And then again there come emulator skins with exactly that resolution with the SDK. Now, s

[android-developers] Re: Access resources from another application

2009-01-28 Thread Mark Murphy
Bamboo wrote: > Sorry, I don't think I explained very clearly, the activity that I am > extending from resides within a different application. I'm not sure how you can "extend" an activity from another application. Are you saying that CustomActivity resides in one APK and you are subclassing it

[android-developers] Wrong resultCode when sending email?

2009-01-28 Thread Noonien Soong
My goal: Open a "compose email" activity and then determine whether the email was sent. I open the email app with this: Intent msg=new Intent(Intent.ACTION_SEND); String emailSubject = "Hello!"; String emailBody = "Insert body text here.";

[android-developers] Re: Access resources from another application

2009-01-28 Thread Bamboo
Sorry, I don't think I explained very clearly, the activity that I am extending from resides within a different application. So I want to access the resources from that application as well. Give me a shout if that is still unclear On Jan 28, 7:19 pm, Mark Murphy wrote: > Bamboo wrote: > > I have

[android-developers] Failed to upload myapp.apk on 'HT841GZ03224': Too many open files

2009-01-28 Thread Mark Nuetzmann
I have been debugging my app for weeks now on both the emulator and device. All of a sudden I am getting the following error when I try to debug. Failed to upload myapp.apk on 'HT841GZ03224': Too many open files I figure I could simply uninstall the app and try again but is there a quicker fix?

[android-developers] Re: Access resources from another application

2009-01-28 Thread Mark Murphy
Bamboo wrote: > I have created a subclass of Activity, 'CustomActivity', that > overrides the onCreateOptionsMenu and onOptionsItemSelected methods. > > In a couple of other applications I have extended this subclass to > provider a common menu for each activity. Is it still possible to > access

[android-developers] Access resources from another application

2009-01-28 Thread Bamboo
I have created a subclass of Activity, 'CustomActivity', that overrides the onCreateOptionsMenu and onOptionsItemSelected methods. In a couple of other applications I have extended this subclass to provider a common menu for each activity. Is it still possible to access the resources from this Su

[android-developers] Get the name of the owner of the phone? (the email sender)

2009-01-28 Thread Noonien Soong
I want my application to send emails. The user can pick arecipient from the contacts. Then I generate the body text of the email and send it to the email app ( using something like http://androidguys.com/?p=3100#comment-5168). The email body looks something like : - Hi

[android-developers] Re: Porting JavaME Midlet to android.

2009-01-28 Thread Noonien Soong
You will be able to use java code that does not access any of the J2ME APis. You will have to recode most of the System-related stuff. I think what you should do is take a step back and take a look at the notepad example if you haven't already. Really go though it step by step. Then start playin

[android-developers] Re: Rendering the G1 screen on a computer screen via VNC software?

2009-01-28 Thread Mark Murphy
Mark Murphy wrote: > Well, there's some way to get screen grabs off the device that DDMS > uses. I don't see an adb command for it, so off the top of my head I'm > not sure how it's done. But I think the DDMS source code is in the git > repository. > > In theory, one could use that technique to c

[android-developers] Re: Eclipse Plug-in Site down?

2009-01-28 Thread bleucalme
I'm having the same problemé On Jan 27, 8:20 pm, Mafian911 wrote: > Anyone get anywhere on this? I am still having this problem. > > On Jan 7, 1:27 pm, PeeWee Sperman wrote: > > > Did you ever get this fixed. I'm having the same problem after > > researching this thread entirely. The repository

[android-developers] Re: problems when setting / removing color filter to image views

2009-01-28 Thread pmilosev
> Drawable d1 = getResources().getDrawable(R.drawable.my_image); > Drawable d2 = getResources().getDrawable(R.drawable.my_image); > The two drawables are different objects but they both use the same > "constant state" (it's the actual name of the implementation) which > contains, among other thin

[android-developers] Re: Touch mode again (CRUD application context).

2009-01-28 Thread Peli
> (I have 5 > entities to be stored in the database and only one of them has only > one attribute and any actions can be performed on it). If those actions are equally important, what about having a dialog pop up with the different actions when you click on an item (instead of going to 'edit')? (

[android-developers] Re: problems when setting / removing color filter to image views

2009-01-28 Thread Sundog
Another question: At some point this explanation breaks down, because in my experience, this happens only the FIRST time I attempt to change a button's image's state... on subsequent attempts, all works properly. So apparently something "triggers" correct behavior at some point, suggesting there i

[android-developers] Porting JavaME Midlet to android.

2009-01-28 Thread sblantipodi
Hi, I have a huge midlet that is completely based on javax.microedition.lcdui and javax.microedtion.m3g. I need to completely rewrite my midlet to port it to android? Is there a way to use javame class in android? Please help. Thanks! --~--~-~--~~~---~--~~ You rec

[android-developers] Re: problems when setting / removing color filter to image views

2009-01-28 Thread Sundog
Last time you mentioned this, in response to my question about it, you said that it was a known issue and that you were personally working on fixing it. So is this an "issue" that will be fixed at some point, or are we now regarding this bug as something that won't be fixed? On Jan 28, 10:09 am,

[android-developers] Re: Rendering the G1 screen on a computer screen via VNC software?

2009-01-28 Thread Mark Murphy
Tim Bray wrote: > On Wed, Jan 28, 2009 at 9:05 AM, j > wrote: > > > For the purposes of demo to a large audience, we need to show the G1 > screen on a projector. Is there VNC software available? > > > I'm doing a couple of Android presos in March... I'm assum

[android-developers] Re: G1 OS version?

2009-01-28 Thread Jean-Baptiste Queru
The build on the ADP1 (116222) is slightly different from the current G1 build (116143 in the US, 116470 in the UK). They're all awfully close when it comes to the behavior of the platform itself. JBQ On Fri, Jan 23, 2009 at 8:25 PM, Wah wrote: > > Can someone tell me the current OS version for

[android-developers] Re: exit button - or not?

2009-01-28 Thread kolby
I apologize if I have hit the wrong tone, originally this thread caught my eye, because it is an issue that any app has. I was hoping to find some secret trick to tell the OS via a published, but well hidden API (not saying anything here), that my app needs some resources asap and speed up the pro

[android-developers] Re: ellipsize not working with TextView

2009-01-28 Thread Mark Nuetzmann
This is weird... It didn't work all day yesterday, but I just looked at it and it is now both truncating and ellipsizing correctly. I am using the singleLine="true" on the TextView. On Jan 27, 1:53 pm, Mark Nuetzmann wrote: > darn, that didn't work either. > > On Jan 27, 1:28 pm, James Yum wr

[android-developers] Re: Rendering the G1 screen on a computer screen via VNC software?

2009-01-28 Thread Tim Bray
On Wed, Jan 28, 2009 at 9:05 AM, j wrote: > > For the purposes of demo to a large audience, we need to show the G1 > screen on a projector. Is there VNC software available? I'm doing a couple of Android presos in March... I'm assuming that I'll have to point a video camera at the device. I'd

[android-developers] Re: G1 OS version?

2009-01-28 Thread Mark K
Look under 'Settings' scroll to the very bottom, 'About Phone' will give you the build number etc. Mark On Jan 23, 8:25 pm, Wah wrote: > Can someone tell me the current OS version for T-mobile G1 phones? I > have a developer phone but its OS version may b

[android-developers] Re: how to run sample application in real harware

2009-01-28 Thread Xavier Ducrohet
apk files are NOT executable. to install an apk on your device, just execture 'adb install '. Your application should then appear in the Home screen. This is what ADT is doing when dealing with emulators or devices. Xav On Wed, Jan 28, 2009 at 7:04 AM, sumit wrote: > > hi > > i build an applic

[android-developers] Re: MapsApplication missing from source code?

2009-01-28 Thread Jean-Baptiste Queru
It's not part of the Android platform, it's a Google-proprietary add-on that is not open-source. JBQ On Wed, Jan 28, 2009 at 8:39 AM, jsm wrote: > > Why is that closed? I mean the reasoning behind closing that app. > > On Jan 28, 9:30 pm, Disconnect wrote: >> Its closed source, just like gmail

[android-developers] Re: exit button - or not?

2009-01-28 Thread Mark Murphy
kolby wrote: > I don't see myself running a 1min animation to tell people I have to > wait until the > OS has finally decided that my app needs more room. And really, that's > the message > they should see, because that's the cause of the delay. And I don't > want to lie to my users. You are post

[android-developers] Re: About Google Map Installation Package

2009-01-28 Thread Jean-Baptiste Queru
Sounds like you're trying to run Android on custom hardware, not through the SDK. If that's the case, you should probably head to the android-platform or maybe android-porting list. JBQ On Wed, Jan 28, 2009 at 9:51 AM, mak wrote: > > Hi All, > > I have couple of doubts regarding Google Map Usag

[android-developers] startup sequence

2009-01-28 Thread krish24
Hi Everyone, Can anybody tell me the system startup sequence of Android? When the services are starting? When and how the application packages (.apk) are getting installed? Thanks, Krish --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] About Google Map Installation Package

2009-01-28 Thread mak
Hi All, I have couple of doubts regarding Google Map Usage as below: 1. I am able to run Google Map Application on Emulator with proper API key. Google Map is not open source and not available on Target Board, so I am not able to execute this application. Does same API Key hold good for Target B

[android-developers] Re: Touch mode again (CRUD application context).

2009-01-28 Thread Andriy Zakharchuk
Thank you for comments, guys. Probably, I was not clear, but I'm still using context menus. However, in my opinion, context menu is a secondary way to perform an action. So, there should always be a primary way (options menu, item click, toolbar button). Context menu is less obvious/intuitive tha

[android-developers] Re: Apple Granted Multitouch Patent

2009-01-28 Thread JP
On Jan 28, 8:05 am, Al Sutton wrote: > You can see from the article > athttp://www.infoworld.com/article/09/01/16/Firm_seeks_to_bar_Nokia_RIM... > that the worst that a firm can do is try to ban companies importing > products into the US which may breach a US patent. I generally agree with you

[android-developers] Re: exit button - or not?

2009-01-28 Thread kolby
Mark, > > No, but you can make some choices here. > > For example, for a consulting customer, I have an activity that > incorporates a WebView, loading up some local content. This takes a few > seconds to load, even with everything local, due to a combination of > content complexity and prototype

[android-developers] Re: Sending HTML email with GMail installed on G1

2009-01-28 Thread Noonien Soong
a question about URLSpan : Is there a way to have a link with a different label than the URL itsself? I want something analog to: {a href='http://www.google.com'}Google{/a} instead of {a href='http://www.google.com'}http://www.google.com{/a} On Jan 2, 1:57 pm, sergey wrote: > Hello Thrust

[android-developers] Re: Reusing the +/- number spinner from TimePickerDialog?

2009-01-28 Thread Mark Murphy
Will wrote: > Setting a breakpoint when a DatePickerDialog is open on the emulator's > screen shows a com.android.internal.widget.NumberPicker for month, > year, and date (1 number picker each for a total of three > NumberPickers). It looks like the same widget used for a time picker; > based on

  1   2   >