Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread Romain Guy
If you block the UI thread, the dialog won't work. The user won't be able to click it, and it might not even draw at all. So a very bad idea :) On Tue, Dec 29, 2009 at 10:33 PM, Frank Weiss wrote: > Just like Treking, I'm puzzled by Swapnil's desire to block the UI thread. > Perhaps if he explain

[android-developers] Re: AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
Frank I can see this working. However as my code is now, I use an imageView in the xml layout files to display my photo, however I don't point the xml file to the photo. I process the user selected photo, then save it to the SD card and then in code point the imageView to the file I just made. I sa

[android-developers] Re: Bluetooth SPP question

2009-12-29 Thread Fred
Connected It was the UUID. I have been hacking the bluetoothchat example, and had left the UUID at the default. Once I set it to the SPP UUID it wakes up after the conect() call and starts sending the packets like crazy. Thanks for the pointer on the sdptool, too I was able to get more infor

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread Frank Weiss
Just like Treking, I'm puzzled by Swapnil's desire to block the UI thread. Perhaps if he explained what he does not want the UI thread doing while the dialog is displayed, would shed light on the issue for all. On Dec 29, 2009 9:59 PM, "TreKing" wrote: > I can put my code in listeners but still

Re: [android-developers] Re: AppWidget Update on Orientation Change

2009-12-29 Thread Guru
You can just check the orientation in the widgets call back method.But this would not be an immediate change. On Wed, Dec 30, 2009 at 10:23 AM, Frank Weiss wrote: > Clearly, you need two images, one or both scaled and cropped from the > original. I think your question may be when is the best tim

[android-developers] Re: Loading 2.0.1 to ADP2

