[android-developers] Re: getting CPU usage and memory usage of a particular process

2010-01-05 Thread Christophe Paoutoff
Hi As far as I know there is no api to get cpu usage in android. I suggest you to lookup that by invoking linux 'top' command based on the pid process number. Be aware on memory charge then launch external cmd within apps. BR Chris On 23 déc 2009, 07:20, Raghu Kiran arkiran...@gmail.com wrote:

[android-developers] System Calls in Android

2010-01-05 Thread perumal316
Hi, Is there any way I can find out the system calls invoked by Android for specific tasks? For example, for writing/deleting contacts or writing/deleting SMS what are the Linux system calls invoked by Android for these tasks? I can't find any links explaining on this. Thanks in Advance,

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2010-01-05 Thread Mariano Kamp
Rory, where did you get the ah information from? Is there any documentation on the actual Google service behind this? I checked the Android 2.0 Calendar and Contacts app and they only seem to use a homegrown mechanism. Maybe better luck with Android 2.1? Cheers, Mariano On Dec 3 2009, 9:59 pm,

[android-developers] how to simulate low memory condition on the device or emulator.

2010-01-05 Thread cht
for the developer, we must to deal with the low memory exception. when other applications run forground, sometimes our application will be killed for low memory reason . so we have to test our application's performance under this condition. but it is not easy to case a low memory condition. is

[android-developers] Re: Start and Stop music on application launch and stop

2010-01-05 Thread tobias429
Hi Hassan, You can use the onPause() and onResume() functions for this. Just override the original functions and place the code to start your sound in onResume() and the code to stop your sound in onPause(). In case you have several activities that can be independently started and stopped, I'd

[android-developers] File creation problem in Android source build

