[android-developers] Re: Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread Matt Kanninen
On Dec 15, 4:10 am, steff stefan.dierd...@googlemail.com wrote: But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Furthermore, I feel unable to

Re: [android-developers] Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread Mark Murphy
steff wrote: But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Correct. By default, on an orientation change, Android destroys and recreates your

Re: [android-developers] Accessing Contact Data Base for adding,deleting,updating contact using Native code

2009-12-15 Thread Mark Murphy
manouwar wrote: Hi, I want to add,delete,update android Contact Database using native c code. please tell me how to do if any one have done it. I do not believe you can, but a better place to ask that question would be on the NDK Google Group: http://groups.google.com/group/android-ndk --

[android-developers] Re: Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread G
You need to check the Activity's entry in the Manifest and alter the android:configChanges to include keyboardHidden and orientation Then you need to override OnConfigurationChanged() method in your activity. More details here...

[android-developers] Re: Is there a way to print the activity stack ?

2009-12-15 Thread Matt Kanninen
Best way I know is to track state within your activities. Looking at the state diagram on: http://developer.android.com/reference/android/app/Activity.html if onResume has been called and onPause has not then your activity should be in the foreground. It might not have focus though, if a

[android-developers] Re: Does Android has a Touchscreen requirement?

2009-12-15 Thread xinit
Yes i have heard (but have not seen it documented) that there is compatability requirement for all handset vendors to support touchscreen. Gestures such as Fling are handled by the framework so as a developer you would not need to worry about it. Gerard On Dec 15, 8:05 am, bradki...@gmail.com

Re: [android-developers] How to Read/Write .CSV

2009-12-15 Thread Mark Murphy
Ben wrote: I'll open with, I googled this thing like crazy, searched anddev and a few other boards (including this one) and can't quite find what I'm looking for. The predicament : all CSV examples are in reference to contacts, and the file read/write posts (the ones that I need) make the

[android-developers] Re: How to Read/Write .CSV

2009-12-15 Thread Matt Kanninen
Doesn't sound like an Android question to me, just look for Java CSV samples. If you need some Android examples for file IO those are plentiful. Here for example is how to write to your apps private directory: FileOutputStream fos = context.openFileOutput(fileName,

[android-developers] Programmatic dithering on android

2009-12-15 Thread thevery
How can I make a good programmatic dithering for transparent image (i.e. without noise and/or color background)? android:dither make things even worse: without dithering, android 1.5: http://bit.ly/8BS2GI with dithering, android 2.0: http://bit.ly/5nH2oI Sample project here:

Re: [android-developers] Re: Accessing contact's phone numbers

2009-12-15 Thread Dmitri Plotnikov
Please be more specific: we all know there were some issues with the 2.0 SDK, which is why we released the 2.0.1 version of the SDK. So the real question is: does your code work on real Droids? It's expected to. However! Using the People.CONTENT_URI on a 2.0 phone is a really bad idea: that

[android-developers] Re: layout does not take text style from styles.xml?

2009-12-15 Thread tschiggerl
Hi, I believe the problem is in the parent of the style. You shouldn't put the '@': style name=mystyle parent=android:TextAppearance       item name=android:textSize12dip/item       item name=android:textColor#00/item /style Rúben On Dec 15, 6:16 pm, Mark Wyszomierski mar...@gmail.com

[android-developers] Re: Does Android has a Touchscreen requirement?

2009-12-15 Thread justinh
No actually, I think I recall an Android engineer here say it wasn't safe to assume a touch screen. If not a touch screen it would have to be a trackball type of deal. Of course, in the current market most devices support touchscreen. It would be a good idea to support both though. On Dec 15,

[android-developers] Re: Numeric-only soft keyboard

2009-12-15 Thread xinit
Hi ! Add this to your EditText layout numeric:decimal Regards Gerard On Dec 14, 10:46 pm, Ajay shyn...@gmail.com wrote: Any update on this?  I also want to bring up the numeric keyboard, but I don't want to restrict the input type. On Oct 25, 7:21 am, Armond Avanes armond...@yahoo.com

[android-developers] Re: Cannot receive UDP in mobile network

