[android-developers] Re: HTC Hero has multi-touch. SDK support?

2009-07-02 Thread Al Sutton
Kaj, In most countries software methods (such as multi-touch) can not be patented. See http://news.bbc.co.uk/1/hi/technology/4655955.stm for the result of a recent attempt to allow them in europe. Al. On Jul 1, 9:33 pm, Kaj Bjurman wrote: > I think it has been granted, and they have probably

[android-developers] Re: setBuiltInZoomControls problem

2009-07-02 Thread tstanly
it's work,thanks! because i have a wrong update method. On 7月2日, 下午2時22分, tstanly wrote: > yes, > my sdk level is 3, > > avd info > id: 3 > Name: Google APIs > Type: Add-On > Vendor: Google Inc. > Description: Android + Google APIs > Based on Android 1.5 (API level

[android-developers] AutoComplete with 3000 names

2009-07-02 Thread UK Android Apps UK Android Apps
Hi, I have a view which allows the user to enter a name, I am using auto complete. The array of strings representing the values is over 3000 names. When typing the name it does take a second or two to show the hint. Whats the best way to handle a auto complete field with a large number of hints?

[android-developers] Re: DEVELOPER CHALLENGE 2 - Can suite of applications participate as one entry?

2009-07-02 Thread whitemice
I had this issue in ADC1 and was forced to put all my apps into the same APK, although by configuring the manifest.xml file I was still able to make each application show up with an individual icon. However, due to the commoditized nature of the competition, the judge doe’s not follow the normal

[android-developers] Re: Where to put local file on the phone

2009-07-02 Thread qLabs
First, thanks for replying. So since my asset directory did'nt exist, i created it and i placed 4 folders in it, each one containing files. My goal is to set up image (the contained files) on ImageView object from a xml parser. So with the InputStream i don't know how to use it, i mean the only m

[android-developers] Supported Media Formats

2009-07-02 Thread stephen.lloyd.h...@googlemail.com
Hi, I've been using MediaPlayer for playing some sounds and I've found no way to get hold of a list of supported mime types at runtime. I was hoping for something along the lines of MIDP's javax.microedition.media.Manager.getSupportedContentTypes() but there doesn't seem to be anything that achie

[android-developers] Re: Where to put local file on the phone

2009-07-02 Thread qLabs
First, thanks for replying. So since my asset directory did'nt exist, i created it and i placed 4 folders in it, each one containing files. My goal is to set up image (the contained files) on ImageView object from a xml parser. So with the InputStream i don't know how to use it, i mean the only m

[android-developers] Building with ant and multiple source folders

2009-07-02 Thread Guillaume Perrot
When building an Android project with ant, we can define some properties in a build.properties file. There is the attribute source-folder but we can only specify one folder. How to deal with several source folders ? --~--~-~--~~~---~--~~ You received this message be

[android-developers] can't use mouse click for ZoomControl

2009-07-02 Thread tstanly
hi all, i use the setBuiltInZoomControls to setup Zoom in my app, in the emulator, i can use mouse to click the zoom in/out, but when the app install in my machine, i can't use mouse to click, but still work by touch! did somebody know how to solve that? thanks --~--~-~--~~---

[android-developers] IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-07-02 Thread Oceanedge
Hi, I am using Android SDK 1.5. I am developing an activity with multiple content views. It will call setContentView() with different viewgroup instance for different functionality. It contains a text input dialog popped up by an option menu item. I didn't specify anything for IME in mainfest.xml

[android-developers] Re: Where to put local file on the phone

2009-07-02 Thread qLabs
okey so i found a solution here is it is = SharedData.context.getAssets().open(myFile); Bitmap bitmap=BitmapFactory.decodeStream(is); and after that i set my ImaveView sith setImageBitmap(bitmap). thanks u alot nightwolf Cheers On Jul 2, 10:28 am, qLabs wrote: > First, thanks for replying.

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Dianne Hackborn
No, have a method on the top-level interface that returns another object/interface based on whatever parameters you give it: interface MyPool { void doSomething(); } interface MyService { MyPool getPool(int sel1, String sel2); } If needed you can have a release() method on MyPool for the cli

