Re: [android-developers] about the heap size in honeycomb

2011-02-24 Thread Zhihong GUO
thanks a lot. 2011/2/24 Romain Guy romain...@android.com The heap size is set to 48MB. On Wed, Feb 23, 2011 at 9:18 PM, Zhihong GUO gzhh...@gmail.com wrote: Hi all, it is said in the link http://developer.android.com/intl/zh-CN/sdk/android-3.0.html that honeycomb support larger heap

[android-developers] Re: Broadcast Receiver From Widget

2011-02-24 Thread Nguyen Dat
Dear Henry, This is result after investigate this problem, i was handler successful this issue. So i collect as report to share with android developer. Hope it help Here is result: ★Issue: Regarding limited from Widget, when try to register BroadcastReceiver via explicit source code: (No effect

[android-developers] Re: Setting filter on List using Text Watcher

2011-02-24 Thread Manish Garg
Please help. I am not able to find out any solution for this. On Feb 22, 3:08 pm, cool.manish mannishga...@gmail.com wrote: Hi All, I have a ListView, which is having data in the form of HashMapString, String. I am populating the list as SimpleAdapter adapter = new SimpleAdapter(ctx,

[android-developers] Re: Problem while creating a custom UI

2011-02-24 Thread fernando
And double check if the package matches. You didn't include the source code about the widget package On Feb 23, 9:55 pm, TreKing treking...@gmail.com wrote: On Mon, Feb 21, 2011 at 6:31 AM, Alok Nath nath.a...@gmail.com wrote:  java.lang.RuntimeException: Unable to start activity

[android-developers] Check if action activity exists

2011-02-24 Thread b_t
Hi, ACTION_NETWORK_OPERATOR_SETTINGS says that In some cases, a matching Activity may not exist How can I check if there is an activity or not before I try to start the activity? I wanted to show a feature only if this activity exists. Thanks, Tamás -- You received this message because you

Re: [android-developers] SDK 11 is the slowest yet

2011-02-24 Thread String
On Wednesday, February 23, 2011 2:29:17 PM UTC, Sebastian wrote: Have you tried tuning eclipse.ini options to enable higher memory limits? Sometimes, if a java app is running 100% it could be related to the garbage collector collecting (or, trying to) memory all the time. Thanks, that

Re: [android-developers] Check if action activity exists

2011-02-24 Thread Kostya Vasilyev
You can just call startActivity without any prior checks, and catch ActivityNotFoundException. -- Kostya 24.02.2011 11:45, b_t пишет: Hi, ACTION_NETWORK_OPERATOR_SETTINGS says that In some cases, a matching Activity may not exist How can I check if there is an activity or not before I try

[android-developers] Re: Check if action activity exists

2011-02-24 Thread b_t
This is not good for me. I would like to show a list to the user to select an action what to do. So I can't start the activity before to check if it exists or not. And it is not elegant that after he clicks on it I say, oops I can't do that. And I would like to set this intent in an appwidget.

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-24 Thread Fox Mulder
Hi Samuh Yes and that was because I posted at first time. Apple stream works and I was testing with a private stream that did not work and have exactly the same behaviour you described Here it that was reported in the preview (same error as you) 02-23 10:14:03.157: INFO/NuHTTPDataSource(33):

[android-developers] Activity without UI

2011-02-24 Thread Dudero
Hello, I have heard that an Activity must not contain UI - so is in some cases an Activity a better solution than a Service? Can anybody give me an example for a useful case of an Activity without UI? Greetz dudero -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Graphical corruption upon setting Live wallpaper

2011-02-24 Thread Amit
Look peter, I work in EA mobile; I mean to say this is not my personal device. This issue is peculiarly with this application since now only I checked it with others application. As I already specified somehow it’s related to LIVE wallpaper; for your kind information I would like to let you know

Re: [android-developers] Activity without UI

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 11:11, Dudero sinfanh...@googlemail.com wrote: I have heard that an Activity must not contain UI - so is in some cases an Activity a better solution than a Service? That's quite misunderstanding of basics. Is wheel better than bucket? Can anybody give me an example for a

[android-developers] Re: Activity without UI

2011-02-24 Thread Dudero
But Dan Morrill sad on the Google IO 2008 presentation that an Activity is an encapsulation of a particular operation and optionally associated with a window (UI) reference -- Google I/O 2008 - Inside the Android Application Framework :

[android-developers] is javamail-android API work with other smtp server...

2011-02-24 Thread kamiomar
i have download jar files from the following link: http://code.google.com/p/javamail-android/downloads/list and try the following example: http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android but this is working only for gmail not for others. I

Re: [android-developers] Re: SDK 11 is the slowest yet

2011-02-24 Thread Reuben Scratton
Suspect we are talking at cross-purposes. If you have switched Canvas to GL-based rendering then surely it is self-evident that there is going to be far more computation overall (i.e. for both hardware *and* software) in using a complex floating-point based pipeline. For the emulator, that

[android-developers] Re: the difference between ACTION_PACKAGE_CHANGED and ACTION_PACKAGE_REPLACED ?

2011-02-24 Thread Hiko
Thank you very much! cleared. On Jan 28, 3:43 pm, Goodwin purerain2...@163.com wrote: ACTION_PACKAGE_REPLACED Since: API Level 3 Broadcast Action: A new version of an application package has been installed, replacing an existing version that was previously installed. ACTION_PACKAGE_CHANGED

[android-developers] Re: Failure [INSTALL_FAILED_OLDER_SDK]

2011-02-24 Thread g b
i'm getting this message while build with: [setup] Android SDK Tools Revision 10 [setup] Project Target: Android 2.2 [setup] API level: 8 and installing on a nexus one with 2.2.2 frg83g what's happening? -- You received this message because you are subscribed to the Google Groups

[android-developers] question about a View's hardware and software layer

2011-02-24 Thread Zhihong GUO
Hi all, The view in Honeycomb can be specified be backed by either a hardware or software layer. I am not familiar with it and I want to know what can be done by the hardware and software layer of a view. it should be a special look and feel effect, or it make a effect happened quickly than

Re: [android-developers] Re: the difference between ACTION_PACKAGE_CHANGED and ACTION_PACKAGE_REPLACED ?

2011-02-24 Thread Marcin Orlowski
ACTION_PACKAGE_CHANGED Since: API Level 1 Broadcast Action: An existing application package has been changed (e.g. a component has been enabled or disabled) Can you give an example of this case? -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] is javamail-android API work with other smtp server...

2011-02-24 Thread Kostya Vasilyev
What does not working mean? The sample uses SSL over port 465, which is pretty standard, but if your own server is configured differently (non-secure port 25, or 587, for example), then you'll need to adjust your code accordingly. 24.02.2011 14:12 пользователь kamiomar kamio...@gmail.com написал:

Re: [android-developers] Re: Activity without UI

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 11:53, Dudero sinfanh...@googlemail.com wrote: But Dan Morrill sad on the Google IO 2008 presentation that an Activity is an encapsulation of a particular operation and optionally associated with a window (UI) People talk various things and it shall rarely be taken

Re: [android-developers] custom attributes in library projects

2011-02-24 Thread Romain
Hi, Any chance this has been fixed - or a workaround is available? Library projects seem to be the best approach to release multiple versions of an app (ex: free/paid), and I was really hoping there is a better solution than to duplicate all of my custom layouts in both apps. Many thanks,

[android-developers] what does WIN DEATH mean when running kill?

2011-02-24 Thread Hiko
Hi, I have one question concerning output logs. When I run to kill the specified package with forceStopPackage(), WIN DEATH is always output. what does WIN DEATH mean? Is WIN DEATH related with the behavior when the package is killed? I am very sorry that it might be difficult for you to

[android-developers] Re: the difference between ACTION_PACKAGE_CHANGED and ACTION_PACKAGE_REPLACED ?

2011-02-24 Thread Hiko
Dear Marcin, Appreciate. However,I have already taken the sample code. Best Regards, On 2月24日, 午後8:32, Marcin Orlowski webnet.andr...@gmail.com wrote: ACTION_PACKAGE_CHANGED Since: API Level 1 Broadcast Action: An existing application package has been changed (e.g. a component has been

Re: [android-developers] what does WIN DEATH mean when running kill?

2011-02-24 Thread Kostya Vasilyev
It means the active UI window of the application was killed together with the process. -- Kostya 24.02.2011 14:12, Hiko пишет: Hi, I have one question concerning output logs. When I run to kill the specified package with forceStopPackage(), WIN DEATH is always output. what does WIN DEATH

Re: [android-developers] Re: Broadcast Receiver From Widget

2011-02-24 Thread Nguyen Dat
Dear all Sorry for missing report relate with Target environment for this report, just add item *7★Target Environment, **8★Notes* - Dear Henry, This is result after investigate this problem, i was handler successful this issue.

[android-developers] Re: Playing sound with mediaplayer

2011-02-24 Thread kernelpanic
I understand But he is using one of the static convenience methods which states that prepare must not be called again http://developer.android.com/reference/android/media/MediaPlayer.html#create%28android.content.Context,%20int%29 regards, kp On Feb 24, 1:30 am, Marcin Orlowski

[android-developers] Re: ADT Plugin error

2011-02-24 Thread snpe
Gregorio, You can try to add GEF update site. Select WindowPreferencesInstall/UpdateAvailable Software Sites, click add and enter http://download.eclipse.org/tools/gef/updates/releases/ You can also start with Eclipse IDE for Java EE Developers for your OS from http://www.eclipse.org/downloads/.

[android-developers] Re: Activity without UI

2011-02-24 Thread Dudero
thank you marcin! On 24 Feb., 12:37, Marcin Orlowski webnet.andr...@gmail.com wrote: On 24 February 2011 11:53, Dudero sinfanh...@googlemail.com wrote: But Dan Morrill sad on the Google IO 2008 presentation that an Activity is an encapsulation of a particular operation and optionally

Re: [android-developers] Map tiles unnecessarily reloading when panning

2011-02-24 Thread Jason Hanley
On Wed, Feb 23, 2011 at 11:48 AM, TreKing treking...@gmail.com wrote: Yes, also adding stuff to my map activity, also thought I'd screwed something up, but my current release version (what's on the Market) also shows the behavior. Methinks the server end is foo-barred. At least I'm not alone.

Re: [android-developers] Re: Playing sound with mediaplayer

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 13:30, kernelpanic j.m.roya...@gmail.com wrote: I understand But he is using one of the static convenience methods which states that prepare must not be called again Right, my bad them -- Regards, Marcin -- You received this message because you are subscribed to the

[android-developers] How To Determine Which Dialog Was Dismissed

2011-02-24 Thread hoyski
I have an application that has two custom Dialog extensions. My activity has an instance of each dialog as a private member variable. My activity also implements DialogInterface.OnDismissListener and I set it as the dismiss listener for each dialog. My question is, what's the best way to

[android-developers] Re: Service Lifecycle

2011-02-24 Thread Jake Colman
Arrgggh. For some reason my 2.2 emulator wouldn't complete booting. So then I tried it again on my 1.6 emulator and it worked! So I guess and all is well. Sheesh, I hate these kinds of issues. ZV == Zsolt Vasvari zvasv...@gmail.com writes: ZV The next logical question is: does it work

[android-developers] Re: Service Lifecycle

2011-02-24 Thread Jake Colman
S == String sterling.ud...@googlemail.com writes: S On Wednesday, February 23, 2011 11:30:53 PM UTC, Mark Murphy (a Commons Guy) S wrote: S We now return you to your originally scheduled topic... Jake, S since it seems like your code works in 2.2 but not 1.6, are you S familiar

[android-developers] Re: How To Determine Which Dialog Was Dismissed

2011-02-24 Thread Ian Kelly
what is brittle about it as your current approach looks fine? -- 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] Re: Check if action activity exists