2009-12-15 Thread xinit
Hi ! Some operators will block UDP packets, for example I know that O2 UK used to do this and this meant that streaming on O2 was not possible (its no longer the case as they have unblocked it). But basically this is an issue is with the network carrier. Trying changing carrier ? Regards

[android-developers] Re: Facebook login fail

2009-12-15 Thread Steve
I spent some time with this a couple of weeks ago. I recall there is a warning on the download page that it is alpha and not to be used in production. I was able to get it to login to Facebook and process an extended permission, and post to my wall. However I could not get it to process a

Re: [android-developers] Location of current desktop/wallpaper file?

2009-12-15 Thread Romain Guy
The wallpaper is stored in a private directory of the system that is not accessible to users or apps. On Tue, Dec 15, 2009 at 6:15 AM, PopSandwich jjs...@gmail.com wrote: I realize this isn't exactly a programming question. However I seem unable to discover this information elsewhere, so thanks

[android-developers] Adding Custom Data Types to Contacts

2009-12-15 Thread Tabibito
I find the documentation on custom data types for contacts very sparse and the only example I can find in the documentation doesn't seem to work. I am trying to add a custom field to all my contacts, called isBusiness, which will hold a true or false. I want to be able to add this field and set

[android-developers] WebView web page not available after running awhile:

2009-12-15 Thread Kenn Min Chong
Hey there! So, I have this simple app that contains a WebView object. My code basically tells my WebView object to load some pages every minute or so. The problem is, after the application runs for about 9-10 sites, every time I ask the WebView object to load a new URL I get a Web page not

[android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-15 Thread Matt Kanninen
I've implemented a Sign Out function before which was much like exit except we still wanted the initial login screen to display. You can try to open your activities with startActivityForResult and in onActivityResult check if you were sent an exit code you chose, then call finish in every

[android-developers] Re: Issues debugging Droid with Eclipse

2009-12-15 Thread xinit
Hi, You should not be seeing errors in the platform so there should be no need to download the Android source in order to debug your application. Please reply with full error that you are getting, it should be pointing to the line in your code. Rgds Gerard On Dec 15, 5:01 am, frankw

[android-developers] How to get the WebView UserAgent (without having a Context)

2009-12-15 Thread Mariano Kamp
Hi, I am downloading web pages off of the internet and some of those sites want to format their content for the actual user agent used. I want to use the user agent that is later on used to display the stuff I donwnload. I can ask WebView.getWebSettings().getUserAgentString() to get the

[android-developers] Re: AudioTrack - Clicking Sound

2009-12-15 Thread Business Talk
Niko, I have redone all the test pcm files using the Audiocity and the click is still there. Maybe it’s the driver. I have my development environment on a virtual server. I am creating the track in a static mode so there should not be any gaps. since it’s one track per pcm. I will keep digging.

Re: [android-developers] Re: Facebook login fail

2009-12-15 Thread Ward Willats
A friend of mine uses the FB APIs on another platform and posted that the latest release of the FB SDK broke their logins. So perhaps it is something recent on the FB side. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: How to get the WebView UserAgent (without having a Context)

2009-12-15 Thread Matt Kanninen
So many things require a context I'm just in the habit at this point of passing the Context around everywhere. You can get in trouble if you try to preserve a reference to a context past it's lifetime though. On Dec 15, 10:59 am, Mariano Kamp mariano.k...@gmail.com wrote: Hi,   I am

[android-developers] service dies without calling onDestroy()

2009-12-15 Thread Don Park
A service is setup by an activity with startService(service_intent). This service is meant to run 24 hours a day. After some amount of time, 5 or 6 hours sometimes but its not predictable, the service is killed. The service has an onDestroy: public void onDestroy() {

[android-developers] Re: Scaling images in WebView (interactively?)

2009-12-15 Thread Mariano Kamp
*bump* On Sun, Nov 29, 2009 at 6:59 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, I use WebView a lot to display web pages with embedded images. Some of those web pages contain images that are too large (dimensions) to display them on the screen without scrolling. So I would like

Re: [android-developers] Re: How to get the WebView UserAgent (without having a Context)

2009-12-15 Thread Mariano Kamp
That's exactly the point why I try to store ApplicationContexts, but those don't work in this case. On Tue, Dec 15, 2009 at 8:12 PM, Matt Kanninen mathias...@gmail.com wrote: So many things require a context I'm just in the habit at this point of passing the Context around everywhere. You can

[android-developers] Re: Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread steff
First I got to apologize for that double posting. I got impatient since it took so long for the message to appear. In the meantime I figured it out myself, indeed using android:configChanges within the Activity tag in the AndroidManifest. Now it works like a charm. Having solved this, a new

[android-developers] Re: Scaling images in WebView (interactively?)

2009-12-15 Thread Jason Proctor
javascript. if the content you want to manipulate is inside a web view, good luck doing it any other way! :-) *bump* On Sun, Nov 29, 2009 at 6:59 PM, Mariano Kamp mailto:mariano.k...@gmail.commariano.k...@gmail.com wrote: Hi, I use WebView a lot to display web pages with embedded

Re: [android-developers] Re: Contacts SyncAdapter issues

2009-12-15 Thread Dmitri Plotnikov
1) SyncResult is your friend. A SyncResult object is passed to the sync adapter's onPerformSync method. Fill it up before returning. 2) addStatusChangeListener is used mostly internally: for example, settings UI uses it to update those icons representing sync status. 3) SyncContext is a