[android-developers] Android Build System that supports webView web code development

2009-07-02 Thread Fred Grott(shareme)
First, Let me apologize as AndCooper was going to be out sooner but I have been faced with an emotional family emergency. AndCooper alpha0.1 will be released this weekend and does have beginning support for webview web code development such as obfuscation, jlint analysis of javascript and etc. A

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Dianne Hackborn
You explicitly can not do this. On Wed, Jul 1, 2009 at 8:44 PM, Jun Yuan wrote: > Hi, > > Anyone knows how to prevent a particular apps been removed or unstalled > from "Manage Applications"? > > Thank you. > > J > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note:

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread John Smith
2009/7/2 Dianne Hackborn > You explicitly can not do this. > Except if you build your own firmware and have the app pre-installed etc etc etc similar to how some google apps and core libraries can't be removed. --~--~-~--~~~---~--~~ You received this message beca

[android-developers] How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Hi every body I am popping an alert box whenever an user exceeds 100 characters in a text-box(EditTextPreference). Now i am able to capture the hard keyboard's, i.e. computers's keyboard, events, but i am not able to capture the sofkeyboard's key events. There are some keys like numbers, enter, de

[android-developers] Retrieve list of applications

2009-07-02 Thread aljo
Hey guys I have a problem... I wan't to retrieve the list of applications installed in the device.. I was able to retrieve it using PackageManager class and using the getInstalledApplications(int flags) method.. But I can only retrieve the application's process names and package names.. I can

[android-developers] Retrieve list of applications

2009-07-02 Thread aljo
Hey guys I have a problem... I wan't to retrieve the list of applications installed in the device.. I was able to retrieve it using PackageManager class and using the getInstalledApplications(int flags) method.. But I can only retrieve the application's process names and package names.. I can

[android-developers] Re: When does my thread die (continued discussion)

2009-07-02 Thread Lex
OK, I'm stopping the service in the activity's onStop() method: @Override public void onStop() { super.onStop(); stopService(new Intent(this, cocarClient.getClass())); Log.i(TAG, "stopped service!"); } Now when I press the back or

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Gert
I was under the impression that you could (basically) only ship Parcelables over an RPC call, so the service can't return an interface, but must return a specific parcelable class. Methods invoked on this MyPool (object/interface) will not automagically pass though the RPC mechanism... am I missin

[android-developers] Android's bug? Show a dialog in a transparent Activity.

2009-07-02 Thread Advanceroot
Hi, My application receive commands from network, then give hints to user, which most of those are dialog. I want to show a dialog in a transparent Activity. The following dialogs show in the same activity also. So when the dialog pops up and user just use another application, the dialog shows we

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Saurav Mukherjee
well i have not tried capturing the keys from the soft keyboard, but u cud try out a round abt method for checking the number of chars exceeded. u cud run a thread tht keeps track of the text entered in the edit text box. wen it exceeds, delete from the edit text box. if u have a better sol please

[android-developers] Re: play audio from resource during call

2009-07-02 Thread Honest
Yet no reply. So ridiculous. I do not know why i am not getting reply. On Jul 1, 3:48 pm, Honest wrote: > My application is making call from application. Now i want to play > some audio on speaker when the caller will receive call. So can some > one tell me will i have to play audio in new threa

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Bart van Wissen
Is the MyPool object actually passed by reference here, from the service to the client? So changes to the object are reflected at the service side and at any clients that may share the same reference? On 2 jul, 11:15, Dianne Hackborn wrote: > No, have a method on the top-level interface that ret

[android-developers] Re: Live traffic events as icons on a map