2009-12-29 Thread deuce4
Hi I'd also like to hear any information regarding upgrading the Ion OS does anyone have any info? On Dec 25, 4:55 am, Ron Pinkas wrote: > Hi All, > > Please forgive my ignorance. Athough I see the following in the > official description of the ADP2: > > --

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread TreKing
> > I can put my code in listeners but still I dont want that thread to > continue its execution Which thread? The UI thread? I'm pretty sure you DO want the UI thread to continue it's execution. Why would you NOT? What are you trying to accomplish? I can't think of why you would want this behav

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread Alok Kulkarni
I dont know whether this will work or not but did you try the handler of Android ? public Handler ScreenHandler = new Handler() { public void handleMessage(Message msg) { // Handle on click. } } The above handler can be put in the UI thread. And in your onClick ScreenHandler.sendEmptyM

Re: [android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread swapnil kamble
Thanks for your replies. I can put my code in listeners but still I dont want that thread to continue its execution, unless response is not given, just like what windows MessageBox.show() does. I have got a workaround for it, but its not at all a standard way. I will not use it too. Anyway from th

[android-developers] drag and drop table rows?

2009-12-29 Thread Sean Neilan
Is it possible to drag and drop table rows in android? Say the user holds down on a table row, the row would would become transparent and be draggable around the screen & then depending where the user dropped it, the table row would be inserted there. -- You received this message because you are

Re: [android-developers] Re: AppWidget Update on Orientation Change

2009-12-29 Thread Frank Weiss
Clearly, you need two images, one or both scaled and cropped from the original. I think your question may be when is the best time to do that. That would depend on how you are storing the images, in res, on the file system, DB, where? On Tue, Dec 29, 2009 at 7:54 PM, Ryan wrote: > Thanks, but I

[android-developers] Re: VideoView playback fails on 2.0.1? MediaPlayer warnings in logcat

2009-12-29 Thread And-Rider
There is a bug filed regarding issue... http://code.google.com/p/android/issues/detail?id=5696#makechanges On Dec 29, 2:32 pm, And-Rider wrote: > Did any one have a solution for this issue...? > > I do have the same problem with 2.0.1 > > On Dec 16, 11:19 pm, Morgane Plat wrote: > > > Sorry I c

Re: [android-developers] Re: custom keyboard

2009-12-29 Thread Dai Hiro
This class manages input method settings : http://developer.android.com/reference/android/provider/Settings.Secure.html Unfortunately you can only read those settings and not modify them. I think you should find an other way to do what you want to do. Kwaku On Mon, Dec 28, 2009 at 5:38 PM, schwi

[android-developers] Re: AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
Thanks, but I don't want a different layout. I want to use the same layout. I just want to change the picture size that i use in the imageview in the layout. I need to scale/crop the image so that it fills the correct size in the screen, going from portrait to landscape should make the image change

Re: [android-developers] AppWidget Update on Orientation Change

2009-12-29 Thread Guru
there is a thread whch explains how to do this.I could'nt google it easily. You need to specify a different id for each of the layout.that is for example: sample.xml http://schemas.android.com/apk/res/android"; android:orientation="vertical" *android:id="landscape"* android:layout_wid

[android-developers] Re: Achieving evenly spaced buttons on a layout

2009-12-29 Thread Matt
Use a table layout, and give it the following attribute: android:stretchColumns="*" example: On Dec 29, 6:06 pm, andrew android wrote: > Have you tried a table layout? > > On Dec 28, 9:03 pm, Robert

[android-developers] Re: How can I put a TextView on a Layout without using an xml-file? What is wrong in my code?

2009-12-29 Thread Martin
Thank you all! It works now with the layout.addView(tv); Sorry for the easy questions. Some days ago, I was a total beginner in Android-programming ;-) Greetings, Martin On 28 Dez., 14:48, Brion Emde wrote: > You need to add the TextView to the layout. > > Here's the revised program: > > package

[android-developers] Who loads the hardware / software codecs mentioned in the .cfg files

2009-12-29 Thread Sunit
hi, Have been trying to do a workaround on the Codecs. I realise that the codecs are fetched from the .cfg files that too in the albhatecial order of the cfg file name. generally it is the hardware codec that is loaded first. Now my query is, 1) Who queries or u can say parses these .cfg file

[android-developers] Re: How can I access folders in res/drawable? Example: res/drawable/gameboard/image1.png and res/drawable/character/image1.png ?

2009-12-29 Thread Martin
Oh ok, thank you. On 28 Dez., 19:09, Romain Guy wrote: > Folders in res/drawable are not supported at the moment. > > > > > > On Fri, Dec 25, 2009 at 7:08 AM, Martin wrote: > > Hi! > > > I am programming a game and I have MANY MANY images. Is there a way > > how I can sort them in folders and ac

[android-developers] AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
I am developing a photo frame widget, all works except on an orientation change to landscape mode my appwidget doesn't display correctly as I have it set to portrait dimensions and it is too large for the display. I would like to run some code to resize the image so that everything displays correct

[android-developers] Is Android Hardware Supports NFC

2009-12-29 Thread android.vinny
HI All Is Android Hardware Supports NFC . I need some info regrading android hardware and NFC near field communication . please share it fif any body know about this. Thnkas & regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: Google Marketplace Chargeback Fee

2009-12-29 Thread Craigo
OK, so it's a fee charged by Google. I hope they have to do some manual work or there is some external cost, when a chargeback occurs. And they are not just cashing in on our misfortune. On Dec 28, 3:57 pm, Streets Of Boston wrote: > It a part of doing business using credit cards... usually the

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread chris harper
Dianne Really? So what you are saying is that Android development doesn't really want developers building applications that use Flash? I can see your point on how Flash is tied to certain devices but I was assuming that in 2010 more support from both the adobe and android camps would be working to

[android-developers] Re: Spinners

2009-12-29 Thread Christine
Just a piece of advice, when you have so many seemingly identical textviews and spinners, it may be convenient for you to put the attrebutes in a style and associate the styles with the spinner and the textview. That way, you can change the layout and settings of all spinners and textviews in one p

[android-developers] Re: hashset problem

2009-12-29 Thread Robert Green
If you want order, you should use an ArrayList or a sorted Set. On Dec 29, 5:25 am, raphael couturier wrote: > Hi, > > I have a problem with the hashset implementation because the followinf > little part of my code uses it and doesn't give the same result > according to the version of android. >

[android-developers] Re: Achieving evenly spaced buttons on a layout

2009-12-29 Thread andrew android
Have you tried a table layout? On Dec 28, 9:03 pm, Robert wrote: > I am developing a misterhouse frontend.  I have 9 image buttons that I > want to be evenly spaced on all sides.   > Seehttp://onlamp.com/onlamp/2004/11/11/graphics/mrhousemain.gif.  What > layout and xml parameters do I use to ach

Re: [android-developers] TabActivity how to show Contact activity in a tab.

2009-12-29 Thread Mark Murphy
maxsap wrote: > Hello all I am developing an application and as part of it I would > like to show a tabactivity and use the contact activity to let the > user see,modify,or call a specified contact. my code is this: > package com.WaveCally; > > import android.app.AlertDialog; > import android.app.

[android-developers] TabActivity how to show Contact activity in a tab.

2009-12-29 Thread maxsap
Hello all I am developing an application and as part of it I would like to show a tabactivity and use the contact activity to let the user see,modify,or call a specified contact. my code is this: package com.WaveCally; import android.app.AlertDialog; import android.app.TabActivity; import android.

[android-developers] Re: blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread theSmith
On Dec 29, 1:22 pm, TreKing wrote: > Um ... why don't you just put the code you want to execute in the onClick > handlers for the Yes and No options, respectively? > That's pretty much the point of having them ... > +1 for the win. I agree, just take what ever action is necessary and put it in

[android-developers] Re: hashset problem

2009-12-29 Thread Brion Emde
HashSet is not an ordered collection. The ordering is based on the the hash value and however it represents the data internally. I am not surprised at all that different versions of Android would give different orderings. On Dec 29, 4:25 am, raphael couturier wrote: > Hi, > > I have a problem wit

[android-developers] Re: Spinners

2009-12-29 Thread Brion Emde
At least one of your Spinners has android:layout_height="fill_parent". that could mess you up. On Dec 29, 12:47 pm, Duey Oxburger wrote: > Hey All, > > A spinner question: > > I want to have multiple spinners working in the same view.  In my > list, the first spinner works, but the others are emp

[android-developers] Re: ProgressDialog during location tasks either won't show or force closes - I have tried everything!

2009-12-29 Thread andrew android
Thanks. I was trying to create the ProgressDialog in OnCreate or OnStart. That must be the problem so what is the best approach to do it immediately when theView is loading?I even tried RunInUIThread? Sorry for not including much trace before, by the way. My mistake. I may try again later

Re: [android-developers] Suppressing touch events with ACTION_CANCEL

2009-12-29 Thread Dianne Hackborn
ACTION_CANCEL lets you consume the current touch event stream until the next up. I would highly recommend that you not do this yourself, but use the APIs on ViewGroup for intercepting touch events that will take care of these details for you and ensure that the correct event flow occurs. On Tue,

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread Dianne Hackborn
On Tue, Dec 29, 2009 at 1:45 PM, chris harper wrote: > I am doing a proof of concept right now for an app that I want to do. > For my app to work I will need to interact certain system actions on the > phone with code in Flash (actionscript 2 which FlashLite supports). > I have not found a way fo

Re: [android-developers] Adobe AIR runtime can run on Android?

2009-12-29 Thread Mark Murphy
Lucas wrote: > My doubt is if Adobe AIR runtime, for desktop apps, can be installed > and run on Android. Android does not natively support Flash, let alone AIR. Adobe does not have a downloadable Flash player for Android, let alone an AIR runtime. -- Mark Murphy (a Commons Guy) http://commonswa

[android-developers] Re: Microphone sample rates

2009-12-29 Thread niko20
Hi, I know the G1 and the Droid can both do multiple sample rates. As far as I know from reading posts, only the Samsung Moment is limited to 8000hz. I don't know of other devices tho. -niko On Dec 29, 8:52 am, RLScott wrote: > OK, can anyone give me any information at all on Android phones wit

[android-developers] Spinners

2009-12-29 Thread Duey Oxburger
Hey All, A spinner question: I want to have multiple spinners working in the same view. In my list, the first spinner works, but the others are empty. Here's how my main.xml looks: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:padding="10dip" a

[android-developers] Adding database to application

2009-12-29 Thread vg
Hi, I am wondering if there is a way to do something like this. Within a city lets say San Diego, I have several zip codes and I want the list of all those zip codes for a city in my database ? Is it possible to bundle my application with a handful of such databases? Thanks, Vishal -- You re

[android-developers] Questions about data persistence

2009-12-29 Thread cristiamterrera
Good community, I am developing an application data load information, such an agenda, and I get the question of how to persist data? to join the application, as besides the data also persist the settings that are joining as preferences between other things and information that is generated will per

[android-developers] What use for simple drawing on screen

2009-12-29 Thread hollowback
Hi, what is best way to create app in which I only need to draw simple lines through onTouchEvent? When i use invalidate everytime i draw any line, that erase lines i draw before. But if I use some List structure to store drawed lines it lose performance. Is there any simple way to do it? Thanks f

[android-developers] Suppressing touch events with ACTION_CANCEL

2009-12-29 Thread rahul
Hi, I am suppressing the touch events depending upon the size in the dispatchTouchEvent of View.java. If the event size is greater than the threshhold i m sending the event as ACTION_CANCEL to onTouchEvent. I wanted to know how ACTION_CANCEL works. In the android document it says it cancel the cur

[android-developers] Re: Microphone sample rates

2009-12-29 Thread RLScott
OK, can anyone give me any information at all on Android phones with a microphone sample rate of more than 8000 Hz? Robert Scott Ypsilanti, Michigan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] unsubscribe