[android-developers] Re: Reproducable FC - bug in textview?

2009-12-15 Thread Al
I opened a bug report which can be found here: http://code.google.com/p/android/issues/detail?id=5164colspec=ID%20Type%20Status%20Owner%20Summary%20Stars -- 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] Re: Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread Dianne Hackborn
On Tue, Dec 15, 2009 at 11:16 AM, steff stefan.dierd...@googlemail.comwrote: Having solved this, a new question arises: how can I securely exit the app when it loses focus, i.e. the user returns to the homescreen? I don't want no background process. You don't. That's not how Android works.

Re: [android-developers] service dies without calling onDestroy()

2009-12-15 Thread Dianne Hackborn
Services can't run 24 hours a day. At some point the system will very likely need to kill your process to have memory for elsewhere, and you will go away without a call to onDestroy(). Later the system will restart the process and service. You just need to deal with this. As far as not

Re: [android-developers] Re: GK:How to Kill all Activity at a time ?

2009-12-15 Thread Dianne Hackborn
You can use Intent.FLAG_ACTIVITY_CLEAR_TOP to destroy a stack of activities in various ways. (Note this is NOT killing, it is destroying.) As far as killing or quiting your process -- just don't do this. On Tue, Dec 15, 2009 at 10:56 AM, Matt Kanninen mathias...@gmail.comwrote: I've

[android-developers] Re: layout does not take text style from styles.xml?

2009-12-15 Thread Mark Wyszomierski
Thanks a lot Rúben, that seems to have fixed it, Thanks On Dec 15, 1:40 pm, tschiggerl rcab...@gmail.com wrote: Hi, I believe the problem is in the parent of the style. You shouldn't put the '@': style name=mystyle parent=android:TextAppearance        item name=android:textSize12dip/item

[android-developers] Re: Contacts SyncAdapter issues

2009-12-15 Thread sazilla
Thank you Dmitri, 1) SyncResult is your friend. A SyncResult object is passed to the sync adapter's onPerformSync method.  Fill it up before returning. Ok, but if a sync request is not propagated to the sync adapter for some reason, how can I observe this fail? Actually I'm blocked with the

Re: [android-developers] Re: Does Android has a Touchscreen requirement?

2009-12-15 Thread Dianne Hackborn
It depends on how you look at it. Ideally, one should write apps that can be used without a touch screen, to make it easy to adapt to such devices in the future... in practice, you don't need to worry about non-touch Android compatible devices for a while, though I can't say how long that will

Re: [android-developers] aapt backwards compatibility, etc

2009-12-15 Thread Dianne Hackborn
Yes, you should be able to use the newest aapt to read any older .apk. We don't, however, test aapt with older versions of the platform, so doing so is not supported. It probably works, but there could well be obvious or subtle problems that result. On Mon, Dec 14, 2009 at 2:03 PM, bbe

[android-developers] integrating pro-guard (obfuscation).

