[android-developers] Re: 2.2 apk does not install in 2.1 droid

2010-10-07 Thread JonFHancock
In your manifest file, you have probably set the minSDKVersion to 8. Set it to 7 or maybe lower. If you set it at 8, it will be a 2.2 only app. 7 is 2.1 and so on. 5 and 6 are irrelevant. If you want to work on 1.6 (there are still new devices being sold with 1.6), you need to set it to 4. On

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread JonFHancock
Very likely to be true. I did kind of think whelp, I guess everybody in Argentina who wanted my app bought it yesterday. Saturated that market. On Oct 7, 11:42 pm, mort wrote: > On Oct 8, 4:00 am, Julian Bunn wrote: > > > I saw a temporary boost over a few days, then a plummet ... to below > >

[android-developers] Re: ImageView slow when using SetImageResource and MediaPlayer

2010-10-07 Thread ArcDroid
isn't that what I am doing with the above code? Thread t = new Thread() { public void run() { ... thanks On Oct 5, 8:02 am, Simon Platten wrote: > Hi, > > Why don't you play your audio in one thread and play your animation in > another thread? > > The way you have it now, its single synchronou

Re: [android-developers] Re: Lost Checked state of check box in ListView while scrolling

2010-10-07 Thread Rocky
Hey, Thanx for reply, but i'm getting ClassCastException at ((ListView)parent).isItemChecked(position) On Fri, Oct 8, 2010 at 11:14 AM, ravi pandit wrote: > Hey, > Its supported from the android ListView .Set CHOICE_MODE and use > methods like > > ((ListView)parent).isItemChecked(position) >

[android-developers] even i have an color state issue with list view selection & swipe

2010-10-07 Thread vadivelan m
Requirement : on touch / pressed d-pad scroll : list elements should highlight should be white & list background should be magenta color during swipe left / right , up / down the list view should not get highlighted but i am facing problem ... list background is becoming white ( default ) but th

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread mort
On Oct 8, 4:00 am, Julian Bunn wrote: > I saw a temporary boost over a few days, then a plummet ... to below > the previous levels. What's going on?! I guess it's more or less just the usual procedure: People are getting their salaries/allowances either at the beginning/end or middle of a month,

[android-developers] Bluetooth Service registration in Android

2010-10-07 Thread Ajmer singh
Hi I am working on a Android app that require a Bluetooth Access Server that try to Discover the Application on Android phone and once connected send the Ads back to the phone. However the access server is not able to discover the Service that i have registered using the BluetoothAdapter listenUs

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread JonFHancock
In my implementation, the danger is not that the hacker will use my key to sign the apk after modifying it (not possible), but that the hacker will debug the post variables being sent to the server and copy the key, then hard code the string into the api call, do his other modifications, sign it wi

[android-developers] 2.2 apk does not install in 2.1 droid

2010-10-07 Thread kavitha b
Hi All, I have created a project in Android 2.2 SDK . The droid I am having is of OS 2.1 . I am not able to install the project in droid,because of OS change version. How to make it install apk in old OS versions. Please reply,it is urgent. Thanks Kavitha -- You received this message becaus

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread JonFHancock
Yesterday was fantastic. Today was quite a bit slower. Not a plummet, but back down to previous levels. I did have a long stent today where sales barely moved. Maybe there was a problem... On Oct 7, 11:20 pm, Zsolt Vasvari wrote: > Yes, this happened to me as well.  I think there must have bee

[android-developers] Re: Design/"flowchart" scheme for Android apps?

2010-10-07 Thread Per
what's 'sequential programming'? :P (couldn't resist) I'm guessing that you're looking for a tool to help with documenting your OO architectural/design thoughts? I'd say that any tool capable of handling UML could do that. These come with many price tags, from 0$ to very expensive, and sometimes

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread Zsolt Vasvari
Yes, this happened to me as well. I think there must have been something wrong with the market, as I haven't had a sale for about 10 hrs. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

Re: [android-developers] Keeping IntentService alive even if app is killed