2009-12-29 Thread Jiawu Zhong
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit

[android-developers] Adobe AIR runtime can run on Android?

2009-12-29 Thread Lucas
Hi everyone, im from Argentina and this is mi 1st post, sorry for my poor english. My doubt is if Adobe AIR runtime, for desktop apps, can be installed and run on Android. Recently i get a smartphone (Droid phone) and i want to use the multi- touch API launch by Adobe, to mobile devices, and is i

[android-developers] How to draw lines through onTouchEvent

2009-12-29 Thread hollowback
Hi, i need to create app in which will user draw simple lines through onTouchEvent. It had to be possible to save drawed image as bitmap. At Graphics | Android Developers I read there are 2 ways to do it. But as i wrote with SurfaceView it is impossible to save it as bitmap. But I don't know how to

[android-developers] hashset problem

2009-12-29 Thread raphael couturier
Hi, I have a problem with the hashset implementation because the followinf little part of my code uses it and doesn't give the same result according to the version of android. Here is my code : HashSet hset=new HashSet(); hset.add(new String("cat")); hset.add(new String("dog")); hset.add(new Stri

[android-developers] On distribution of APP

2009-12-29 Thread cristiamterrera
Good Community, I wonder if someone uploaded any application to market sales of google android market? and if an earned some selling silver or been uploaded for free? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] Sony Ericsson Developer World on Android Developers