2009-12-15 Thread sdphil
i would like to integrate pro-guard in my product, but I generate the build.xml file every time. i saw this post about how to ammend the build xml to do this --

[android-developers] Re: Same code phone models - inconsistent results

2009-12-15 Thread justinh
This is still causing me problems. It isn't SDK or platform specific as it has worked as intended on the CLIQ, G1, and Droid (1.5, 1.6, 2.0.1). I seriously doubt that the 90% of cut-off messages I have received are because the user chose to remove the numerous package information items from the

[android-developers] Re: service dies without calling onDestroy()

2009-12-15 Thread Don Park
I understand that a service can be bumped out of ram, though I expected this to happen infrequently enough, with a quick enough restart time, that the service was effectively running 24 hours a day. a 10 minute gap for instance would be fine. When a service is deemed unnecessary, its killed

[android-developers] Re: service dies without calling onDestroy()

2009-12-15 Thread Don Park
I forgot to add that the service is running on a T-Mobile G1 phone (Android 1.6). It pushes periodic GPS fixes to a web service. (Google Latitude does not fill the requirements in this case :) Don On Dec 15, 12:05 pm, Don Park don.p...@gmail.com wrote: I understand that a service can be bumped

[android-developers] Re: Dialog windowBackground style item

2009-12-15 Thread skink
Hi, maybe i should use inset drawable? alas i couldn't find anywhere any example how to use it in practice... thanks, pskink -- 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] new sdk requires versionCode bump to install?

2009-12-15 Thread Don Park
My old development process allowed me to make any change in the java code and use eclipse's Run button to install the updated package to the emulator. Now I get [2009-12-15 11:51:55 - SwipFull]Application already deployed. No need to reinstall. even though the code has changed. I realize the

[android-developers] How can I alway instantiate my ContentProvider

2009-12-15 Thread n179911
Hi, In my application, I have created a ContentProvider. Is there a way for me to instantiate this ContentProvider when my apk is started? RIght now, the ContentProvider only instantiate when some one does a query. Thank you. -- You received this message because you are subscribed to the

Re: [android-developers] new sdk requires versionCode bump to install?

2009-12-15 Thread Dan Sherman
Do a Project -- Clean I've had issues that if I make changes (or hit save) while its in the process of building/deploying, the next time I try to run, it will fail. Either add a letter, and delete it, and hit save (forces it to rebuild), or do a clean. Fixes it for me :) - Dan On Tue, Dec 15,

[android-developers] Re: Market Support Questions From Users/Buyers

2009-12-15 Thread Warren
No one else has gotten help emails from customers about the market? -- 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: Market Support Questions From Users/Buyers

2009-12-15 Thread justinh
Unfortunately yes, and there's not much we can do except direct them to threads such as this one: http://www.google.com/support/forum/p/Android+Market/thread?tid=57b5e3efa7477b50hl=en On Dec 15, 3:16 pm, Warren warrenba...@gmail.com wrote: No one else has gotten help emails from customers about

[android-developers] Re: GLSurfaceView.Renderer render rate

2009-12-15 Thread Robert Green
Here's how it works: Renderer.onDrawFrame() is called when GL is ready to draw another frame. After that method finishes (and you called gl.glFlush()), the GPU is busy drawing and another call to onDrawFrame() won't be made until it's ready for business again. While the GPU is working, your

Re: [android-developers] zipalign command not found

2009-12-15 Thread Wayne Wenthin
Path issue? On Mon, Dec 14, 2009 at 10:42 PM, ajaxgeek stone.wil...@gmail.com wrote: when I do zipalign -c -v 4 myapp.apk or zipalign -v 4 myapp.apk myapps.apk I am always getting zipalign command not found. but when I launch zipalign tool, I am getting bellow messages Last login: Mon Dec

[android-developers] NDK for SDK 2.0.1?

2009-12-15 Thread Moss
Hi there, I'm creating a multimedia project for android, it's a performance critic app so that I made a big effort on creating many things in native code. The new SDK came out some time ago but here is no NDK for, do anyone know if it will come out soon? Because if there are already phones with

[android-developers] Phoen application integration

