Re: [android-developers] Hrozontal ListView

2009-12-15 Thread Romain Guy
You can use a Gallery instead. On Tue, Dec 15, 2009 at 11:16 PM, Sukitha Udugamasooriya wrote: > Hi, > > Can anyone tell me how to implement a horizontal listView? > > Items are scrolled horizontally. > > thank you > > -- > You received this message because you are subscribed to the Google > Grou

[android-developers] Hrozontal ListView

2009-12-15 Thread Sukitha Udugamasooriya
Hi, Can anyone tell me how to implement a horizontal listView? Items are scrolled horizontally. thank you -- 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 unsubsc

[android-developers] problem with the fix Button at of the list View

2009-12-15 Thread Asif k
Hi all, I want a fix "Cancel" Button at the bottom of the ListView. I want my list View to be scrollable and fix Button at Bottom. I had added the Button at the bottom of the list with addFooterView (button); but if list is longer than the screen, then we have to scroll down to get the butto

[android-developers] Re: Audio options for music app - should I use JET?

2009-12-15 Thread k_day
Watched the Google I/O talk on media tonight, and learned some interesting stuff. Right now I am leaning towards using SoundPool since I need to guarantee that certain music notes are played at the exact same time, and I want to be able to control tempo. If I use setRate() with soundPool to speed

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

2009-12-15 Thread Dianne Hackborn
Older platforms should ignore any attributes that didn't exist for them. On Tue, Dec 15, 2009 at 10:20 PM, theSmith wrote: > @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

Re: [android-developers] configChanges and orientation - unexpected behaviour

2009-12-15 Thread Dianne Hackborn
The emulator is flipping the lid open when you do that, so the keyboard state also changes. On Tue, Dec 15, 2009 at 10:17 PM, rukiman wrote: > I wrote a simple test app which specifies > android:configChanges="orientation" & also > android:screenOrientation="portrait" > > and in my activity I lo

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 wrote: > Hi all, > > What is "Heap Worker" thread ? > > What does

[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 wrote: > hi please unsubscribe me from this group. > -- You received this message because you are subscribed to the

[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: 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 wrote: > hi, there... > > I wrote CustomView Class, an

[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 8

[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 wh

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 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 received this messa

[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" 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 datafileis no lon

[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: 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 notifica

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 wrote: > > As per subject I would like to uninstall the text to speech data app > from my G1 so I can set out some TTS code I'm work

[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 android-deve

[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 be

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 wrote: > I checked the Android re

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

2009-12-15 Thread HeHe
thanks! thanks! thanks! On Dec 15, 3:02 pm, Robert Green 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 > you on-save.  

[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 applic

[android-developers] set chlidDivider in ExpandableListView

2009-12-15 Thread NoraBora
This is my ExpandableListView When I execute this in emulator, green(childDivider color) is all over the place. It seems if childDivider is ColorDrawable, it has no bound. Is this a bug or intented? -- You received this message because you are subscribed to the Google Groups "Android Develop

[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 appl

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 > *bump* > > Again, the question is: if there are multiple services within a > process and at least one service is a "foreground"

[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 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, the call > > button

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 wrote: > *bump* > > Again, the question is: if there are multiple services within

[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 wrote: > This is probably a question for Dianne: >

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 wrote: > Can we make an application use custom virtual keyboard exclusively? > So that no one else can use this virtual keyboard, and our

[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 ru

[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 pu

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 [mailto:android-develop...@googlegroups.

[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] 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 wrote: > Hi, > > In m

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 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 instance would be fi

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 wrote: > Hi, > Is it possible to change the contents of the resources packaged with > an apk and

[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 NoContentViewActivit

[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 no

[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] Re: porting dalvik to a nommu processor

2009-12-15 Thread fadden
On Dec 14, 10:17 am, zeki 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 probably have better

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

2009-12-15 Thread Tim
On Nov 4, 3:03 am, gudujarlson 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 confident that

[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: 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

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 wrote: > 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 ne

[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 t

[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: --- http://schemas.android.com/apk/res/android"; package="test.current" ... ... Java Code: - package test.current ... Intent i = new Intent(); i.setClassName("test.curr

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" 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 I get [2009-12-1

[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 wrote: > Take a look at the SearchManager > stuff:http://developer.android.com/reference/android/app/SearchManager.html > > From what I c

[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) { super.onCreate(savedInstanceStat

[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 scre

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

2009-12-15 Thread Greg Donald
On Tue, Dec 15, 2009 at 1:58 PM, esavard 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 Developers" group. To post to

[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, Class) is undefined". The code below illustrates what I am trying to achieve. Any help would be gre

[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 th

[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 a

[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 d

[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 wrote: > On Thu, Dec 10, 2009 at 4:16 PM, TreKing 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 > app.  It wasn't some sort of acc

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 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 14 22:12:

[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 logi

[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=57b5e3efa7477b50&hl=en On Dec 15, 3:16 pm, Warren wrote: > No one else has gotten help emails from customers about the market? -- You

[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 andro

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] 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 Google

[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 mani

[android-developers] Re: Dialog & windowBackground style item

2009-12-15 Thread skink
Hi, maybe i should use 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@googlegroups.

[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 wrote: > I understand that a service can be bumped out of ram, though

[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 outrig

[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 ema

[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 -- http://groups.google.com/group/android-developers/browse_thread/thread/ec5f0b1d54f66d03/cccfd43b2ba32bbd?lnk=gst&q=proguard#cccfd43b2ba32

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 wrote:

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 be

[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

[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 wrote: > Hi, > > I believe the problem is in the parent of the style. You shouldn't put > the '@': > > >        12dip >        #00

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 wrote: > I've implemented a "Sign Out" func

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 restarti

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 wrote: > 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. And please be aware -- if

[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=5164&colspec=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: 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 convenie

[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 ><mariano.k...@gmail.com> wrote: > >Hi, > > I use WebView a lot to display web pages with emb

[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 quest

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 wrote: > 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

[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 wrote: > 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 to > resize/scale

[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() { rssdb.

[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 wrote: > Hi, > >   I am downloading web pages off of

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 gro

[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.

[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 us

[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 wrote: >

[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 ac

[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 avai

[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

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 wrote: > I realize this isn't exactly a programming question. However I seem > unable to discover this information elsewhere, so thanks if anyone can

[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 logout

[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 Gerard

[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 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" wrote: > > > So anyone any experie

[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, 3

[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 '@':       12dip       #00 Rúben On Dec 15, 6:16 pm, Mark Wyszomierski wrote: > Hi, > > I've got a text style defined in styles.xm

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 URI

[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: http://bit.ly/4WCRE

[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, Context

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

  1   2   3   >