2009-12-29 Thread SonyEricsson DeveloperWorld
Hi all This is the debut post of Sony Ericsson Developer World on this forum and we are pleased to announce that our content submission portal, https://submit.sonyericsson.com is now open for Android developers to upload applications and games to PlayNow, Sony Ericsson’s one-stop content store whi

[android-developers] Sony Ericsson Developer World on Android Developers

2009-12-29 Thread SonyEricsson DeveloperWorld
Hi all This is the debut post of Sony Ericsson Developer World on this forum and we are pleased to announce that our content submission portal, https://submit.sonyericsson.com is now open for Android developers to upload applications and games to PlayNow, Sony Ericsson’s one-stop content store whi

[android-developers] How to retrieve sms number

2009-12-29 Thread snehal penurkar
Hello Freinds, i am doing program for retrieving sms number. I am using BroadcastReciever. Can anyone tell me how to retrieve sms numbers? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Re: open sourcing an app

2009-12-29 Thread Christine
Thanks for pointing that out, I should have done a search first :-) On Dec 29, 11:52 pm, Greg Donald wrote: > On Tue, Dec 29, 2009 at 4:39 PM, Christine wrote: > > I haven't seen many open source android apps yet. > > There are quite a few actually: > > http://code.google.com/hosting/search?q=la