2009-12-15 Thread Marc Petit-Huguenin
Hi, I am currently designing a VoIP application for the Android platform. One requirement is the integration with the Phone application but unfortunately the only hook available seems to be the ACTION_NEW_OUTGOING_CALL intent. What would be a good way to have a better integration? I am open to

[android-developers] make call from app go directly back to app after call hangup?

2009-12-15 Thread Sean Neilan
Dear Android Developers, is it possible to make a call from an activity and make sure the activity doesn't keep running while the call is in session? And, once the user is done with the call (by pressing the hangup button or whatever), the call log screen wouldn't get shown and the user would be

[android-developers] Re: Block Switch App

2009-12-15 Thread esavard
Hey, don't feed the trolls... On 10 déc, 17:25, Greg Donald gdon...@gmail.com wrote: On Thu, Dec 10, 2009 at 4:16 PM, TreKing treking...@gmail.com wrote: Did you even read Dianne's earlier post? She covered ALL of this ... Code was implemented to prevent users from making an alternate lock

[android-developers] Using intent with startActivity from inner class

2009-12-15 Thread alexk-il
Hi, I am trying to use an intent from an inner class which should be callable from different Activities/outer classes. I receive the following compilation error: The constructor Intent(InnerClass, ClassOtherClass) is undefined. The code below illustrates what I am trying to achieve. Any help

Re: [android-developers] Re: Block Switch App

2009-12-15 Thread Greg Donald
On Tue, Dec 15, 2009 at 1:58 PM, esavard savard.etie...@gmail.com wrote: Hey, don't feed the trolls... Hey, don't think everyone who disagrees with you is a troll. -- Greg Donald http://destiney.com/ -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Hiding Controls on VideoView using MediaController

2009-12-15 Thread Warren
I am attempting to hide the playback controls of a video view. Can this be done? I am developing an application that plays a brief video one time, then stops. The playback is beyond the control of the user, who should not see play or pause buttons. I have not been able to achieve this. If the

[android-developers] Re: Top of ImageSpan images getting cut off?

2009-12-15 Thread Eldad
Here's a code snippet. When a 32x32 image is displayed, its top is cropped - but if more text is added to the same line, it appears as expected. public class TestActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] Re: Forward search queries to one single activity that handles search

2009-12-15 Thread Stefan Klumpp
I just solved it. It was just a stupid typo. The solution is here on Stackoverflow.com: http://stackoverflow.com/questions/1906964/ On Dec 15, 6:18 pm, MrChaz mrchazmob...@googlemail.com wrote: Take a look at the SearchManager

Re: [android-developers] new sdk requires versionCode bump to install?

2009-12-15 Thread Frank Weiss
I use eclipse but use the debug perspective to launch updated code on my droid. On Dec 15, 2009 12:10 PM, Don Park don.p...@gmail.com wrote: My old development process allowed me to make any change in the java code and use eclipse's Run button to install the updated package to the emulator. Now

[android-developers] Re: startActivity in another package

2009-12-15 Thread Heliodor
To summarize, so others don't have to trial and error all the details above: AndroidManifest.xml: --- manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.current ... activity android:name=test.another.MyActivity ... Java Code: -

[android-developers] Android 2.1 SDK

2009-12-15 Thread sazilla
Hi everyone, does anybody have been able to get/build the Android 2.1 SDK? I was wondering if the following issues was fixed there: http://groups.google.com/group/android-developers/browse_thread/thread/6caa57135927e242 Thanks Carlo -- You received this message because you are subscribed to

Re: [android-developers] new sdk requires versionCode bump to install?

2009-12-15 Thread Wayne Wenthin
I do the same thing in mine. There are probably a ton of extra spaces on the ends of lines in my code. On Tue, Dec 15, 2009 at 12:14 PM, Dan Sherman impact...@gmail.com wrote: Do a Project -- Clean I've had issues that if I make changes (or hit save) while its in the process of

[android-developers] Re: integrating pro-guard (obfuscation).

2009-12-15 Thread CyberQat
What problem are you trying to solve?? Obfuscation wont keep someone from downloading your app and uploading it somewhere else. Its also a pretty weak defense against hacking. Any decent hacker is going to be able to read bytecode and attack it at that level. And finally the size of an Android

