[android-developers] Text View Size

2009-03-12 Thread Muthu Kumar K.
Hi All, I am looking for setting the text view max text size. Can any one help me how to set that? Thanks in Advance, Muthu Kumar K. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] Re: asking about previous SDK Versions

2009-03-12 Thread Dan Morrill
Hello! Thanks for pointing this out; it looks like the "Previous SDK Releases" link was broken when we migrated to the new developer.android.comsite. We will fix this as soon as possible. In the meantime, here are direct links to the M5 SDKs: http://developer.android.com/sdk/download.html?v=and

[android-developers] raw resources in worker thread

2009-03-12 Thread Bob
Hi, How do I access raw resources in a worker thread? I have been trying to use Context.getResources but this seems to create some type of handler error. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[android-developers] accessing raw resources in worker thread. I have been trying to use Context.getResources but this seems to create some type of handler error.

2009-03-12 Thread Bob
Hi, How do I access raw resource via the context --~--~-~--~~~---~--~~ 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

[android-developers] How to get a special layout xml file in another application

2009-03-12 Thread quill
Hi, guys, I want to inflate a layout xml file(in different apk), so I use res = getPackageManager().getResourcesForApplication(appname); to get the resource; and than use mInflater.inflate(res.getLayout(resId), null); to inflate the layout. The problem is, when the xml file is defined as follows:

[android-developers] asking about previous SDK Versions

2009-03-12 Thread noha
what about previous SDK Versions i need strongly the SDK with m5-rc15 release number can any one help me thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

回复: [android-developers] (from Jiang) How to get notification when sd card is inserte d/mounted?