[android-developers] Re: Contact Picking on Motorola Cliq (1.5)?

2009-12-29 Thread jak.
Hello Suzanne, I'm glad to hear that there is a fix in the works for this bug. Are you aware that there is also a bug when using the create intent? Intent(Intent.ACTION_INSERT,Contacts.People.CONTENT_URI); This does allow me to create a new contact, but the result it sends back to my onActivityR

Re: [android-developers] open sourcing an app

2009-12-29 Thread Greg Donald
On Tue, Dec 29, 2009 at 4:39 PM, Christine wrote: > I haven't seen many open source android apps yet. There are quite a few actually: http://code.google.com/hosting/search?q=label:android -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to the Goog

[android-developers] open sourcing an app

2009-12-29 Thread Christine
I haven't seen many open source android apps yet. Can I make my app gpl open source just like that? Or do I have to include legal statements regarding the Android code that my app is using? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To

[android-developers] AudioTrack - Clicking Sounds

2009-12-29 Thread Business Talk
Do you know of any freeware application that can convert/generate sounds in the PCM format? I am getting clicking sounds when playing AudioTrack and I think it is because I am playing a wave file which is a pcm with some headers. I downloaded a number of converters but all of them generate wave fil

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread Frank Weiss
Chris, sounds OK to me. I suppose using the WebView is to bridge between Flash and Java as you indicated and to allow instant application updates (instead of requiring install of a rich interface application). However, the plumbing looks awful, I think you'd agree. I've wondered if Adobe hasn't mi

[android-developers] Re: How can i stop a thread in a Activity?

2009-12-29 Thread theSmith
That would work also, you just have to remember that function calls are never free and the GC on android is annoying enough as it is, no need to give it more stuff to do. -theSmith On Dec 29, 1:43 pm, jotobjects wrote: > Why not just call Thread.isInterrupted() instead of using the > volatile? >

[android-developers] Re: Android “hover” event i n custom layout

2009-12-29 Thread k_day
I suppose one way to do this is to capture touch events at the layout level, and then loop through all the layouts to see if an imageview is under that point, though that sounds inefficient. Is there any better way to find which view is at a given point? Also, is it true that any touch event on a

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread chris harper
Hey Sena It looks like I have to do a little more research between Flash 9 and FlashLite. I will do that tonight. Thank you. Unfortunately I have the Sprint HTC HERO which as I recently found out is less open to find ROM updates. I will search for the Sense 2 that you referred to. I might get luc

[android-developers] Touch handling sleep not helping enough on 1.5/1.6

2009-12-29 Thread Robert Green
Hey guys, I'm really in a bind here. I've got this new game engine that's almost done but the input system is killing me. I have a virtual analog stick on the screen and it works great, especially on Android 2.0 (Droid) but on any 1.5/1.6 device, the touching is causing my game to crawl. I know

[android-developers] Re: No Adobe Flash support for Eclair!?!

2009-12-29 Thread Skid
The browsers on my Droid (Milestone) forwards me Adobe's site that tells me: "Adobe Flash Player 10.1 is coming to Android 2.0 and future releases in the first half of 2010." Nice and vague but there you are. On Dec 28, 6:07 pm, chris harper wrote: > I kept reading about how one of the biggest n

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread Sena Gbeckor-Kove
Hi Chris, From what I kwow there are quite a few differences between Flash 9 and Flash Lite. A quick Google should fill you in. You'll definitely need one of the standard Hero roms unless somebody has hacked the Flash files onto a custom rom. If you must have something more recent you might wa

[android-developers] Re: Bluetooth SPP question

2009-12-29 Thread Fred
Very useful feedback, thank you. I will give sdptool a try on my linux laptop to see what the device capabilities are, and when I have that I will also use the UUID you gave, again, thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

[android-developers] Re: Phone calls recording on 2.0

