[android-developers] Re: Tomcat on Android

2010-11-04 Thread Jason
My experience is that Jetty (http://www.mortbay.org/jetty/) tends to be a bit more lightweight than tomcat, and also a LOT easier to embed (it's basically just a JAR file). Or you could try this: http://tjws.sourceforge.net/ Haven't tried it myself, but looks like it's designed to be lightweight

Re: [android-developers] How to get a developer ID

2010-11-04 Thread Kumar Bibek
Developer ID of what? On Thu, Nov 4, 2010 at 5:03 AM, JM Salvador wrote: > hi, > > I've been looking for how to get a developer ID but I didn't find it. > > Any help will be apreciate. > > thanks in advance > soulianis > > -- > You received this message because you are subscribed to the Google >

Re: [android-developers] Re: Tomcat on Android

2010-11-04 Thread Miguel Morales
All I gotta ask is, why? I'd imagine Tomcat is not written to be run in embedded/legacy devices such as an android device. You'd be wasting a lot of memory and cpu cycles. I guess if it's a wall mounted device, it might be ok. But at that point why not just use a PC of sorts and use some linux

[android-developers] Re: Not able to browse from the android emulator

2010-11-04 Thread Bret Foreman
What message are you seeing in the logcat? This sounds like a permissions problem. -- 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

[android-developers] Re: Tomcat on Android

2010-11-04 Thread Bret Foreman
I've been looking into this too. We have an industrial embedded control application that I'd like to run on Android and control from a remote browser. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] Re: color banding. can't get over it :(

2010-11-04 Thread Adam Hammer
Since you use it in a ImageView I do not know how to set the bitmap preferences. You will probably have to load the Bitmap in code, and then assign it to the ImageView once loaded. E.g. BitmapFactory.Options myOptions = new BitmapFactory.Options(); m

[android-developers] TabActivity setDefaultTab useless. TabHost bug?

2010-11-04 Thread Stakka
I'am using a TabActivity where I add TabSpec's with Intent content that starts child activities. I want to "remember" which tab is active, so I store the "tag" in a SharedPreferences. When restoring in onCreate, I use tabHost.setCurrentTab. This it work. But looking at the log, the TabActivity als

[android-developers] Re: Is there an easier way than using x & y for multitouch

2010-11-04 Thread ArcDroid
any ideas??? Thanks in advance... On Nov 4, 7:29 am, ArcDroid wrote: > Hello, I would like to have a an app where I can play a bunch of > buttons all at the same time using multitouch.  The only way I have > gotten it to work is using the touch method and testing for a bunch of > x,y coordinates

[android-developers] Enterprise Market

2010-11-04 Thread Amer H
Anyone interested in mobilizing existing web-applications to native mobile apps ? We have created a HTML-based abstraction layer to mobilize web-applications to a native iphone, blackberry and android app called Bitzer. We call the abstraction layer a Mobile Presentation Layer (MPL). Now what ? T

[android-developers] Not able to browse from the android emulator

2010-11-04 Thread Meena Shankari
I am using Windows XP machine with wired connection. I am trying to browse from the android emulator installed on my laptop. It gives me this error. Check to make sure your device has a signal and data connection Reload this web page later View a cached copy of the web page from Google. Please h

[android-developers] Android JUnit Testing of Paste

2010-11-04 Thread Zymurgeek
How do I go about simulating a context menu paste command using the Android JUnit tests? -- 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

[android-developers] Fwd: Contact Organization in Emulator different than Phone

2010-11-04 Thread Bryan Belyk
Hi: I haven't seen my post in the forum. If I have missed the post, can you send me the link. I am stuck on this and hoping the answer is obvious. Thanks beeman -- Forwarded message -- From: beeman Date: Thu, Nov 4, 2010 at 2:01 AM Subject: Contact Organization in Emulator di

[android-developers] Jersey client with android does not work