[android-developers] Re: integrating pro-guard (obfuscation).

2009-12-15 Thread sdphil
there are many reasons to run pro-guard obfuscation - as outlined here -- http://proguard.sourceforge.net/ I do not really want to get into an argument about the benefits of it or whether or not it's needed, I was simply hoping someone else has already done this and could help me along. tia. On

[android-developers] Re: Poll Screen On/Off state

2009-12-15 Thread Tim
On Nov 4, 3:03 am, gudujarlson gudujarl...@gmail.com wrote: Monitor the ACTION_SCREEN_OFF and ACTION_SCREEN_ON Intents, then. If your application starts based on a user action, then you know the screen is on at that point -- you don't need an API for that. That occured to me, but I'm not

[android-developers] Re: porting dalvik to a nommu processor

2009-12-15 Thread fadden
On Dec 14, 10:17 am, zeki hzekierdo...@hotmail.com wrote: I am working on porting dalvik to a processor which has not NOMMU (Memory Management Unit). I couldn't convert one of the fork into vfork in dalvik VM at. dalvik_system_Zygote.c. Is there any porting work for NOMMU devices? You'll

[android-developers] Re: integrating pro-guard (obfuscation).

2009-12-15 Thread CyberQat
Well since you raised them this is for others reading the thread since, as you said, you've already made up your mind. Creating more compact code, How significant this is very much depends on the structure of your code and the verbosity of method or class names. In general I would expect

[android-developers] changing contents of apk and rezipping?

2009-12-15 Thread Bob
Hi, Is it possible to change the contents of the resources packaged with an apk and get it to work? I tried unzipping the apks contents, performing the changes I wanted, rezipping, and then using the zipalign tool on my modified apk but when I try to install I get the error 'MyPackage.apk' does

[android-developers] How can I keep current screen (contentView) when l Iaunch a new Activity

2009-12-15 Thread hap 497
Hi, I have an NoContentViewActivity which has no Content View (i.e. I did not call setContentView() in the onCreate of my Activity). My question is how can I keep the content view of the launching activity on the screen? Right now, I am getting a blank screen whenever I launch

Re: [android-developers] changing contents of apk and rezipping?

2009-12-15 Thread Dianne Hackborn
An .apk is just a zip file. As long as you end up with a correctly signed zip with the required files in the right places, you can do whatever you want with it. On Tue, Dec 15, 2009 at 2:22 PM, Bob bshumsk...@yahoo.com wrote: Hi, Is it possible to change the contents of the resources packaged

Re: [android-developers] Re: service dies without calling onDestroy()

2009-12-15 Thread Dianne Hackborn
On Tue, Dec 15, 2009 at 12:05 PM, Don Park don.p...@gmail.com wrote: I understand that a service can be bumped out of ram, though I expected this to happen infrequently enough, with a quick enough restart time, that the service was effectively running 24 hours a day. a 10 minute gap for

Re: [android-developers] How can I alway instantiate my ContentProvider

2009-12-15 Thread Dianne Hackborn
A content provider is always instantiated when the process it runs in is being brought up. If your process isn't running, the content provider won't be running. You can't force the process to just stay running, nor do you want to. On Tue, Dec 15, 2009 at 12:11 PM, n179911 n179...@gmail.com

[android-developers] app bound to its own virtual keyboard

2009-12-15 Thread extrapedestrian
Can we make an application use custom virtual keyboard exclusively? So that no one else can use this virtual keyboard, and our app is always using our keyboard... ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

RE: [android-developers] zipalign command not found

2009-12-15 Thread Ryan Beesley
./zipalign if it is in your current directory. Try $ android-sdk/tools/zipalign to see if you can access run it. You may also want to use which zipalign to verify the path. /Ryan -Original Message- From: android-developers@googlegroups.com

[android-developers] NDK all from within Eclipse

2009-12-15 Thread Robert Green
I was going to post this to the group but figured I'd write up a how- to on my website instead. Basically, here's how you configure Eclipse to do nice C/C++ editing and automatically build your native code for you on-save. It also automatically refreshes your lib directory and consequently ADT

[android-developers] ACTION_SCREEN_OFF and ACTION_SCREEN_ON