2009-12-29 Thread Matt
You can watch this thread: http://code.google.com/p/android/issues/detail?id=2117 I don't think it works on any phones yet. There is some speculation it might work on the Nexus one. matt On Dec 29, 11:36 am, "appforce.org" wrote: > I would like to ask Google engineers or anyone, if there is kn

[android-developers] Re: Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread a1
On 29 Gru, 17:49, Mika wrote: > OH sorry guys, my bad, I wasn't specific enough. > I'm TRYING To shift myself into fixed point(FP) world and trying to > get rid of the long calculations :) So.. does the topic make more > sense now? Sorry for being such a numnum and not realising that FP = > fixe

[android-developers] Re: Get body movement (e.g. turn around)

2009-12-29 Thread Moritzz
Well, I chose another way now: I'm just looking at the compass (calibration required) and check with a switch-case if the phone was turned. That's not the "good" approach but it works for now and as I'm just working on a prototype that should be fine for now. As the user is supposed to look on the

[android-developers] Re: How can i stop a thread in a Activity?

2009-12-29 Thread jotobjects
Why not just call Thread.isInterrupted() instead of using the volatile? On Dec 29, 9:24 am, theSmith wrote: > I found this article to be very insightful because I too am just > learning about managing multiple > threads.http://articles.techrepublic.com.com/5100-10878_11-5144546.html > > I ended

[android-developers] SMS text garbled using native Messaging app when message spans two text messages?

2009-12-29 Thread Mark Wyszomierski
Hi, I'm working with the sms intent. Testing this on 2.0 emulators. If I use the built-in messaging app to create a text message which spans two messages, the receiving emulator displays the received message as garbled text. Looks like it's encoded or compressed etc. Does anyone else see this? Is

[android-developers] Re: Debugging on mobile 2