2011-02-24 Thread b_t
Thank you, this code works well: Intent intent = new Intent(ACTION_NETWORK_OPERATOR_SETTINGS); boolean available = intent.resolveActivity(context.getPackageManager()) != null; On Feb 24, 10:32 am, Kostya Vasilyev kmans...@gmail.com wrote: OK then, use PackageManager to check for a match

Re: [android-developers] How To Determine Which Dialog Was Dismissed

2011-02-24 Thread Kostya Vasilyev
24.02.2011 16:19, hoyski ?: For the moment, I'm testing if the dialog interface equals either of my dialog instances held by the activity, e.g. if (d == mOptionsDlg). That works but it feels brittle to me. Sounds fine - Dialog impelments DialogInterface, and since you know you're not

[android-developers] EditTextPreference

2011-02-24 Thread dashman
Have an EditTextPreference in a PreferenceActivity. How can I be notified when the user clicks on the ok button on the edit dialog. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Access to data folder on Google Nexus S

2011-02-24 Thread Mark Murphy
On Thu, Feb 24, 2011 at 1:56 AM, Robert rmsz...@gmail.com wrote: can someone help me. I can't access to data folder in Google Nexus S, any idea how I can do it? You can't. On production hardware, the /data partition is not readable except with superuser privileges. -- Mark Murphy (a Commons

[android-developers] Re: Unique device id - which one to choose

2011-02-24 Thread gcstang
From what I've read on some other sites retrieving the MAC with the Wifi off will not always return a valid MAC (as in my case) and some devices don't have Wifi at all. One site as an example : http://stackoverflow.com/questions/4468248/unique-id-of-android-device Quoted from that site : You

[android-developers] providing custom layout for context menu

2011-02-24 Thread Martin Obreshkov
Hi all I am using context menu which is inflated from xml. Something pretty close to this http://developer.android.com/guide/topics/ui/menus.html. The question is how can i set layout parameters to the xml like background color, item selection in the xml. Thanks in advance. -- When I raise my

Re: [android-developers] EditTextPreference

2011-02-24 Thread Mark Murphy
The same way you are notified about any preference change -- register an OnSharedPreferenceChangeListener with the SharedPreferences. If, for whatever reason, that is too late, subclass EditTextPreference and add whatever hooks you need. On Thu, Feb 24, 2011 at 8:58 AM, dashman

Re: [android-developers] providing custom layout for context menu

2011-02-24 Thread Kostya Vasilyev
You could try checking styles.xml and/or theme.xml in the platform specific sdk folder. Perhaps there is a style for that, and perhaps it's even public (accessible by applications). Or not - checking those files should clarify it. 24.02.2011 17:31 пользователь Martin Obreshkov manig...@gmail.com

[android-developers] specify dollars for america, euros for europe.

2011-02-24 Thread sblantipodi
Hi, some weeks ago I received an email from google that informed me that they are introducing the possibility to specify different value for different currency. How can I specify different value from different currency today? -- You received this message because you are subscribed to the Google

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-02-24 Thread sblantipodi
honeycomb is also slower. congratulations google. -- 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] android resources error after upgrade to honeycomb and adt v10

