[android-developers] How to turn off camera sound on G1?

2009-08-30 Thread Shawn McMurdo
Anyone know how I can turn off the camera shutter sound on the G1 from within my application? Thanks! Shawn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: reduce list view font size

2009-08-30 Thread powerbyte
Check the sample code in ..\android-1.5\samples\ApiDemos\src\com\example\android\apis\view \List14.java -Somu On Aug 31, 8:58 am, Sasi Kumar wrote: > thanks for your reply. > Please give one example briefly/ > > On Aug 29, 8:59 pm, "Balwinder Kaur (T-Mobile USA)" > > > mobile.com> wrote: > >

[android-developers] ADC deadline drawing near

2009-08-30 Thread James Yum
Hello, There's about 24 hours left before the deadline. Please, please don't wait until the last second to submit your entries. Your APK may not validate on the submission site, so leave some time to correct any issues. You can always update your entry later, and it's better to have something to sh

[android-developers] Re: Upload a valid APK ADC2

2009-08-30 Thread James Yum
Hi William, Try logging completely out of ADC site and/or Market site and try it again. Cheers, James On Sat, Aug 29, 2009 at 8:08 AM, William Frati wrote: > > I'm keep getting "upload a valid APK" when i'm uploading my app in > ADC2 site submission. > I followed all istructions at > http://de

[android-developers] Questions about ImageView.setImageMatrix