2009-12-29 Thread LeGeNDuS
thanks for all!, I have seen why it doesnt work... android:debuggable=true lacked in the manifiest, now it works (I didn't know it was neccesary...) On 29 dic, 18:32, LeGeNDuS wrote: > Hello!, thanks for the answers. > > Yes I have enbled the USB debugging. My device is a HTC hero of Orange

[android-developers] Re: Phone calls recording on 2.0

2009-12-29 Thread appforce.org
I would like to ask Google engineers or anyone, if there is known device that supports voice call audio recording? -- 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

[android-developers] Re: Debugging on mobile 2

2009-12-29 Thread LeGeNDuS
Hello!, thanks for the answers. Yes I have enbled the USB debugging. My device is a HTC hero of Orange (in spain). It takes the android 1.5 (I don't know how to update it). I have installed the USB tool that comes with the setup of the SDK, and well, when I want to debug on the device (or trying a

[android-developers] Re: Crop a Picture after Using Camera to Take It

2009-12-29 Thread Wysie
Hi all, After doing some reading, I realized it can't be done so simply. My modded Contacts source is at http://github.com/Wysie, you can take a look if you're interested. Also, here's what I did to get it working: private void doTakePhotoAction() { // http://2009.hfoss.org/Tutorial:C

[android-developers] Logs from framework.jar

2009-12-29 Thread Michael Scott
Hi, Why does no logprints from the framework-code (Telephony) show up in logcat? Is there a setting somewhere I should turn on or something? Thanks, Michael -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

Re: [android-developers] blocking UI thread when Yes/No AlertDialog is displayed

2009-12-29 Thread TreKing
Um ... why don't you just put the code you want to execute in the onClick handlers for the Yes and No options, respectively? That's pretty much the point of having them ... - TreKing - Chicago transit t

[android-developers] Droid/Milestone: GL_OES_framebuffer_object reported but not working

2009-12-29 Thread Hexage
Hi, I'm trying to use the framebuffer object extension on Milestone with 2.0 firmware. The extension is reported by OpenGL but when you try to use it then my app aborts. No message, no stacktrace, nothing. Here is a simple code snippet for creating a framebuffer object: int createFBO(GL11 gl) {

[android-developers] Re: Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Lance Nanek
Fixed point can still fit a good 30 seconds or so worth of whole milliseconds, can't it? Are you ever going to have updates more than 30 seconds apart? Even if you are, you can just convert to seconds. Use the integer representing portion of the fixed point from 1<<16 up for whole seconds. Use the

[android-developers] Re: AES decryption is slow....

2009-12-29 Thread sdphil
interestingly enough, on a device T-Mobile G2, things are fast - like on the order that I would expect - 10 to 15 seconds. so i guess this is less important, however, it's still troubling that it's so slow on the simulator. On Dec 29, 9:14 am, sdphil wrote: > hi, > > I am trying to do AES decryp

[android-developers] Re: How can i stop a thread in a Activity?

2009-12-29 Thread theSmith
I found this article to be very insightful because I too am just learning about managing multiple threads. http://articles.techrepublic.com.com/5100-10878_11-5144546.html I ended up using a shared volatile variable that is check when I'm doing this that take alot of time in the background thread,

[android-developers] Re: Reminder: IRC office hours tomorrow

2009-12-29 Thread theSmith
Thanks for those Megha. Is there any plan to add responses to the 12/17 and 12/22 meetings? I find this an excellent resource issues/problems/insight that I think should be available. -theSmith On Dec 18, 5:39 pm, Megha Joshi wrote: > Check out the answers to questions from the 12/15 office ho

[android-developers] AES decryption is slow....

2009-12-29 Thread sdphil
hi, I am trying to do AES decryption like this -- Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, aesKey); cipher.update(encryBytes, 0, encrByteCount); And it is taking me about 2.5+ seconds to run just the cipher.update (i.e. I excluded the init and

Re: [android-developers] Portrait vs landscape using sensor

2009-12-29 Thread Frank Weiss
This may a related issue. When using the accelerometer sensor on Droid when I hold the device with the display plane vertical, like when taking a picture, the y axis is minus one g, regardless of lanscap or portrait orientation. On Dec 18, 2009 10:50 AM, "Mark Wyszomierski" wrote: Hi, I'm tryin

Re: [android-developers] Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Frank Weiss
Do you really think that calculating the difference between two floats is faster than calculating the difference between two longs? On Dec 29, 2009 7:25 AM, "Mika" wrote: Like the topic of the thread says. In my game I would like to turn all the calculations into FP format. I can eliminate prett

[android-developers] Re: AudioTrack stop/release

2009-12-29 Thread Business Talk
Thanks Olivier, It is very helpful Olivier, I am just curious about MP3 players, They are able to stop playing with a very small latency. It seems like they would have to repeatedly write into a very small buffer. Do you think that is the case? My scenario is very similar to the MP3 players. I do

Re: [android-developers] No Adobe Flash support for Eclair!?!

2009-12-29 Thread chris harper
Sena - I picked up a book on writing Flash content for mobile devices and from I understand from the book is that FlashLite is based off of Flash 9. They are essentially the same thing. Where anything written for Flash 9 (with actionscript 2) can be run in FlashLite. That is my current understandin

[android-developers] Re: Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Mika
OH sorry guys, my bad, I wasn't specific enough. I'm TRYING To shift myself into fixed point(FP) world and trying to get rid of the long calculations :) So.. does the topic make more sense now? Sorry for being such a numnum and not realising that FP = fixed point AND floating point. D'oh. But yeah

[android-developers] Re: Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread a1
Well, yes, you can simply shift to fixed since t is difference which I should be around 20. But what's the point? I'm using floating point exclusively for calculations, and really do not have problems with performance. If you do not perform heavy calculations it doesn't matter, and if you do interp

[android-developers] Re: java access from Android Webkit plugin

2009-12-29 Thread Digambar
I know that but Webkit development is not platform feature. Its more of application than platform feature and so I thought its good to post here. Anyway sorry to disturb you cheers Digambar -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] JetCreator

2009-12-29 Thread Business Talk
Using the JetCreator, I have created an ‘App Controller’ event and assigned a track number = 2 to it. Yet, track = 0 is passed to the onJetEvent listener method. Any Ideas? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: Display Contacts "You don't have any contacts to display" possibly caused by NullPointerException: null