2009-12-15 Thread Tim
Hi, I can't seem to get ACTION_SCREEN_OFF/ON to work. I am registering them from java rather than the manifest (by the way the quality of the documentation is getting tiresome). Do I need some permissions to receive this. My code is as follows. The service is definitely started and continues to

Re: [android-developers] app bound to its own virtual keyboard

2009-12-15 Thread Dianne Hackborn
You can only do this by building the keyboard into your app's UI. You can't use the input method framework. On Tue, Dec 15, 2009 at 2:55 PM, extrapedestrian extra.pedestr...@gmail.com wrote: Can we make an application use custom virtual keyboard exclusively? So that no one else can use this

[android-developers] Re: Multiple Services within a Process

2009-12-15 Thread Carter
*bump* Again, the question is: if there are multiple services within a process and at least one service is a foreground service, will that keep the non-foreground services alive? Thanks, Carter The documentation On Nov 23, 10:40 pm, Carter ccjerni...@gmail.com wrote: This is probably a

Re: [android-developers] Re: Multiple Services within a Process

2009-12-15 Thread Dianne Hackborn
The decision to kill is at the process level, based on the most important thing running in the process: http://developer.android.com/guide/topics/fundamentals.html#proclife On Tue, Dec 15, 2009 at 5:15 PM, Carter ccjerni...@gmail.com wrote: *bump* Again, the question is: if there are

[android-developers] Re: Simple Call App - Uri?

2009-12-15 Thread AJ
ACTION_DIAL works fine and without any changes to the permissions. thanks a lot --aj On Dec 15, 4:08 am, Mark Murphy mmur...@commonsware.com wrote: AJ wrote: I am trying to make a very very simple app as a beginner but it does not work. The app just has a text bar and a button. Somehow,

Re: [android-developers] Re: Multiple Services within a Process

2009-12-15 Thread hongki park
I just guess, Whole the services are inside of the same process,(as you said), no service will be killed by android automatically. Am I right ? :-) 2009/12/16 Carter ccjerni...@gmail.com *bump* Again, the question is: if there are multiple services within a process and at least one service

[android-developers] Re: Multiple Services within a Process

2009-12-15 Thread Carter
I read that before posting a question, but found inconsistent terminology in the Android documentation confusing. For example, the Service documentation says things like: It is still theoretically possible for the service to be killed under extreme memory pressure from the current foreground

[android-developers] set chlidDivider in ExpandableListView

2009-12-15 Thread NoraBora
This is my ExpandableListView ExpandableListView android:id=@+android:id/list android:layout_width=fill_parent android:layout_height=wrap_content android:listSelector=@android:color/transparent android:groupIndicator=@null android:dividerHeight=2px

[android-developers] Re: Google Maps Broadcast Event for audible navigation instructions start and stop?

2009-12-15 Thread skyhigh
I checked the Android reference intent documentation that you linked to, but couldn't find anything that I could use to detect either Google Map audible navigation or generic overlapping media playing. It seems like this would be a useful broadcast notification for anyone providing an audio

[android-developers] Re: NDK all from within Eclipse

2009-12-15 Thread HeHe
thanks! thanks! thanks! On Dec 15, 3:02 pm, Robert Green rbgrn@gmail.com wrote: I was going to post this to the group but figured I'd write up a how- to on my website instead.  Basically, here's how you configure Eclipse to do nice C/C++ editing and automatically build your native code for

Re: [android-developers] Re: Google Maps Broadcast Event for audible navigation instructions start and stop?

2009-12-15 Thread Dianne Hackborn
The platform needs to have richer features for deciding which audio to do at various times. I don't think having maps send a broadcast is really a good solution for this, and likely to quickly become a mess for everyone. On Tue, Dec 15, 2009 at 6:37 PM, skyhigh skyhigh1...@gmail.com wrote: I

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

2009-12-15 Thread Jon Colverson
Hello all. I'm testing an app on the 2.0.1 emulator and video playback is not working correctly. The VideoView is just showing a white rectangle, although the audio is playing fine. I tested one of the video files in the Gallery app and it showed the same results (white rectangle with sound). A

[android-developers] Every ProgressBar instance getIndeterminateDrawable returns a singleton? how to clone this Drawable?