2009-08-30 Thread quill
Hi, everyone, I;m testing to scale an image, and I got a problem: main.xml: onCreate(): iv = (ImageView) findViewById(R.id.iv); iv.setImageResource(R.drawable.icon); onTouchEvent(): Matrix mtrx = iv.getImageMatrix(); mtrx.postScale(2, 2); iv.setImageMatrix(mtrx); iv.setScaleType(ScaleType.MATR

[android-developers] Re: Triggering an application on a special gesture / event

2009-08-30 Thread Romain Guy
No, this is not possible. Applications cannot listen to touch/key events that are not sent to the application itself. Only the system can do this. On Sun, Aug 30, 2009 at 9:41 PM, Dinesh wrote: > > hi, > > The App I'm trying to work on requires that when a special combination > of keys are presse

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-30 Thread James Yum
Hi Monmonja, If you already submitted the app to Market, you need to submit to the ADC site under a different package name. Were you able to do that successfully? Cheers, James On Sun, Aug 30, 2009 at 8:56 PM, monmonja wrote: > > i had submitted an app on adc but it does not show on the listing

[android-developers] Re: Do you got any confirmation after ADC 2 submit?

2009-08-30 Thread James Yum
Hi Cindy, No email confirmation. Just make sure (everyone) that it appears in the application listing at http://market.android.com/adc as "Submitted". Cheers, James On Sun, Aug 30, 2009 at 10:48 PM, cindy wrote: > > Have you got any confirmation for ADC 2 submission? How to check the > current

[android-developers] Re: Any email confirmation after submit the application for ADC 2?

2009-08-30 Thread James Yum
Hi Parchira, No email confirmation. Just make sure (everyone) that it appears in the application listing at http://market.android.com/adc as "Submitted". Cheers, James On Sun, Aug 30, 2009 at 10:46 PM, parchira tech wrote: > > I have submitted my application for ADC 2. But I didn't receive any >

[android-developers] Javascript document.cookie in Android ?

2009-08-30 Thread dsuwirya
Hi, I need help how to use correctly the javascript : "document.cookie" or how to write cookie from javascript in Android web browser ? I've make sure in the settings that cookie is enabled. When I checked by using "navigator.cookieEnabled", it returns true as well. I've a piece of javascript c

[android-developers] Any email confirmation after submit the application for ADC 2?

2009-08-30 Thread parchira tech
I have submitted my application for ADC 2. But I didn't receive any email. How can I know the application is successfully submited. THanks! Parchira --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Displaying Bitmap from PictureCallback works on emulator but not on G1

2009-08-30 Thread Shawn McMurdo
I am trying to display a Bitmap from the PictureCallback. It works on the emulator but I get a blank screen on the G1. In both cases I am running from Eclipse using ADT plugin. Here is the relevant code: public void onPictureTaken(byte[] data, Camera camera) { Bitmap bitmap = BitmapFacto

[android-developers] Triggering an application on a special gesture / event

2009-08-30 Thread Dinesh
hi, The App I'm trying to work on requires that when a special combination of keys are pressed ( irrespective of the keypad being locked ) a service / app is triggered. How can I achieve this? My app's whole idea hinges on this particular part to work. I am not here to take a "no" for an answer

[android-developers] Re: Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread Andrei Bucur
Maybe this helps: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_PREVIOUS_IS_TOP On Mon, Aug 31, 2009 at 4:28 AM, tstanly wrote: > > can possiable to verify whether B is exist or not? > if B exist,so the apps can call finish() to close B, > if not,don't call B.f

[android-developers] Do you got any confirmation after ADC 2 submit?

2009-08-30 Thread cindy
Have you got any confirmation for ADC 2 submission? How to check the current status of my submission? Thanks! Cindy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: fire up onKeyDown

2009-08-30 Thread petter
nevermind, I already solved it throw Instrumentation::sendKeyDownUpSync (int keyCode); On Aug 24, 2:42 pm, petter wrote: > Hi, > I' d like to fire up onKeyDown() event from my source code (for > example from Activity). I want it, because i'd like to create program > for remote keyboard, which w

[android-developers] Re: Null Pointer Exception

2009-08-30 Thread Roman ( T-Mobile USA)
My first guess is that your variable is not instantiated that's why you cannot call the method. but let's look at your code first -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Question on ADC2 signup for teams

2009-08-30 Thread Peli
On the ADC 2 sign up page, there is the option: participant type: Individual, Team, or Business, We want to choose participant type "team", and the terms & conditions state that "all of the members of the team must accept the Terms in the manner specified by Google.". I have not been prompted fo

[android-developers] Re: Null Pointer Exception

2009-08-30 Thread Dexter's Brain
Without looking at your code, it si practically impossible to suggest something to you... Dexter. On Aug 31, 9:51 am, Sasi Kumar wrote: > when i'm trying to call another class method. > It is showing null pointer exception. > > Plz give some suggestion to get back from this --~--~--

[android-developers] Having problem to read data from the local host server using Http Get method....

2009-08-30 Thread ragavendran s
This is a code i m having to read a data from the sever using Http Get method but still i cant read the values from the localhost server. can anybody tell the correct code to replace this thanks, with regards, Raghav.S Code: package netw.htt; import java.io.IOException; import java.io.Inp

[android-developers] Re: glGenTextures returning 0

2009-08-30 Thread Nightwolf
I don't know why you are getting 0. But onSurfaceChanged is good place to create textures. Placing texture creation/loading code inside of onDrawFrame is bad idea. On Aug 30, 12:24 pm, deki wrote: > I am calling glGenTextures inside onDrawFrame and I am always getting > 0. > > Calling glGenTextu

[android-developers] Null Pointer Exception

2009-08-30 Thread Sasi Kumar
when i'm trying to call another class method. It is showing null pointer exception. Plz give some suggestion to get back from this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] Package my common code as library

2009-08-30 Thread Siu Man Yu
I have done some cusomtizations on general user interface behavior. I would put those features into my applications. Therefore, I package my source code as a jar and add this external library to my applications. As my cusomtization include some inflation of xml files, I put those resource in my

[android-developers] Re: How to call another class method.

2009-08-30 Thread Marco Nelissen
A more general Java beginners group seems more appropriate for this question. On Sun, Aug 30, 2009 at 8:56 PM, Sasi Kumar wrote: > > I used intent to call class. > But i want to call the function. > > Give some other idea to call function. > > On Aug 28, 8:24 pm, "Roman ( T-Mobile USA)" mobile.

[android-developers] Re: how to implement atuolink in Dialog?

2009-08-30 Thread Dianne Hackborn
What Context did you use t create the dialog? You need to use an activity if you want to be able to launch another activity as part of the same task. On Sun, Aug 30, 2009 at 8:41 PM, luoqii wrote: > > hi bodies! >when i want to implements a autolink func in dialog, i.e. when a > click the a

[android-developers] Re: Hello World - Unknown Error

2009-08-30 Thread DemoShadow
that does not help... On Aug 30, 2009 3:31 AM, "Osmo Maatta" wrote: Hello all, Here is a guide that gets you started on Linux (on Ubuntu Linux). http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html --~--~-~--~~~---~--~~ You received this message b

[android-developers] Re: Drawable

2009-08-30 Thread Sasi Kumar
How can we use map to map give one example. plz On Aug 28, 10:21 am, quill wrote: > Use a map to map your key and drawable id. > > On Aug 28, 12:48 pm, Sasi Kumar wrote: > > > my code is:- > > > Drawabel partlycloud=res.getDrawable(R.drawable.a65_color_31); > > > I have more images like > >

[android-developers] Re: Date Limit

2009-08-30 Thread Sasi Kumar
Give suggestion for this limited date. I am not expecting in date picker. It may be any thing else. I want only the answers. On Aug 30, 12:23 am, Brian Conrad wrote: > I've done something like this with my own DatePicker like widget where I > used the TextWatcher member to keep input within boun

[android-developers] Re: draw textview

2009-08-30 Thread Sasi Kumar
I don't know about the android:typeface and android:textStyle . Plz give some example for this. On Aug 29, 7:00 pm, "Balwinder Kaur (T-Mobile USA)" wrote: > I didn't quite see your problem..however if you want to drawText, you > can create a CustomView and override the onDraw method. > > Use th

[android-developers] Re: Date Picker

2009-08-30 Thread Sasi Kumar
I want only 3 days that should genarate automatically.. Pls give some suggestion with example.. ex:- I want like 30/08/2009 31/08/2009 1/09/2009 we can't able to enter it manually b'coz the date and the month will cahnge. On Aug 29, 7:21 pm, "Balwinder Kaur (T-Mobile USA)" w

[android-developers] Re: reduce list view font size

2009-08-30 Thread Sasi Kumar
thanks for your reply. Please give one example briefly/ On Aug 29, 8:59 pm, "Balwinder Kaur (T-Mobile USA)" wrote: > You can create a custom adapter and override the getView method. > > Balwinder Kaur > Open Source Development Center > ·T· · ·Mobile· stick together > > The views, opinions and st

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-30 Thread monmonja
i had submitted an app on adc but it does not show on the listing but when i try to reupload the app, it said there is something the same on the market. Is this normal? can i update my app? tnx On Aug 28, 1:23 am, Dan Morrill wrote: > We are not planning to extend the submission deadline. > - Da

[android-developers] Re: How to call another class method.

2009-08-30 Thread Sasi Kumar
I used intent to call class. But i want to call the function. Give some other idea to call function. On Aug 28, 8:24 pm, "Roman ( T-Mobile USA)" wrote: > I am assuming that you want to get the activity eSkyGuide in the > foreground, correct? > > In this case as ragavendran suggested, call an In

[android-developers] Re: How to call another class method.

2009-08-30 Thread Sasi Kumar
I used intent to call class. But i want to call the function. Give some other idea to call function. On Aug 28, 7:07 pm, ragavendran s wrote: > I think u may use like this ...Intent to call another .java class > if successs u reply to me...thanks > > > > > weather.java > > > public clas

[android-developers] how to implement atuolink in Dialog?

2009-08-30 Thread luoqii
hi bodies! when i want to implements a autolink func in dialog, i.e. when a click the autolink, it will bring me the righit place: broswer, mail, sms,and so on. when i do this with { ... ... TextView.setAutoLinkMask(Linkify.ALL);

[android-developers] Having problem to read data from the local host server using Http Get method....

2009-08-30 Thread ragavendran s
This is a code i m having to read a data from the sever using Http Get method but still i cant read the values from the localhost server. can anybody tell the correct code to replace this thanks, with regards, Raghav.S Code: package netw.htt; import java.io.IOException; import java.io.Inp

[android-developers] PDP Status Check

2009-08-30 Thread santosh kumar
Hi, Does TelephonyManager provides any API to get PDP Connection status, GPRS Attach/detach status GPRS local IP Adress Thanks Santosh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Controling a Servo Controller? For use with robotics and sensors

2009-08-30 Thread Steve Hassenplug
I'm very interested in doing this same thing. I'd like to connect the G1 to an I/O controller. Looking at this page: http://groups.google.com/group/android-platform/browse_thread/thread/439d3f3af7a88a09/10a80eb835e8dbcc?lnk=gst&q=serial&pli=1 ...seems like the audio pins can also be used for seri

[android-developers] Re: Who will be viewing apps during Round 1 and Round 2 of the ADC2

2009-08-30 Thread Dan Sherman
As far as I'm aware: First round is all users across the world. They will give ratings, and be selected based on said ratings. The top 200 (20 in each category) will move on to round 2. During round two, the same processing will happen, but Google selected judges will rate as well, with Google

[android-developers] Re: Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread tstanly
can possiable to verify whether B is exist or not? if B exist,so the apps can call finish() to close B, if not,don't call B.finish() (will be error because B is not exist) thanks! On 8月31日, 上午4時11分, "Jonas Petersson" wrote: > fhucho wrote: > > my activity stack is ABC, in activity C I press ba

[android-developers] Re: Who will be viewing apps during Round 1 and Round 2 of the ADC2

2009-08-30 Thread CraigsRace
http://code.google.com/android/adc/ On Aug 31, 10:39 am, bkbonner wrote: > Hi Dan Morrill (et al), > > I have an app that we are going to submit,  my understanding is that > our app will be reviewed by Judges during round 1 and they'll select > the top 200.  Those applications will advance to Ro

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
Dianne: Yes, using a static Handler is a solution. Although, IMO, it's not the most eloquent solution. But it will work, so I should be happy. :) On Aug 31, 11:19 am, Dianne Hackborn wrote: > And you shouldn't be doing this.  You could have a static pointing to the > currently running activit

[android-developers] Re: how to use shell command in Android app

2009-08-30 Thread Dianne Hackborn
This kind of stuff isn't part of the SDK. If you are developing a device, you can ask these kinds of questions on android-porting. If you are writing an application, you should stick with the SDK. 2009/8/30 tstanly > > thanks for your reply, > > > so if I have a script file now, > the script f

[android-developers] Re: Touch Listener

2009-08-30 Thread Romain Guy
"Focusable in touch mode" has nothing to do with touch events or touch listeners or padding, etc. Do not use this. On Sun, Aug 30, 2009 at 4:03 PM, vanquisher sinner wrote: > > I read that if you set isFocuasbaleInTouchMode  for the view object > then onClickelistener is called. > when I touch on

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread Marco Nelissen
Why not just tell your thread about the new activity? Having the old activity keep a reference to the new activity for the sole purpose of being able to pretend that the old activity is still valid, even after its onDestroy has already been called, goes completely against the Android activity mode

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread Dianne Hackborn
And you shouldn't be doing this. You could have a static pointing to the currently running activity instance (which very well may be null, which is a valid state, and something your thread needs to deal with anyway). Often you do this by giving the thread just a Handler to communicate back with t

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
Dianne: Yes, using a static Handler is a solution. Although, IMO, it's not the more eloquent solution. On Aug 31, 11:19 am, Dianne Hackborn wrote: > And you shouldn't be doing this.  You could have a static pointing to the > currently running activity instance (which very well may be null, whic

[android-developers] Re: Service - Activity (simplest way)

2009-08-30 Thread Rafael Martins
OK. Thank you. I’ll use the onPause() method to advise the service to stop calling Activity’s method. On 30 ago, 14:18, Dianne Hackborn wrote: > Just follow the same code I already linked.  Once the activity binds to the > service and gets its object, you can have whatever methods on it to call

[android-developers] Who will be viewing apps during Round 1 and Round 2 of the ADC2

2009-08-30 Thread bkbonner
Hi Dan Morrill (et al), I have an app that we are going to submit, my understanding is that our app will be reviewed by Judges during round 1 and they'll select the top 200. Those applications will advance to Round2. There is no chance to fix defects between Round 1 and Round 2 (so I presume i

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread Mark Murphy
CraigsRace wrote: > The thread is holding onto the old activity, nothing else references > it. When the thread dies, so does the old activity. And if the thread does not die? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: htt

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
Romain: Agreed, my solution is bad. I still feel like there should be a solution. I would think a lot of developers would want to do UI from a thread (closing a progress dialog, etc). And making them track if the activity has been destroyed and recreated seems like something that the framework

[android-developers] Re: Map key: Overlays shown but not Map when using Generated key

2009-08-30 Thread RainBow
Ok. Thank you very Mark for your support. I was able to fix the problem and see the maps on the release version successfully. :-) Here is the summary how I did it: (1) I found that the Eclipse on my laptop is not using any JDK (eclipse->windows->prefs->installed JREs). It was pointing to JRE b

[android-developers] Re: Publishing Upgrades on Android Market ... Still Relevant?

2009-08-30 Thread Streets Of Boston
This documentation is old. Users of Android phones with the Market installed get a notification (in the top bar) that one or more applications have been updated by their developer. Then, when the user opens this notification and clicks on it, it brings the user to the Market app showing which app

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
Mark,Dianna: Sorry, light bulb just went on. I think this is what you're saying: - Currently, the Thread will hold onto just 1 old Activity. - With my solution, the Thread will hold onto 1 old Activity, then that Activity will then holds onto the next old activity, and the next, ... So if a thre

[android-developers] Re: how to use shell command in Android app

2009-08-30 Thread tstanly
thanks for your reply, so if I have a script file now, the script file content wants to "mount" a device or do some control such as open wireless connection, and wants app to execute script file, if it possiable? thanks! On 8月29日, 上午1時42分, Dianne Hackborn wrote: > Keep in mind that shell co

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
Mark: Sorry, I deleted my original post (very rude, I know!), as I decided to just go ahead and write a solution myself (see previous post). As for starting multiple threads, yes, they will hold on to the old Activities. However, that's what happens right now, no? In fact, that's the whole prob

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Dianne Hackborn
On Sun, Aug 30, 2009 at 2:48 PM, Nick_Zaillian wrote: > Okay, actually, you can disregard that last comment. > "Thou shalt not modify the UI from a background thread, for that is > the way of sin" pretty explicitly gives me my answer. I gotta say, > this is pretty inconvenient. Must be the rea

[android-developers] Setting FilterQueryProvider on one ListView affects content of other ListView

2009-08-30 Thread eags
Ok this is very very odd. My Activity has two list: a) ListView with a SimpleCursorAdapter connected to a regular cursor b) A AutoCompleteEditText with a custom CursorAdapter connected to Contacts.Phones cursor. On list b, I then also connect a FilterQueryProvider, and then the content of list

[android-developers] Re: Touch Listener

2009-08-30 Thread vanquisher sinner
I read that if you set isFocuasbaleInTouchMode for the view object then onClickelistener is called. when I touch one view it works but the other one does not. Is there a way to increase padding of that view so that touch works on the view even around a larger radius? On Fri, Aug 28, 2009 at 12:

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread Romain Guy
No, this is not a good solution. There is no guarantee on how long the thread will run, which means there is no guarantee on how long the Activity (and everything tied to it) will survive. On Sun, Aug 30, 2009 at 4:00 PM, CraigsRace wrote: > > The thread is holding onto the old activity, nothing

[android-developers] LocationProvider Comaprable/Comparator

2009-08-30 Thread Joe
We have tried to use the LocationManager.getBestProvider. But trying to be smart, we would like to use better Provider if one becomes available, but it seems there isn't a existing way to tell whether a new Provider is better. Of course, we/each developer could develop a Comparator for this purp

[android-developers] Re: Setting FilterQueryProvider on one ListView affects content of other ListView

2009-08-30 Thread eags
Crap, I should have quadruple checked. I was actually accidentally using the cursor from the first list in the constructor for the second adapter. Sorry. Nevermind. On Aug 30, 4:53 pm, eags wrote: > Ok this is very very odd.  My Activity has two list: > > a) ListView with a SimpleCursorAdapte