2009-07-02 Thread Lex
Hello again, I can receive and decode traffic messages now. I'm doing this in a service and the next step is to update the ItemizedOverlay object in the map activity as messages are coming. I figured out that a service cannot directly access it's overlying activity. What is a good practice to bri

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Let me tell you what i really want, actually i have to show an alert box saying "max. limit reached" when the characters limit reaches 100, so for that i need to sense the key events occured and show the alert box. As of now i am able to detect computer's keys, emulator's home,power,call,call_end,

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Saurav Mukherjee
thats pretty simple. run a thread with a while(no of chars < max){} . wen it exceeds, the while stops and then send a Message to a message handler to display the dialog box. u can get the number of chars in the thread by running a handler.post(Runnable) method. hope this help. cheers! On Thu,

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Sujay Krishna Suresh
A simpler solution would be to implement a textwatcher. On Thu, Jul 2, 2009 at 4:12 PM, Saurav Mukherjee < to.saurav.mukher...@gmail.com> wrote: > thats pretty simple. run a thread with a while(no of chars < max){} . wen > it exceeds, the while stops and then send a Message to a message handler t

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Dude, i want to show the alert dialog box ONLY when user press any key on the keyboard(softkeypad), if user dont press any key no alert box will pop-up. Is your sol. provides this functionality?? On Jul 2, 3:42 pm, Saurav Mukherjee wrote: > thats pretty simple. run a thread with a while(no of ch

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Whats is this stuff(textwatcher) man?? On Jul 2, 3:48 pm, Sujay Krishna Suresh wrote: > A simpler solution would be to implement a textwatcher. > > On Thu, Jul 2, 2009 at 4:12 PM, Saurav Mukherjee < > > > > > > to.saurav.mukher...@gmail.com> wrote: > > thats pretty simple. run a thread with a wh

[android-developers] ADC2 full terms and conditions

2009-07-02 Thread RS
Yes there are many threads discussing similar stuff. But am eagerly waiting to read this. The official site still says it shall be available in June 09. Others on my planet think that its July now.. I trust Google.. it has got to be some June 09 date today. Can the same developer submit multiple

[android-developers] keyevent from softkeyboard

2009-07-02 Thread Nirav
I want to catch each and every click on softkeyboard. onKeyDown() is not called when key is pressed . If anybody knows ..help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Saurav Mukherjee
yes. wen the user presses the key, the text len increases. wen the text len increases, the thread checks for the length. if the length exceeds, message is sent. at the message handler, message is received. wen the message is received, dialog box is displayed. this must be self explanatory. On Thu

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Sujay Krishna Suresh
plz visit http://developer.android.com/reference/android/text/TextWatcher.html to no more... It can be associated with an edittext as follows. yourEditText.addTextChangedListener(yourTextWatcher); then in either the aftertextchanged or ontextchanged you could show the alert. On Thu, Ju

[android-developers] Intercepting bluetooth device buttons

2009-07-02 Thread info.sktechnol...@gmail.com
Could someone point me to the documentation or example on how my application can intercept button pushes on an already paired and connected bluetooth device? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "An

[android-developers] Re: Intercepting bluetooth device buttons

2009-07-02 Thread Mark Murphy
> Could someone point me to the documentation or example on how my > application can intercept button pushes on an already paired and > connected bluetooth device? At the level of the Android SDK, you can't, AFAIK. At the firmware level, you may be able to -- questions on that should go to a gro

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Thanks man , i will try this solution , looks like it will solve my problem. On Jul 2, 4:12 pm, Saurav Mukherjee wrote: > yes. wen the user presses the key, the text len increases. wen the text len > increases, the thread checks for the length. if the length exceeds, message > is sent. at the me

[android-developers] Get MMI result code

2009-07-02 Thread CDavis8
Is it possible to programatically dial an MMI code and interrogate the result. I wish to get the current call forwarding numbers in the same way that the call forwarding settings screen does. I am able to start the call using an intent no problem but I cant seem to get a result. kind regards Chris

[android-developers] use of superscript in textview

2009-07-02 Thread jaimin
hi i am new to android i devlope an application where i have to use superscript in textview . But i do not know how that can be done so plz any body help me for these issue its urgent. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Errors In Android Run time I need suggestions

2009-07-02 Thread Desu Vinod Kumar
Hi Can Any Body Say in which format the response it is etRatingResponse {return=ContestInfo{item=anyType{name=Ankitha; totalimages=2; rating=2.5; }; item=anyType{name=Anushka; totalimages=4; rating=9.5; }; item=anyType{name=Apsara; totalimages=1; rating=0; }; item=anyType{name=Assorted; to

[android-developers] How to restart video preview after the surfaceDestroyed()?

2009-07-02 Thread Niko Gamulin
Hi, I have created a CapturePreview class and CameraManager class the following way: CapturePreview: public class CaptureView extends SurfaceView implements Callback{ private final SurfaceHolder surfaceHolder; FileReaderWriter fileRW; int frameCount; private static final int MS

[android-developers] wait/force close notification

2009-07-02 Thread ads_78
Is there any way for an activity to register for being notified if a wait/force close dialog is shown or alternatively if the user selects force close, a way to detect that in ondestroy()? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: use of superscript in textview

2009-07-02 Thread Sujay Krishna Suresh
Check out http://developer.android.com/reference/android/text/style/SuperscriptSpan.html On Thu, Jul 2, 2009 at 5:29 PM, jaimin wrote: > > hi i am new to android > i devlope an application where i have to use superscript in textview . > But i do not know how that can be done so plz any body help

[android-developers] Re: How to capture soft keyboard's key events.

2009-07-02 Thread Chris
Thank you dude, it looks like helpful, thank you very much On Jul 2, 4:15 pm, Sujay Krishna Suresh wrote: > plz visithttp://developer.android.com/reference/android/text/TextWatcher.html > to no more... It can be associated with an edittext as follows. >             yourEditText.addTextChangedLis

[android-developers] Re: wait/force close notification

2009-07-02 Thread Mark Murphy
> Is there any way for an activity to register for being notified if a > wait/force close dialog is shown or alternatively if the user selects > force close, a way to detect that in ondestroy()? The only way you will get a force-close dialog is if your application has an exception or is unrespons

[android-developers] Re: wait/force close notification

2009-07-02 Thread ads_78
Thanks for quick reply! It is the unresponsive force closes I am trying to capture, which I don't think ever trigger the global exception handler. On Jul 2, 8:15 am, "Mark Murphy" wrote: > > Is there any way for an activity to register for being notified if a > > wait/force close dialog is show

[android-developers] Re: wait/force close notification

2009-07-02 Thread Mark Murphy
> Thanks for quick reply! It is the unresponsive force closes I am > trying to capture, which I don't think ever trigger the global > exception handler. Correct. On the other hand, if you are unresponsive, Android has no way of informing you that you are not responding. -- Mark Murphy (a Comm

[android-developers] Re: wait/force close notification

2009-07-02 Thread ads_78
Good point. Do force closes that way not go through ondestroy()? On Jul 2, 8:19 am, "Mark Murphy" wrote: > > Thanks for quick reply!  It is the unresponsive force closes I am > > trying to capture, which I don't think ever trigger the global > > exception handler. > > Correct. > > On the other

[android-developers] Re: Intent to view sms?

2009-07-02 Thread Seer
ok guys i have this work great now but i have a new problem. when someone views the sms in my app i mark the sms as read and they have accessed my app via the default sms notification but that notification will not go away. The message is marked as read so it should have gone away but it does no

[android-developers] Re: wait/force close notification

2009-07-02 Thread Mark Murphy
> Good point. Do force closes that way not go through ondestroy()? As far as I know, Android kills off your non-responding process without invoking any of the other lifecycle methods. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/book

[android-developers] Re: can't use mouse click for ZoomControl

2009-07-02 Thread Lex
Did I get it right, you have the phone connected to your computer, the application running on the phone, and you are trying to zoom with the mouse? As a phone doesn't use a mouse, you probably don't need bother with that. Lex On Jul 2, 10:46 am, tstanly wrote: > hi all, > > i use the setBuiltI

[android-developers] show and hide the titlebar

2009-07-02 Thread l hx
i want to dynamically show and hide the titlebar during the lifetime of the activity ,how can i do? --~--~-~--~~~---~--~~ 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] Re: HTC Hero has multi-touch. SDK support?

2009-07-02 Thread Disconnect
On Wed, Jul 1, 2009 at 8:10 PM, CraigsRace wrote: > > Back on topic, and I'll make it a multiple choice question (in a hope > it will get answered). > > Does anyone know if the Android SDK will support multi-touch: > A) In the next month > B) In the next 6 months > C) In the next year > D) Multi-t

[android-developers] Re: G1 Firmware in ADP1?

2009-07-02 Thread Disconnect
On Wed, Jul 1, 2009 at 11:33 AM, Brian wrote: > > I was hoping to find an answer to MY question on here. I have a > developer phone. Build is 1.1 I am NOT a developer, just an early > adopter in UK who got a US phone. Question: Is there an EASY way to > get to 1.5? Everything I read confuses me...

[android-developers] Re: G1 Firmware in ADP1?

2009-07-02 Thread Brian
Thanks. I get the phone into "flashboot" mode (it shows three green androids at bottom of screen, and this at top: DREA100 PVT 32B HBOOT-0 .95 .3000 CPLD-4 RADIO-1.22.12.29 Oct 20 2008 then in a yellow bar it says: Serial10 I have it connected to my machine by usb cable...now what? As I said,

[android-developers] Re: G1 Firmware in ADP1?

2009-07-02 Thread John Smith
2009/7/2 Brian > > Thanks. I get the phone into "flashboot" mode (it shows three green > androids at bottom of screen, and this at top: > Hit the back button to put it into fastboot mode. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: G1 Firmware in ADP1?

2009-07-02 Thread Brian
I know it probably seems simple to you, but I get it so it says fastboot...then what? and what do i have to do on my machine, if anything, prior to this? (do i need to install the sdk? and if so, how? On Jul 2, 1:52 pm, John Smith wrote: > 2009/7/2 Brian > > > > > Thanks. I get the phone into "

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Gert
That would be impossible, unless android does some very fancy magic - since the service can run in a different process. On Jul 2, 12:24 pm, Bart van Wissen wrote: > Is the MyPool object actually passed by reference here, from the > service to the client? > So changes to the object are reflected

[android-developers] Re: G1 Firmware in ADP1?

2009-07-02 Thread John Smith
2009/7/2 Brian > > I know it probably seems simple to you, but I get it so it says > fastboot...then what? and what do i have to do on my machine, if > anything, prior to this? (do i need to install the sdk? and if so, > how? > You don't need the SDK or the source code for android, you do need a

[android-developers] Re: G1 Firmware in ADP1?

2009-07-02 Thread Brian
I know it probably seems simple to you, but I get it so it says fastboot...then what? and what do i have to do on my machine, if anything, prior to this? (do i need to install the sdk? and if so, how? On Jul 2, 1:52 pm, John Smith wrote: > 2009/7/2 Brian > > > > > Thanks. I get the phone into "

[android-developers] Re: can't use mouse click for ZoomControl

2009-07-02 Thread tstanly
no.. i use x86 machine. On Jul 2, 8:33 pm, Lex wrote: > Did I get it right, you have the phone connected to your computer, the > application running on the phone, and you are trying to zoom with the > mouse? As a phone doesn't use a mouse, you probably don't need bother > with that. > > Lex > >

[android-developers] Re: Mime type on download file

2009-07-02 Thread sasq
Yes, you need to add On May 22, 3:02 am, CaptainFanatic wrote: > I am having problems with this too. > > I can't seem to generate an intent by browsing to a file that I want > my application to open. > I am using a html file (have tried both .html and .myapp file > extensions) with this: > >

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Jon
We plan to build our own firmware and have the app pre-installed. Then how to make this app unremovable/uninstallable? Is that possible? Thanks, J On Thu, Jul 2, 2009 at 5:19 AM, John Smith wrote: > > > 2009/7/2 Dianne Hackborn > >> You explicitly can not do this. >> > > Except if you build y

[android-developers] Re: show and hide the titlebar

2009-07-02 Thread Streets Of Boston
You can't (at least on in sdk1.1) You have to not show the title bar and put one yourself, a View, at the top of your activity (a title bar that is a View inflated from your layout-files). Then you can hide/show this View whenever you want. On Jul 2, 8:36 am, l hx wrote: > i want to dynamically

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Mark Murphy
> We plan to build our own firmware and have the app pre-installed. > > Then how to make this app unremovable/uninstallable? Is that > possible? Questions regarding Android firmware are best asked on a discussion list pertaining to Android firmware: http://source.android.com/discuss -- Mark M

[android-developers] Re: ScrollView with ListView being cut off

2009-07-02 Thread Michael J
So, as per my follow-on post that you so gracefully deleted ;-), what would you, or anyone else reading this, recommend for my situation? I really need to be able to display some kind of selectable "list" of items within a ScrollView, but would prefer not to have to implement an entire custom vie

[android-developers] Internet Access on ANDROID

2009-07-02 Thread Vinay R Rao
Hi all, I am working on SMDK2440 board. Android is up and running on the target platform. I am not able to connect to the internet through ANDROID. i have copied the required lib files like libnsl.so, libnss_dns.so, libresolv.so as mentioned in some android mailing list. Can you please tell me the

[android-developers] Re: Where to put local file on the phone

2009-07-02 Thread Nightwolf
If you only need to assign some background to you ImageView you should use resources instead. http://developer.android.com/guide/topics/resources/resources-i18n.html On Jul 2, 1:02 pm, qLabs wrote: > okey so i found a solution > > here is it > > is = SharedData.context.getAssets().open(myFile);

[android-developers] Re: Internet Access on ANDROID

2009-07-02 Thread Marco Nelissen
You probably want the android-porting group, not this one. On Thu, Jul 2, 2009 at 7:26 AM, Vinay R Rao wrote: > > Hi all, > I am working on SMDK2440 board. Android is up and running on the > target platform. > I am not able to connect to the internet through ANDROID. > i have copied the required

[android-developers] Re: launch an app with widget

2009-07-02 Thread schwiz
Actually I can't even seem to find out how to do this with one of my own apps can anyone give me a code sample or point to some good documentation. Ive read the actual android reference on intents and startActivity but I still can't figure it out. On Jul 1, 11:08 pm, schwiz wrote: > I'm wanting

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread John Smith
2009/7/3 Jon > We plan to build our own firmware and have the app pre-installed. > > Then how to make this app unremovable/uninstallable? Is that > possible? > I've no idea, but I assume if it's installed from firmware the system simply won't allow it to be removed, check to see how google apps

[android-developers] Re: Camera in portrait mode

2009-07-02 Thread lufo
Hi guys, I'm facing the same problem like indra. I need to overlay some text on the camera and I tried to rotate the canvas on which the text is drawn but no result. Can someone (indra?) tell me how/what to rotate to bypass the Camera portrait bug ? Thanx a lot! On Jun 30, 7:22 pm, SebX wrote

[android-developers] Re: ScrollView with ListView being cut off

2009-07-02 Thread Mark Murphy
> So, as per my follow-on post that you so gracefully deleted ;-), what > would you, or anyone else reading this, recommend for my situation? Use tabs. Or, use ViewFlipper or one of its kin and create your own setup for flipping between the list and the rest of the contents of the ScrollView. O

[android-developers] Re: ScrollView with ListView being cut off

2009-07-02 Thread Michael J
hmmm... Point taken... Thanks, guys! On Jul 2, 9:40 am, "Mark Murphy" wrote: > > So, as per my follow-on post that you so gracefully deleted ;-), what > > would you, or anyone else reading this, recommend for my situation? > > Use tabs. > > Or, use ViewFlipper or one of its kin and create your

[android-developers] Re: Supported Media Formats

2009-07-02 Thread Marco Nelissen
On Thu, Jul 2, 2009 at 1:28 AM, stephen.lloyd.h...@googlemail.com wrote: > > Hi, > > I've been using MediaPlayer for playing some sounds and I've found no > way to get hold of a list of supported mime types at runtime. I was > hoping for something along the lines of MIDP's > javax.microedition.med

[android-developers] Re: ScrollView with ListView being cut off

2009-07-02 Thread Andrew Burgess
Perhaps try Expandable List View? I'm not sure if that would continue to shrink to fit the view though On Thu, Jul 2, 2009 at 10:45 AM, Michael J wrote: > > hmmm... Point taken... Thanks, guys! > > On Jul 2, 9:40 am,

[android-developers] Problem with Convert Project in Eclipse Plugin

2009-07-02 Thread bkbonner
I've tried checking out some projects to get them to run in eclipse -- for example twitta from: http://twitta.googlecode.com/svn/trunk/ using subclipse plugin for eclipse. It happens on other projects as well. When I checkout the project, it's not recognized as an android project (the src fold

[android-developers] Re: loop through strings.xml

2009-07-02 Thread Alexey Volovoy
I didn't check if you'll have an access to that file. If you do - then you can parse it ( SAX ). But WHY ? On Jul 1, 11:41 pm, Josh wrote: > Is there a way to loop through the values of strings.xml? --~--~-~--~~~---~--~~ You received this message because you are s

[android-developers] Re: play audio from resource during call

2009-07-02 Thread Marco Nelissen
Generally when you don't receive an answer to a question, it means that nobody knows the answer. Posting a followup to complain about not getting an answer is not going to change that. On Thu, Jul 2, 2009 at 3:20 AM, Honest wrote: > > Yet no reply. So ridiculous. I do not know why i am not gett

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Marco Nelissen
On Thu, Jul 2, 2009 at 7:00 AM, Jon wrote: > We plan to build our own firmware and have the app pre-installed. > > Then how to make this app unremovable/uninstallable?  Is that > possible? Just put it in the system partition. --~--~-~--~~~---~--~~ You received thi

[android-developers] Package access for SQLiteDatabase methods

2009-07-02 Thread jcpalmer
I was wondering why the native lastChangeCount() & lastInsertRow() methods of SQLiteDatabase are Package access? I have my own interface as to what a database should do, that does not presume it is SQL Based, e.g. MIDP's RecordStore. For Android, I am reusing the class written for the javax.sql

[android-developers] Re: Package access for SQLiteDatabase methods

2009-07-02 Thread jcpalmer
Alternatively, I would be satisfied if the java.sql.Statement method, int executeUpdate(String sql) was implemented, keeping the above methods package access. public int executeUpdate(String sql) throws SQLException { execSQL(sql); return (int) lastChangeCount(); } --~--~-~--~

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
First of all - what is the point of that widget? A user could simply drag and drop the icon of the application they want to launch to the home screen. If you are still convinced you need it, you probably also want to include an activity picker: http://www.openintents.org/en/node/263 On that page

[android-developers] Re: Problem with Convert Project in Eclipse Plugin

2009-07-02 Thread Andrew Burgess
It looks like they didn't commit their Eclipse project files. Just create a new Android project and copy the files from the checked out source into the new project directory On Thu, Jul 2, 2009 at 10:53 AM, bkbonner wrote: > > I've tried checking out some projects to get them to run in eclipse -

[android-developers] Re: Android service always alive..

2009-07-02 Thread Todd Sjolander
If you absolutely need it to be running all the time, you need to acquire a PARTIAL_WAKE_LOCK via PowerManager. This will keep the CPU on all the time, and your program running. Be prepared for a shocking decline in battery life. I assume your next question will be "How do I make it run as soon

[android-developers] Re: launch an app with widget

2009-07-02 Thread schwiz
well there a ton of battery life widgets out there but I just want a battery % widget that launches toggle settings for my convenience. I just want to basically save a slot on my home screen. thanks for the link I'll take a look into it hopefully it will get me where I need to be. On Jul 2, 10:

[android-developers] Re: can't use mouse click for ZoomControl

2009-07-02 Thread Peli
Hi, I really don't understand what the situation is: Do you have a real Android mobile phone device? [ ] YES [ ] NO Does touch / mouse click work when you install your program on the emulator? [ ] YES [ ] NO Does touch work when you install your program on a real device? [ ] YES [ ] NO [ ] I do

[android-developers] Re: Problem with Convert Project in Eclipse Plugin

2009-07-02 Thread Balwinder Kaur (T-Mobile)
Another way to do this is the following: File->New->Android Project-> With in the New Project Screen, in the "Contents" area, choose the "Create project from Existing Source" option and point it to the your source tree that houses the AndroidManifest.xml file. It should work. Balwinder Kaur Open

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
If you are only interested in a specific application, you can study the logcat output while launching that application. It will tell you the component that is necessary to launch it. Looking at the Settings manifest: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=An

[android-developers] Re: launch an app with widget

2009-07-02 Thread Dianne Hackborn
Please don't hard-code component names of other packages. Those are implementation details, and you can very well break at some point in the future. The Settings class has a number of intent actions to launch standard settings panels; for other things, you should figure out the right intent proto

[android-developers] Re: How to prevent app to be removed/uninsalled

2009-07-02 Thread Dianne Hackborn
On Thu, Jul 2, 2009 at 2:19 AM, John Smith wrote: > 2009/7/2 Dianne Hackborn > >> You explicitly can not do this. >> > Except if you build your own firmware and have the app pre-installed etc > etc etc similar to how some google apps and core libraries can't be removed. > > True, nothing in the

[android-developers] Re: About Android Developer Challenge 2

2009-07-02 Thread Yusuf T. Mobile
Hi DG, This is the right forum to ask. You will find the full terms at http://code.google.com/android/adc/ once they've published them. I know they mention June in their timeline, but they also mention "this timeline is subject to change until the Official Rules are published." Oh well! Yusuf Sa

[android-developers] Re: can't use mouse click for ZoomControl

2009-07-02 Thread Dianne Hackborn
Neither mouse input not x86 CPUs are supported Android features, so this is not appropriate for the android-developers group. Clearly there is something wrong with whatever patch you have that adds mouse support for your device, and questions about that should be asked on android-porting. On Thu,

[android-developers] Re: launch an app with widget

2009-07-02 Thread Peli
Sorry, my mistake. Of course for settings it is better to use the appropriate intent action. But for many applications, the launcher intent is simply MAIN (in category LAUNCHER), so there is no way to differentiate between different applications, except by their component - right? (or is it easil

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Dianne Hackborn
I would really suggest that you look at the remote service API demos, this shows a variety of things you can do between interfaces. It isn't exactly the pattern here, but it shows using a secondary interface and passing it across the first interface. On Thu, Jul 2, 2009 at 3:10 AM, Gert wrote:

[android-developers] Re: Intercepting bluetooth device buttons

2009-07-02 Thread Nick Pelly
On Thu, Jul 2, 2009 at 4:36 AM, info.sktechnol...@gmail.com wrote: > > Could someone point me to the documentation or example on how my > application can intercept button pushes on an already paired and > connected bluetooth device? AVRCP events are broadcast as media intent's if the foreground a

[android-developers] Re: Documentation inconsistency in Service.onBind() intent extras availability

2009-07-02 Thread Dianne Hackborn
MyPool is an aidl interface, and you can pass references to such interfaces across processes. The code I wrote was intended to be pseudo-aidl code, not Java code, though I realize now that is probably not clear. On Thu, Jul 2, 2009 at 6:06 AM, Gert wrote: > > That would be impossible, unless an

[android-developers] Re: launch an app with widget

2009-07-02 Thread Dianne Hackborn
The launcher doesn't have any hard-coded component names; it does a query of the system for all activities implementing MAIN LAUNCHER. On Thu, Jul 2, 2009 at 9:52 AM, Peli wrote: > > Sorry, my mistake. Of course for settings it is better to use the > appropriate intent action. > > But for many a

[android-developers] How to know where a HorizontalScrollView is flinted?

2009-07-02 Thread HeHe
Hello folks, Could somebody teach me how to get current left x-position relative to a HorizontalScrollView view after a Flint event is processing by HorizontalScrollView's factory onFlint handler? There seems to me no such API in current SDK. Am I correct? Thank you!! --~--~-~--~~--

[android-developers] Activity Analysis

2009-07-02 Thread Rud
For what it is worth, I have an analysis of the Activity life cycle at http://sites.google.com/site/mysticlakesoftware/android-surfaceview-template which includes some skeleton code for an application. I know there are a lot of other sites that present this information but I may have a slightly di

  1   2   >