2009-12-15 Thread Agus
So I have two instances of ProgressBar but applying a ColorFilter of one will affect the other, how do I copy this Drawable object? Any ideas? -- 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] Uninstalling TTS Data from the G1 / Dream

2009-12-15 Thread Desu Vinod Kumar
HI while installing this tts jar file it showing some exception not instatalling can u help me regarding that. On Sat, Oct 17, 2009 at 11:38 PM, Thomas Riley tomrile...@googlemail.comwrote: As per subject I would like to uninstall the text to speech data app from my G1 so I can set out

[android-developers] Re: Google Maps Broadcast Event for audible navigation instructions start and stop?

2009-12-15 Thread skyhigh
It would be great if the platform provided this functionality so that audio applications could pause when appropriate for audio notifications or other interruptions. I agree that providing this support in the platform would be best, then it would work regardless of the source of the audio

[android-developers] AudioTrack stop/release

2009-12-15 Thread Business Talk
It doesn't seems as if the the stop and release immediately terminates the audio played by the MODE_STREAM track. It looks like it finishes playing the rest of the buffer and then stops. Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Large data file: how to deal with it?

2009-12-15 Thread Andriy Tsykholyas
On Dec 10, 7:50 pm, Mark Murphy mmur...@commonsware.com wrote: My idea is to put this data as afilein the .apk. Then, on initial application launch to read this data and populate Android SQLite database with it. Then just work with this database. But after the database is populated the

Re: [android-developers] Every ProgressBar instance getIndeterminateDrawable returns a singleton? how to clone this Drawable?

2009-12-15 Thread Romain Guy
http://android-developers.blogspot.com/2009/05/drawable-mutations.html On Tue, Dec 15, 2009 at 8:37 PM, Agus agus.sant...@gmail.com wrote: So I have two instances of ProgressBar but applying a ColorFilter of one will affect the other, how do I copy this Drawable object? Any ideas? -- You

[android-developers] configChanges and orientation - unexpected behaviour

2009-12-15 Thread rukiman
I wrote a simple test app which specifies android:configChanges=orientation also android:screenOrientation=portrait and in my activity I logged whenever onDestroy() and onConfigurationChanged() gets called. Now according to the docs, I was expecting onConfigurationChanged() to get called

[android-developers] Re: Back-porting from Android 2.0 to Android 1.5

2009-12-15 Thread theSmith
@Diane My mistake, since I started developing when 1.6 was released I thought the search manager was the new QSB from 1.6 @AJ My app is crashing too because of the QSR terms in the searchable.xml The problem then becomes how can you access them from 1.6+ without them being seen in 1.5? On Dec

[android-developers] Re: Why Return null when using findViewById in Activity to find and handle CustomView?

2009-12-15 Thread dom
you should use public MapCanvas(Context context, AttributeSet attrs) { super(context, attrs);// id is in the attrs, if you didn't pass the id to the view class, the class have no id. initialize(); } On Dec 4, 5:41 pm, krekar swbon...@gmail.com wrote: hi, there... I wrote

[android-developers] What is Heap Worker thread and what does it do?

2009-12-15 Thread pink 444
Hi all, What is Heap Worker thread ? What does it do? In my application's HeapWorker thread is taking most of the CPU around 80%. How can i reduce this usage Percentage? Any help would be appreciated highly. -- You received this message because you are

[android-developers] Re: unsubscribe

2009-12-15 Thread Bruce Xia
Hi I think the unsubscribe email isn't working. I've sent three emails to unsubscribe but still receiving email. Can you help please? On Tue, Dec 15, 2009 at 2:41 PM, Bruce Xia bruce.xi...@gmail.com wrote: hi please unsubscribe me from this group. -- You received this message because you

Re: [android-developers] What is Heap Worker thread and what does it do?

2009-12-15 Thread Dianne Hackborn
It runs finalizers. You probably are either causing the gc to run (you can tell from the log) or have some finalizer getting stuck (look at the threads in the debugger). On Tue, Dec 15, 2009 at 10:25 PM, pink 444 pnk...@gmail.com wrote: Hi all, What is Heap Worker thread ?

<    1   2   3   >