[android-developers] Re: ADB Emulator not loading

2009-08-30 Thread remwebdevelopment
I'm getting the same errors when I launch the emulator, even when I disable my firewall. I've searched all over the internet for any clues. I've tried deleting and re-creating my avds, and launching the emulator with the -wipe-data flag. Nothing has worked. On Aug 22, 6:34 pm, Jeff wrote: > I

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
The thread is holding onto the old activity, nothing else references it. When the thread dies, so does the old activity. I went ahead and wrote a solution myself by extending the Activity class. What I wanted to do was: 1. onSaveInstanceState put a reference to itself (the activity) in the Bund

[android-developers] Error msgs in LogCat on startup

2009-08-30 Thread bkbonner
I'm seeing messages that I've never seen before in LogCat in the Emulator. Are these anything to concern myself with: 08-30 22:42:43.442: ERROR/vold(550): Error opening switch name path '/ sys/class/switch/test2' (No such file or directory) 08-30 22:42:43.442: ERROR/vold(550): Error bootstrappin

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread Mark Murphy
CraigsRace wrote: > I'm obviously missing something, as I thought the Thread would be the > only thing holding onto the old Activity (as it is now). When the > Thread dies, the old activity would be garbage collected (as it does > now). All forwarding would be done via the Activity class. Corre

