[android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-22 Thread Cameron
Robert I sent you an email with the APK =) On Jul 22, 3:43 pm, Robert Green wrote: > Cameron, > > Are you using time-based movement or frame-based?  Would you mind > sending me an APK?  I can check it out for you and maybe help out a > little with some suggestions. > > On Jul 22, 3:16 pm, Cameron

[android-developers] AndroidHttpTransport.call() blocking too much time when using KSOAP in Android

2010-07-22 Thread waterblood
Hi All, I am trying to use the KSOAP in Android, i have the function as below. Sometimes the calling of androidHttp.call(GETVERSION_ACTION, envelope); will return the reponse very fast. But some times it take me almost one minutes for this AndroidHttpTransport.call get return. That means AndroidH

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-22 Thread Indicator Veritatis
Passing data from Activity to Activity is what ContentProviders are good at; they even let you pass from application to application. On Jul 22, 5:24 pm, Zsolt Vasvari wrote: > You cannot pass a SQLiteDatabase object from activity to activity. > Perhaps you could store it in a global static, but I

[android-developers] Re: Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-22 Thread Indicator Veritatis
I believe you, Mark, but I must profess this is a little counter- intuitive. After all, the same PC will play much more demanding video (higher resolution, fancier codes, etc.) running Windows Media Player or Linux's Totem, so why can't the emulator handle it? Is there really that much overhead in

[android-developers] Re: can we start application after installing .apk file

2010-07-22 Thread Paul Turchenko
You can't start your application. Neither service nor activity. The only ugly workaroung I can offer is: 1. Have your other application already installed on the device. 2. Subscribe to receive PACKAGE_INSTALLED broadcast. 3. Check if broadcated unstalled package is your application that needs to

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread Indicator Veritatis
You left out something very important: the code hidden under "// reload the image" must not assume that it is not itself interrupted by yet another call to the garbage collector. That is, instead of simply continuing to use the soft/weak reference, it should make a strong reference to the same obje

Re: [android-developers] command to find os information / system information

2010-07-22 Thread XC He
Ex. import android.os.Build; // Build.VERSION String codeName = Build.VERSION.CODENAME; String incremental = Build.VERSION.INCREMENTAL; String release = Build.VERSION.RELEASE; String sdk = Build.VERSION.SDK; int sdk_int = Build.VERSION.SDK_INT; 2010/7/23 XC He : > Which version? >    OS version ?

Re: [android-developers] command to find os information / system information

2010-07-22 Thread XC He
Which version? OS version ? Kernel version ? SDK version ? By Java code ? By command ? Or you have to read android.os.Build first. 2010/7/23 Jake : > hi there, > > i have to store what version of android users are using, search all > over internet, hard to find this info... any help

[android-developers] Re: command to find os information / system information

2010-07-22 Thread Jake
ok ... got the information, here is the link http://android-er.blogspot.com/2009/09/read-android-system-info-using.html On Jul 23, 11:19 am, Jake wrote: > hi there, > > i have to store what version of android users are using, search all > over internet, hard to find this info... any help would

[android-developers] command to find os information / system information

2010-07-22 Thread Jake
hi there, i have to store what version of android users are using, search all over internet, hard to find this info... any help would be highly appreciated !.. thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