2011-02-24 Thread Premier
Hello, i've created a new android project target 8, with default activity I've assigned an id to textview with text Hello world. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical

[android-developers] Re: Backup and Restore service not working

2011-02-24 Thread Raj
Hi, Some more findings which suggest the default backup and restore service does not work as expected or atleast for me !!! My requirement is to store my application data on google cloud server. After doing a backup when I uninstall the app, delete the DB, restart the phone and try to do a

Re: [android-developers] specify dollars for america, euros for europe.

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 16:28, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, some weeks ago I received an email from google that informed me that they are introducing the possibility to specify different value for different currency. How can I specify different value from different

[android-developers] Android soundpool stop sequence of sounds

2011-02-24 Thread Traveler
I have developed an application that plays a sequence of 20 sounds using soundpool. If I try to use a button or touch the screen during the playback, I get a dialog Sorry! Application is not responding. I also get a Force close button and a wait button. Is there a way to use the user interface to

[android-developers] who prevails with audio in simultaneous cell phone and VOIP calls?

2011-02-24 Thread longingtoadopt.com
I asked a co-worker to make a Linphone VOIP call to me and while the call was in progress, I made a regular cell phone call to my wife. I was able to hear their voices simultaneously. This was surprising. When I play an audio clip on my cell phone and then make a cell phone call out, the media