[android-developers] Re: Is it possible to extend resources xml with custom views?

2009-08-30 Thread Mark Murphy
Daber wrote: > Does anybody knows if (and how ) I can write a custom view/widget and > then use it in resources in layout defintions? In terms of "if", yes, it is very doable. In terms of "how", I suspect there is at least one of the API demos on the subject, though I can't remember which one of

[android-developers] Re: How to show a Progress dialog in AsyncTask?

2009-08-30 Thread WoodManEXP
Hi Juan, This is pretty easy to do. One way is to implement a class in your UI class that extends AsyncTask. Then you can instantiate the ProgressDialog class (which you may want to extend for various reasons) in the constructor. In the doInBackground method call publishProgress which will call

[android-developers] Re: Is it possible to extend resources xml with custom views?

2009-08-30 Thread Romain Guy
Yes you can, there are examples in the SDK (ApiDemos, Home.) On Sun, Aug 30, 2009 at 1:51 PM, Daber wrote: > > Does anybody knows if (and how ) I can write a custom view/widget and > then use it in resources in layout defintions? > > > > All the best, > Michał Dąbrowski > > > > -- Romain Guy

[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-30 Thread Fallen Leaf
Change the package (i.e. add .adc ). What you made doesn't work because there are people that have downloaded your app even if now it's not in the market so Google doesn't allow to publish several apps with the same package. On 30 ago, 18:06, Omer Saatcioglu wrote: > Hello Android Team, > > I ha

[android-developers] Re: Threads and Screen Orientation Change

2009-08-30 Thread CraigsRace
I'm obviously missing something, as I thought the Thread would be the only thing holding onto the old Activity (as it is now). When the Thread dies, the old activity would be garbage collected (as it does now). All forwarding would be done via the Activity class. I tried to extend Activity to w

[android-developers] Setting internal storage in the AVD

2009-08-30 Thread WoodManEXP
Does anyone know how to set internal storage in the AVD to something other than the default 92M? I have tried setting hw.ramSize in the AVD's .config file, but no change and also tried setting it when creating a AVD with the "android create" command. Same net resut. I'm on Windows XP. Thanks in

[android-developers] Is it possible to extend resources xml with custom views?

2009-08-30 Thread Daber
Does anybody knows if (and how ) I can write a custom view/widget and then use it in resources in layout defintions? All the best, Michał Dąbrowski --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developer

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Mark Murphy
Nick_Zaillian wrote: > Now, Mark, I have written an > audio pattern playback implementation using a Handler that runs in my > main Activity and, while it works, it is way less smooth and reliable > than the implementation using the Timer/separate thread. That's not surprising. Depending on what

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Nick_Zaillian
Okay, actually, you can disregard that last comment. "Thou shalt not modify the UI from a background thread, for that is the way of sin" pretty explicitly gives me my answer. I gotta say, this is pretty inconvenient. Must be the reason that Electrum Drum Machine (the only other Android drum seq

[android-developers] Re: EMMA Code coverage and JUnit

2009-08-30 Thread Brett Chabot
On Thu, Aug 27, 2009 at 7:53 PM, duykham wrote: > Hi guys, > > Many thanks for your supports, it's now working with automatic test. > (adb shell am instrument ...) :) But, I have some questions that, > > 1. Is there a way to get EMMA code coverage with manual test?  I mean, > we can test android b

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Nick_Zaillian
Alright, I have made the appropriate changes to my SeqSwitch class so that I no longer call setBackgroundResource from my onDraw (and in fact no longer override onDraw at all). Now, Mark, I have written an audio pattern playback implementation using a Handler that runs in my main Activity and, wh

[android-developers] Re: Reuse Hero rounded list item look?

2009-08-30 Thread Jonas Petersson
Mark Murphy wrote: > Jonas Petersson wrote: >> I was kind of hoping that the layout and graphics would be available in >> a place I had not yet found. Grabbing the screen shot is no problem for >> static, but getting the whole look and feel right for highlighting etc >> seems like rather a lot

[android-developers] Re: Testing OpenGL rendering in Java outside of Android?

2009-08-30 Thread Robert Green
I wrote a utility to import OBJ files from Max and I've found that things look nearly identical in the game as they did in the app. Are you doing a lot of dynamic geometry and effects? If not, I'd recommend using a modeling tool and developing a process to import. In my experience, the best too

[android-developers] Re: What is the exact date/time that the ADC2 submission site will be closing?

2009-08-30 Thread Robert Green
Ah yes, there it is. Thanks, Mark! On Aug 30, 2:35 pm, "Mark Murphy" wrote: > > The rules just say Aug 31, but what does that mean? > > You must be reading the wrong rules. > > "5. CHALLENGE TIMELINE: All Entries must be submitted before the end of > the Submission Period. The Submission Period

[android-developers] Re: Reuse Hero rounded list item look?

2009-08-30 Thread Mark Murphy
Jonas Petersson wrote: > I was kind of hoping that the layout and graphics would be available in > a place I had not yet found. Grabbing the screen shot is no problem for > static, but getting the whole look and feel right for highlighting etc > seems like rather a lot of effort duplication tha

[android-developers] Reuse Hero rounded list item look?

2009-08-30 Thread Jonas Petersson
Marco Nelissen wrote: > If you want your app to work and look like that on any device other > than a Hero, you will have to do it yourself. Well, Hero is the most popular version around here so that was their priorities. I guess I could look at the hw ID and select "skin" from that, but I doubt

[android-developers] Re: Testing OpenGL rendering in Java outside of Android?

2009-08-30 Thread SChaser
I took a look at that. I am not sure of all incompatibilities, but it does not provide the GL10 object, which I believe is required for Android JOGL apps. Ideas? On Aug 29, 9:33 pm, Romain Guy wrote: > I think thatJOGL2 supports OpenGL ES 1.0 and 2.0. You could try with this. > > On Sat, Aug 29

[android-developers] Android client for JAX-RPC WebService

2009-08-30 Thread baratam.pras...@gmail.com
Hi, Trying to write a client in Android for JAX-RPC Webservices developed in JAVA. Is this possible and please suggest any examples for this. Regards, PB --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Dev

[android-developers] Re: Reuse Hero rounded list item look?

2009-08-30 Thread Marco Nelissen
If you want your app to work and look like that on any device other than a Hero, you will have to do it yourself. Should be as simple as picking the right layout and graphics for your list items. On Sun, Aug 30, 2009 at 12:09 PM, Jonas Petersson wrote: > > Dear experts, > > I've been asked to ma

[android-developers] Re: how to know my app is running backgroud ?

2009-08-30 Thread Christine
On Aug 30, 5:42 am, Android中国开发者团队google groups wrote: > i want to excute same action when my app is running backgroud Err, when your app is in the background, it does not "run". If you want your app to continue doing something when the UI is not visible, you need to create a Service. But a serv

[android-developers] Re: Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread fhucho
Thanks. Good idea, I did it this way. On Aug 30, 10:11 pm, "Jonas Petersson" wrote: > fhucho wrote: > > my activity stack is ABC, in activity C I press back, and return to B, > > then press back again and go to A. What should I do to return to A > > directly from C? > > I guess it depends on the

[android-developers] Re: Default Sound Resources

2009-08-30 Thread Marco Nelissen
You can use the media provider to get the list of available ringtones, notification and alarm sounds for the phone your app is running on. On Sat, Aug 29, 2009 at 10:01 PM, RalphLeon wrote: > > Hello! > > I have a timer application and I was hoping to add the default sound > resources that are a

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Romain Guy
You should call setBackgroundResource() but NOT from onDraw(). Just call this method from setIlluminated() for instance. On Sun, Aug 30, 2009 at 1:06 PM, Nick_Zaillian wrote: > > Mark and Romain, > Thanks.  That was a much prompter response than I either expected or > deserved. > Romain, I am not

[android-developers] Re: Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread Jonas Petersson
fhucho wrote: > my activity stack is ABC, in activity C I press back, and return to B, > then press back again and go to A. What should I do to return to A > directly from C? I guess it depends on the reason for wanting to skip "B". I needed exactly this case yesterday and in my case "B" knows v

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Nick_Zaillian
Mark and Romain, Thanks. That was a much prompter response than I either expected or deserved. Romain, I am not sure that I totally understand what you've said. How am I to set the background in accordance with the state of isChecked and isIlluminated from within onDraw if not by calling setBack

[android-developers] Activity stack: A B C -> press BACK -> go to A

2009-08-30 Thread fhucho
Hi, my activity stack is ABC, in activity C I press back, and return to B, then press back again and go to A. What should I do to return to A directly from C? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: Typeface affecting TextView marquee?

2009-08-30 Thread greg
I neglected to mention that the marquee scrolling is due to the TextView ellipsize attribute in the xml file that defines the layout of TextView rows. http://schemas.android.com/apk/res/ android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height

[android-developers] Re: What is the exact date/time that the ADC2 submission site will be closing?

2009-08-30 Thread Mark Murphy
> The rules just say Aug 31, but what does that mean? You must be reading the wrong rules. "5. CHALLENGE TIMELINE: All Entries must be submitted before the end of the Submission Period. The Submission Period ends at 11:59:59 P.M. Pacific Time (PT) Zone in the United States on August 31, 2009."

[android-developers] Re: What is the exact date/time that the ADC2 submission site will be closing?

2009-08-30 Thread Dan Sherman
11:59:59 PM on the 31st. On Sun, Aug 30, 2009 at 3:27 PM, Robert Green wrote: > > The rules just say Aug 31, but what does that mean? Tonight (Aug 30) > at 12am PST? Does it mean through Aug 31, so Aug 31, 12am in some > timezone? > > Can we get a more specific time here? > > Thanks! > > >

[android-developers] What is the exact date/time that the ADC2 submission site will be closing?

2009-08-30 Thread Robert Green
The rules just say Aug 31, but what does that mean? Tonight (Aug 30) at 12am PST? Does it mean through Aug 31, so Aug 31, 12am in some timezone? Can we get a more specific time here? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscri

[android-developers] Reuse Hero rounded list item look?

2009-08-30 Thread Jonas Petersson
Dear experts, I've been asked to make an app that has a list with items looking similar to this snapshot from Hero: http://www.flickr.com/photos/jaxxdotorg/3640222441/in/set-72157619952823330/ Is there a way to reuse this in any way or do I have to re-design it from scratch?

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Romain Guy
Do not call setBacgroundResource() in onDraw()! You are loading and setting an image every time your view is drawn. You are actually creating a infinite "loop"; onDraw() -> setBacgroundResource() -> invalidate() -> onDraw() -> setBacgroundResource() -> etc. On Sun, Aug 30, 2009 at 11:47 AM, Nick

[android-developers] Re: onDraw issue? -- what's going on?!

2009-08-30 Thread Mark Murphy
> When, however, I pass it into the runnable (called > PatternPlayTask) that I give to my Timer (which then calls > SwitchController.runSwitches every 300 milliseconds as it steps > through the pattern), it stops working. Timer/TimerTask use a background thread. Thou shalt not modify the UI from

[android-developers] Re: fill_parent for each child widget?

2009-08-30 Thread Dianne Hackborn
The home screen uses a custom layout manager for this, and this is probably a situation where a custom layout manager makes sense since there isn't a way I can think of to express such a layout with the standard classes. And you'll need some kind of custom container anyway to get per-page flinging

  1   2   >