2010-10-07 Thread Dianne Hackborn
Oh sorry, I see that you are specifically talking about manage apps. In that case... the whole point of the "force stop" in manage apps is for a user to stop an app that they really want to make stop. As such, there is nothing you can do about it. The next version of the platform will include a

Re: [android-developers] Keeping IntentService alive even if app is killed

2010-10-07 Thread Dianne Hackborn
No there is nothing you can do about that. You just have to tell your users to stop breaking your app with their $#^!! task killers. (Starting with Froyo task killers will not be able to do this.) On Thu, Oct 7, 2010 at 7:37 PM, William Ferguson wrote: > I have an app that occassionally starts

[android-developers] OpenGL version info

2010-10-07 Thread grace
hi, how to find programatically which version of opengl es is being used for any 3D project.? -- 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 th

Re: [android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread Dianne Hackborn
On Thu, Oct 7, 2010 at 6:22 PM, DanH wrote: > So what is protecting the application from forgery? > What do you mean? This is the cert it is signed with. Do you have some way to force the cert? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private

[android-developers] Re: Lost Checked state of check box in ListView while scrolling

2010-10-07 Thread ravi pandit
Hey, Its supported from the android ListView .Set CHOICE_MODE and use methods like ((ListView)parent).isItemChecked(position) ((ListView)parent).setItemChecked(position, value) in your getView() or bindView() regards, ravi On Oct 7, 1:20 pm, Zsolt Vasvari wrote: > No, won't write the code fo

[android-developers] Want to render external buffers on the surface created at JAVA level.

2010-10-07 Thread Tejas
Hello All, I am developing video rendering application on android 2.2. I was taking reference of android-gstreamer surfaceflingersink developped into android1.6. I have modified code accordingly to make it work. But when i run it it gives me surface flinger permission access error.

[android-developers] Re: No Texting While driving .....

2010-10-07 Thread Bret Foreman
That will really annoy his passengers when they can't use their phones to text either, especially his teenage daughter. Find the RMS sum of the accelerometer axis values and combine that with the deltas from the GPS. Probably best to combine them using a Kalman filter: http://en.wikipedia.org/wiki

[android-developers] No Texting While driving .....

2010-10-07 Thread nimish khandelwal
hi plz tell me how to implent feature* No Texting While Driving in android.* actually i m developing an app in which if user is driving or he is above the set speed than he should not able to use messaging in his phone. means he should not type text when he drive. plz help me i have to implement

[android-developers] Re: Can I create a file in /data in android?

2010-10-07 Thread pramod.deore
You can only create file in application or on sdcard. On Oct 8, 5:42 am, Dianne Hackborn wrote: > If what exactly you need is to put files in /data, then the answer is no you > can not do that. > > > > On Thu, Oct 7, 2010 at 7:03 AM, Lidia wrote: > > > As i see, the lines above create new direct

[android-developers] ANDROID_ELASPED_REALTIME_WAKEUP

2010-10-07 Thread Ln
Hi , Android(froyo) goes to suspend on screen timeout but while it goes to suspend it is making an ioclt call to set rtc alarm, with type ANDROID_ELASPED_REALTIME_WAKEUP. Can any one please let me know why this call should be made? Because this call is setting an wake alarm for a time just 5sec

[android-developers] Android Image From FFMPEG AVPicture

2010-10-07 Thread caxton
Hi, This is the code for iPhone: http://www.cocoachina.com/bbs/read.php?tid=28801 I wonder that there is corresponding way to do it for Android. Thanks for any suggestion. regards, Caxton -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] Display Detail Overlay when touch a marker on the map

2010-10-07 Thread Donald
hi all, I'm developing a Google map application which will draw a route and will have multiple markers on the map. and once user select a marker i want to display a detail description. i'm using com.google.android.maps.Overlay to draw markers as well as to draw path between two markers.

[android-developers] Re: Out of memory after executing application several times

2010-10-07 Thread caxton
I found that I do not set "all" reference to null before System.gc(). Your suggestions are useful, too. Thanks a lot!! Regards, Caxton On 10月6日, 上午2時16分, Daniel Drozdzewski wrote: > Caxton, > > You are allocating 4.25MB each time. You have to remember that > activities do not disappear instantly

[android-developers] Samsung Galaxy Camera flash-mode and zoom-supported oddities

2010-10-07 Thread mjmeyer
I've been stunned by how different Samsung's camera behaves compared to the other devices I've tested camera preview stuff with. Mind you, this is in 2.1 so the SDK 8 Camera.getZoomRatios() and Camera.isZooomSupported() are not available. Looking at the Camera.getParameters().flatten() result sho

[android-developers] Keeping IntentService alive even if app is killed

2010-10-07 Thread William Ferguson
I have an app that occassionally starts an IntentService (bundled in the same app) in which to process some backrgound work. Its not unusual for the user to exit the app (ie move on to somethign else) and the backrgound work should continue until it is complete, which the IntentService handles ni

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-07 Thread Julian Bunn
I saw a temporary boost over a few days, then a plummet ... to below the previous levels. What's going on?! On Oct 6, 4:54 pm, JonFHancock wrote: > Since the market opened in more countries a few days ago, I've seen a > nice boost of about 20-40 sales per day.  At first I thought some blog > had

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread DanH
So what is protecting the application from forgery? On Oct 7, 7:39 pm, Dianne Hackborn wrote: > On Wed, Oct 6, 2010 at 3:44 PM, DanH wrote: > > Supposedly PackageInfo.signatures[0] gives you the signature. > > However, there's a Catch22:  You can't get the signature until the app > > is packaged

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread William Ferguson
Thanks for the clarification Dianne. On Oct 8, 10:39 am, Dianne Hackborn wrote: > On Wed, Oct 6, 2010 at 3:44 PM, DanH wrote: > > Supposedly PackageInfo.signatures[0] gives you the signature. > > However, there's a Catch22:  You can't get the signature until the app > > is packaged, and you can'

[android-developers] Re: how to send data to server while recording

2010-10-07 Thread cindy
why we need base64 encoding? Is that AMR ? On Sep 21, 3:10 am, Kostya Vasilyev wrote: > Might want to do base64 encoding, too (if the network protocol is HTTP). > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 21.09.2010 11:42 пользователь "ko5tik" написал: > > On Sep 21, 8:13 am, ci

Re: [android-developers] Re: Can I create a file in /data in android?

2010-10-07 Thread Dianne Hackborn
If what exactly you need is to put files in /data, then the answer is no you can not do that. On Thu, Oct 7, 2010 at 7:03 AM, Lidia wrote: > > As i see, the lines above create new directories inside my application > folders. > This is not exactly what i need, but thank you anyway for you advice

Re: [android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread Dianne Hackborn
On Wed, Oct 6, 2010 at 3:44 PM, DanH wrote: > Supposedly PackageInfo.signatures[0] gives you the signature. > However, there's a Catch22: You can't get the signature until the app > is packaged, and you can't modify the app to insert the signature > after it's been packaged. > Despite its name,

[android-developers] Re: how to send data to server while recording

2010-10-07 Thread cindy
If I am using socket, how could I tell server that audio record is done? On Sep 21, 3:10 am, Kostya Vasilyev wrote: > Might want to do base64 encoding, too (if the network protocol is HTTP). > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 21.09.2010 11:42 пользователь "ko5tik" напис

Re: [android-developers] Re: List of "task killers"

2010-10-07 Thread Dianne Hackborn
On Thu, Oct 7, 2010 at 11:15 AM, Nathan wrote: > I'm straying a bit, but what problems do you generally get from task > killers? > These answers apply to pre-2.2; as of 2.2 task killers can't do anything destructive. > Will they close a program when not visible? This is the one I've seen. > Y

Re: [android-developers] Re: how to use AmrInputStream

2010-10-07 Thread Mark Murphy
On Thu, Oct 7, 2010 at 8:35 PM, cindy wrote: > But you can't import the class into your code: > import android.media.AmrInputStream. > I think android simulator doesn't have this class. Am I correct? It is not part of the Android SDK. It is part of the firmware. -- Mark Murphy (a Commons Guy) h

Re: [android-developers] layout_gravity programmatically

2010-10-07 Thread Mark Murphy
On Thu, Oct 7, 2010 at 8:27 PM, Sables wrote: > I'm unable to change the layout_gravity of a Button programmatically, > does anybody know how to do this? > > The gravity attribute is easily changed using Button.gravity(), Ie it > changes the gravity of the text inside the button I cannot change th

[android-developers] Re: how to use AmrInputStream

2010-10-07 Thread cindy
But you can't import the class into your code: import android.media.AmrInputStream. I think android simulator doesn't have this class. Am I correct? On Oct 7, 5:15 pm, DanH wrote: > http://hi-android.info/src/android/media/AmrInputStream.java.html > > On Oct 7, 4:18 pm, cindy wrote: > > > I can

[android-developers] layout_gravity programmatically

2010-10-07 Thread Sables
I'm unable to change the layout_gravity of a Button programmatically, does anybody know how to do this? The gravity attribute is easily changed using Button.gravity(), Ie it changes the gravity of the text inside the button I cannot change the gravity of the button itself. I also cannot seem to f

Re: [android-developers] App2SD

2010-10-07 Thread Mark Murphy
On Thu, Oct 7, 2010 at 8:16 PM, Zaid wrote: > i added " android:installLocation="auto"" to my manifest and changed > the project target api in eclipse to 8(was 3 b4) so my app can be > installed to SD card, but i kept the minisdkversion to 3, so people > with android 1.5 can use my app. > > my que

[android-developers] App2SD

2010-10-07 Thread Zaid
i added " android:installLocation="auto"" to my manifest and changed the project target api in eclipse to 8(was 3 b4) so my app can be installed to SD card, but i kept the minisdkversion to 3, so people with android 1.5 can use my app. my question is, can people with android version 1.5 still be a

[android-developers] Re: how to use AmrInputStream

2010-10-07 Thread DanH
http://hi-android.info/src/android/media/AmrInputStream.java.html On Oct 7, 4:18 pm, cindy wrote: > I can find the document of AmrInputStream, How could I use it? > > Thanks! > > Cindy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To po

[android-developers] Re: caller id spoofing

2010-10-07 Thread DanH
Have the Androids dial into a forwarding gizmo (I forget the official phone biz term) in his hardwired phone system. Otherwise, I'd hope you can't do it, at least not to an arbitrary phone number (where you don't have some sort of "certificate" authorizing you to the number). On Oct 7, 4:40 pm, G

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-07 Thread DanH
Come to think of it, how would one create a Handler for another thread? You'd have to dispatch the thread and have it create the Handler and pass the pointer back to you (we won't worry about how), but then that thread needs to go into a message receive loop. Apparently this is done via Looper.

[android-developers] Application loses icon on reboot -- can't run LG Ally ONLY

2010-10-07 Thread MrPnut
Hello, I really hope someone has an answer to this, or a lead. I wrote an app that works on all phones except the LG Ally. I'm getting a number of complaints saying that it loses the shortcut icon after the user reboots their phone. However, it shows that the app is still installed. It only h

[android-developers] Re: Live wallpaper not showing up on Samsung Captivate 2.1 update 1 while shows up fine on Droid1 Froyo

2010-10-07 Thread String
On Oct 7, 5:24 pm, dan raaka wrote: > Do you specify the the uses-feature string "android.software.live_wallpaper" > on you manifest ? Nope. And my live wallpapers seem to be working fine on Galaxy S devices. String -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: List of "task killers"

2010-10-07 Thread String
The biggest problem I've run into is that task killers wipe any future alarms you may have set. So a well-behaved app which is not actually running now, but is set to do something in the future (often at the user's behest), will no longer function thanks to the frackin' task killer. But do you thin

[android-developers] Re: javax.sound alternative

2010-10-07 Thread Mrid
Thank you Mark for the reply. I am here uptil now. int bufferSize = AudioRecord.getMinBufferSize(8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000

[android-developers] button placement problem

2010-10-07 Thread Varun Khanduja
Hey guys, I am trying to get a button at bottom of a screen having a list view. This button is non-scrollable and the list view slips below the button if it is larger than the size of the button. Could someone please help me get the right xml properties. Tried layout_gravity and other things but i

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread DanH
My point is that someone could modify the code and still preserve the CRC32. Thus the "signed' app is no longer legitimately "signed" -- it could be a forgery, and could do evil things (for which the signing person would get blamed). That would be a major hole (which makes me wonder if what you'r

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread JonFHancock
> They use a CRC32 to protect the code?  That's easily spoofed.  It's > only intended to detect accidental changes to the data. What? I don't think anybody said they use a CRC32 to protect code. I was saying that the Signature does not change from build to build like a CRC32 would. On Oct 7,

[android-developers] System Settings.db corruption

2010-10-07 Thread cumhur cevik
Hi, When sqlite db corrupts it is creating a new one. But What happens when system Settings.db corruption? -- 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 unsubscri

[android-developers] Launch camera app with an intent?

2010-10-07 Thread Ozymandias
I can't find any intent which opens the camera. The closest I've found is ACTION_CAMERA_BUTTON but that breaks if the phone has no hardware button for the camera. Anyone know? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: google voice && native phone dialer control

2010-10-07 Thread Alejandro D. Garin
Hi Guys, I know, nobody has an answer. But please I need some advice from google team developers. >From the point of view of a person that install the google voice application from the market and see what is capable to do with the native dialer (i.e. changing the default number dialed, open a bu

[android-developers] Re: List of "task killers"

2010-10-07 Thread Nathan
On Oct 7, 2:10 pm, "{ Devdroid }" wrote: > On 7 October 2010 20:15, Nathan wrote: > > > I'm straying a bit, but what problems do you generally get from task > > killers? > > The major proble is most people does not need any as they got no bloody > idea about android application lifecycle. They

[android-developers] Re: List of "task killers"

2010-10-07 Thread William Ferguson
Unfortunately, poor application implementation by some developers has made Task Killers a necessity. I would hazard that between 10-20% of the apps that I have downloaded contiue to consume CPU cycles in the background for hours after I have stopped using the app. There are a bunch of apps on my p

[android-developers] Re: javax.sound alternative

2010-10-07 Thread OldSkoolMark
The current Android audio API's are rather spotty in terms of what they provide. You'll have to write your own .wav converter at the very least. On Oct 7, 2:09 pm, Mrid wrote: > can anyone please help me on this ? > > On Oct 6, 3:37 pm, Mrid wrote: > > > Hi All, > > > wanted to know is there any

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-07 Thread Jeremy Wadsack
Right. A Thread is a Runnable but treating it like a Runnable may not launch it on a separate Thread. I'll re-organize this around a single Thread. Thanks for the code review and suggestions. Once again proving that automated testing and code review leads to better quality code. -- Jeremy Wadsack

[android-developers] caller id spoofing

2010-10-07 Thread Greg Donald
I've searched and found nothing helpful so I'm now asking for guidance. I have a client who wishes to spoof the caller id for his phones he assigns to his sales staff. He wants the number to appear to be from his main office to better handle return calls from potential buyers. Is this possible?

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-07 Thread DanH
But I don't see anywhere in the Handler spec where it says the thread will be dispatched. It appears to me that when the thread is posted, Handler will just run its "run" method, without starting the thread. If you wanted to run on a separate thread it appears to me that you'd have to start the th

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-07 Thread Jeremy Wadsack
Fair point. The "// Do some tasks" is doing long-running (Internet- connected) stuff, so I want it to run in a separate thread. As I understand, posting the Runnable without a thread would run it on the main thread. I assume the gc will clean up the Threads as they expire, but I could also redesig

[android-developers] Re: Aplicação criação de ar quivo PDF.

2010-10-07 Thread Paul Turchenko
Try asking is English... this way you'll have more chances to get answer On Oct 6, 11:55 pm, Erick wrote: > Ola a todos! > > Estou com uma solicitação de desenvolvimento de uma aplicação que crie > um arquivo PDF, tentei usar o IText mas na hora de fazer o > PdfWriter.getInstance(doc, os); aprese

[android-developers] how to use AmrInputStream

2010-10-07 Thread cindy
I can find the document of AmrInputStream, How could I use it? Thanks! Cindy -- 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 ema

Re: [android-developers] Re: List of "task killers"

2010-10-07 Thread { Devdroid }
On 7 October 2010 20:15, Nathan wrote: > I'm straying a bit, but what problems do you generally get from task > killers? The major proble is most people does not need any as they got no bloody idea about android application lifecycle. They believe all tasks they got listed are running tasks. Maj

[android-developers] Re: javax.sound alternative

2010-10-07 Thread Mrid
can anyone please help me on this ? On Oct 6, 3:37 pm, Mrid wrote: > Hi All, > > wanted to know is there any alternative ofjavax.sound.sampled package > specially AudioSystem and TargetDataLine class. Here is the sample > code in java I am referring to : > >                 1       AudioFormat af

Re: [android-developers] Tutor for project

2010-10-07 Thread { Devdroid }
On 7 October 2010 20:31, Mike karl wrote: > Looking for some teaching on a simple calculator app please send rates to > mike.d.k...@gmail.com should only be a couple hour job I'm a fast leaner Then get yourself *any* more advanced android tutorial covering basisc of UI, buttons and layout and you

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-07 Thread DanH
Kind of off-topic, but why are you creating a new Thread with each post, vs simply posting the Runnable? On Oct 5, 5:47 pm, Jeremy Wadsack wrote: > I have a class that uses a Handler for a timed, asynchronous activity. > Something like this: > > public class SampleClass { >   private static final

[android-developers] Re: Android (dalvik) performance question for API design

2010-10-07 Thread DanH
As I indicated earlier, the speed of such a scheme does depend (a lot) on how well instance field access is implemented. In an interpreter, the canonical scheme is to remove from the bytecodes the field reference operation that references a constant pool entry for the field, and replace that with

[android-developers] 3D Model Loader using NDK

2010-10-07 Thread Aaron Rudolph
HI, all. I'm having a little problem here: I have this app, which is a 3D Photo Gallery. It takes the photos on your phone and displays it in a virtual art museum thing. My issue is this: I want to be able to put models in, such as plants and/or chairs and what-have-you, but all the 3D model loade

[android-developers] Market API

2010-10-07 Thread Brad Gies
Has anyone figured out what the following fields in the Market.App object represent? 19: 0 28: 1 I haven't seen any values except 0 for 19 and 1 for 28... but I haven't looked at all that many yet either. I'd like to know what they are because I'm building an app to be able manage t

[android-developers] Re: Android (dalvik) performance question for API design

2010-10-07 Thread DanH
> In the 'Size' approach, wouldn't there have to be a NullPointerCheck > in place of the ArrayBoundsCheck? Depends on the JVM. If using a null pointer results in an exception that can be differentiated reasonably well then most explicit null pointer checks are unnecessary. Besides which, an exp

[android-developers] Re: Getting a RadioGroup to redraw with correct button checked

2010-10-07 Thread Bret Foreman
I figured out how to make it work and the solution should be added to the RadioGroup docs. You have to call RadioGroup.clearCheck before removing the buttons. You also need to handle the case where onCheckedChanged is called with a position of -1 because that happens immediately when you call clear

[android-developers] Re: Auto-repeat button

2010-10-07 Thread DanH
Well, I looked at that example again, and it doesn't use a separate thread, just a Runnable (which they unhelpfully call a "task"). I hacked on the code a bit and got it down to a pretty tight set of logic. This is it, including the lash-up to a SeekBar: --- Logic in onCreate: SeekBar w

[android-developers] Re: Android (dalvik) performance question for API design

2010-10-07 Thread webmonkey
I am asking because I am converting a C library that uses a lot functions that return a simple struct with primitive data type ( Points, Sizes, Matrices, etc ) There are a lot of these functions and some are used in performance critical situations. I would like to know what the most efficient way i

Re: [android-developers] Re: Getting a RadioGroup to redraw with correct button checked

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 1:59 PM, Bret Foreman wrote: > Is there a way to get Android to completely remove the RadioGroup rather > than just re-fetch the same object when I call findViewById? I want to cause > a new RadioGroup object to re-created like it would be in onCreate. > Create and add the

Re: [android-developers] Re: Getting a RadioGroup to redraw with correct button checked

2010-10-07 Thread Mark Murphy
On Thu, Oct 7, 2010 at 2:59 PM, Bret Foreman wrote: > The length of dataList can change so re-using the buttons is > problematic. Is there a way to get Android to completely remove the > RadioGroup rather than just re-fetch the same object when I call > findViewById? I want to cause a new RadioGro

[android-developers] 2 columns 2 rows list view

2010-10-07 Thread Varun Khanduja
I am trying to make a list view having 2 columns and within these columns each element of list view is having two rows. I figured out how to get two columns, one of the column is having 2 rows perfectly but another column is not able to get the second row at all. I am not sure whats the issue, does

[android-developers] Re: Getting a RadioGroup to redraw with correct button checked

2010-10-07 Thread Bret Foreman
The length of dataList can change so re-using the buttons is problematic. Is there a way to get Android to completely remove the RadioGroup rather than just re-fetch the same object when I call findViewById? I want to cause a new RadioGroup object to re-created like it would be in onCreate. -- Yo

Re: [android-developers] Getting a RadioGroup to redraw with correct button checked

2010-10-07 Thread Mark Murphy
I suspect you will need to check whatever RadioButton you want again. Or, rather than getting rid of the buttons and rebuilding them all, just change their captions. Or, switch to a single-selection ListView. On Thu, Oct 7, 2010 at 2:32 PM, Bret Foreman wrote: > I have a RadioGroup view inside a

[android-developers] Getting a RadioGroup to redraw with correct button checked

2010-10-07 Thread Bret Foreman
I have a RadioGroup view inside a LinearLayout. The radio buttons are added from dataList. If I call the code below from inside onCreate, the correct button is checked. However the dataList can get updated from time to time and after that happens I call this code again, without destroying the Activ

[android-developers] Tutor for project

2010-10-07 Thread Mike karl
Looking for some teaching on a simple calculator app please send rates to mike.d.k...@gmail.com should only be a couple hour job I'm a fast leaner -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-

[android-developers] Re: Unit testing a class that uses android.os.Handler

2010-10-07 Thread Jeremy Wadsack
Digging deeper into the Android source code, it looks like this must have an active MessageQueue or it would throw an exception. In fact, adding some logging, shows that the Looper is running and the messages are being posted to the queue: 10-07 10:51:27.809: VERBOSE/Sample(940): Looper{437942d0}

[android-developers] Re: List of "task killers"

2010-10-07 Thread Nathan
I'm straying a bit, but what problems do you generally get from task killers? I only know of one confirmed problem with a taskkiller, but based on their destructive nature, I suspect there are a lot more. Will they close a program when not visible? This is the one I've seen. The home screen butto

[android-developers] Re: Android (dalvik) performance question for API design

2010-10-07 Thread MB
In the 'Size' approach, wouldn't there have to be a NullPointerCheck in place of the ArrayBoundsCheck? I usually use the 'Size' approach when the return values are Object types and 'array[]' approach for primitive data types. I never really thought of these from a performance perspective. Please

[android-developers] Re: Testing licensing on emulator.

2010-10-07 Thread MB
Hi, I was able to resolve this. This is what needs to be done. 1.) The app needs to have been published at some point for test console settings to work. I published and then quickly unpublished the app. 2.) The app needs to be uploaded as a paid app. I had to sign up for a Google merchant account

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread DanH
They use a CRC32 to protect the code? That's easily spoofed. It's only intended to detect accidental changes to the data. On Oct 7, 12:23 pm, JonFHancock wrote: > The Signature does not change on every build.  The signature is not > the same as a CRC32.  I have already put out 3 updates with va

[android-developers] Re: Wierd memory leak

2010-10-07 Thread DanH
Right. The main difference is that StringBuffer is threadsafe, and nothing else in Android is threadsafe, so little point in using StringBuffer. (That said, the performance edge of StringBuilder over StringBuffer is unlikely to be noticed.) On Oct 7, 11:48 am, jotobjects wrote: > On Oct 7, 12:4

[android-developers] Re: Design/"flowchart" scheme for Android apps?

2010-10-07 Thread DanH
I'm not looking for a flowcharting tool, but rather something to design the relationships between Activities, Intents, Providers, etc. Android isn't a conventional sequential programming environment, and sequential programming design tools are of little help. On Oct 7, 12:15 pm, Bret Foreman wrot

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread JonFHancock
The Signature does not change on every build. The signature is not the same as a CRC32. I have already put out 3 updates with various code changes since I started using the server-side signature checking. I haven't changed the server-side code, and the app keeps on working. If I try a developme

[android-developers] Re: Can't Connect to a remote host from Emulator !!!

2010-10-07 Thread jotobjects
What kind of connection and what kind of failure? Here are a couple of prior posts that might be useful. http://groups.google.com/group/android-developers/browse_thread/thread/7d82e5c4f0c4d555/6bba73d41cd9ff01?lnk=gst&q=wifi+emulator#6bba73d41cd9ff01 http://groups.google.com/group/android-develo

[android-developers] Re: Android Web Server

2010-10-07 Thread Bret Foreman
I've run a web server from a PC using my phone as a gateway and the results were mixed. Some carriers will sense and block the inbound connection and others will not. But it's against the TOS for all carriers. That is set to change as more people do pier-to-pier web services, but it's not reliable

[android-developers] Re: Design/"flowchart" scheme for Android apps?

2010-10-07 Thread Bret Foreman
I think the Rational toolset (RUP) has a generic tool for creating flowcharts for most languages, including Java. That's not free, but it would be a good thing to study before recreating the same functionality in open source. -- You received this message because you are subscribed to the Google G

Re: [android-developers] Re: second column list view not properly aligned

2010-10-07 Thread TreKing
On Thu, Oct 7, 2010 at 11:56 AM, Varun Khanduja wrote: > Just curious do we normally use px, dip or sp for size declarations? > DP, I believe, is the way to go for automatic scaling on different devices.

[android-developers]

2010-10-07 Thread xc s
my english isnot very well.but I hope you can help me.I do not know how to use the video capture .in the sdk,it has a article about audio capture.but in the sdk,iI cannot find the article about video capture.so if anybody know it, please help me.thanks. -- You received this message because you

[android-developers] Re: second column list view not properly aligned

2010-10-07 Thread Varun Khanduja
Option a worked. Had the width set to 100px and everything fell in line. Just curious do we normally use px, dip or sp for size declarations? On Oct 7, 5:17 am, TreKing wrote: > On Wed, Oct 6, 2010 at 11:16 PM, Varun Khanduja > wrote: > > > I have been getting opinions that I should have gone fo

[android-developers] Re: Problem with interecepting outgoing calls on HTC Desire

2010-10-07 Thread Denis Souza
Agreed. Billas' solution is a very good one and there's no real difference to the user, visual or otherwise. I didn't think it would work so well until I actually implemented it. I also don't think that we can rely on HTC to fix it. Since its the only device that seems to have such a problem I deci

[android-developers] Re: Android Web Server

2010-10-07 Thread kypriakos
I will post what we find out here - thanks guys On Oct 7, 12:07 pm, kypriakos wrote: > Excellent pt - we are testing all that using p2p technologies in our > middleware. > At least for certain ports (http 80 8080 or so) we can go through. > Also looking > into NAT hole punching in those cases. >

[android-developers] Re: Wierd memory leak

2010-10-07 Thread jotobjects
On Oct 7, 12:46 am, Alex wrote: > Thanks a lot, working with StringBuffer and it's impelemention of > substring did the trick! Also consider that StringBuilder would be more efficient than StringBuffer -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Design/"flowchart" scheme for Android apps?

2010-10-07 Thread DanH
I'm seeing that it would be good to have some sort of charting scheme (or possibly just a table-based design strategy) when designing Android apps. Have any such schemes been proposed? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

Re: [android-developers] List of "task killers"

2010-10-07 Thread { Devdroid }
On 7 October 2010 17:36, TreKing wrote: > But then you're leaving out set of users, however small, that will be using > the less popular ones. If you're concerned about "one less user" to support, > you should cover all your bases, no? Perhaps, but I do care, still not that much :) Anyway, it'd

  1   2   3   >