[android-developers] Re: Atrix OpenGL issues

2011-02-24 Thread MrChaz
The Atrix is a tegra2 powered device so is really quite difference from the GPUs in the nexus and droid. -- 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

[android-developers] Re: how to draw a simple shape according to compass data

2011-02-24 Thread Dimitris
Yasin YILDIRIM yasinyildirim495 at gmail.com writes: Hello to everyone; I am trying to develop an application based on compass and camera surface. In the application there will be a camera preview and I want to draw a rectangle and text on this preview. When user turns the device aroun

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-24 Thread Fox Mulder
@Samuh I finaly discovered why we have the same error.. It is because, the streams we are trying to play are in main-profil and SDK3.0 only can play Baseline-profil take a look here http://developer.android.com/guide/appendix/media-formats.html All the stream i tried in baseline-profile were OK

Re: [android-developers] Re: SDK 11 is the slowest yet

2011-02-24 Thread Romain Guy
Reuben, the emulator does NOT use the new OpenGL backend for Canvas. It wouldn't work on the emulator anyway because it requires OpenGL ES 2.0 and the emulator does not support OpenGL ES 2.0. The emulator is slow simply because there are more pixels to draw and apps are more complex than before.

Re: [android-developers] Re: Google Map Error

2011-02-24 Thread Nesim TUNÇ
Hi, Sorry for the delayed reply :( Today I tried to solve it ... I changed the api Google Inc 7. I removed all android jar then I add the Google Inc 7 api. Then worked for me ... Thanks to all you ... On Tue, Feb 22, 2011 at 10:49 AM, pravin mohol pravin.mo...@gmail.comwrote: change your

[android-developers] Bitmap problem - application crashes

2011-02-24 Thread android777
I'm writing an application, where it renders bitmaps to a video. For that purpose, I created a surface holder and then in a while loop I call the surfaceholder.lockCanvas and then call ondraw on canvas. In canvas ondraw I create a bitmap and call a function from native code which will update the

[android-developers] sqlite access

2011-02-24 Thread Greg Donald
Is it possible for an activity and a service to both have simultaneous access to the same sqlite db? So far I can't seem to find a way due to the failed to close() exception I get when I make the second connection. I've tried a couple different setups so far, and it seems my only option may be

[android-developers] Change Keyboard Key label at runtime

2011-02-24 Thread trans
I am writing a Keyboard app. I want to change the label on a key at runtime, but can't seem to do it. This is what I have tried: Keyboard currentKeyboard = mInputView.getKeyboard(); ListKeyboard.Key keys = currentKeyboard.getKeys(); keys.get(1).label = TEST; But no effect.

Re: [android-developers] Re: TextView adjusts, ImageView stays static when keyboard pops up - How To?

2011-02-24 Thread TreKing
On Wed, Feb 23, 2011 at 1:36 PM, Matt M matthew.mag...@gmail.com wrote: Any ideas?? Do you have screen shots? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit

Re: [android-developers] android resources error after upgrade to honeycomb and adt v10

2011-02-24 Thread J Handal
A reference to tv has to be set outside onCreate() TextView tv has to be a member variable. Inside the onCreate() tv is short lived. 02-24 16:09:25.374: ERROR/AndroidRuntime(537): Caused by: java.lang.NullPointerException 02-24 16:09:25.374: ERROR/AndroidRuntime(537): at

Re: [android-developers] Re: SDK 11 is the slowest yet

2011-02-24 Thread Reuben Scratton
That does surprises me, considering the triangular tearing seen on the Honeycomb emulator. I guess that was just framebuffer composition. Thanks for the clarification. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: ListView adapter bug?; notify changed does nothing.

2011-02-24 Thread Dan
I don't know how soon I'll be able to do that but something that is a few steps easier is for Google and AOSP to release a tag of the Java code used in the simulators. On Feb 23, 8:59 pm, fernando fernandoler...@gmail.com wrote: i can't see what could be wrong, except if the notifyDataSetChanged

Re: [android-developers] sqlite access

2011-02-24 Thread Justin Anderson
The way I do it is by creating an Application subclass with helper methods to access the db. That way access only happens at one spot and both activities and services should be able to access it just fine. Another thing I do (which works in my case because db access doesn't happen all that

[android-developers] Re: Change Keyboard Key label at runtime

2011-02-24 Thread trans
I figured out that it is actually changing the label, but it's not redrawing the key to show it. So how to tell it to redraw? -- 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] Re: Android soundpool stop sequence of sounds

2011-02-24 Thread Lance Nanek
When you call SoundPool's play method you are returned a stream ID. You can call the stop method with that stream ID to stop the sound. SoundPool playing won't lock up your UI like that, however. That's probably your own code. Maybe you are using Thread.sleep on the main UI thread, for example.

Re: [android-developers] Re: Change Keyboard Key label at runtime

2011-02-24 Thread Justin Anderson
http://developer.android.com/reference/android/inputmethodservice/KeyboardView.html#invalidateKey%28int%29 So, here's a quick question... I'm not trying to be mean and this is supposed to be more of a gentle reminder, but did you even look at the SDK docs? I have never developed a keyboard app

[android-developers] Re: SDK 11 is the slowest yet

2011-02-24 Thread sblantipodi
I would like to have more respect about your work but the answer from Romain Guy doesn't respect our patience. This SDK is simply UNUSEFUL, google save your time if you need to write a simulator like this, no one can use it because is too slow also for a fart app, it's unusable. If you can't do a

Re: [android-developers] Re: SDK 11 is the slowest yet

2011-02-24 Thread Romain Guy
The problem is that the emulator is an emulator, not a simulator, nor does it virtualize your computer's CPU. Tools like VMWare or VirtualBox achieve great performance thanks to virtualization, apps in the guest OS run directly on your hardware CPU. In the case of Android's emulator, a completely

[android-developers] Re: specify dollars for america, euros for europe.

2011-02-24 Thread sblantipodi
Is there an estimated time to measure my luck? On Feb 24, 5:03 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 24 February 2011 16:28, sblantipodi perini.dav...@dpsoftware.org wrote: Hi, some weeks ago I received an email from google that informed me that they are introducing the

Re: [android-developers] sqlite access

2011-02-24 Thread Greg Donald
On Thu, Feb 24, 2011 at 12:17 PM, Justin Anderson magouyaw...@gmail.com wrote: The way I do it is by creating an Application subclass with helper methods to access the db.  That way access only happens at one spot and both activities and services should be able to access it just fine. Another

Re: [android-developers] sqlite access

2011-02-24 Thread Justin Anderson
So in addition to only being able to have the single db instance, you also find you have to take precautions (using transactions) to only give it one query at a time? Am I understanding correctly? Not necessarily... That is just how I had it set up from the beginning, more because I didn't

[android-developers] Need help refresh different activity's when updating the database

2011-02-24 Thread Danny S.
Hi, I have a TabActivity with Activity B on Tab1 and Activity C on Tab2. Both extends Activity A where I do the most. They use the same kind of data. Activity B is using data thats state is active and Activity C is using data in state finished. So far so good... Now I have the possibility to

Re: [android-developers] Need help refresh different activity's when updating the database

2011-02-24 Thread Justin Anderson
Sounds to me like the cleanest approach would be to rewrite it so that each tab is a View instead of an Activity. Combine all the logic of activities A, B, and C into the TabActivity. That way you have a central location for your data and you don't have to read the database to update the other

[android-developers] Re: Need help refresh different activity's when updating the database

2011-02-24 Thread Danny S.
Hi Justin, first: thanks. I used activities cause I learned it reading the docs on code.google.com. Do you mean I should use ListViews for example and put them into the tabs instead using Activities? Youre right, then I would have one activity for my data (TabActivity) and I can render my views

[android-developers] notification for change in airplane mode

2011-02-24 Thread dashman
is there a way to get notification when there's a change in airplane mode...specifically data access. -- 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

Re: [android-developers] notification for change in airplane mode

2011-02-24 Thread Mark Murphy
Literally: http://developer.android.com/reference/android/content/Intent.html#ACTION_AIRPLANE_MODE_CHANGED What you probably want: http://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION On Thu, Feb 24, 2011 at 3:10 PM, dashman erjdri...@gmail.com wrote:

[android-developers] AppWidget Not Surviving a Reboot

2011-02-24 Thread Jake Colman
My app is structured to use an IntentService to update an appwidget's RemoteViews. The appwidget sets up a repeating alarm that, when triggered, causes the appwidget to start the IntentService. If the phone is rebooted, the widget never gets repainted. Is there a design paradigm that I am

Re: [android-developers] notification for change in airplane mode

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 21:10, dashman erjdri...@gmail.com wrote: is there a way to get notification when there's a change in airplane mode...specifically data access. Airplane mode is not the only way to cut data access off, so unless you really need to know airplane mode for any reason (which I

[android-developers] Re: Scheduling ideas

2011-02-24 Thread Neilz
Like this: public class AlarmReceiver extends BroadcastReceiver { On Feb 23, 10:11 pm, Kostya Vasilyev kmans...@gmail.com wrote: 24.02.2011 1:06,Neilzпишет:   I'm using an Activity that extends a BroadcastReceiver... An Activity that extends a Broadcast receiver? Sorry, I'm not sure I

Re: [android-developers] AppWidget Not Surviving a Reboot

2011-02-24 Thread Mark Murphy
Your alarms go poof on a reboot, unlike cron jobs or Windows scheduled tasks. You will need to re-establish the alarms you want to keep after a reboot. That is one big advantage of updatePeriodMillis for app widgets -- you don't have to mess with this. -- Mark Murphy (a Commons Guy)

[android-developers] Re: how to render video YUV frame?

2011-02-24 Thread android777
Android doesn't support YUV frames. Use ffmpeg's sws_scale function to convert from YUV format to RGB format then create a bitmap to display on android. On Feb 15, 10:10 pm, kkoo kkoo kkoospi...@gmail.com wrote: I want to use FFmpeg to  make a player on android,but  how to render video YUV

Re: [android-developers] AppWidget Not Surviving a Reboot

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 21:23, Jake Colman col...@ppllc.com wrote: My app is structured to use an IntentService to update an appwidget's RemoteViews.  The appwidget sets up a repeating alarm that, when triggered, causes the appwidget to start the IntentService.  If the phone is rebooted, the

Re: [android-developers] Re: specify dollars for america, euros for europe.

2011-02-24 Thread Marcin Orlowski
On 24 February 2011 20:08, sblantipodi perini.dav...@dpsoftware.org wrote: Is there an estimated time to measure my luck? Those who knows won't speak here I am afraid. I think soon is the most precise answer you can have here. I am bit more lucky and can set separate prices for some countries

Re: [android-developers] Re: Scheduling ideas

2011-02-24 Thread Justin Anderson
That is not an activity that extends a Broadcast receiver. That is a class that extends a Broadcast receiver, making AlarmReceiver a broadcast receiver, not an Activity. On Thu, Feb 24, 2011 at 1:27 PM, Neilz neilhorn...@gmail.com wrote: Like this: public class AlarmReceiver extends

[android-developers] Out of memory - despite being way under 16mb

2011-02-24 Thread Sheado
Hello. I tried posting this earlier, but it didn't seem to stick (so sorry if it double posts). My app occasionally runs out of memory when loading bitmaps. I call recycle() on every bitmap I'm done with and even set them to null. As far as diagnostics: * I ran ddms and never saw the heap go

Re: [android-developers] AppWidget Not Surviving a Reboot

2011-02-24 Thread Kostya Vasilyev
24.02.2011 23:23, Jake Colman пишет: My app is structured to use an IntentService to update an appwidget's RemoteViews. The appwidget sets up a repeating alarm that, when triggered, causes the appwidget to start the IntentService. If the phone is rebooted, the widget never gets repainted. Is

Re: [android-developers] Re: Need help refresh different activity's when updating the database

2011-02-24 Thread Justin Anderson
Yeah... the examples on developer.android.com also do it this way. The better and more supported way though is to use views. On Thu, Feb 24, 2011 at 1:09 PM, Danny S. danny.schi...@googlemail.comwrote: Hi Justin, first: thanks. I used activities cause I learned it reading the docs on

Re: [android-developers] Re: Scheduling ideas

2011-02-24 Thread Kostya Vasilyev
Ok, that's a receiver. I am guessing that your receiver uses startActivity. If you do that, beware of sleep/wake states, it's documented here: http://developer.android.com/reference/android/app/AlarmManager.html Android guarantees that for Wakeup-type alarms delivered to a broadcast

[android-developers] Efficient fifo queue for primitive types?

2011-02-24 Thread Serdel
I am trying to find an efficient fifo queue for primitive types. I need this for processing recorded samples with AudioRecord class. My problem is that I need to process the samples in excactly 5000 chunks. But the buffer size gained by getMinBufferSize is different on each devices and more over

[android-developers] Re: AppWidget Not Surviving a Reboot

2011-02-24 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV 24.02.2011 23:23, Jake Colman пишет: My app is structured to use an IntentService to update an appwidget's RemoteViews. The appwidget sets up a repeating alarm that, when triggered, causes the appwidget to start the

[android-developers] Re: Serious problem on Android 2.3 and XmlSerializer

2011-02-24 Thread Sky
For all dummys like me, here is the correct way to solve the problem above: call _serializer.setPrefix(, NAMESPACE); where NAMESPACE := the default namespace of your xml then call _serializer.startTag(NAMESPACE, test); ... _serializer.endTag(NAMESPACE, test); null is not needed anymore and yet

Re: [android-developers] Re: AppWidget Not Surviving a Reboot

2011-02-24 Thread Kostya Vasilyev
25.02.2011 0:00, Jake Colman пишет: How do I simulate a reboot in the emulator? Simply close the emulator and allow Eclipse to restart it without wiping user data? Yep. Make sure that the second time you start the emulator, you only start the emulator (and not start a new debugging

Re: [android-developers] Re: AppWidget Not Surviving a Reboot

2011-02-24 Thread Justin Anderson
Yes On Thu, Feb 24, 2011 at 2:00 PM, Jake Colman col...@ppllc.com wrote: KV == Kostya Vasilyev kmans...@gmail.com writes: KV 24.02.2011 23:23, Jake Colman пишет: My app is structured to use an IntentService to update an appwidget's RemoteViews. The appwidget sets up a repeating

Re: [android-developers] emulator: android_hw_control_init: hw-control qemud handler initialized

2011-02-24 Thread TreKing
On Tue, Feb 22, 2011 at 11:08 PM, Achu a.akshaykulka...@gmail.com wrote: If anyone know to resolve this issue, kindly let me know. Try the platform or porting groups if you're building the firmware.

Re: [android-developers] Efficient fifo queue for primitive types?

2011-02-24 Thread Kostya Vasilyev
Adam, You can use any primitive array type (or a wrapper, which basically boils down to the same thing - like a ShortBuffer, etc.). Implementing FIFO semantics only requires two indices: one for the head, one for the tail, or better yet, head or tail and currently used size, so it's easier

[android-developers] Sending/receiving text data from remote server

2011-02-24 Thread dashman
Sending relatively small amount of data to and from a server. what's the easiest way to encrypt the data - java on both client and server. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] No space for this sql statement.

2011-02-24 Thread Brad Gies
I don't know for sure this will help you, but when I write SQL statements that use a decimal/floating point value in the where clause, I always use something like where abs(the value I want to check - Field I'm checking) 0.001 You can use the ? operator with that, you just have to determine

[android-developers] Re: Efficient fifo queue for primitive types?

2011-02-24 Thread Serdel
Thanks Kostya, I was hoping to find something similar in the android api. The circular buffer is a solution although I think the fifo queue would be faster...or not? Need to reconsider that. I would definitely need to expand the size of the queue to avoid additional memory allocation, and avoid

[android-developers] Re: AppWidget Not Surviving a Reboot

2011-02-24 Thread Jake Colman
KV == Kostya Vasilyev kmans...@gmail.com writes: KV 25.02.2011 0:00, Jake Colman пишет: How do I simulate a reboot in the emulator? Simply close the emulator and allow Eclipse to restart it without wiping user data? KV Yep. KV Make sure that the second time you start

Re: [android-developers] Re: Efficient fifo queue for primitive types?

2011-02-24 Thread Kostya Vasilyev
25.02.2011 0:32, Serdel пишет: Thanks Kostya, I was hoping to find something similar in the android api. I'm not aware of anything read-made (except maybe down in the native code, and not accessible through the SDK). The circular buffer is a solution although I think the fifo queue would

  1   2   3   >