[android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-22 Thread Cameron
Thanks everyone for your input! I have gotten a lot of feedback and will try to implement all of the answers. I need to try and limit the frames per second properly. And also it was recommended to me to use 2 threads, one for graphics and one for the "physics" I will try both and see what happens!

[android-developers] broadcast receiver issue

2010-07-22 Thread Sandeep
Hi All, I am working on one project where i am using broadcast receiver in one of my activity to capture the incomming call and its works fine. when one of my other activity is open and that time if call is come then my broadcast receiver is fail to respond. can any one help me for this ? or its n

[android-developers] Re: Change Menu on the fly

2010-07-22 Thread Kumar Bibek
If it's an Options menu, from the docs it is clear that onCreate will only be called the first time. But if you want to control the items in the runtime, you should also override the onPrepareOptionsMenu. In this method, you can add or remove any items when the menu is triggered. -Kumar Bibek http

Re: [android-developers] Re: Resolution Problem in Nexus One

2010-07-22 Thread Dianne Hackborn
This has nothing to do with your manifest. You are blowing away the current configuration in the resources with your own you have created that is not initialized. Things aren't going to work when you do that. You could improve that by giving it a properly created Configuration, but I don't want

[android-developers] Re: Resolution Problem in Nexus One

2010-07-22 Thread Engin Arslan
Webnet, As I said in my question I tried following in my androidmanfest.xml but it did not work. I think problem is updating configuration as Dianne said however I do not alternative way of specifiying application language Can anyone suggest me better way? On Jul 21, 2:46 pm, Webnet Android wro

[android-developers] Re: start activity from a overlay in maps

2010-07-22 Thread Achanta
Thank you guys, Yes I had a mapView inside the other activity and it was my mistake from copy paste. I was beating my head but thanks for pointing it out. On Jul 22, 8:26 pm, Steve Howard wrote: > On Thu, Jul 22, 2010 at 10:32 AM, Achanta wrote: > > E/AndroidRuntime( 4985): Caused by: > > java.

[android-developers] Re: Youtube API : SAXParser error

2010-07-22 Thread Kumar Bibek
This error would mean that you are missing some dependencies. The patch that you are using might be dependent on some other classes which you do not have already. You can comment on the issue and see if you get any response. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jul 22

[android-developers] Re: WebView in ListView

2010-07-22 Thread Kumar Bibek
WebViews are pretty heavy components. I don't see a situation where a WebView cannot be replaced by a text view or a combination of other compoenents. I still think this is a bad idea. I am sure, you wouldn't be running scripts inside those web view items in your list, or do you? Thanks and Regard

[android-developers] Re: Have a problem in ListView please help ?

2010-07-22 Thread sagare
Hi Joseph, thanks for your reply but u mean to say i cant have multiple ListViews in an activity with height "wrap_content" i think that should be possile right ? Also i dont want to have an expanded List i want a have a list of albums and each album displaying songs without needing for the

[android-developers] know own account(gmail)

2010-07-22 Thread brilliant winger
Hi I want to know own account(gmail) in android 1.6. Android(1.6) does not support AccountManager class. so, How? -- 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

Re: [android-developers] Re: i want to put my application in front just after incoming call

2010-07-22 Thread A N K ! T
ya i know am using the same ..and i am trying to put some code when state is ringing,,,but what code i shud write there i am not getting that... is there any method or anything that bring my application in front.. On Thu, Jul 22, 2010 at 7:09 PM, Namrata wrote: > Use PhoneStateListener with stat

[android-developers] Re: ListView and a button inside the list item... How to process long presses?

2010-07-22 Thread Moto
Well a little more than that... you just need to propagate the long press down to the parent it seems... On Jul 23, 12:12 am, Moto wrote: > Hey guys, > > Well it turns out that in order to allow the ListView to handle the > long presses you need to attach a LongClick listener to any button you >

[android-developers] J2ME

2010-07-22 Thread perumal316
Hi All, Is there any way to convert J2ME applications into Android applications? The only way I have come across is using microemulator which if I used to convert J2ME app that uses Camera or Bluetooth APIs doesn't work. Is there any other way? Regards, Perumal -- You received this message be

[android-developers] Re: ListView and a button inside the list item... How to process long presses?

2010-07-22 Thread Moto
Hey guys, Well it turns out that in order to allow the ListView to handle the long presses you need to attach a LongClick listener to any button you are listening for click events and return false so that the long press can be propagated down to the parent... -Moto On Jul 21, 2:54 am, metal mike

[android-developers] WebView in ListView

2010-07-22 Thread Ken
I've implemented a list with each item as a WebView. The WebViews are loaded in their own threads so the UI doesn't have to wait. The problem I've ran into is after the list is loaded, some webview items disappears or repeat after the list is scrolled. I've read posts from Romain Guy and others ab

[android-developers] Re: ListView and a button inside the list item... How to process long presses?

2010-07-22 Thread Moto
Hey guys thanks for the feedback. @greg yeah implementing a LongClick on the ListView is what I'm doing it's just not getting triggered cause I have buttons on my ListView items... :P @Mikey well I guess I'll just go the hardcore way :P Cause I was thinking this could be an easy solution but I gu

Re: [android-developers] How to set priorities for multiple BroadcastReceivers when dealing with ordered intent broadcast?

2010-07-22 Thread Agus
How do you set priority # for dynamically instantiated broadcast receivers? On Thu, Jul 22, 2010 at 3:58 PM, Mark Murphy wrote: > On Thu, Jul 22, 2010 at 5:59 PM, Dianne Hackborn wrote: >> Set the priority integer in the IntentFilter you instantiate, or >> in the manifest.  Note that the defau

[android-developers] Why no simplified Chinese support in Android market

2010-07-22 Thread nubin...@gmail.com
I am a little confused why after more than 1 year of operation, Android market still does not support app description of Simplified Chinese. Traditional Chinese support (zh_TW) has been there all along. Why why why? -- You received this message because you are subscribed to the Google Groups "An

Re: [android-developers] Showing Google MyMaps

2010-07-22 Thread Steve Howard
On Thu, Jul 22, 2010 at 1:09 AM, vlatkovr wrote: > Hi, > > I created a custom map in Google Maps "My Maps". Now i want to show > that map on an android device, but not just opening it as a web page > but showing it using MapView or smth similar. I want to be able to > center on a place I have mar

Re: [android-developers] start activity from a overlay in maps

2010-07-22 Thread Steve Howard
On Thu, Jul 22, 2010 at 10:32 AM, Achanta wrote: > E/AndroidRuntime( 4985): Caused by: > java.lang.IllegalArgumentException: MapViews can only be created > inside instances of MapActivity. > Do you have a MapView not inside a MapActivity? Steve -- You received this message because you are sub

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread xiaguang Chen
Oh, thanks,andy But the package has been released in DEC 2009, I am afraid to the open source code can not support the newest Facebook interface(authentication,access and so on). 2010/7/23 Andy Savage > Hello, > > Actually your in luck (sort of). There's an opensource java facebook client > avai

Re: [android-developers] Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-22 Thread Mark Murphy
Unless you have a rather fast PC (like, oh, a quad-core), the emulator will not play back video very well. On Thu, Jul 22, 2010 at 9:17 PM, Victoria Busse wrote: > No device yet, only emulator (although tomorrow or at the beginning of next > I will have an HTC Wildfire, so my app should be runnin

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread Andy Savage
Hello, Actually your in luck (sort of). There's an opensource java facebook client available for Android here: http://code.google.com/p/facebook-java-api/ I advise you check out google code (or google search) first before posting as there are many great links that pop up with a simple "Open Sourc

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread xiaguang Chen
Thank you all the same, I will study it, if any solution was found, I will paste here. -- 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,

Re: [android-developers] Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-22 Thread Victoria Busse
No device yet, only emulator (although tomorrow or at the beginning of next I will have an HTC Wildfire, so my app should be running on that) The file format is .mp4 On Fri, Jul 23, 2010 at 2:14 AM, Mark Murphy wrote: > What device are you using? What format is the video in (MP4, 3GP, etc.)?

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread Miguel Morales
I've used the facebook api before, but not the android client library. I can't help you specifically since I'm not familiar with it, but it looks like you either have the wrong developer key/password or the wrong user username/password. On Thu, Jul 22, 2010 at 5:53 PM, xiaguang Chen wrote: > I h

Re: [android-developers] Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-22 Thread Mark Murphy
What device are you using? What format is the video in (MP4, 3GP, etc.)? On Thu, Jul 22, 2010 at 9:11 PM, Victoria Busse wrote: > Hi there, > I was trying to use VideoView to play a Video from the SD card, but the only > thing working properly is its audio, while I see the first frame of the > vi

[android-developers] Re: Eclipse + Android SDK

2010-07-22 Thread coy
oh yes, very nice what you told me, I appreciate your help! so, the problem was my inattention, DonFrench made me realize my mistake! XD Thank you! On 22 jul, 21:43, Miguel Morales wrote: > I'm not exactly sure what videos or screenshots you've seen but the > layout editor is not complete. > (Per

[android-developers] Video cannot be played (but Audio is?!) - Video Track fell behind?

2010-07-22 Thread Victoria Busse
Hi there, I was trying to use VideoView to play a Video from the SD card, but the only thing working properly is its audio, while I see the first frame of the video which doesn't play on and after a few seconds the Error message "Cannot play video - Sorry, this video cannot be played" appears. I d

[android-developers] Re: Change widget dimensions on orientation change

2010-07-22 Thread Matt
Use layout/ and layout-land/ or layout-port/ and have different layouts for whatever orientation you need. Not only can you have a totally separate layout, but if you are worried about dimensions, you can just have the same layout but change the margins. In other words, if a regular portrait widg

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread xiaguang Chen
I have got the APP_ID(develpoer's key) from facebook and set it in the programme. An error was shown when I run the example in the SDK. I use the offical SDK in http://github.com/facebook/facebook-android-sdk. I do not have any solution for this issue. Do you have any good idea. :) Thanks! -- You

[android-developers] Re: To display the soft keyboard during the launch itself

2010-07-22 Thread Matt
http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft On Jul 22, 8:54 am, harshe wrote: > i have an activity with few edit text views and a button. The Soft > Keyboard is visible when I click the edit text view. But i want the > soft keyboard to be visible  during the lau

[android-developers] Re: OpenGL Material

2010-07-22 Thread Indicator Veritatis
And having reviewed ch. 5 myself, I see you did remember to set and use the normals after all. Good! But two things stand out: 1) your emissivity values are the default, so you should be able to omit that call completely 2) your R, G, & B values (for the material) are all quite close to each other

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread Miguel Morales
What facebook API library are you using? What exactly are you trying to do, you might need to get a developer's key from facebook. On Thu, Jul 22, 2010 at 5:41 PM, xiaguang Chen wrote: > I need the source code of facebook cilent on android platform, but i could > not find. > Could you please sha

Re: [android-developers] Re: Eclipse + Android SDK

2010-07-22 Thread Miguel Morales
I'm not exactly sure what videos or screenshots you've seen but the layout editor is not complete. (Perhaps you saw videos of the app inventor?) For now it's pretty handy for constructing layouts visually and testing them out on different devices, but most of the time it will be useless with your r

Re: [android-developers] Re: Twitter / Facebook source code

2010-07-22 Thread xiaguang Chen
I need the source code of facebook cilent on android platform, but i could not find. Could you please share me if you find? Thank you very much! I have to code abuot the facebook client with public APIs, but some errors has been shown in the authentication process. Thanks! 2010/7/22 oriharel > y

[android-developers] Re: Routing audio input to bluetooth headset

2010-07-22 Thread Phil
In 2.2, check out android.media.AudioManager: startBluetoothSco() and setBluetoothScoOn() One thing to watch out for, however, is: If you pair up a bluetooth headset, and start the SCO connection to record the bluetooth input, any phone calls you take will now control the bluetooth connection.

[android-developers] Re: Necessary to close SQLite database?

2010-07-22 Thread Zsolt Vasvari
I think that's an overkill for a simple database. I thought the main reason for a ContentProvider was to make your data available to an external entity. You need to close the database as you cannot pass an open database connection between activities, as far as I can tell. On Jul 23, 6:32 am, Jos

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-22 Thread Zsolt Vasvari
You cannot pass a SQLiteDatabase object from activity to activity. Perhaps you could store it in a global static, but I think that's not a good idea. On Jul 22, 11:18 pm, ecforu wrote: > But what's the reason for not keeping it open?  Or actually a better > question is why do is my database depen

[android-developers] Re: InstructionCount in nested functions

2010-07-22 Thread DanH
Never played with it before, but from the docs it looks to me like you can have only one (global) instance. In order to use it the way you want you'd probably have to add a lot of extra code to your methods (enough to throw off the counts). Documentation is definitely a bit sparse. On Jul 22, 10

[android-developers] Re: Eclipse + Android SDK

2010-07-22 Thread DonFrench
Oh, that you already have. Notice at the bottom of the XML editor window that there are two tabs, one with the name of your xml file and the other called Layout. Click the one named Layout. On Jul 22, 3:44 pm, coy wrote: > http://yfrog.com/75androidp > > You are correct, but I just want to ha

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread Matt
On Jul 22, 4:09 pm, Joseph Earl wrote: > I am confused somewhat about the issue myself now. Hopefully someone > else it will clear it up once and for all. > A great explanation is here: http://jnb.ociweb.com/jnb/archive/jnbJune2000.html Use weak references when you are creating a reference to an

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread Indicator Veritatis
Look: I know it is tedious reading, but the reference given earlier in this thread, to Sun's own documentation of the class, answers your question concerning when to use a WeakReference -- as well as when to use the other kinds. Then there are IBM Java articles/tutorials on the same topic (e.g. htt

[android-developers] Re: hi

2010-07-22 Thread DanH
Best book I've found to date is "Pro Android 2" by Sayed Hashimi, Satya Komatineni, and Dave MacLean. Just through the first couple of chapters, but it gives much more in-depth background on the platform than other books and references I've checked. Of course, you need to know Java pretty well, t

[android-developers] Re: how to get function call trace on android phones?

2010-07-22 Thread fadden
On Jul 21, 5:53 am, Shuo Deng wrote: > Is there any tool that can get longer trace? Do you think we can write a > debugger by ourselves and attach it to the VM? The JDK includes a sample JDI program called "trace" that might do what you want: http://download.oracle.com/docs/cd/E17409_01/javas

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread DanH
It's very likely that the garbage collector has gone through several turns of the crank trying to get these correct. The weak reference stuff is very hard to get right the first time, from a GC perspective. On Jul 22, 6:25 pm, fadden wrote: > On Jul 22, 12:57 pm, Kostya Vasilyev wrote: > > > I

[android-developers] Re: InstructionCount in nested functions

2010-07-22 Thread fadden
On Jul 22, 8:28 am, Andrius wrote: > I'm not sure whether I'm badly misusing InstructionCount or there is a > bug, but let's assume the first one for now... I see the same thing. Not sure why. Looks like you'll need to avoid nested invocations of it for now. -- You received this message becau

[android-developers] Re: Scrolling text (marquee) in an AppWidget

2010-07-22 Thread Matt
Does anyone have a working example of scrolling text in a widget? Thanks! -- 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 t

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread fadden
On Jul 22, 12:57 pm, Kostya Vasilyev wrote: > I remember seeing somewhere that Dalvik didn't initially support Soft / > Weak references, and this was implemented at some point. > > Can someone clarify: starting with what version of Dalvik / Android > these are available? Soft, weak, and phantom r

Re: [android-developers] gps icon disappears

2010-07-22 Thread ecforu
Ok that is what i was thinking. I just wanted to make sure that was the case. Thanks for the info and help On Thu, Jul 22, 2010 at 5:27 PM, TreKing wrote: > On Thu, Jul 22, 2010 at 4:11 PM, ecforu wrote: > >> Is it the 15000 or 2 that turns it off to conserve battery? >> > > The 15000. AFAIK

Re: [android-developers] Showing Google MyMaps

2010-07-22 Thread Frank Weiss
You can find that information here: http://code.google.com/android/add-ons/google-apis/ com.google.android.maps.MapController.setCenter() -- 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] How could I avoid others to get my used pictures in my application?

2010-07-22 Thread Frank Weiss
The way I look at it is that if you are going to use some pictures in your application, then the people using your application are going to have to get those pictures -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

Re: [android-developers] Dev. tools are good enough except emulator is unusable for file i/o.

2010-07-22 Thread Leigh McRae
I have the same problem with IO when running in the debugger. Loading Tank Recon 3D using the eclipse debugger == 5-10mins. Also any OpenGL app makes the emulator pretty much useless as it runs < 5fps. The BlackBerry emulator uses the PC hardware. While not a one to one match with the devic

Re: [android-developers] hi

2010-07-22 Thread Frank Weiss
Then go to the documentation http://developer.android.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-develop

Re: [android-developers] How to set priorities for multiple BroadcastReceivers when dealing with ordered intent broadcast?

2010-07-22 Thread Mark Murphy
On Thu, Jul 22, 2010 at 5:59 PM, Dianne Hackborn wrote: > Set the priority integer in the IntentFilter you instantiate, or > in the manifest.  Note that the default priority is 0 and > apps can only request priorities <= 0. Are you sure? According to the docs, 100 is a valid priority for an app

Re: [android-developers] Dev. tools are good enough except emulator is unusable for file i/o.

2010-07-22 Thread Mark Murphy
On Thu, Jul 22, 2010 at 6:43 PM, MB wrote: > I am able to get most of the work done using the available dev tools > with the exception of anything that has to do with file i/o. > File read operations that just take a few seconds on real device take > more than 5 minutes on emulator. > Its reproduc

Re: [android-developers] C2DM "NotRegistered" error when sending a message

2010-07-22 Thread Mark Murphy
On Wed, Jul 21, 2010 at 11:39 AM, D12ASG wrote: > The thing is as soon as i get the registration id i am sending it to > my server which is then sending a message via C2DM all within the > space of 1 minute. so how can it not be valid? Are you on the whitelist? > I have registered for use the C2

Re: [android-developers] Get return value from javascript.

2010-07-22 Thread Mark Murphy
On Wed, Jul 21, 2010 at 3:32 AM, Tonny wrote: >  I want to get a return value from javascript in webkit. Anybody help > me ? Inject a Java object into the Javascript space via addJavascriptInterface(), and have the Javascript invoke a method on that object for your "return value". -- Mark Murp

[android-developers] Re: Eclipse + Android SDK

2010-07-22 Thread coy
http://yfrog.com/75androidp You are correct, but I just want to have the layout editor here :D On 22 jul, 19:17, Joseph Earl wrote: > There isn't really a layout editor - try searching for Droid draw for > a third party solution, although it's not yet mature. > However just spend a bit of time l

[android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-22 Thread Robert Green
Cameron, Are you using time-based movement or frame-based? Would you mind sending me an APK? I can check it out for you and maybe help out a little with some suggestions. On Jul 22, 3:16 pm, Cameron wrote: > Thanks for the reply Matt, > > I have used the DDMS in Eclipse to see if there is any

[android-developers] Dev. tools are good enough except emulator is unusable for file i/o.

2010-07-22 Thread MB
I am able to get most of the work done using the available dev tools with the exception of anything that has to do with file i/o. File read operations that just take a few seconds on real device take more than 5 minutes on emulator. Its reproducible on both linux and windows. On Jul 22, 12:07 pm,

Re: [android-developers] Re: Android 2d canvas game: FPS Jitter problem

2010-07-22 Thread Leigh McRae
It's standard practice to nail your frame rate to a fixed number and 30fps is what I usually use. Here is some code I use to run my game simulation in a fixed time step. public final void run() { System.out.println( "UpdateThread: start" ); while( m_bKill == false ) { sync

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread Joseph Earl
Ah, you may well be. On Jul 22, 10:26 pm, GodsMoon wrote: > Perhaps the difference was because I was declaring my view in the > onCreate method instead of in the onPostExecute method of the > AsyncTask? > > If I declare the view in my activity, maybe it gets GCed when my > activity is killed, but

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread DanH
" So you'd only want to use WeakReference when you think your activity might run out of memory?" Not exactly. If you use poor programming techniques just about any long-running operation can run out of memory. WeakReference is an aid to keep you from having to use much more complex techniques (l

[android-developers] Re: Calling onResume in Activity

2010-07-22 Thread Joseph Earl
Use the TabHost.OnTabChangeListener to be informed when the user changes tabs. On Jul 22, 8:33 am, Girish Gaitonde wrote: > Hi all, > > I am developing an application , with 3 tabs. > when i am revisiting any particular tab for the second time, i want an > functionality to be fired. > > How can a

[android-developers] Re: Necessary to close SQLite database?

2010-07-22 Thread Joseph Earl
I agree it's not well documented what to do when opening/closing the DB from within an activity. Instead implement a ContentProvider which opens your database and provides access to it. Your activities will then never need to worry about opening/closing the DB. On Jul 22, 3:54 pm, Doug Gordon wr

[android-developers] Re: Updates from a Web Server

2010-07-22 Thread KG
I'm inclined to agree with you. Waiting on Google to release a new system that won't even work with every platform seems stupid. A few other ideas I have are to increase the amount of time between updates (the idea being that less firings of the radio = less battery usage) or to have the server d

[android-developers] Re: Eclipse + Android SDK

2010-07-22 Thread Joseph Earl
There isn't really a layout editor - try searching for Droid draw for a third party solution, although it's not yet mature. However just spend a bit of time learning to write the layout XML code, it's not too hard and will give you more control than any of the currently available programs. On Jul

Re: [android-developers] Key Capture in background

2010-07-22 Thread Dianne Hackborn
Sorry you can't do this. On Wed, Jul 21, 2010 at 11:26 PM, lokesh wrote: > Hi all, > > I am working on key capturing events in background. > i used Service to send my application back. When the application is in > forground i can capture the keys and logged in a file.But when i sent > it to bac

[android-developers] Re: how do you guys feel about the develop tools?

2010-07-22 Thread sampullman
If you're good with emacs, I would suggest using it for android development. I used eclipse for a bit and couldn't stand it.. it slowed me down enormously, and it hides a lot of lower level stuff that I think is very useful to know if you're serious about developing. You have to customize emacs a b

[android-developers] Eclipse + Android SDK

2010-07-22 Thread coy
Hello! I'm a student, and I'm starting with the Android OS. Today I installed the Eclipse IDE and the ADT plugin, ok. So I create a new Android Project, and even emulate the SDK, but when I open the layout, there isn't a visual editor, with widgets and everything else, like the ones I see in video

[android-developers] Re: Send Touch Events to Foreground Activity

2010-07-22 Thread Matt Rusiniak
Hi Dianne, I read through all the source of Monkey and realized that I'd need access to private APIs, however I have read (I think even from you) that using private APIs is highly discouraged. Currently right now I'm actually able to use the very rudimentary built in scripting support with monkey

[android-developers] Andriod Email Flaw

2010-07-22 Thread Shulbert
Hello I have noticed a flaw in Android, When connecting to an IMAP server Doesn't matter if it is Exhange or Unix the Android Email client will not close the connection. In order for IMAP to work correctly a client makes a conneciton and gets updates. If a connection to the IMAP server is left op

[android-developers] Receiving SMS Messages

2010-07-22 Thread bilal
Dear All , Can some one help me to solve my prob I have put this code for receiving Message but the receice Msg on top of the screen but after some second it disappeared,I want to save the receive Msg in "txtEncryptedMessage"box ,can any one help to solve this prob abbi...@hotmail.com public cl

[android-developers] Necessary to close SQLite database?

2010-07-22 Thread Doug Gordon
I've seem some conflicting posts on this, so will ask it simply here. Is it really necessary to close an SQLite database that your activity has opened (database is in local memory or on SD card)? I would think it would be good practice, but I noticed that the Android samples such as the Notepa

[android-developers] Multiple selection ListView question

2010-07-22 Thread Boots
I am trying to achieve what should be a very simple task. Create a ListView that allows multiple selection, set some initial values selected, display the ListView and then retrieve the selected items once the user has finished manipulating the list. I have a custom dialog with a ListView and the

[android-developers] InstructionCount in nested functions

2010-07-22 Thread Andrius
Hi, I'm not sure whether I'm badly misusing InstructionCount or there is a bug, but let's assume the first one for now... The simplified situation is like that: I have a function (say, foo()) for which I want to track the number of instructions executed and the function itself calls another funct

[android-developers] Calling onResume in Activity

2010-07-22 Thread Girish Gaitonde
Hi all, I am developing an application , with 3 tabs. when i am revisiting any particular tab for the second time, i want an functionality to be fired. How can achieve the same thing. Rgds Girish -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] hi

2010-07-22 Thread Raineesh Pereira
Need some good stuff to learn Android... Am a new Android Developer... -- 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 an

[android-developers] To display the soft keyboard during the launch itself

2010-07-22 Thread harshe
i have an activity with few edit text views and a button. The Soft Keyboard is visible when I click the edit text view. But i want the soft keyboard to be visible during the launch itself , without clicking the edit text itself i must get the soft keyboard on the screen. Can anyone plzzz help me

[android-developers] Youtube API : SAXParser error

2010-07-22 Thread Ashish
Hi, I have been trying to use the youtube APIs on the Android Platform (version 1.6) and have been stuck with the SAXParser whenever I send out a query from the following line of code: VideoFeed videoFeed = service.query(query, VideoFeed.class); I initially had errors with the SAXParser for whic

[android-developers] How to use "repaint()" method in Android...

2010-07-22 Thread blessu76
Hi If i use repaint() method.I got error message. What is the solution for that.Can we use repaint() in android.If not what is the alternate solution for it? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

[android-developers] Video streaming from Android

2010-07-22 Thread RFuente
Hi everyone. I'm trying to do live-record streaming from an Android phone and got stuck in a problem quite difficult to tackle. After messing around with an hex editor, I've found that MediaRecorder class places the moov atom at the end of the MP4 file. As this atom is necessary to work with the M

[android-developers] How could I avoid others to get my used pictures in my application?

2010-07-22 Thread ejo
I'll use some pictures in my application.Is there any way to avoid others getting my pictures? -- 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

[android-developers] Routing audio input to bluetooth headset

2010-07-22 Thread Garima
Is it possible to record an audio (not a phone call) using the bluetooth input and not the device microphone? I am able to playback whatever am saying through device's mic but am not able to figure out how to use the bluetooth mic instead. Any assistance would be greatly appreciated. -- You recei

[android-developers] Play Sound File

2010-07-22 Thread Monali
Hi, can we play sound file in phone line (in background)?? Please help me Thanks in Advance Monali -- 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 fro

[android-developers] A error has been shown when I run the example in the facebook SDK for android

2010-07-22 Thread xiaguang Chen
Hi all, I have to do smoething about facebook on android platform, but a error has been shown when I run the example in the facebook SDK for android( http://github.com/facebook/facebook-android-sdk). "you do not have permission to open this page ". The details information has been list in t

[android-developers] unsubscribe

2010-07-22 Thread ybzhg
于 2010-7-22 19:18, Matty 写道: That sounds most likely (bug in platform). I've only been able to reproduce it on 1.5 and 1.6, not 2.0 or 2.1... So I guess that returns me to my original question: Is there any way I can detect this state in my code (I guess I don't mind polling when viewing this A

[android-developers] Showing Google MyMaps

2010-07-22 Thread vlatkovr
Hi, I created a custom map in Google Maps "My Maps". Now i want to show that map on an android device, but not just opening it as a web page but showing it using MapView or smth similar. I want to be able to center on a place I have marked on the map etc. My custom map is a map containing the loca

[android-developers] Key Capture in background

2010-07-22 Thread lokesh
Hi all, I am working on key capturing events in background. i used Service to send my application back. When the application is in forground i can capture the keys and logged in a file.But when i sent it to background i am not able to get. i am aware of onKey() and onKeyDown(). and also i feel th

  1   2   3   >