2010-11-04 Thread Asuka
Hi there, I´m trying to use my webservice via the jersey client api. This is my webservice: @Path("/myresource") @Component @Scope("request") public class MyResource { @GET // The Java method will produce content identified by the MIME Media // type "text/plain" @Produces(MediaType.TEXT_PLAIN) @

[android-developers] new idea

2010-11-04 Thread 111
I was texting in my htc evo and... I came up with a fun idea. How muvh fun would it be if someone can come up with a game for texting. Wile you text to someone you get points for something. Perhaps for using big words or just hitting the keys in the exact place. Rewarded with a ding! And a fancy vi

[android-developers] BooK

2010-11-04 Thread Hal
I'm looking for recommendations in terms of Android Books (advanced). Thx -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email t

[android-developers] VIDEO BUFFERING TAKES FOREVER IF AT ALL.

2010-11-04 Thread RANGERIC
SHOCKWAVE KEEPS WANTING TO SHUT DOWN. ANY SOLUTIONS -- 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+u

[android-developers] Widget doesn't work

2010-11-04 Thread Rockline
Hello all, I'm trying to do my first widget but it seems not to work in the emulator: when I try to add the widget to the wallpaper, I've got the following message: "Application is not installed on your phone". Any ideas? Here is my manifest: http://schemas.android.com/apk/res/android";

[android-developers] In Call App Screen

2010-11-04 Thread Kavinder Dhaliwal
Hi, I have done some research and it seems that on any android device the in call screen will be unchangeable...I am coming from developing in iphone, which basically has the same restriction. I was hoping android would be open to the ability to create a custom dialer that could handle the in call

[android-developers] Re: web service access from net

2010-11-04 Thread dsheppard2k
You may want to check the Jt Design Pattern Framework. It features complete support for Web services on Android (including REST): a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library http://www.ibm.com/developerworks/webservices/library/ws-design

[android-developers] activity lifetime and lifetime of instance

2010-11-04 Thread Dominique Holzwarth
hi all I have a very basic question regarding the lifetime of an instance when it comes to the activity lifecycle changes. Lets assume I have an activity that owns an instance of a (custom) view class. This view instance has an instance x of another class X (this class stores some application bus

[android-developers] google maps api

2010-11-04 Thread Harshal
hi, while signing up for google maps API, i entered the md5 string that was generated on issuing this command in cmd keytool.exe -list -alias androiddebugkey -keystore "C:\android\debug.keystore" -storepass android -keypass android but it says "The fingerprint that you entered is not valid". Plea

[android-developers] [APP] Puzzel Alarm [In progress]

2010-11-04 Thread sisqorap
I have created a Puzzel Alarm which should help me to get out of bed. When an alarm goes of the snooze or dismiss button are easily pressed. So I wanted to make an application that shows a puzzel before the alarm can be dismissed. I'm still working on it, but some more info and an installable versi

[android-developers] Re: How to display a raw YUV frame in an Android OpenGL program?

2010-11-04 Thread ChrisAR
I need a little bit more of information before I can answer this properly. Is your raw YUV frame being passed to the GPU as an OpenGL ES texture? Is this YUV frame a static image, or it changes dynamically (like, is it being captured from a live videocamera in real time)? Doing the math to (a) pro

[android-developers] Android API-8 UI Problem misplaced views

2010-11-04 Thread ahmed.mustafa.da...@gmail.com
I developed and application for Android that must be compatible with API 4 -->8 I worked on API 4 as my main development target and was testing on 7 also but now when I tested the app on API-8 many UI Views specially text views are misplaced. In my application there is a a FrameLayout that holds a

[android-developers] Re: How to update my database with an xml hosted on a website?

2010-11-04 Thread Zeeshan Ghalib
Watch the following video before you design this part of your application. http://www.youtube.com/watch?v=xHXn3Kg2IQE&sns=em Regards, Zeeshan On Nov 3, 2:00 pm, Vidal wrote: > Good morning everyone, > I am new to programming with Java and Android, > I'm trying to make an application to seek an

[android-developers] Query on type of solution

2010-11-04 Thread zizzfusion
Hi all, The app I'm producing requires a database that can store a collection of exhibits and the museums they're at plus a few other things like media urls and visitor comments. Stage 1: A user refines their search for exhibits by all or one specific museum using a Spinner. The user then enters

[android-developers] Re: Problem with turning off GPS updates when application goes into the background.

2010-11-04 Thread Paulo Morandi
Hello Chirag, As far as I know you can't turn on/off the GPS, the only thing you can do is stop requesting the location (as you already did). To turn on/ off the GPS your application must be an "System Application". So this behavior is expected. When the GPS icon stop flashing, it means that no ot

[android-developers] How to get a developer ID

2010-11-04 Thread JM Salvador
hi, I've been looking for how to get a developer ID but I didn't find it. Any help will be apreciate. thanks in advance soulianis -- 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@goo

[android-developers] API Key works with one app but not with other

2010-11-04 Thread peter_canthropus
Hi there, i have two apps, almost identical, that make heavy use of Maps. I have both of them signed with the same key. One of them works, but the other one doesn't, it just shows a grid, but works with the debug key! I tried everything already, i mean i searched for substancial differences, but t

[android-developers] Modifying manifest on runtime

2010-11-04 Thread Aravind
Hi, I am writing an application that will run on 2.0 and above. Now, I am thinking of adding the Data backup feature to the application. Is there anyway to modify the manifest file to include the metadata only if the phone is using Froyo(2.2). Ideally, i would like to avoid creating a separate appl

[android-developers] Re: Exported apk will not install, no error message

2010-11-04 Thread Zeeshan Ghalib
If you have an older version installed in the phone, try uninstalling it using adb. For example: adb uninstall com.android.samples I hope it helps. Zeeshan On Nov 2, 9:27 pm, Abbe wrote: > Hello! > > The app runs in the emulator, the apk in the bin directory runs on my > phone. But when I expor

[android-developers] Re: Business multi-tier application with android client

2010-11-04 Thread dsheppard2k
You may want to try the Jt Design Pattern Framework for your application: For additional information please refer to the following URLs: a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library http://www.ibm.com/developerworks/webservices/library/

[android-developers] Re: android game

2010-11-04 Thread joye
Go to the official APress site, find the book and download its source code. On Oct 28, 4:02 pm, nena joy wrote: > Hello, > >     Anyone have the full souce code of the game - SpaceBlaster. > > Thank you -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Re: New to Android - Can't add Platform

2010-11-04 Thread Hari
Hi James, I followed the instruction here http://developer.android.com/sdk/eclipse-adt.html#installing and it worked for me. BTW, I had my android installed at :C:\Android\android-sdk-windows . not sure if long paths would make a difference thanks, hari. On Nov 1, 7:05 am, James Thomas wrote:

[android-developers] Tomcat on Android

2010-11-04 Thread Marc Fleury
I have seen other threads on the topic, most notably one asking about tomcat/jboss on android. Anyway, I am actually interested in hearing if people have successfully ported tomcat on android? the use case for me would be www.openremote.org. We distribute a controller that is written in java6. I

[android-developers] Contact Organization in Emulator different than Phone

2010-11-04 Thread beeman
Hi: I am developing using Eclipse and the targeted SDK version is API 7 (Version 2.1). My phone has Android version 2.1-update1. When running on the emulator, the contacts have an Organization section and within that section is Work Company, Title... When running on the phone, all contacts (Goo

[android-developers] PreferenceActivity preference OnClick and FolderBrowserDialog issue

2010-11-04 Thread Omie
Hi ! Greetings to all :-) I need help with 2 problems : 1] I'm working on a tiny alarm app [next step after Hello World]. It doesn't require a special UI, only 2-3 settings are there[on/ off,interval,etc]. So I thought of making it PreferenceActivity directly. Its okay, right ? I added an xml f

[android-developers] Re: SIGH ... Android & SOAP

2010-11-04 Thread dsheppard2k
Sorry for the multiple submission. They posting was not showing up. On Nov 3, 12:06 am, dsheppard2k wrote: > You may want to look at the Jt Design Pattern Framework. Not sure > if they have aSOAPadapter. > > On Nov 1, 7:30 pm, DarksideAndroid wrote: > > > This post is directed to those of you who

[android-developers] Re: Web service access

2010-11-04 Thread dsheppard2k
I hope that the following link will help: a) Java Pattern Oriented Framework, An application of the Messaging Design Pattern IBM Technical Library http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html b) MDP and a distributed Component/Service Model https://jt.dev.jav