2009-12-29 Thread Scott W
Hi, If anyone could help me find the code for queryEntities function? I've been looking at the ViewContactActivity.java and digging through the querying code gets me to the following function call under AsyncQueryHandler.java: resolver.queryEntities(args.uri, args.selection, args.selectionArgs,

Re: [android-developers] AudioTrack stop/release

2009-12-29 Thread Olivier Guilyardi
On 12/25/2009 02:00 PM, Business Talk wrote: > I keep posting this message hoping that maybe somebody from google > (media group in particular) monitors the group. I need to stop the > AudioTrack, regardless what's in the buffer, immediately when > executing the stop/release. The AudioTrack plays

Re: [android-developers] java access from Android Webkit plugin

2009-12-29 Thread Mark Murphy
Digambar wrote: > has anybody tried to access Java class from Android Webkit plugin? The Android SDK does not support development of WebKit plugins. Please do not cross-post to multiple lists. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Deve

[android-developers] java access from Android Webkit plugin

2009-12-29 Thread Digambar
Hi, has anybody tried to access Java class from Android Webkit plugin? I am trying to do but there is no reliable way to access with JNI. So if anybody has tried please reply. here is example of what I want - JS in webage access plugin and plugin accesses JAVA class/application to access And

[android-developers] Re: Surface and Format

2009-12-29 Thread fala70
is there somebody can answer me ? how can I do to show an image YCbCr_420_SP directly on surfaceview ? On 27 Dic, 17:50, fala70 wrote: > Looking the doc with class SurfaceHolder is possibile set the kind of > surface format. I need to show images YCbCr_420_SP format. If I set > YCbCr_420_SP form

[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-12-29 Thread ChristianF
I need to bring this issue (not seeing copyprotected apps in the market) up again. GOOGLE please give us an update when to expect this issue fixed!!! You are keeping loyal and honest customers from their leglay bought applications away and hinder us to spend more money on the market!!! This hurts

Re: [android-developers] Re: Get body movement (e.g. turn around)

2009-12-29 Thread Frank Weiss
Using the (magnetic) compass would require less coding, I suppose. However, is it available on all your target devices and is it accurate enough? I should defer to someone who's actually used the compass sensor. In the meantime, you could put together a test app in just a few minutes. You could ba

Re: [android-developers] Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Mark Murphy
Mika wrote: > Like the topic of the thread says. In my game I would like to turn all > the calculations into FP format. That is the wrong direction to be going. Floating-point calculations are awful on mobile devices, since they usually lack floating-point hardware. Your game will perform better i

[android-developers] Trying to get rid of my last few Long calculations in my game and completely turn it into FP format. System.currentTimeMillis() giving me a headache.

2009-12-29 Thread Mika
Like the topic of the thread says. In my game I would like to turn all the calculations into FP format. I can eliminate pretty much everything else but I still need to do the the following calculation in long format. Code: long t = this.lastUpdateTime - System.currentTimeMillis(); The value I ge

[android-developers] Re: Fancy ListView help

2009-12-29 Thread Abhi
Hi Your suggestion sounds good. But I haven't been able to figure out how to use tags with buttons to determine the position. Would you be able to give me an example? Thanks, Abhi On Dec 22, 10:30 am, WoodManEXP wrote: > Although I use ListView a lot it has always been a little confusing to >

[android-developers] Inflating error after animation run

2009-12-29 Thread arnouf
Hi all, I apply an animation on my current displayed layout. I set an animation listener. When animation is ended, I'm trying to load a layout, using inflater, inside the current layout. But I've always the following error : ERROR/AndroidRuntime(2315): android.view.InflateException: Binary XML fil

[android-developers] Re: Get body movement (e.g. turn around)

2009-12-29 Thread Matt
Isn't it possible to use the compass magnet to track direction? Matt On Dec 29, 7:07 am, Frank Weiss wrote: > It's doubtful you can literally tell if the person has turned around. I > think you're trying to infer that, by assuming the person is holding the > device a certain way in relation to h

  1   2   >