2010-01-05 Thread Arun
Hi , I am trying to create a file in android framework using the following snippet of code :- public void CreateMyFile() { try { String destination = /data/hellothere.txt; File fileCon= new File(destination); if( ! fileCon.exists() ){ fileCon.createNewFile(); } } catch

[android-developers] Re: File creation problem in Android source build

2010-01-05 Thread Derek
does the below permission help? android.permission.WRITE_EXTERNAL_STORAGE On Jan 5, 9:54 am, Arun achoudhary2...@gmail.com wrote: Hi , I am trying to create a file in android framework using the following snippet of code :- public void CreateMyFile()     { try { String destination =

[android-developers] Platform Eclair is a preview and requires appication manifests to set minSdkVersion to 'Eclair'

2010-01-05 Thread skan95
Dear All. I will try to modify native Camera package in Eclipse. So, I make Camera project in Eclipse and try to compile it. But, Platform Eclair is a preview and requires appication manifests to set minSdkVersion to 'Eclair' error message is shown. Does it mean minSdkVersion information should

Re: [android-developers] Re: Start and Stop music on application launch and stop

2010-01-05 Thread Hassan Imtiaz
Thanks Tobias, Actually in my activities there is an activity that i am using through jar file and when i press home button of device at that particular activity, application is paused but there is no way i can override the onpause() function of that activity to stop music.So how can i stop music

[android-developers] Telephony.SECRET_CODE

2010-01-05 Thread Master_Ne0
Hi, been looking at the android code and wanted to know if it was possible to use the secret code for SDK applications or was it only reserved for system apps? System settings has this in the manifest receiver android:name=TestingSettingsBroadcastReceiver intent-filter

[android-developers] MapView Overlay problem

2010-01-05 Thread Stefan
hello, i have an activity with a MapView ad overlays. If i start a new activity and go back to my Activity with the map, i only see the map without my overlays. How can i save my overlays?? The mapView.onSaveInstanceState() does not save the overlays, does it? Or have i implement something wrong

[android-developers] Re: File creation problem in Android source build

2010-01-05 Thread Master_Ne0
You can't write an app that can create a file in the Data directory, unless your device is rooted. You might be better off posting in the platform group if your trying to modify the framework, as this group is for Android developers, not contributes. Ne0 On Jan 5, 10:15 am, Derek

[android-developers] Re: ListActivity not updating on Database update.

2010-01-05 Thread mac-systems
I tried it, but i get a empty cursor doing it because my Listactivity show the empty message. I already wondering about that. Anyone else ? Thx, Jens On 5 Jan., 08:27, Hjcheon hjch...@gmail.com wrote: -Original Message- From: Lance Nanek lna...@gmail.com Sent: Tuesday, January 05,

[android-developers] Re: How to downgrade T-Mobile G1 from Donut to Cupcake?

2010-01-05 Thread Stefan Klumpp
Most likely you will find the information you need on: http://theunlockr.com/ On Dec 18 2009, 5:03 pm, Greivin Lopez greivin.lo...@gmail.com wrote: Hi, I need to supportAndroid1.5 (Cupcake) for my application but I don't have any 1.5 device.  I currently have a Motorola Droid with 2.0.1 and

[android-developers] Led notification on Motorola Milestone

2010-01-05 Thread Pablo Szyrko
Hi all, I'm dealing with an issue related with notifications. My application shows led notification for some events, but it isn't working in the Motorola Milestone (i'm not sure if it doesn't work in the Motorola DROID also). Led notifications are shown in HTC Hero, Magic and G1 This is my code:

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Master_Ne0
I also had this problem, i had to save the overlay locations to the outstate bundle then add them again onResume. Couldn't figure a way to save my overlay class to bundle. Let me know if you find a better workaround. Ne0 On Jan 5, 11:59 am, Stefan ebay-dah...@web.de wrote: hello, i have an

[android-developers] Re: How to downgrade T-Mobile G1 from Donut to Cupcake?

2010-01-05 Thread Master_Ne0
I would get it from here http://developer.htc.com/adp.html. Though you will need to root your G1 first, xda-developers will help you do that. Ne0 On Jan 5, 12:05 pm, Stefan Klumpp stefan.klu...@gmail.com wrote: Most likely you will find the information you need on:http://theunlockr.com/ On

[android-developers] Re: Sending market link in mail

2010-01-05 Thread sheik
hello developers , help me on this issue .. thanks.. On Jan 5, 11:36 am, sheik sheik...@gmail.com wrote: Hi , i wanna know is it possible to send market link(market://details? id=packge_name) in the mail , that would direct user to the application(in android market). i was not able to send

Re: [android-developers] System Calls in Android

2010-01-05 Thread Mark Murphy
Hi, Is there any way I can find out the system calls invoked by Android for specific tasks? For example, for writing/deleting contacts or writing/deleting SMS what are the Linux system calls invoked by Android for these tasks? I can't find any links explaining on this. You would have to

[android-developers] Re: Menu Item Name

2010-01-05 Thread tobias429
Hi, menu.add() returns the menu item that was created. You can create a global variable, assign the returned menu to this global variable, and then access this any time you like. E.g.: In your global variable definitions, add: MenuItem startMenu; in onCreateOptionsMenu() you add:

[android-developers] Re: ListActivity not updating on Database update.

2010-01-05 Thread mac-systems
I just figured out that if i write the setActive Method like this i see a update, but i have duplicated Code: private void setActive(final boolean _state) { final ISelectedDAO dao = DAOFactory.getSelectedDAO(this); dao.setActiv(getSelectedItemId(),

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
On Jan 5, 1:16 pm, Master_Ne0 master.ne0s.soluti...@googlemail.com wrote: I also had this problem, i had to save the overlay locations to the outstate bundle then add them again onResume. Couldn't figure a way to save my overlay class to bundle. Let me know if you find a better workaround.

[android-developers] Get supported media types ( programatically)

2010-01-05 Thread Dilli
Hi all how to get the supported media types of a device because all android devices not support all media formats i behave my app based on supported media types how can i get that information Any ideas Thank you Dilli -- You received this message because you are subscribed to the Google

[android-developers] Pass key events through transparent activity

2010-01-05 Thread abarinoff
My application has transparent activity which is shown over the Incoming Call activity when the call is received. In HTC Hero the Incoming Call screen has two buttons Accept and Decline but when my transparent activity is displayed user can see those buttons bu can't press them as all key events

Re: [android-developers] Pass key events through transparent activity

2010-01-05 Thread Mark Murphy
Probably there is some possibility to pass key events to the underlying activity ? I do not believe so, other than by eliminating your activity. Or probably it is possible to add some view to the screen without creating new activity ? No, except perhaps by firmware modifications. -- Mark

[android-developers] Re: Null pointer exception

2010-01-05 Thread JasonMP
Ok, I tried gino's idea with initializing my arrays differently. I also changed there names so that they did not share a name with any other arrays in my app: Did not work. I also tried calling to static variables instead of passing variables between classes with intents: This also did not

[android-developers] Re: Where can I get adds for my application?

2010-01-05 Thread Michael Chips
Vladimir Some info and statistic about Quattro Wireless you can read here: http://habrahabr.ru/blogs/android/76267/ (russian) -- 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] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Pawel Kapala
Hello! It seems you're leaking the service connection in some way. Try doing some logging after you bind and before you unbind to the service, to see if you have unbound where needed (i.e. Activity.onDestroy). I guess, in your case, when you restart the activity 1, without previous unbind, the

[android-developers] Menu always Displayable

2010-01-05 Thread Nithin
Hi, I want options menu should always display, when I open my application, for that I put openOptionsMenu(), in onCreate() of the launcher activity. But its showing exception. --android.view.WindowManager$BadTokenException: Unable to add window -- token n ull is not valid; is your activity

Re: [android-developers] Maps API in paid App

2010-01-05 Thread TreKing
I think you're reading the wrong TOS. When you sign up for a developer API key for Android (http://code.google.com/android/add-ons/google-apis/maps-api-signup.html) there is a a different TOS, which states: 5.4. Subject to these Terms, you may develop, display and/or distribute your Maps API

[android-developers] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Beth
Yep, based on your description it sounds like Activity 1 is already running and bound to the Service when you call it from Activity 2. There's your leak. See if you can put a test in Activity 1 before you bind to the service. If it is already running the service and bound, don't do it again.

[android-developers] Re: Led notification on Motorola Milestone

2010-01-05 Thread Beth
To define your own color and pattern, define a value for the ledARGB field (for the color)... from http://developer.android.com/guide/topics/ui/notifiers/notifications.html Regards, Beth On Jan 5, 7:14 am, Pablo Szyrko pablo.szy...@gmail.com wrote: Hi all, I'm dealing with an issue related

[android-developers] Re: ListActivity not updating on Database update.

2010-01-05 Thread Beth
Hmmm - not sure you want to call this method more than once. setListAdapter(shows); Set the adapter once, when you create the list. Requery the list's cursor as needed. If you use a cursor adapter you may never have to requery manually. Good luck! On Jan 5, 7:42 am,

[android-developers] Re: Earn Unlimited income

2010-01-05 Thread jayakumaran . b
Wanted Internet job workers. You can earn $750- $1000 daily. These are genuine Internet jobs. Only serious enquires please. For more details visit : https://time2rich.com/jayavithya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)

2010-01-05 Thread Moritzz
I now tried to get some more information but nothing I found helped so far. I also tried to encircle it some more but it won't work. Does nobody have an idea or sthg? Cheers Moritz On Jan 4, 9:51 pm, Moritzz moritz...@googlemail.com wrote: I forgot to add that after this message, the widget is

[android-developers] Redirect in WebView

2010-01-05 Thread nikhil
I am trying to open a URL using a webview. This URL redirects itself to another page. For some reason the redirect doesnot open up inside the webview. It just opens up into a new browser. Is there some setting in the webview control that can prevent this from happening? -- You received this

[android-developers] Re: Earn Unlimited income

2010-01-05 Thread jayakumaran . b
Wanted Internet job workers. You can earn $750- $1000 daily. These are genuine Internet jobs. Only serious enquires please. For more details visit : https://time2rich.com/jayavithya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Keeping Map API keys in sync across a dev team

2010-01-05 Thread Carl Whalley
When an app which uses the Map API is released it must be signed with the public cert. For individual use the key comes from the local debug keystore, created each time the Android SDK is installed. In other words, its different for each developer. When I include a view using it, then commit, my

Re: [android-developers] Keeping Map API keys in sync across a dev team

2010-01-05 Thread TreKing
Actually, it is possible to get the same debug key. I alternate work between a PC and laptop and originally had two different debug keys when I first started. A while ago I move the SDK folder to lie withing my root project tree (so I could commit it to revision control, share AVDs across

[android-developers] Re: Problems with the JavaBinder (!!! FAILED BINDER TRANSACTION!!!)

2010-01-05 Thread Albert
The problem is probably that the images are too big and android cant handle it. Try this solution I used when I had the same problem: http://groups.google.com/group/android-developers/browse_thread/thread/6e9f1d7541871a11/49e961dd26ea544e#49e961dd26ea544e Hope it helps, Alberto On Jan 5, 4:17 

Re: [android-developers] installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY

2010-01-05 Thread TreKing
Are you using a build target that has the Google Add Ons? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking On Tue, Jan 5, 2010

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing
Couldn't figure a way to save my overlay class to bundle Have your Overlay class implement the Parceable interface, which you can then save to / restore from a Bundle. - TreKing - Chicago transit

[android-developers] Re: ServiceConnectionLeaked warning

2010-01-05 Thread Mike Collins
Well, there is exactly one place where the code binds and exactly one place where it unbinds. The binding is shared between the activities activity 1 does a bind on create and unbind on destroy. Breakpoints and logging indicate that exactly one bind is called and no unbinds are called during the

[android-developers] Re: Maps API in paid App

2010-01-05 Thread jotobjects
Well I know the next reply will be hire an attorney and don't ask us on this list but here goes anyway. :-) Doesn't the Android Maps API TOS refer to and incorporate the general Google Maps API TOS (with the prohibition about charging for the app)? That is the way I read it. However if people

Re: [android-developers] Re: Maps API in paid App

2010-01-05 Thread TreKing
Doesn't the Android Maps API TOS refer to and incorporate the general Google Maps API TOS (with the prohibition about charging for the app)? I don't think so ... Section 1.2: 1.2. Unless otherwise agreed in writing with Google, the Terms will include the following: 1) the terms and

[android-developers] FLAG_CANCEL_CURRENT or FLAG_UPDATE_CURRENT

2010-01-05 Thread Beth Mezias
hello friends... My app sets a repeating alarm and based on user interaction, it might need to change the time set for the broadcast with AlarmManager. It will repeat on the same interval. There is not much in the way of extras. Is the update or cancel flag better in this case? Thanks and

[android-developers] Re: Reliable GPS location

2010-01-05 Thread Daan
You can use Location.getTime() this returns the UTC time of this fix, in milliseconds since January 1, 1970. Then you could get the current time and compare it to see if you find it accurate enough. On Jan 4, 10:14 pm, Lance Nanek lna...@gmail.com wrote: You can call Location#getTime to see

[android-developers] Re: Android development with PHP

2010-01-05 Thread Daan
I am using something similar. I have a PHP script online, I give my parameters by using $_GET, then I let my PHP do the work and write my output to an XML code which I read again on Android. Small sample: //Creating URL URL cUrl = null; String url = http://www.link.com?paramater=hi;; try {

[android-developers] Ecosnoop, no.. i want SnoopBigbrother

2010-01-05 Thread gremlin
I would like to request an app that is inspired by an app that was brought to my attention that’s for the i-phone and i-touch. The app goes by the name of “ecosnoop”, www.ecosnoop.com . What I propose is an app such as “Bigbrother snoop”. The most uneasy feeling one can give bigbrother is to

[android-developers] Simple Launching of an app with an Intent

2010-01-05 Thread 52x15
Hello, Thanks in advance for the help. I'm both new and trying to launch the native music player from my application. I've searched and read all over the mailing list (and web) for help with this. The best I've managed is to launch the music player to show a list of songs (that the selection can

[android-developers] Re: Debugging the framework

2010-01-05 Thread Joe Onorato
The KeyInputQueue runs in the system process, and your test app runs in its own process. You need to connect two debuggers. When I debug this code, I usually use Log.d debugging instead, because while possible, connecting two debuggers is kind of a pain. -joe On Jan 4, 6:46 am, Matan

[android-developers] Possible to awake the phone by touching the screen?

2010-01-05 Thread Nazgulled
Hi, As an heads-up, I'm an amateur developer and a university student in the area but I have not knowledge at all about Android development. I haven't yet had the time to start looking at the SDK and documentation. However, I have an idea for an app that I would like to try and develop for

[android-developers] Crash in com.android.browser on Cupcake(1.5)

2010-01-05 Thread Vikram
Hi, I saw a crash in browser on Cupcake(1.5). There is no proper procedure for reproducing this crash. I was just browsing through different web pages when suddenly the browser crashed. The last time I saw the crash I was trying to browse www.alleyinsider.com. The crash doesn't happen all the

[android-developers] UI design for Board Game

2010-01-05 Thread prakhy
Hi, I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to find the coordinates for image and need to move the required images to specifies coordinates. Is there any andorid

[android-developers] CFP: 2nd International Workshop on GCC Research Opportunities (GROW'10)

2010-01-05 Thread John Martin
Apologies if you receive multiple copies of this call. CALL FOR PARTICIPATION 2nd Workshop on GCC Research Opportunities

[android-developers] Re: Debugging the framework

2010-01-05 Thread Matan
any idea? On Jan 4, 4:46 pm, Matan matanshap...@gmail.com wrote: Hi, I did the following: Modified frameworks/base/services/java/com/android/server/ KeyInputQueue.java and flashed it to my G1. Rebuilt Deployed to the G1 Created a demo test app Started debugging the demo app from Eclipse

[android-developers] Unable to figure out what WindowManagerservice and PhoneWindowManager difference

2010-01-05 Thread Kunal
Hi, The PhoneWindowManager implements WindowManagerPolicy while the WindowManagerService also implements the WindowState of the WindowManagerPolicy Can somebody provide me with the inputs of how PhoneWindowManager and WindowManagerService be differentiated? Thanks, Kunal -- You received this

[android-developers] Modify XML Layout using classes

2010-01-05 Thread Daan
I am trying to change the order of views. The views should get into into a specific order according to the user's preferences. So let's say I have three text-views in a linear-layout, how can I can I change the order so Android will show the text-views in a different order thans declared in the

[android-developers] Re: Emulator error after upgrade to win7

2010-01-05 Thread Piotr Buła
I'm having the same problem, I recently updated SDK to the newest version and I get the same error. I'm using Ubuntu 9.10 (64-bit) and I get that error for 1.5 sdk. 1.6 and 2.0 work fine. Any ideas? On 4 Sty, 13:53, Tim Ellison t.p.elli...@gmail.com wrote: I have the same issue Mark.  Did you

[android-developers] Designing a UI for Board Game

2010-01-05 Thread prakhy
Hi, I need to design a board UI using android platform. i was planning to take one image as board and moving the required images over the board. How do i achieve the same? I need to find the coordinates for image and need to move the required images to specifies coordinates. Is there any andorid

[android-developers] Nine patch pre-scaling on Hdpi

2010-01-05 Thread Pixie
Hello everyone, I have some 9-patch images on my app, and they work great on the medium density. When I load the app on a High density emulator/device, these images look grainy. It happens only to 9-patch images. The others look great after the pre- scaling. Is there a way to make them look good

[android-developers] Remote phone state notifications on outgoing calls

2010-01-05 Thread monty
hey how do i receive a remotes phone state notification when i make an outgoing call ..so that i know if he has accepted the call or has rejected it(Basically i m tryin to monitor outgoing calls as it is made).This is so that i can get the call duration bet the 2 phones.I m trying to use sdk 1.6

[android-developers] Re: Why is my eclipse up to date with 2.0.1 but no android tools appear in the UI?

2010-01-05 Thread Daan
I am on Windows 7 too, but didn't have any problem installing the Android SDK. Try watching this video http://www.youtube.com/watch?v=lqPfi6N4iEY and see if you missed out any steps. It's Windows XP, but it doesn't matter it works the same as Vista and 7. On Jan 4, 11:24 pm, ClarkBattle

[android-developers] Failed resolving Ljavax/activation/DataHandler; interface 172 'Ljava/awt/datatransfer/Transferable;'

2010-01-05 Thread Droidaholic
I'm trying to write a simple app to access my mail inbox, check if there is any new mail and open that meail. the source code for POP3 mail is from http://forums.sun.com/thread.jspa?threadID=5267916, then add mail.jar, activation.jar to my project. I managed to compile and run the app on Google

[android-developers] setActualDefaultRingtoneUri from android.resources

2010-01-05 Thread Olivier Boite
Hi, I try to set a resource sound as notification ringtone. I've added the permission WRITE_SETTINGS in the androidmanifest file, then in my main class I've hadded the following. Uri mUri = Uri.parse(android.resource:// + mPackageName + /raw/ + mSoundFileName);

[android-developers] Re: ADT Plugin for Exlipse installation fails

2010-01-05 Thread Manimal
I added http://download.eclipse.org/releases/galileo/' so the list of updates sites and i get No repository found at http://download.eclipse.org/releases/galileo.; I'm also not able to install the ADT. On Dec 7 2009, 5:55 am, Mikael mikaelmoha...@gmail.com wrote: Hi, I had the same problem

[android-developers] Problem in Accessing 2.9 MB Database from Apps

2010-01-05 Thread Vish
Hii All, I am Having 2.9 MB Database given by client. I know that Android don't Support data more than 1.1 MB So I Spilt DB into 3 Parts of 1.1 MB . Now when I am going to Read these Database from my Apps then it is Saying that Database Malformed and the Desired tables are not shown there.So if

[android-developers] Re: Is there a limit in the rtsp redirect

2010-01-05 Thread Mark
-After 1.5 I think the limit was set at 3 redirects, this limit will be raised in future releases to 8 I believe. So for a 1.5 device there wouldnt be a problem on pages with redirects, I have a 1.6 and I am having a ton of problems opening up a site that has redirects (data connectivity problem;

[android-developers] Virtual keyboard hiding content

2010-01-05 Thread GreenRob
Hi, is there a way to somehow move the content from an activity up when the virtual keyboard slides out? I have seen this functionality in some apps like eg. chomp sms. The problem is that an app can be pretty hard to control if the keyboard hides certain parts of an activities ui. Thanks

RE: [android-developers] Menu always Displayable

2010-01-05 Thread Guna
Nithin, If you want to display Menu always means, just design your own layout same like menu and use that.. Guna -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Nithin Sent: 05 January 2010 20:57 To: Android

[android-developers] Mixed Language Apps

2010-01-05 Thread 48-New
Would appreciate if anybody can give me some pointers on how to mixed different language in an android app? For example, mixing displaying English along w/ Spanish, or Chinese by using Unicode for the Spanish or Chinese characters. I have searched the post in this group but doesn't seem to find

[android-developers] Call state events for multiple participants

2010-01-05 Thread Darren Hinderer
I'm working on an application where I'm monitoring the Android call state. I've spent a lot of time working with and researching the available call state that comes from TelephonyManager. It does not seem to provide enough information to understand the call state for multiple callers. For

[android-developers] Kernel git tree docs

2010-01-05 Thread mcgrof
There are 5 kernel git trees over at: http://android.git.kernel.org/ kernel/common.git Common Android Kernel Tree kernel/experimental.git Experimental Kernel Projects kernel/linux-2.6.git Mirror of git://git.kernel... kernel/lk.git (L)ittle (K)ernel bootloader

[android-developers] Re: Contact Picking on Motorola Cliq (1.5)?

2010-01-05 Thread Joe Jack
My phone was doing this and I did Master Reset an I think this has fixed it. The error message I was getting went as SORRY process com.motorola.blur.friendfeed will now foreclose, or something similar! Hope this helps.Reset instructions are as follows. Please keep in mind I'm not an expert and

[android-developers] Start new activity in TAB

2010-01-05 Thread smyl
i am working on a travelling application and i am using tabs and each tab has an activity i.e world clock in one tab ,weather data in another tab and so on with in the weather tab i am displaying the users selected cities and the scenario is that when the user selects a city that city's

[android-developers] How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
Hi, I have a linear layout like this: LinearLayout android:id=@+id/header android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal android:gravity=center_vertical ImageView android:id=@+id/icon

[android-developers] Re: Clickable hyperlinks in AlertDialog

2010-01-05 Thread Thilo-Alexander Ginkel
On Jan 4, 7:55 am, Tommy Hartz to...@webpro.com wrote: you can set the android:autoLink=all or whatever attribute you need in place of all So, to sum things up there is no way around using a custom TextView. I am currently using the following code successfully, which I am including for the

[android-developers] Heads up!

2010-01-05 Thread Wayne Wenthin
It’s inaccurate to say Google designed the phone (points to HTC CEO). [Google] is just merchandising it online. Everybody will get 2.1 when it’s open source, within a couple of days. -- Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl

[android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Beth
The problem may be that the TextView atitle has android:layout_width=fill_parent. Try setting it to wrap_content and see if you get better results. Regards, Beth On Jan 5, 1:57 pm, n179911 n179...@gmail.com wrote: Hi, I have a linear layout like this: LinearLayout android:id=@+id/header  

[android-developers] listview borders

2010-01-05 Thread Engin Arslan
Hi, how can i remove borders in listview. i want a flat listview there wont be any divider between two listview items. any suggestion?? Best Regards -- 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] List with image items

2010-01-05 Thread Iroid
Hello all, I have a list that shows items containing text and image. I have to download the images from the remote server and show as list item. things are working fine. The real problem is my list could have around 100 list items and each item has image downloaded from remote server. It is giving

[android-developers] Re: Start new activity in TAB

2010-01-05 Thread jotobjects
Unless the Activities that you want to show under the tabs are activities in the same application you may run into the problem described here regarding TabWidget - http://groups.google.com/group/android-beginners/msg/17c95a6881e1dfe4 On Jan 5, 5:50 am, smyl smy...@gmail.com wrote: i am working

[android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread Iroid
set the layout weight of TextView to 1. TextView android:id=@+id/atitle android:singleLine=true android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight= 1 / /LinearLayout On

Re: [android-developers] Mixed Language Apps

2010-01-05 Thread Frank Weiss
It's not clear what you're asking. Java strings are UCS-16. Are asking about mixed localization of button labels? Please more details. On Jan 5, 2010 10:53 AM, 48-New courag...@gmail.com wrote: Would appreciate if anybody can give me some pointers on how to mixed different language in an android

[android-developers] Re: Why is my eclipse up to date with 2.0.1 but no android tools appear in the UI?

2010-01-05 Thread ClarkBattle
Apparently this is a common issue with Windows 7 and eclipse plugins. Eclipse does not like having more than one plug in at a time on Windows 7. Doing so may or may not work depending on how astrological constellations align with the mating cycle of the Australian Gypsy Moth. The solution is to

[android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread pcm2a
These phones are on sale with 2.1 Os on them right now. My friend just ordered two with overnight shipping. How is it even remotely acceptable that people will have 2.1 in their hands before developers even get to touch the SDK? I already have users using the Nexis-Droid 2.1 rom saying that my

Re: [android-developers] Re: How can I add a button to a linear layout 'right justified'

2010-01-05 Thread n179911
On Tue, Jan 5, 2010 at 11:30 AM, Iroid irfan.f.k...@gmail.com wrote: set the layout weight of TextView to 1. TextView android:id=@+id/atitle                android:singleLine=true                android:layout_width=fill_parent                android:layout_height=wrap_content                

Re: [android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Wayne Wenthin
Welcome to developing on Android. This is round 2.5 1.6 came out just days before. 2.0 came out on the droid before developers (well most of us) got to see it and now this.It's almost like Google doesn't want us to develop for Android. On Tue, Jan 5, 2010 at 12:10 PM, pcm2a

[android-developers] Re: Mixed Language Apps

2010-01-05 Thread 48-New
Sorry for the confusion. Yes, correct, mixing localization in any strings, not necessary button labels, any place that text can be displayed, such as check boxes, text fields, radio buttons, etc. For example, I want to display English characters in 1 button label / text field, and Chinese

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
On Jan 5, 6:48 pm, TreKing treking...@gmail.com wrote: Couldn't figure a way to save my overlay class to bundle Have your Overlay class implement the Parceable interface, which you can then save to / restore from a Bundle. hmmm, in my case i have always a new overlay for each line on my

Re: [android-developers] Re: Mixed Language Apps

2010-01-05 Thread Frank Weiss
I'm assuming that you don't need to be able to switch the application between languages. Just put the Unicode text you want into the code or the layout or strings XML resource files. On Tue, Jan 5, 2010 at 12:22 PM, 48-New courag...@gmail.com wrote: Sorry for the confusion. Yes, correct,

Re: [android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Dan Sherman
Yep, getting tougher and tougher... Ensuring compatability of our 6 games, in under a week, while doing this in our spare time, gets pretty tough... On Tue, Jan 5, 2010 at 3:16 PM, Wayne Wenthin wa...@fuligin.com wrote: Welcome to developing on Android. This is round 2.5 1.6 came out just

Re: [android-developers] Re: Mixed Language Apps

2010-01-05 Thread Frank Weiss
P.S. I don't think you really meant mix localizations. Unicode allows you to mix characters from any language in a document. However, bidi (direction of the text) can be tricky. On Tue, Jan 5, 2010 at 12:36 PM, Frank Weiss fewe...@gmail.com wrote: I'm assuming that you don't need to be able to

Re: [android-developers] Nexus 2.1 one sale, WHERE is the SDK!

2010-01-05 Thread Greg Donald
On Tue, Jan 5, 2010 at 2:16 PM, Wayne Wenthin wa...@fuligin.com wrote: Welcome to developing on Android.   This is round 2.5   1.6 came out just days before.  2.0 came out on the droid before developers (well most of us) got to see it and now this.    It's almost like Google doesn't want us to

[android-developers] Re: Designing a UI for Board Game

2010-01-05 Thread Lance Nanek
One way to do it is to have the game pieces be Drawable instances. Those can be positioned using the setBounds method: http://developer.android.com/intl/zh-TW/reference/android/graphics/drawable/Drawable.html#setBounds%28android.graphics.Rect%29 And drawn to a Canvas using the draw method:

[android-developers] Re: List with image items

2010-01-05 Thread Brion Emde
You would have to do memory management on your list, if you plan to keep all those images in memory. The list view knows which views are exposed and which aren't. You'd have to re-fetch any views you deleted to keep within memory limits. You could cache you images in the local file system or in a

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing
I'm sorry, but I'm not really following or understanding what you're doing. Could you clarify or post some sample code? - TreKing - Chicago transit tracking app for Android-powered devices

[android-developers] Re: Possible to awake the phone by touching the screen?

2010-01-05 Thread schwiz
I don't think its possible, plus its a horrible idea cause it would unlock the phone everytime you put it in your pocket. On Jan 4, 8:25 pm, Nazgulled mas...@ricardoamaral.net wrote: Hi, As an heads-up, I'm an amateur developer and a university student in the area but I have not knowledge at

[android-developers] Resource not found errors for images referred to in a button image selector xml file

2010-01-05 Thread OldSkoolMark
My 1.6 app works fine in both portrait and landscape modes on the default HVGA device. I'm now trying to support it on QVGA devices and am encountering build-time errors I don't understand. In my res/drawable-ldpi directory I have: startstopin.png startstopout.png and a selector file

[android-developers] Re: UI design for Board Game

2010-01-05 Thread schwiz
yeah should be fairly easy just look into the 2d graphics api, you might check out a book called 'hello android' it has a pretty good chapter on the 2d api. On Jan 5, 12:17 am, prakhy prakhyathhe...@gmail.com wrote: Hi, I need to design a board UI using android platform. i was planning to

  1   2   >