[android-developers] Draw on SurfaceView(VideoPlayer) Canvas

2010-11-04 Thread sapegas
I'm trying to draw some primitives on SurfaceView Canvas, but I can't do this. I need to implement a VideoPlayer(SurfaceView) with ability to draw on it(and save user's drawing in future). Can I do this anyhow? Is it possible on Android? When I starting the activity, I can hear the voice from the v

[android-developers] PSC (primary scrambling code) of connected cell?

2010-11-04 Thread maverick
I can get the PSC from neighboring cells, but I can't figure out how to get the PSC of the connected cell. Does anyone know how to do this? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

[android-developers] Multiplatform native mobile access for enterprise - anyone interested ?

2010-11-04 Thread amerhhh
Anyone interested mobilizing enterprise applications ? We have created a simple and scalable way to mobilize enterprise web- applications as native apps on iPhone, Android, Blackberry and others coming See the example below for Mobilizing CRM to a true native app. Step 1. Install the mobile pres

[android-developers] Re: Monkey Testing and automatically generating the events...

2010-11-04 Thread jackbauer
Yup, anything from that example doesn't work -- period. For the exact functions and parameters, look here: http://groups.google.com/group/android-developers/msg/51f3c86cdb418387 On Oct 25, 6:48 pm, sdphil wrote: > I *finally* gotmonkeytesting to work from ascript. > > my test.txt file looks like

[android-developers] Re: can not visit the sdcard when add the "android.uid.system"

2010-11-04 Thread Chris Stratton
If the sdcard gets unmounted, any process with an open file handle to it gets killed. Letting the system process be killed was considered a bad thing. To avoid that, the system process (which is to say any system process) is not allowed to access the SD card. FYI, you probably will not be able t

[android-developers] Re: Cannot stop soundpool loop even after exiting app

2010-11-04 Thread acr
My log cat shows the following errors when I run the activity and play the sound.. I'm not finding any clear documentation on this via search 11-05 00:21:02.848: ERROR/(2184): PLAYREADY SISO CPM plugin cpm.cpp Command Complete EventData (null) 11-05 00:21:03.228: ERROR/Pv_player_engine(2184): DoRe

[android-developers] Re: Problem with Playing sound in my cuckoo clock widget

2010-11-04 Thread RockNCode
Hello. I suggest you go to frameworks/base/libs/audioflinger/AudioFlinger.cpp and add LOGE prints to functions createTrack and createTrack_l. Could you check in createTrack_l if you are entering to this condtion ?: Mutex::Autolock _l(mLock); track = new Track(this, client, streamT

[android-developers] Re: SIGH ... Android & SOAP

2010-11-04 Thread Manfred Moser
If you have no choice but to talk to a soap web service I would recommend using ksoap2-android. It has been working fine for my application on the android market and a bunch of others as well. http://code.google.com/p/ksoap2-android/ manfred Disclaimer: I am the current project owner of the proj

[android-developers] multiple mime type in email

2010-11-04 Thread Dan Raaka
I have a email body in HTML and I need to attach an text file, xml file and an image to the email. I am starting with xml In my app with package name com.danraaka.apper String filePath = "/data/data/com.danraaka.apper/Results.xml"; Intent emailIntent = new Intent(

[android-developers] Cannot stop soundpool loop even after exiting app

2010-11-04 Thread acr
I have a timer thread setup to play a loop using soundpool, but for some reason I cannot get _soundPool.stop(_playbackTimer); to stop the loop. even if I exit the application the loop keeps running. I have to physically power off the phone to get it to stop. am I missing something here? Does anyo

[android-developers] can not visit the sdcard when add the "android.uid.system"

2010-11-04 Thread xhy
Hi all,Now I come across a question,I want to visit the system folder in the android file system.So i add the "android:SharedUserId=android.uid.system" in the manifest.xml,But I can not visit the USB device if that. -- Hongyue Xu -- You received this message because you are subscribed to the Go

[android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread ar
Yes, it works if I add a phone number. However, it doesn't solve my problem of going back to my app when I press the back key. It still goes back to the native homescreen. I have a dialog in my activity, from which the user action is taking them to the native dialer. Is that the reason back doesn'

Re: [android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread Frank Weiss
I'm not following you very well. I assume you mean that if you add the phone number, then the back button does take the user back to your activity, but without the phone number, the back button takes the user to the home screen. I also assume that what you mean by "native homescreen" is the same as

Re: [android-developers] Re: getting control value from within a dialog

2010-11-04 Thread TreKing
On Thu, Nov 4, 2010 at 8:26 PM, dashman wrote: > the problem now is how do i refer to the dialog to dismiss it inside the > onClick() method. > Ideas: You're given the View that was clicked (button), so maybe you can "go up the chain" and get the parents until you get to the Dialog. OR keep a cl

[android-developers] Re: getting control value from within a dialog

2010-11-04 Thread dashman
i seem to be painting myself into a corner with this... now i have an AlertDialog with my own layout - with an ok and cancel buttons. Button bttn = (Button)layout.findViewById(R.id.ok); bttn.setOnClickListener(new Vi

Re: [android-developers] Re: Using ListView in AlertDialog

2010-11-04 Thread TreKing
On Thu, Nov 4, 2010 at 3:56 PM, intbt wrote: > That was it, thanks and sorry I had never run into this problem before. > Sure thing. And don't be sorry - it's not your fault the documentation has been wrong all this time and is never fixed. People trip over this all the time and will continue to

Re: [android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread Frank Weiss
This works for me on the Droid: String phoneUri = "tel:" + phone.getText(); Intent i = *new* Intent(Intent.*ACTION_VIEW*, Uri.*parse*(phoneUri)); startActivity(i); What phone did you use? Have you tried adding a phone number? -- You received this message because you are subscribed to the Goo

[android-developers] Re: LVL "LICENSED" Test Respone

2010-11-04 Thread Zsolt Vasvari
Nobody on this form who implemented LVL and could answer this simple question? On Nov 4, 7:03 am, Zsolt Vasvari wrote: > When I set the test response ro LICENSED in the Market for my app, I > am not getting anything back in the "extras" field.  I am referring to > the VT, GT, GR fields. > > Sinc

Re: [android-developers] Re: When is the appropriate time to use separate processes?

2010-11-04 Thread Mark Murphy
On Thu, Nov 4, 2010 at 7:12 PM, Streets Of Boston wrote: > When i wrote my image editor, i put the 'gallery/pick-list of images' > activity (and other activities) into one process and the actual > 'editor' activity in another. I needed to squeeze every bit of memory > out of a process to make have

[android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread ar
That doesn't work. If I change my code to use Intent.ACTION_VIEW, I get taken to the native dialer overlayed by the dialog asking me to 'Complete action using'. On Nov 4, 3:49 pm, Frank Weiss wrote: > I'll have to check the code I use. But perhaps the problem is you're not > giving a number or t

[android-developers] Re: When is the appropriate time to use separate processes?

2010-11-04 Thread Streets Of Boston
When i wrote my image editor, i put the 'gallery/pick-list of images' activity (and other activities) into one process and the actual 'editor' activity in another. I needed to squeeze every bit of memory out of a process to make have a chance at having enough memory when editing full-sized images.

Re: [android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-04 Thread Filip Havlicek
Try removing the listener from TextView(s) and see if that makes any difference. 2010/11/4 FractalBob > However, I don't implement any interfaces; is the the problem? If so, > what should I implement? > > On Nov 4, 11:09 am, Kumar Bibek wrote: > > Have you set your list items to be focussable?

Re: [android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread Frank Weiss
I'll have to check the code I use. But perhaps the problem is you're not giving a number or try using Intent.ACTION_VIEW instead of Intent.ACTION_DIAL. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

Re: [android-developers] Re: When is the appropriate time to use separate processes?

2010-11-04 Thread Mark Murphy
On Thu, Nov 4, 2010 at 6:20 PM, Matt Quigley wrote: > Using two processes would take up more total memory when they were > active at the same time.  However, sometimes components are foreground > and background and therefore are active in, some components are active > frequently or all the time in

[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-04 Thread FractalBob
However, I don't implement any interfaces; is the the problem? If so, what should I implement? On Nov 4, 11:09 am, Kumar Bibek wrote: > Have you set your list items to be focussable? Mean are some of your views > in your item layout focussable? > > On 04-Nov-2010 11:35 PM, "FractalBob" wrote: >

[android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-04 Thread FractalBob
On Nov 4, 11:09 am, Kumar Bibek wrote: > Have you set your list items to be focussable? Mean are some of your views > in your item layout focussable? > I have setFocusable(true); for the TextView I'm clicking on; still no good. > On 04-Nov-2010 11:35 PM, "FractalBob" wrote: > > I think the reas

[android-developers] Re: Please help to test my app on "HTC wildfire".

2010-11-04 Thread Evgeny V
Guys, please help! Can you please play with my app and send me LogCat report ? I've been reported again about HTC wildfire permanent crashes. Thanks in advance, Evgeny On Mon, Oct 18, 2010 at 12:03 PM, EvgenyV wrote: > Hi all, > > I've just reported that my app doesn't work on HTC wildfire. I

[android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread ar
That's not what I see. The user is taken to native homescreen when he presses the back key. On Nov 4, 3:13 pm, Frank Weiss wrote: > The behavior of the code you posted should be to return to your activity > when the user finished the dialer activity by pressing back. What behavior > did you obs

[android-developers] Re: When is the appropriate time to use separate processes?

2010-11-04 Thread Matt Quigley
> > Hi all.  I have read all about having separate processes for different > > Application components, and how to use them.  I am curious, what are > > some appropriate use cases for when an application should actually use > > separate processes? > > I'm not sure there are any for the vast majority

Re: [android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread Frank Weiss
The behavior of the code you posted should be to return to your activity when the user finished the dialer activity by pressing back. What behavior did you observe? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send

Re: [android-developers] When is the appropriate time to use separate processes?

2010-11-04 Thread Frank Weiss
I think the easily killable angle is rather odd. What kind of an app do you have in mind? I've used the Android Intent architecture to hand off tasks to activities in other apps/processes. For example, to take a picture, open a web page, or dial a number, my apps don't have to implement that code,

Re: [android-developers] When is the appropriate time to use separate processes?

2010-11-04 Thread Mark Murphy
On Thu, Nov 4, 2010 at 5:36 PM, Matt Quigley wrote: > Hi all.  I have read all about having separate processes for different > Application components, and how to use them.  I am curious, what are > some appropriate use cases for when an application should actually use > separate processes? I'm no

[android-developers] Re: sendBroadcast in IntentServicenot non-re-entrant?

2010-11-04 Thread Matt Quigley
I believe that you are expecting the IntentServices to act like threads. You will not have multiple instances of an IntentService run at the same time. From the documentation at http://developer.android.com/reference/android/app/IntentService.html: All requests are handled on a single worker thr

[android-developers] When is the appropriate time to use separate processes?

2010-11-04 Thread Matt Quigley
Hi all. I have read all about having separate processes for different Application components, and how to use them. I am curious, what are some appropriate use cases for when an application should actually use separate processes? It seems to me, the main advantage to using separate processes is t

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
These views are inside an ExpandableListView, which is known to have a number of bugs around text selection. This is just another in a list of issues with that widget. I need to pass the event up the stack because it also expands/collapses the rows in the ListView. Somebody should really rewrite Ex

[android-developers] Re: Return to my application when back key is pressed from native dialer

2010-11-04 Thread ar
This is the code I use to start the dialer activity from my activity Intent dialIntent = new Intent(Intent.ACTION_DIAL); startActivity(dialIntent); On Nov 4, 1:30 pm, TreKing wrote: > On Thu, Nov 4, 2010 at 1:57 PM, ar wrote: > > b) The user is taken to the native dialer when he chooses a par

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread niko20
I don't know why you had a problem with this in the first place. I have custom views where I override the OnTouch and I get ACTION_DOWN and ACTION_UP messages just fine. Also, why do you want to pass the message to the parent anyway? I don't see a need for this. -niko On Nov 4, 3:23 pm, Bret For

[android-developers] Re: Problem with turning off GPS updates when application goes into the background.

2010-11-04 Thread Chirag Patel
Thanks for the replies guys, it's a really weird bug. It should be simple! I think creating a service to handle the GPS is a good idea, I'll try that On Nov 4, 12:21 pm, loweroctave wrote: > I was having a good deal of problems with the location listener > starting / not starting / restarting whe

Re: [android-developers] sendBroadcast in IntentServicenot non-re-entrant?

2010-11-04 Thread Dianne Hackborn
On Thu, Nov 4, 2010 at 1:00 PM, Kostya Vasilyev wrote: > However, it's not out of the question that calling sendBroadcast, with it > being a framework function, is only allowed from the UI thread, just like > many other framework functions in Android. > sendBroadcast can be called from any threa

[android-developers] Re: Using ListView in AlertDialog

2010-11-04 Thread intbt
That was it, thanks and sorry I had never run into this problem before. I appreciate the assistance. intbt On Nov 4, 12:49 pm, TreKing wrote: > On Thu, Nov 4, 2010 at 2:00 PM, intbt wrote: > > Any ideas as to what the adding window with non-application token means? > > Here we go again ... > >

[android-developers] Re: Adding table row by inflating does not take table's settings

2010-11-04 Thread Hatch
I'll reply to myself. a1) public void addView (View child, int index) a2) care for the padding and styles set for the main table and the child row you are inserting a3) it's definitely doable. Hope I helped someone On Nov 4, 11:03 am, Hatch wrote: > Hi all. > > I have a table layout with a few

Re: [android-developers] Return to my application when back key is pressed from native dialer

2010-11-04 Thread TreKing
On Thu, Nov 4, 2010 at 1:57 PM, ar wrote: > b) The user is taken to the native dialer when he chooses a particular > action in my Activity > c) User presses the back key > d) Taken to homescreen > That doesn't sound right - you should be going back to your activity, which is what was previously

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
Ah, good point.That makes the hack a little simpler. It's still an ugly hack. On Nov 4, 1:09 pm, Kostya Vasilyev wrote: > 04.11.2010 23:01, Bret Foreman ?: > > >   Of course, there's another method to set myParent. > > Could be like this: > >     arg0.getParent() > > Or (assuming the listener

Re: [android-developers] Re: How different do the broadcast Intents need to be?

2010-11-04 Thread Dianne Hackborn
Thanks, that helps. First question: do you really want to use a Service at all? This sounds like a typical scenario where an app would just start a thread in the background to fetch the data. Basically how the browser works. You actually don't want a service for this kind of thing, because for

Re: [android-developers] Re: refresh gallery after saving photo in android

2010-11-04 Thread Kostya Vasilyev
Have you actually tried to use MediaScannerConnection? -- Kostya 04.11.2010 23:13, Abhi пишет: HI guys, I am coming back to this topic after unsuccessfully looking out for a solution myself. Does anyone have a clue yet? THanks, SHarma On Sep 20, 10:58 am, Kostya Vasilyev wrote: http://dev

[android-developers] Re: refresh gallery after saving photo in android

2010-11-04 Thread Abhi
HI guys, I am coming back to this topic after unsuccessfully looking out for a solution myself. Does anyone have a clue yet? THanks, SHarma On Sep 20, 10:58 am, Kostya Vasilyev wrote: > http://developer.android.com/reference/android/media/MediaScannerConn... > > 20.09.2010 18:41, Abhi пишет: >

Re: [android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Kostya Vasilyev
04.11.2010 23:01, Bret Foreman ?: Of course, there's another method to set myParent. Could be like this: arg0.getParent() Or (assuming the listener is an inner class) getParent() -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You recei

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
OK, just for the reference of others, there's the fix, which works. Returning true means the subsequent ACTION_UP is received. calling the onTouchEvent method of the parent ensures that the event gets passed up the stack. Of course, there's another method to set myParent.

Re: [android-developers] sendBroadcast in IntentServicenot non-re-entrant?

2010-11-04 Thread Kostya Vasilyev
Bret, You saying that there are "multiple concurrent instances of the IntentService running" is not entirely accurate. If you actually defined multiple services in Java / the manifest, my apologies. If you only defined one service, then there is only one instance of the service, and any in

Re: [android-developers] Using ListView in AlertDialog

2010-11-04 Thread TreKing
On Thu, Nov 4, 2010 at 2:00 PM, intbt wrote: > Any ideas as to what the adding window with non-application token means? > Here we go again ... This most likely means that you're using getApplicationContext() instead of an Activity to show a Dialog. Don't use that function - like ever. Just use

[android-developers] Re: How can I hide views when the soft keyboard is up?

2010-11-04 Thread newobj
It's not really what I want. I want an adjustResize behavior, however, I also want to completely hide certain views. It's really a more specific version of the question "how do I do things when the keyboard appears/disappears" - a question to which I've never found a satisfactory answer that works

[android-developers] Re: Are 3rd party app stores a good idea for free apps?

2010-11-04 Thread songs
I'm interested in hearing if anyone else has experience selling on third-party sites as well (handster.com in particular). Wondering if it's worth the effort to manage across multiple markets. On the one hand, uploading a file to another revenue channel seems easy enough. On the other hand, ther

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
It looks like the only workaround is brute force. I can extend TextView to add a myParentView variable and then call the myParentView.onTouchEvent. Of course I'll also return true from onTouch so that I will successfully receive the ACTION_UP event. But what a hack! -- You received this message b

[android-developers] Using ListView in AlertDialog

2010-11-04 Thread intbt
I am trying to add 2 listviews to an alertdialog to select 2 separate items. I am getting the following error 11-04 18:52:29.094: WARN/WindowManager(584): Attempted to add window with non-application token WindowToken{436ad8b0 token=null}. Aborting. 11-04 18:52:29.113: DEBUG/AndroidRuntime(896)

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
Now here's an AMAZING thing. When I change onTouch to return true (indicating that the event is handled) then the ACTION_UP event _is_ passed to onTouch. So returning false as a result of the ACTION_DOWN somehow tells the stack to pass the subsequent ACTION_UP to onTouch. This is not a fix, however

[android-developers] Return to my application when back key is pressed from native dialer

2010-11-04 Thread ar
This is what I'm trying to support. Can this be done? a) User is an Activity A in my app. b) The user is taken to the native dialer when he chooses a particular action in my Activity c) User presses the back key d) Taken to homescreen Is there a way I can change it, so the back key press returns

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
Scanning through the TextView docs did not reveal any flags that I think would effect whether or not the ACTION_UP event was passed to onTouch. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-dev

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
It occurs to me that this may be a consequence of the _kind_ of view I'm using. In this case, it's a TextView. I notice that the only onTouch event that the default TextView passes to my onTouch method is ACTION_DOWN. I'm guessing I need to set some flags elsewhere to get other events for this type

[android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Bret Foreman
True, except the inconsistency results in an incompleteness. The onClick documentation doesn't state what mechanism has been created in the onClick case to produce the same effect as returning a false in the onTouch case. On Nov 4, 11:10 am, Kumar Bibek wrote: > Well, if the docs say it clearly,

Re: [android-developers] Re: Missing ACTION_UP

2010-11-04 Thread Kumar Bibek
Well, if the docs say it clearly, its fine I guess. On 04-Nov-2010 11:38 PM, "Bret Foreman" wrote: It's unfortunate that onClick and onTouch do not use the same approach, where the method returns a true if it handled the event and the parent shouldn't get the event a false if the parent should g

Re: [android-developers] Re: ListView.setOnItemClickListener() fails to catch selection events for custom list items

2010-11-04 Thread Kumar Bibek
Have you set your list items to be focussable? Mean are some of your views in your item layout focussable? On 04-Nov-2010 11:35 PM, "FractalBob" wrote: I think the reason it's still not working is because I'm not sure what interface onListItemClick implements, so I tried public class NewsListAc

  1   2   >