2009-03-12 Thread Jiang
Aha, I found the reason, we need to register broadcast receiver as following: MyBroadcastReceiver myReceiver = new MyBroadcastReceiver(); IntentFilter filter = new IntentFilter(Intent.ACTION_MEDIA_MOUNTED); filter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); filter.addAction(Intent.ACTION_MEDIA_EJECT

[android-developers] Re: 24MB in RAW folder -- when running showing "INSTALL_FAILED_INSUFFICIENT_STORAGE"

2009-03-12 Thread Nithin
Thanks Snowflake.. I want to look into installer... Thanks Nithin On Mar 11, 6:29 pm, MrSnowflake wrote: > I don't think you can put them on the SD by installation. I think you > have to make an 'installer' which downloads the mp4 files from the web > and saves them to sd. > > On 10 mrt, 06:06

[android-developers] Re: apply color to Button

2009-03-12 Thread dillirao malipeddi
Thank you it works fine now.. On Thu, Mar 12, 2009 at 9:52 PM, Sundog wrote: > > Make sure the color you're sending has an alpha component. > > On Mar 12, 10:17 am, Dilli wrote: > > Hi all, > > > > I am developing a simple GUI with three buttons > > > > i want to fill the button with color > > >

[android-developers] Re: Menu option starts Thread - menu hangs.

2009-03-12 Thread Ikon
I guess the reason is that ExecutorService.submit must be doing something different than just starting up a new thread? On Mar 12, 10:52 pm, Streets Of Boston wrote: > I'm assuming that gameThread is something that has its ownthreadand > runs the game. And the mainthread(on which onOptionsItemSe

[android-developers] Re: Menu option starts Thread - menu hangs.

2009-03-12 Thread Ikon
Thanks for the comprehensive response - that is very helpful! What I dont understand is that if I am just telling another thread to go do processing, why would THAT thread not block the main thread then? On Mar 12, 10:52 pm, Streets Of Boston wrote: > I'm assuming that gameThread is something t

[android-developers] Re: No Latitude in ADP1.1

2009-03-12 Thread Andrew Stadler
Portakai- One of the specific goals of the ADP was to provide developer phones in countries where the G1 was not available. As you know, the G1 originally shipped in just one country (U.S.) while the ADP (if I recall correctly) shipped in 18 countries. We included as much software as we could,

[android-developers] Is there any way extend the existing android Contacts application?

2009-03-12 Thread Subbu
Is there any way extend the existing android Contacts application? Example : Adding My space user ID or Face book user ID to the Edit Contacts Screen in the IM Category --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to implement android's Gallery fling action in my own widget

2009-03-12 Thread gymshoe
The fling animation is automatic with the Gallery class. If you need your own (new) widget class, just make your own MyGallery class which extends Gallery. Then just overwrite the onFling() method to do whatever you want to do, and at the end of that method call super.onFling(args). Jim On Mar

[android-developers] Re: How to creat Toast Like view

2009-03-12 Thread gymshoe
http://www.anddev.org/2_ways_to_implement_a_toast-t3164.html On Mar 11, 2:16 am, Tushar wrote: > Hi, > > Using android.widget.Toast one can created  floating view over the > application. I would like to created similar view which will float on > top of all running applications at a specified lo

[android-developers] Re: RemoteCallbackList.getBroadcastItem(int) sometimes returns null

2009-03-12 Thread Streets Of Boston
m you mean that the value of 'N 'could be larger than the actual elements accessed by getBroadcastItem(i), i.e. HashMap changes while looping over the 'N' items...? For now, i'm check for null and just ignore it. The problem is that it is very hard to reproduce. It happens on rare occ

[android-developers] Re: how to transfer an action(ex:key press) from an Activity to other Activities

2009-03-12 Thread Anh Khoa Nguyen Pham
Did you try using PHONEPLUS_CALLBACK application ( I sent this question on another topic)? I want to do something like this application. Please download and install this application, then you will see my problem clearly. I see that a lot of persons on forum asked about this question but up to now,

[android-developers] Re: how to transfer an action(ex:key press) from an Activity to other Activities

2009-03-12 Thread Streets Of Boston
You could figure how to start the original dialer's activity (startActivity(Intent)) providing the correct Intent... I'm not sure how to do that, which action/category/extra-data/etc. to set to make this happen. Maybe someone else can help you with that. On Mar 12, 10:38 pm, Anh Khoa Nguyen Pham

[android-developers] Re: Menu option starts Thread - menu hangs.

2009-03-12 Thread Streets Of Boston
I'm assuming that gameThread is something that has its own thread and runs the game. And the main thread (on which onOptionsItemSelected is running) is seperate and handles the user-interface. If so, the it may be that createShapes() is pretty expensive and takes a while. This'll hang the menu-op

[android-developers] Re: how to transfer an action(ex:key press) from an Activity to other Activities

2009-03-12 Thread Anh Khoa Nguyen Pham
Thanks for your replies, Actually, my application will run when incoming call is detected. Because i do not know how to integrate my application into original dialer so i must implement my application as a separate application. So when users press Green Key, i want my application to exit and trans

[android-developers] Uploading and downloadingdata to a directory on a server.

2009-03-12 Thread bigauto
Hi, I was wondering if there is a simple way to upload and download data to and from a directory in a server. If I have load and download from a directory at http://server.com/filedir, How should I go about sending the data to a server and giving it a name so that I could download the same data la

[android-developers] Re: Menu option starts Thread - menu hangs.

2009-03-12 Thread Ikon
Streets, Here is the snippet where I do the menuHandling: @Override public boolean onOptionsItemSelected(MenuItem item) { switch( item.getItemId()){ case START_GAME: gameThread.doStart(); return true; case STOP_GAME:

[android-developers] Re: Merchant account signup down?

2009-03-12 Thread Jesse McGrew
Still down for me too, by the way. This isn't something we're doing wrong, the system is just broken. Jesse On Mar 12, 8:09 am, jsdf wrote: > Weeks!  Wow, that's truly a testament to how little Google cares about > customer support.  As an example of how things could be done better, > look at A

[android-developers] Re: RemoteCallbackList.getBroadcastItem(int) sometimes returns null

2009-03-12 Thread Dianne Hackborn
Hm actually could you see if it is the -last- ones that are null? The code that makes the list gets a count from the HashMap, and then iterates through its values and puts them in the array, and returns the original count. So if that count is different than the number it iterated over, that could

[android-developers] Re: RemoteCallbackList.getBroadcastItem(int) sometimes returns null

2009-03-12 Thread Dianne Hackborn
The callbacks are just stored in a HashMap, and the entries there are never set null (actually that field is final), so I don't really see how that can happen. Are you sure you aren't potentially doing this loop from different threads without doing your own synchronization? On Thu, Mar 12, 2009 a

[android-developers] RemoteCallbackList.getBroadcastItem(int) sometimes returns null

2009-03-12 Thread Streets Of Boston
Hi, I found out that RemoteCallbackList.getBroadcastItem(int) sometimes returns null. I have this code in my Service and it raises a null- pointer exception: ... // instance variable of my Service final RemoteCallbackList mCallbacks = new RemoteCallbackList(); ... ... publ

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-12 Thread Romain Guy
AbsoluteLayout is deprecated in Cupcake. On Thu, Mar 12, 2009 at 5:01 PM, Streets Of Boston wrote: > > Where did you read it became obsolete. > I just checked the reference docs and it's not been obsoleted/ > deprecated. > > On Mar 12, 7:34 pm, Meryl Silverburgh > wrote: >> Hi, >> >> AbsoluteLa

[android-developers] Re: How to port AbsoluteLayout to FrameLayout?

2009-03-12 Thread Streets Of Boston
Where did you read it became obsolete. I just checked the reference docs and it's not been obsoleted/ deprecated. On Mar 12, 7:34 pm, Meryl Silverburgh wrote: > Hi, > > AbsoluteLayout has become obsolete, I need to convert it to FrameLayout. > > My problem is in AbsoluteLayout.LayoutParams, I ca

[android-developers] Re: List of countries & carriers

2009-03-12 Thread Eric Wong (hdmp4.com)
This is the closest and most up-to-date, I believe http://groups.google.com/group/android-discuss/browse_thread/thread/5b7764f42a27946f/aa319379e9cd2b1e?hl=en#aa319379e9cd2b1e Cheers Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: android.R.styleable can't be resolved?

2009-03-12 Thread Dianne Hackborn
Yes, they are still there, as are many other things in the framework that are not in the SDK. Be aware that using reflection is explicitly letting you use stuff outside of the SDK, and you should could on your code breaking, sooner or later, one way or another. On Thu, Mar 12, 2009 at 4:19 PM, De

[android-developers] How to port AbsoluteLayout to FrameLayout?

2009-03-12 Thread Meryl Silverburgh
Hi, AbsoluteLayout has become obsolete, I need to convert it to FrameLayout. My problem is in AbsoluteLayout.LayoutParams, I can specify (x,y) in the constructor, which specify the location of my view during layout. How can I achieve using FrameLayout + FrameLayout.LayoutParams? Thank you. --

[android-developers] Re: Android Keystore V2

2009-03-12 Thread Isaac Potoczny-Jones
Greetings. You might find the OpenIntents keystore project of interest as well: http://code.google.com/p/openintents/wiki/CryptoIntents It would be great to build something compatible, since the goal of the openintents project is interoperability :) peace, isaac --~--~-~--~~-

[android-developers] Re: did someone implement a ScrollView with horizontal scroll support?

2009-03-12 Thread Derek
can you tell me how to replace android.R.styleable in the below three lines of code? android.R.styleable is removed in the latest sdk. I'm really just a beginner. Sorry for asking such stupid question. TypedArray a = context.obtainStyledAttributes (android.R.styleable.View); TypedArray a = contex

[android-developers] Re: Problems with support from T-mobile/General Question

2009-03-12 Thread Justin Allen Jaynes
Joseph G wrote: > Hello Dave/Al/ Everyone, > > Thanks for taking the time to answer my questions. If anyone > actually knows about how I should deal with situation please respond > to me off list. > > No one else found it funny that T-mobile said the issues of the device > were BECAUSE it was op

[android-developers] Re: android.R.styleable can't be resolved?

2009-03-12 Thread Derek
fair enough. it did not explain java reflection still found the inner class was there though. --~--~-~--~~~---~--~~ 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: Unified Database Populating Solution

2009-03-12 Thread Mark Murphy
Justin Allen Jaynes wrote: > How in-depth do you go in your books, especially in demonstrating > best-practices of common tasks such as managing large amounts of data on > such a small platform? Also, how are the two books related? Does the > second book supersede the first, or are they compa

[android-developers] Re: Unified Database Populating Solution

2009-03-12 Thread Justin Allen Jaynes
Mark Murphy wrote: > Another thing to consider with large yet simple database structures is > whether SQLite is the right answer at all. This is particularly true if > the data is read-only or read-mostly. It may be you are better served > finding a Java library implementing a lower-level data str

[android-developers] Re: android.R.styleable can't be resolved?

2009-03-12 Thread Dianne Hackborn
styleable was removed from the SDK; this shouldn't have been in the SDK, because the values it contains change between releases. It also is not needed in any way for applications: these are just sets of resources that are interesting to specific pieces of code. You should use in your own app to

[android-developers] Re: Slow Scrolling

2009-03-12 Thread Mariano Kamp
I vaguely remember a similar problem too. Do you also see the dreaded "You used the BufferedReader default constructor" (something like that) message? I had the feeling that it lead to a lot of garbage collections which would in turn explain the unresponsiveness I suppose. Btw. I got rid of the Spa

[android-developers] Re: How to creat Toast Like view

2009-03-12 Thread mark . kahrl
Did you look at PopupWindow in the /widgets package? it is toast like, but persist until the user closes it. Mark On Mar 11, 5:26 am, Gulfam wrote: > Hi Tushar > > You can make toast like this > > public void showAlertMessage(Context context, String text){ > >         La

[android-developers] Re: Android Telephony

2009-03-12 Thread mark . kahrl
This can be done, but it is a bit of an advanced topic. You'll need to use an internal class which is com.android.internal.telephony.PhoneStateIntentReceiver Grab this package, the .class files from the cupcake source tree repository , (doesn't ship with the SDK) and add the classes to you'r

[android-developers] android.R.styleable can't be resolved?

2009-03-12 Thread Derek
Hi, I'm using the last android sdk 1.1r1. Eclipse complains about class android.R.styleable. I can't see R$styleable.class inside of android.jar\android either. But it's in the api doc. By using java reflection as below, android.R does have inner class called styleable. Could someone tell me what

[android-developers] Re: Learning JAVA

2009-03-12 Thread mark . kahrl
It might be easier of you don't know Java to start by learning Java and writing some usual desktop applications in awt/Swing. Look at the materials for the Java programmer certification to get a good overview of Java. Once you've got a handle on Java then try writing and Android app. Just my

[android-developers] DoubleTwist

2009-03-12 Thread Ivan Soto
I must say this is big news for Android-Mac users like me. I just wanted to share with the rest of the developers here. http://lifehacker.com/5160323/doubletwist-may-be-the-coolest-universal-media-manager-ever This is one thing missing with my G1. Maybe this can open a few software ideas. --~--~

[android-developers] Re: Does android support Google Gear?

2009-03-12 Thread Diego Torres Milano
On Mar 10, 9:34 pm, Mark Murphy wrote: > ying lcs wrote: > > By "dumping the content", I mean displaying what are the database > > column, database row content. > > > Is that possible on the emulator?   by opening a shell to it and run > > some commands? It's possible. For example, after runnin

[android-developers] Re: new version of app - is the user notified?

2009-03-12 Thread Ivan Soto
You get notification like once a day of all the apps with upgrades. you get a Market notification at the top. On Thu, Mar 12, 2009 at 2:57 PM, Stoyan Damov wrote: > > If he looks at your app browsing the Market he'll see it has an update. > I can't remember if he gets a notification as well, prob

[android-developers] Re: Intents and Uris, for Ringtone Picker

2009-03-12 Thread droozen
Ah, thanks. I was only look at what Uri extends (Object) and didn't notice that it implemented Parcelable. Thanks! On Mar 12, 1:58 pm, Dianne Hackborn wrote: > Uri is a Parcelable, so you can just use intent.putExtra(String, > Parcelable). > > > > On Thu, Mar 12, 2009 at 9:02 AM, droozen wrote:

[android-developers] Re: Intents and Uris, for Ringtone Picker

2009-03-12 Thread Jason Parekh
If you're using a preference activity, check out on the RingtonePreference, it does a lot of the boilerplate work for you. jason On Thu, Mar 12, 2009 at 12:02 PM, droozen wrote: > > I'd like to allow the user to choose a Ringtone from my application, > that I will play later for an alarm. Look

[android-developers] Sms sending App (app to write and send sms in all intercepting all out going sms)

2009-03-12 Thread Seer
Hi, I posted before about wanting to intercept out going sms and redirecting them but no one seemed to know a way to do this apart from writing my own app to be used to write the sms's on the phone in the first place. So my question is there an open source app out there for writing and sending sm

[android-developers] Re: G1 Storage Space

2009-03-12 Thread Stoyan Damov
~70MB for apps, 1GB SD card. I know the 70MB is hilarious, tough luck. Maybe a next release, when Google implement file system encryption will allow installing and running apps off the SD card, but that's not likely to happen soon. On Thu, Mar 12, 2009 at 9:53 PM, WebsiteMagazine wrote: > > How

[android-developers] Re: new version of app - is the user notified?

2009-03-12 Thread Stoyan Damov
If he looks at your app browsing the Market he'll see it has an update. I can't remember if he gets a notification as well, probably not. On Thu, Mar 12, 2009 at 10:11 PM, daniel.benedykt wrote: > > Hi > > If I upload a new version of the application. > Does the user knows that there is a new ve

[android-developers] Re: sound effect using SoundPool

2009-03-12 Thread Stoyan Damov
On Sun, Feb 15, 2009 at 12:00 AM, Sundog wrote: > > I am using your class and setting it up as you indicate, but having > the same difficulty I did last time I tried to use SoundPool; I have > seven one-shot sounds that trigger from buttons and in the emulator it > works every time, but on the ph

[android-developers] Re: sound effect using SoundPool

2009-03-12 Thread TjerkW
By the way: try to use .ogg files, they are played better by android. Also i had problems with playLoop(int resid), sometimes the sample is looped, and sometimes it is not. A possible usage of the SoundEffects class is by subclassing it. The code from my example ( i am making a col game! :-

[android-developers] Re: sound effect using SoundPool

2009-03-12 Thread TjerkW
Is the API of the SoundPool the same in cupcake? I hope so. For all the people who need a reliable soundpool, i have made a class that handles the details with soundpool and is easy to use: import java.util.HashMap; import android.content.Context; import android.media.AudioManager; import andro

[android-developers] new version of app - is the user notified?

2009-03-12 Thread daniel.benedykt
Hi If I upload a new version of the application. Does the user knows that there is a new version of the app? Thanks Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Re: Where can I get com.google.googlenav Package

2009-03-12 Thread JP
Oh yes, googlenav. That's gold, and there's several people including myself that could add great value to their apps with it. googlenav also provides location based search. It was included in m3 and was not made available any longer starting m5. http://groups.google.com/group/android-developers/

[android-developers] Re: 639,000 Android-based Phones Sold in 4th Quarter

2009-03-12 Thread daniel.benedykt
great info. Thanks. Now we have to wait for 1st Quarter 2009. On Mar 12, 4:17 pm, Steve Ingram wrote: > Please pardon the off topic posting, but I think all developers will > want to see this information. > > Many of us have been trying to figure out how many Android phones have > been sold.

[android-developers] Re: Switch the language of all app dynamically!

2009-03-12 Thread MrSnowflake
Try saving the locale some way, make your own implementation of Application and change the locale in Application. Then when the users wants a new locale, restart the activity/task. On 12 mrt, 04:22, Stephen Le wrote: > Hi all: > > I must change en_US Locale into zh_CH dynamically(Like user choos

[android-developers] G1 Storage Space

2009-03-12 Thread WebsiteMagazine
How much storage space does a G1 phone come with? --~--~-~--~~~---~--~~ 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

[android-developers] new version of app - does it show on new content?

2009-03-12 Thread daniel.benedykt
Hi I have an application on the market. If I upload an update, does it show on the new content section? If no, why I am seeing other apps with versions like 1.3.3 showing on the new content with no rating? Did the remove the app and put it back again? Thanks Daniel --~--~-~--~~

[android-developers] Re: Performance Problem with ListView / Styled TextView

2009-03-12 Thread Mariano Kamp
Hi forandroid, I guess you're talking about the class TwoLineListItem [1], right? Out of curiosity, not because I am trying to be a smart ass: Why would this be faster? Cheers, Mariano [1] http://developer.android.com/reference/android/widget/TwoLineListItem.html On Wed, Jan 14, 2009 at 10:51

[android-developers] Re: How to implement android's Gallery fling action in my own widget

2009-03-12 Thread Streets Of Boston
Take a look at the GestureDetector class. - Create an instance of GestureDetector. - Handle the onTouch event of your activity. In your onTouch event handler, forward the MotionEvent to this GestureDetector instance. - Assign a listener to this GestureDetector (one that implements onFling, amon

[android-developers] Re: Does Camera API really works ?

2009-03-12 Thread Streets Of Boston
Maybe i'm stating the obvious here: Did you assign the camera- permission to your application in your manifest file? On Mar 12, 12:18 pm, crowcasso wrote: > Currently the above code is crashing for me (even after fixing the 3 > params instead of 2) when performing takePicture() with a IOExceptio

[android-developers] 639,000 Android-based Phones Sold in 4th Quarter

2009-03-12 Thread Steve Ingram
Please pardon the off topic posting, but I think all developers will want to see this information. Many of us have been trying to figure out how many Android phones have been sold. The following link breaks down some of the numbers for mobile phone sales in 2008 (source:Gartner). It is estimate

[android-developers] Re: how to transfer an action(ex:key press) from an Activity to other Activities

2009-03-12 Thread Streets Of Boston
First you should figure out what you really try to accomplish. I don't know the details of your app, but i guess that your goal is not to push a button. The goal is the action that occurs when the button is pushed. I would just call the action (method/java-code/etc) directly that would have been

[android-developers] Re: how to transfer an action(ex:key press) from an Activity to other Activities

2009-03-12 Thread Dianne Hackborn
No you can't send events to other applications, sorry. On Thu, Mar 12, 2009 at 4:31 AM, npak...@gmail.com wrote: > > Hi all, > When my application is running, a button is pressed.After my > application processes this event, i want to continue to transfer this > event to other applications. Is it

[android-developers] Re: [android-kernel] How to lighten LED in key driver, when user press any KEY.

2009-03-12 Thread Dianne Hackborn
The driver doesn't do this, it is done by the high-level PowerManager Java service. On Thu, Mar 12, 2009 at 6:20 AM, wrote: > hi, > > In G1 phone, when user press any KEY, the LED that be as backlight of > "HOME" KEY, will be lightened. > I check Android source codes, and want to know how to lig

[android-developers] Re: savedInstanceState

2009-03-12 Thread Dianne Hackborn
You can't, your object must be a Parcelable and implement the protocol for marsalling/unmarshalling itself. On Thu, Mar 12, 2009 at 6:21 AM, Mr.No wrote: > > Hello, > > how do i put a Obect(or a HashMap) into the Bundle? > rgds F.Hildt > > > -- Dianne Hackborn Android framework engineer hack.

[android-developers] Re: Launch Application

2009-03-12 Thread Dianne Hackborn
The is a home screen sample code in the SDK. I would suggest using that that to see how to do things. On Thu, Mar 12, 2009 at 8:45 AM, bklik wrote: > > Update: > > OK, I can get my application to launch another application if I > explicitly type in the package and class names. For example: > >

[android-developers] Re: Intents and Uris, for Ringtone Picker

2009-03-12 Thread Dianne Hackborn
Uri is a Parcelable, so you can just use intent.putExtra(String, Parcelable). On Thu, Mar 12, 2009 at 9:02 AM, droozen wrote: > > I'd like to allow the user to choose a Ringtone from my application, > that I will play later for an alarm. Looking at the javadocs, I see > EXTRA_RINGTONE_DEFAULT_UR

[android-developers] Re: Two applications in one Manifest file ?

2009-03-12 Thread Dianne Hackborn
No, you can only have one application tag. Why exactly do you want to have multiple tags? On Thu, Mar 12, 2009 at 9:49 AM, sandy8531 wrote: > > Is it possible to have two application tags () in the > same AndroidManifest.xml file ? > > If yes - is there anything special that needs to be done,

[android-developers] Re: how can I clear a transparent or translucent canvas

2009-03-12 Thread Romain Guy
Argh yes, drawColor(0) is for opaque Canvas, sorry :) On Thu, Mar 12, 2009 at 11:43 AM, Eric wrote: > >> Just call Canvas.drawColor(0). > > That probably won't do much because it uses the default srcover > porterduff mode > > Canvas.drawColor( 0, PorterDuff.Mode.CLEAR ); > > would be better > >

[android-developers] Re: how can I clear a transparent or translucent canvas

2009-03-12 Thread Eric
> Just call Canvas.drawColor(0). That probably won't do much because it uses the default srcover porterduff mode Canvas.drawColor( 0, PorterDuff.Mode.CLEAR ); would be better On Mar 12, 6:47 pm, Romain Guy wrote: > Just call Canvas.drawColor(0). > > > > On Thu, Mar 12, 2009 at 10:35 AM, sebas

[android-developers] Re: Can android application overwrite the volume down/up key's behavior?

2009-03-12 Thread AlCapwn
You can override dispatchKeyEvent which should do the trick. On Mar 12, 1:21 pm, striverwang wrote: > hi, all: > I want to development a application, which want to use volume down, up > key to do something I need. > For example, when the user click the volume up button, a dialog pop- > up. > Can

[android-developers] Re: Slow Scrolling

2009-03-12 Thread AlCapwn
Is there any way to get around the problem of it being non responsive? The lack of feedback to the scroll attempt is very noticeable. On Mar 11, 11:16 pm, Romain Guy wrote: > It's waiting for events in the main events queue. That's pretty normal > to see this. > > > > On Wed, Mar 11, 2009 at 4:0

[android-developers] Re: did someone implement a ScrollView with horizontal scroll support?

2009-03-12 Thread kolbysoft
The code in setScrollXY is not called anywhere in the class, and was old test code to get around the fact that some fields/methods are not available in sub-classes in different packages. It can be and should have been removed, but then again, who has time for that? Michael On Mar 12, 1:44 pm, R

[android-developers] Re: how can I clear a transparent or translucent canvas

2009-03-12 Thread Romain Guy
Just call Canvas.drawColor(0). On Thu, Mar 12, 2009 at 10:35 AM, sebastian wrote: > > Hi > > I am painting some bitmaps onto a transparent canvas, so it is > rendered above the system screen. > > When I draw the next bitmap, I cannot clear the previously drawn one. > How can I "erase" it? > > If

[android-developers] Re: List of private / hidden / system APIs?

2009-03-12 Thread Romain Guy
Hi, Most hidden APIs are used by the framework itself and not by applications. Some applications do use hidden APIs but we definitely want to fix them to compile with the SDK. > But I'm afraid there may be many more which I'm not aware of. Could we > create an exhaustive list of them? I think no

[android-developers] Re: Does Camera API really works ?

2009-03-12 Thread crowcasso
Currently the above code is crashing for me (even after fixing the 3 params instead of 2) when performing takePicture() with a IOException: W/System.err( 1470): java.io.IOException: takePicture failed W/System.err( 1470):at android.hardware.Camera.native_takePicture (Native Method) I've writ

[android-developers] how to build library without optimization in order to properly debug it

2009-03-12 Thread dmitry
hi, I'm trying to debug native library (in particular, libril.so). Everythig is going fine, breakpoint is being hit, I can go thru the lines of RIL_onRequestComplete() function. But when I tried to print out particular struct I got, (gdb) print pRI $2 = (gdb) print pRI->pCI $3 = (android::._115

[android-developers] List of private / hidden / system APIs?

2009-03-12 Thread brian.schim...@googlemail.com
In this post http://groups.google.com/group/android-developers/browse_thread/thread/bedd7b2dcfad5e97/6257106b3d301527 i've read about all that stuff about private APIs which are annotated with @Hide. The presence of hidden APIs is not as well-known as the "All Apps are equal"-mantra, but I think

[android-developers] How Can I draw a line following a street?

2009-03-12 Thread Maximiliano Potje Geraldo
Hi, In my application, I have just one GeoPoint at my map, and a I want to draw a line in the street, the GeoPoint will be in the center, and 1 mile to tup and 1 mile to down, for example. But, the street can have a curve, or something like that. So, my doubts: 1) How can I get\calculate the p

[android-developers] Can android application overwrite the volume down/up key's behavior?

2009-03-12 Thread striverwang
hi, all: I want to development a application, which want to use volume down, up key to do something I need. For example, when the user click the volume up button, a dialog pop- up. Can I do that ? --~--~-~--~~~---~--~~ You received this message because you are sub

[android-developers] android camera changing sensor orientation?

2009-03-12 Thread Lukasz Mosdorf
Hi all I am developing an application which uses a live camera preview. At the same activity I am using camera preview and sensors (accelerometers). After this activity is closed and entered again the sensors are flipped. It looks like the screen orientation changes(but it can’t be seen at camera-

[android-developers] how can I clear a transparent or translucent canvas

2009-03-12 Thread sebastian
Hi I am painting some bitmaps onto a transparent canvas, so it is rendered above the system screen. When I draw the next bitmap, I cannot clear the previously drawn one. How can I "erase" it? If I could capture the initial canvas would be fine...because I could paint always that before drawing

[android-developers] How to lighten LED in key driver, when user press any KEY.

2009-03-12 Thread linlone9
hi, In G1 phone, when user press any KEY, the LED that be as backlight of "HOME" KEY, will be lightened. I check Android source codes, and want to know how to lighten the LED in key driver, but, don't find any clue. I have checked following source codes: -- kern

[android-developers] Re: How delete a particular call log from call log list

2009-03-12 Thread Eric
You need to iterate through your Cursor and get the _id values of the entries you want to delete (the ones who number starts with + or 00). Then you can delete that individual entries. // assume the row you want to delete has an _id value of 2 getContentResolver().delete(delUri, "_id=2", null)

[android-developers] How to place focus in child view of list row?

2009-03-12 Thread Oleksiy Kokachev
Hi.. I have ListView, where each row contains two edittext boxes. I'd like on list item selected(using Dpad) place focus on first edittext box. I tried the following code, but it does not work: ListView list = (ListView) findViewById(R.id.list); OnItemClickListener click_listener = new OnItemClick

[android-developers] Re: Learning JAVA

2009-03-12 Thread Oliver Dunkl
* JonnySnip3r wrote on 11 Mar 2009: > public class android extends Activity { ^^^ Is the name of the class exactly the same name of the file? Because the name of the file has to be exactly the same as the class. odi -- The question of whether

[android-developers] Can I use PC to control G1 Phone?

2009-03-12 Thread Handy_Zhou
I want to develop an Agent on G1 ,so I can use PC to control a Gphone ,which likes LogMeIn Rescue+Mobile.After the user click the Keyboard,The character is transmited to the Gphone,I want the screen to be changed corresponding. It seems the character make the screen changed.Is there APIs to hel

[android-developers] Layout Problem Listview in Scrollview

2009-03-12 Thread guruk
Hi, (sorry if this mail is twice, but i dont see my first posting online:) I have a Scrollview with an Gallery at the top, bellow two lines textview and a Listview) 1. Problem. Listview with height=Fill_parent or wrap_content does not work (it only shows me a tiny part of the listview) So i did

[android-developers] Can I use PC to control G1 Phone?

2009-03-12 Thread Handy_Zhou
I want to develop an Agent on G1 ,so I can use PC to control a Gphone ,which likes LogMeIn Rescue+Mobile.After the user click the Keyboard,The character is transmited to the Gphone,I want the screen to be changed corresponding. It seems the character make the screen changed.Is there APIs to hel

[android-developers] cannot compile source with OoO issue.

2009-03-12 Thread Sandy
Hi All I experienced one issue when I try to build my app. java.lang.OutOfMemoryError: Java heap space : at com.android.dx.ssa.SsaMethod.getGoto(Ssa Method.java :231) .. ... Thanks Sandy --~--~-~--~~~---~--~~ You received this message b

[android-developers] Re: Learning JAVA

2009-03-12 Thread wj chen
Hi: You might want to check if the ADT plug-in for Eclipse is in place. Please refer to the installation guide for more detail: http://developer.android.com/sdk/1.1_r1/installing.html Thanks, wjcs On Wed, Mar 11, 2009 at 9:58 PM, JonnySnip3r wrote: > > Hey guys was wondering if you could help

[android-developers] Code to Control Internet Connections - like Togga

2009-03-12 Thread simonc
Hey, Does anyone have the code for Togga's internet connection create / destroy? I'm creating an app that needs to open an internet connection for a little bit then close it again. My app works if I use Togga to open the internet connection then I run my App then I use togga to close the internet

[android-developers] Switch the language of all app dynamically!

2009-03-12 Thread Stephen Le
Hi all: I must change en_US Locale into zh_CH dynamically(Like user choose it). I writed a demo where the code is following: public void onClick(View v){ Resources resource=super.getResources(); Configuration cf=resource.getConfiguration(); DisplayMetrics dm =resource.getDisplayMe

[android-developers] How to place focus in child view of list row?

2009-03-12 Thread Oleksiy Kokachev
Hi.. I have ListView, where each row contains two edittext boxes. I'd like on list item selected(using Dpad) place focus on first edittext box. I tried the following code, but it does not work: ListView list = (ListView) findViewById(R.id.list); OnItemClickListener click_listener = new OnItemClick

[android-developers] Stream Player with jsp website

2009-03-12 Thread Edwin
I have written an Android Program that get the video from a jsp web. Basically, the jsp will return a movie to the client, in this case, the client is Android. I can get the movie in the browser. Then, I set the this path to mediaplayer by mp.setDataSource(path). Then prepare it, exception is thr

[android-developers] Layout Problem Listview in Scrollview

2009-03-12 Thread guruk
Hi, I have a listview, there in the top is a gallery and two lines of text, than follows my listview. The problem ist, when i say height in listview = fill_parent or wrap_content and i have lets say 30 items in the listview, only the first List Item is shown (it does not fill the screen, or show a

[android-developers] Not able to start API demos.

2009-03-12 Thread googlekid
Hi I had to recompile my kernel for some development purpose and after the recompile the normal .img files from the SDK would not boot up and gave some errors . i have already posted them here http://groups.google.com/group/android-platform/browse_thread/thread/521797fdef2ce628/b8efe72b76486e82?

  1   2   >