[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-19 Thread EboMike
That is a very bad way of doing it. What if the user presses the HOME button? What if the user goes to a different activity using the notification bar? The camera button? What if it's a device that allows switching activities using a custom button? Relying on a button press to detect the

[android-developers] xml unescape

2009-09-19 Thread rooster 808
Any tools in java/android sdk to unescape a escaped xml string? --~--~-~--~~~---~--~~ 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

[android-developers] Re: SensorEvent value array ownership

2009-09-19 Thread Dianne Hackborn
That sounds dangerous to me (depending on such implementation details). If you need to keep the data around, just copy it into another array you have to hold it. On Fri, Sep 18, 2009 at 8:56 PM, Rud rudmerr...@gmail.com wrote: I can understand the reasoning. My Galactic Guardian game breaks a

[android-developers] Get dimension from R.attr in Java code

2009-09-19 Thread an0
Resources.getDimensionPixelSize (android.R.attr.listPreferredItemHeight) does not work. So how to? And any other way to specify resolution independent dimension values in Java code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: ADC2 entries so far...

2009-09-19 Thread croco
Under Games: Arcade/Action submitted for ADC2 World of Bombs (http://www.zeugame.com/wob2) This Game offers the first Clounding Multiplayer game available on Android and computers It allows you to play easy and fast battles to up 4 players. with any kind configuration whatever you use Android

[android-developers] Re: BaseAdapter.getV iew()’s convertView parameter

2009-09-19 Thread Mark Murphy
Carmen Delessio wrote: Watch this video: http://code.google.com/events/io/sessions/TurboChargeUiAndroidFast.html Check Mark Murphy's book http://commonsware.com/Android/index.html Read several posts here: http://www.androidguys.com/2008/07/14/fancy-listviews-part-one/ Short answer:

[android-developers] taking picture / use camera in android sdk 1.6

2009-09-19 Thread Stefan
Hello, i tried an old(er) example / tutorial to capture a picture from the camera. But android.hardware.CameraDevice; cannot be resolved. Has the name changed or have somebody a good tutorial for android 1.6 and the camera?? Thanks, Stefan PS: If I press a button, I want to open the Camera and

[android-developers] Re: taking picture / use camera in android sdk 1.6

2009-09-19 Thread Mark Murphy
Stefan wrote: Hello, i tried an old(er) example / tutorial to capture a picture from the camera. But android.hardware.CameraDevice; cannot be resolved. Has the name changed or have somebody a good tutorial for android 1.6 and the camera?? Thanks, Stefan PS: If I press a button, I

[android-developers] Re: ADC2 entries so far...

2009-09-19 Thread Hunter Peress
Entertainment. What's Shakin' http://whatsshakin.codejanitor.us/ What's Shakin' is a percussion instrument that feels sounds like an acoustic shaker (shake your phone!) - so good, you can play to LIVE music or songs on your phone. Settings include: sensitivity, number of beads, visualization,

[android-developers] DisplayMetrics issue on Android1.6 SDK

2009-09-19 Thread lianwei
I got a issue with DisplayMetrics.         DisplayMetrics dm = new DisplayMetrics();         getWindowManager().getDefaultDisplay().getMetrics(dm);         Log.d(TEST, dm.widthPixels + x + dm.heightPixels); If I do not specify the uses-sdk android:minSdkVersion=4 / or supports-screens

[android-developers] A bug with android 1.5 when deleting a phone using delete()

2009-09-19 Thread Alex Tang
Test on HTC GPhone, android sdk version is 1.5 Uri uri = Uri.withAppendedPath(Phones.CONTENT_URI, 25); // 25 is known as id of one phone this.getContentResolver().delete(uri, null, null); with exception: 09-19 17:48:35.543: ERROR/JavaBinder(117): *** Uncaught remote exception! (Exceptions

[android-developers] Re: YouTube in the emulator?

2009-09-19 Thread Felix Oghina
Thanks, your Activity is great and I might just use it (I have to speak with a manager - the reason why I used quotes is because he's actually my brother :P). Still, I think an application would be more 'polished' if it was able to launch the standard YouTube application (I'm all for

[android-developers] Re: YouTube in the emulator?

2009-09-19 Thread Felix Oghina
But it's still made by Google, isn't it? So it's standard across all devices? On Sep 19, 2:43 am, Mark Murphy mmur...@commonsware.com wrote: Felix Oghina wrote: How can I get the YouTube application in the emulator? I want to create an application that launches YouTube clips and I need to

[android-developers] Re: ADC2 entries so far...

2009-09-19 Thread Mobidev
This ADC2 entries list is updated and moved to 'Android Discuss' group at: http://groups.google.com/group/android-discuss/browse_thread/thread/b0111088236fb0a3# --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: taking picture / use camera in android sdk 1.6

2009-09-19 Thread Stefan
thanks a lot, the example work fine!! Greets, Stefan On Sep 19, 11:31 am, Mark Murphy mmur...@commonsware.com wrote: Stefan wrote: Hello, i tried an old(er) example / tutorial to capture a picture from the camera. But android.hardware.CameraDevice; cannot be resolved. Has the name

[android-developers] Re: Hero technical question

2009-09-19 Thread Fred Grott(Android Expert)
I would imagine they have to follow the GSM spec for GSM networks.. Fred Grott http://mobilebytes.wordpress.com On Sep 17, 6:43 pm, AndroidKing rbasso...@gmail.com wrote: can you tell me if the  MEID  which is the device ID on the Hero phone is going to be 15 digits is it hex or decimal???

[android-developers] Re: YouTube in the emulator?

2009-09-19 Thread Mark Murphy
Felix Oghina wrote: But it's still made by Google, isn't it? So it's standard across all devices? Only those devices that license it. For example, it is unclear if the Archos 5 Android devices have YouTube. I rather doubt they do, as Al Sutton has indicated they do not have the Android

[android-developers] store data in registory

2009-09-19 Thread Honest
Hello, i need to store data securely. So can some one tell me what should be the best way to store it on device. Is there something like registory in android. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Is Zoom in out possible in Gallary View

2009-09-19 Thread android.vinny
HI all Is Zoom in out possible in Gallary View to do if yes any body give me some ideas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] EditText default action

2009-09-19 Thread Felix Oghina
Sorry about the naming of this topic, I couldn't think of something more suited. I have a simple EditText View (single line) and want to perform a certain action when the user presses Enter while it is focused. Also, I would like to make it so that the virtual keyboard says Go instead of Done and

[android-developers] Re: sending sms

2009-09-19 Thread Saikat
Thanks.. this is really helpful article. can i send a sms from my own application and receive it by the same emulator in its existing messaging application? In that case shall I need to do any kind of settings external to my application? currently my sms sending application sends it fine. But I

[android-developers] Re: How do I start a new activity inside a tab? TabSpec.setContent(Intent) doesn't appear to work

2009-09-19 Thread Wouter
Hmm this is not working.. Got error, probably problem with tabonchangelistener.. Can you post an example of that? On 18 sep, 22:44, nEx.Software email.nex.softw...@gmail.com wrote: Well, I'm not sure why you would get the TabSpec there, but I personally would replace: return; with

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-19 Thread Wouter
Do you know a solution? On 18 sep, 19:00, Wouter wouterg...@gmail.com wrote: This is the function: public View getView(int position, View convertView, ViewGroup parent) {                 int sectionnum = 0;                 for(Object section : this.sections.keySet()) {                    

[android-developers] problem in checkbox....

2009-09-19 Thread ragavendran s
I am new to Android Development. can u tell anybody. how can i retrieve data from mysql database and display in Checkbox. Thanks in Advance. With regards, Raghav.S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Android 1.6 SDK is here!

2009-09-19 Thread Fred Grott(Android Expert)
Good work.. Its also nice to see my first contributions starting to show up in the SDK versions..:) I look forward to making more contributions.. Fred Grott http://mobilebytes.wordpress.com On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote:

[android-developers] Re: Android Positions - Northern Virginia

2009-09-19 Thread Fred Grott(Android Expert)
You have been posting this since December.. Soome better details might help get the position filled.. On Sep 18, 10:15 am, J Kral jdk@gmail.com wrote: A startup company with a proven management team in the Northern Virginia area is seeking Java/Android senior and mid-level developers

[android-developers] Re: BaseAdapter.getView()’s c onvertView parameter

2009-09-19 Thread Robert Woodruff
Thank you Carmen Delessio for replying. This is helpful! On Sat, Sep 19, 2009 at 4:34 AM, Mark Murphy mmur...@commonsware.comwrote: Carmen Delessio wrote: Watch this video: http://code.google.com/events/io/sessions/TurboChargeUiAndroidFast.html Check Mark Murphy's book

[android-developers] Emulator dd command

2009-09-19 Thread Francesco Pace
Hi guys I'm working on android emulator, how can i execute dd command? I try with: dd if=/dev/block/mtdblock1 of=/sdcard but i have thìs error: I/O error...why? Thanks, Francesco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: 1.6 SDK Arrow keys (dpad/trackball) dir not changing with orientation?

2009-09-19 Thread polyclefsoftware
Yep, I noticed this too. Very annoying when you're working on an app primarily in landscape mode and using trackball/pad input. On Sep 16, 12:13 pm, Robert Green rbgrn@gmail.com wrote: Oh I'm certainly crazy.  :) On Sep 16, 12:07 pm, Mark Murphy mmur...@commonsware.com wrote: Xavier

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Hey, I am working on a new project now and I want to use a method as above. But I hadn't used this anymore, because it doesnt worked for me.. I have this: http://snapplr.com/tp7p So i have different widgets (TextView, ImageView) and this all in a scrollview (because otherwise window doesnt

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Thank you everyone for the helpful information. What I have learned so far: * Android devices are limited in speed and power, so don't expect all the same functionality of a computer.* I understand this concept, and my initial suspicion is that this is not the issue. I have one (1) slider on

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Mark Murphy
Wouter wrote: Hey, I am working on a new project now and I want to use a method as above. But I hadn't used this anymore, because it doesnt worked for me.. I have this: http://snapplr.com/tp7p So i have different widgets (TextView, ImageView) and this all in a scrollview (because

[android-developers] Re: Resuming a Large File Download

2009-09-19 Thread skyhigh
I found how to resume the download without reading the previous data using an HTTP Range request. For others that need to do this, the modified code is: URL url = new URL(mInternetUrl); HttpURLConnection connection = (HttpURLConnection)url.openConnection ();

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-19 Thread !oEL
good point!!! On 9月19日, 上午1时50分, Marco Nelissen marc...@android.com wrote: Sure you can, you just need a phone. On Fri, Sep 18, 2009 at 9:21 PM, !oEL runzhou...@gmail.com wrote: So there is no way I can really test it? On 9月18日, 下午1时07分, Roman ( T-Mobile USA) roman.baumgaert...@t-

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Mark Murphy
ebisudave wrote: Is there no reference that outlines any special considerations for how JavaScript runs on Android? Not that I have seen. Is Android *supposed* to run JavaScript like any other JavaScript capable browser? On the whole, yes. Bear in mind that Android uses WebKit, so where

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Jason Van Anden
On Thu, Jul 23, 2009 at 6:34 PM, Dianne Hackborn hack...@android.com wrote: It sounds like you are abusing toasts. How about just showing your own dialog that is set up to not get focus or be touchable? You can use this background to make it look like a toast:

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Hey Mark, The Demo from SackOfViewsAdapter looks really nice and i think this is it what i am looking for. But i have a layout xml file where i declarate all the widgets (yes its a lot). Do i have to put this layout file in seperate file (so for all that has to come above the review list) and

[android-developers] A question about rtsp Streaming

2009-09-19 Thread yjshi
Hi,all. I met a very strange problem.And I can not understand the reason of this happening.Recently I just create an app(that is using mediaplayer ) to play the rtsp Streaming.At the beginning,I use the sim card to connect to the internet.I try to let the app play for many times .But it

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Mark Murphy
Wouter wrote: But i have a layout xml file where i declarate all the widgets (yes its a lot). Do i have to put this layout file in seperate file (so for all that has to come above the review list) and then do like this: View v = LayoutInflater.from(this).inflate(your_layout_xml,..);

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Ok thank you i will try putting them in seperate layout files now! Will let you know if this all worked ;) On 19 sep, 18:28, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: But i have a layout xml file where i declarate all the widgets (yes its a lot). Do i have to put this

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Jason Van Anden
I am close to sorting this out ... I will post my code when I know I got it. There are a few threads on this topic that offer advice where an example would be more useful (IMHO). j On Sat, Sep 19, 2009 at 12:11 PM, Jason Van Anden jason.van.an...@gmail.com wrote: On Thu, Jul 23, 2009 at 6:34

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Mark Murphy
Wouter wrote: Isn't this the right way to inflate? LayoutInflater inflater = (LayoutInflater)this.getSystemService (Context.LAYOUT_INFLATER_SERVICE); View filmLayout = inflater.inflate(R.layout.filmdetail_layout, null); plot = (TextView)

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Isn't this the right way to inflate? LayoutInflater inflater = (LayoutInflater)this.getSystemService (Context.LAYOUT_INFLATER_SERVICE); View filmLayout = inflater.inflate(R.layout.filmdetail_layout, null); plot = (TextView) filmLayout.findViewById(R.id.plot);

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Ok but is the MergeAdapter not better for adding a listadapter to the listview? or how can i do that too with SackOfViewsAdapter? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Debug certificate has expired!

2009-09-19 Thread Alistair.
My debug.keystore certificate has expired. Does anyone know how to force Android to regenerate either certificate or the whole directory under C:\Documents and Settings\Admin\Local Settings\Application Data \Android I have tried deleting the file then recompiling and switching SDK's but nothing

[android-developers] Certificate has expirted

2009-09-19 Thread Alistair.
My debug.keystore certificate has expired. Does anyone know how to force Android to regenerate either certificate or the whole directory under C:\Documents and Settings\Admin\Local Settings\Application Data \Android I have tried deleting the file then recompiling and switching SDK's but nothing

[android-developers] Re: YouTube in the emulator?

2009-09-19 Thread dadical
Yes you are correct about the activity stack, with the following caveats. The activity that you call may not be designed perfectly for your use case. For example, YouTube is all about viral promotion of videos, and if you don't want your user wandering off, or perhaps want the activity to

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
I have this now: private void setupViews() { MergeAdapter adapter=new MergeAdapter(); LayoutInflater inflater = (LayoutInflater)this.getSystemService (Context.LAYOUT_INFLATER_SERVICE); View filmLayout =

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Mark Murphy
Wouter wrote: Ok but is the MergeAdapter not better for adding a listadapter to the listview? or how can i do that too with SackOfViewsAdapter? The MergeAdapter uses the SackOfViewsAdapter. If you wish to use MergeAdapter, feed it the inflated views and your other adapters, as per the demo:

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Thank you so much for your help! It worked great and fast with MergeAdapter.. Preview: http://snapplr.com/803q Very nice :) On 19 sep, 19:16, Mark Murphy mmur...@commonsware.com wrote: Wouter wrote: Ok but is the MergeAdapter not better for adding a listadapter to the listview? or how

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Hmm it seems that i cannot click on the list items.. how can i enable that? On 19 sep, 19:23, Wouter wouterg...@gmail.com wrote: Thank you so much for your help! It worked great and fast with MergeAdapter.. Preview:http://snapplr.com/803q Very nice :) On 19 sep, 19:16, Mark Murphy

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Dianne Hackborn
On Sat, Sep 19, 2009 at 9:47 AM, Jason Van Anden jason.van.an...@gmail.comwrote: There are a few threads on this topic that offer advice where an example would be more useful (IMHO). I post to this list in my (oh so copious) spare time; I can either post answers that I can do quickly, or just

[android-developers] Re: DisplayMetrics issue on Android1.6 SDK

2009-09-19 Thread Dianne Hackborn
That is intentional. If you haven't said you support other densities than the framework runs you in a compatibility mode to make it look like you are on a medium density device. By saying that you work with SDK 4, you are also implying that you understand how to deal with densities. On Sat, Sep

[android-developers] Re: store data in registory

2009-09-19 Thread Dianne Hackborn
Android doesn't have a registry. Please read the documentation on security: http://developer.android.com/guide/topics/security/security.html http://developer.android.com/guide/topics/security/security.htmlAnd data storage, which operates within the uid constraints:

[android-developers] Re: Get dimension from R.attr in Java code

2009-09-19 Thread Dianne Hackborn
You are trying to retrieve an attribute identifier as a dimension, which is incompatible. If you want to get the value of an attribute in the theme, you can use the Theme class (though typically you will use declare-styleable to define a set of attributes you are interested in and retrieve them

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-19 Thread Dianne Hackborn
Also you can check isFinishing() in onDestroy() to find out of the activity is actually being finished. This is described in the onDestroy() documentation: http://developer.android.com/reference/android/app/Activity.html#onDestroy()

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Wouter
Edit: got it, thankx On 19 sep, 19:25, Wouter wouterg...@gmail.com wrote: Hmm it seems that i cannot click on the list items.. how can i enable that? On 19 sep, 19:23, Wouter wouterg...@gmail.com wrote: Thank you so much for your help! It worked great and fast with MergeAdapter..

[android-developers] Re: Listview and scrolling

2009-09-19 Thread Mark Murphy
Wouter wrote: Hmm it seems that i cannot click on the list items.. how can i enable that? To quote from my copious documentation: You are welcome to override other methods as well, since this is just an Adapter. In particular, if all rows are not enabled for selection, you will want to

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Jason Van Anden
Dear Dianne et al, My feedback was meant as constructive criticism in general - definitely not as a dis directed at you. I believe that an example is worth a thousand words - it works or it don't. I appreciate the time you spend with the board. I make it a point to star pretty much anything

[android-developers] Re: Android 1.6 SDK is here!

2009-09-19 Thread Tom Rini
On Thu, Sep 17, 2009 at 06:35:43AM -0700, QF wrote: Yes, source code is there, but there is not git TAG (something like android-sdk-1.6_r1) in the repo. Is the tree going to be taged soon? The tags are there now. Thanks guys! -- Tom Rini

[android-developers] Reading if the Notification Bar is open?

2009-09-19 Thread Tydiz
Is there a way to recognize that the Notification window is open? My current app plays a ringtone for text messages, but doesn't override their messaging notifications, so the user has to actually make it into the messaging app before the sound stops. I would like it to stop if the user pulls

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Dianne Hackborn
You are making a theme, which is a kind of style that applies to an entire context, but just a UI element. You need to use it as the theme for an activity take or the second argument to the Dialog constructor, however you are creating the window. On Sat, Sep 19, 2009 at 11:26 AM, Jason Van Anden

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Dianne Hackborn
(Btw, Api demos has one or two examples of creating custom themed dialogs, I believe in the app section.) On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.comwrote: You are making a theme, which is a kind of style that applies to an entire context, but just a UI element. You

[android-developers] Re: Reading if the Notification Bar is open?

2009-09-19 Thread Dianne Hackborn
I don't believe there is. But I don't really understand the problem -- notification sounds should be short. If you are playing a sound that goes on for a long time, I think that would be the problem. On Sat, Sep 19, 2009 at 11:52 AM, Tydiz tydiz...@gmail.com wrote: Is there a way to

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Is Android *supposed* to run JavaScript like any other JavaScript capable browser? On the whole, yes. Bear in mind that Android uses WebKit, so where you see browser-specific instructions for Javascript libraries, follow those for iPhone, Safari, or perhaps Chrome. If only Chrome were

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Maps.Huge.Info (Maps API Guru)
In a word: YES! Implementations of JavaScript vary across all the major platforms, you have to be very careful about testing, test and more testing each time you make a change to any code on a web page. The worst offenders are IE6 and IE7. Safari has plenty of quirks and as the iPhone is a

[android-developers] Re: How do I know whether my device is currently charging?

2009-09-19 Thread Walles
Thanks Mark, that was the hint I needed. What I really wanted to know was whether or not the battery was currently in use, and for anybody else following this thread, here's the method I came up with: /** * Is the battery currently discharging? * * @return True if our

[android-developers] Re: YouTube in the emulator?

2009-09-19 Thread Felix Oghina
I see. It seems rather peculiar to me that such a powerful platform with so much accent on freedom and sharing between applications lacks this particular, very useful, feature. dadical, thank you very much for your Activity, I will surely use it as an example for writing my own (I'm new to both

[android-developers] Re: Reading if the Notification Bar is open?

2009-09-19 Thread Tydiz
Its set to play however long they want it to(1-60 seconds or however long the ringtone is) or until they read the any of their unread messages. I didn't think there was a way but I thought I would check, in case someone happened to know. Thanks for the quick response :) On Sep 19, 1:09 pm,

[android-developers] Re: How do I know whether my device is currently charging?

2009-09-19 Thread Dianne Hackborn
What do you mean by in use? You can find out whether you are attached to a power source with the plugged field (0 means not plugged in / on battery, non-zero is the power source), which is generally what things use to determine whether the device is plugged in (so it is okay to do more power

[android-developers] Re: How to open a dialog immediately after onResume? Is it even possible?

2009-09-19 Thread schwiz
what code do you have in onResume() ? On Sep 18, 6:40 pm, Agus agus.sant...@gmail.com wrote: Hi all, I need to open a progress dialog on the onResume() method. But no dialog is opened. Any solutions for this? Agus. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Is the limit of memory heap only 6M?

2009-09-19 Thread Peter Jeffe
On Sep 18, 5:49 pm, fadden fad...@android.com wrote: I don't know anything about how Maps works, so I can't offer any specific advice there.  Something is using lots of memory, and until it stops, this will be a problem. :-( I understand Andy, I was just wondering if you could answer my

[android-developers] Re: How To Programmatically Turn On/Off WIFI?

2009-09-19 Thread Roman ( T-Mobile USA)
Tell the Android team to add Wifi support in the emulator ... -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-developers] Tab Formatting

2009-09-19 Thread polyclefsoftware
I think I already know the answer to these, but I'm going to ask anway: 1) Is there a straightforward way to set the background color of a tab in its unselected state? 2) Is there a simple way to align the text on a tab? --~--~-~--~~~---~--~~ You received this

[android-developers] [Poll?] Android should provide remote database access for applications...

2009-09-19 Thread Moto
The idea is to allow developers to access a remote database provided by google. In android the developer will need a special permission to be set at the manifest file. This could allow applications to keep a backup of users application data without having to sign in ever, seamless. Users could

[android-developers] Default Styles?

2009-09-19 Thread Felix Oghina
Where can I find default styles for my widgets? Let me give you an example. In the Contacts application, when adding a new contact, at the very bottom there are two buttons that have a particular background. I have traced that to here:

[android-developers] Re: Tab Formatting

2009-09-19 Thread nEx.Software
With the 1.6 SDK you have full contol of the look of the tab since you can set the tab to be any view you provide. Previous versions of the SDK required considerable work to do the same. On Sep 19, 2:29 pm, polyclefsoftware dja...@gmail.com wrote: I think I already know the answer to these, but

[android-developers] Re: Android should provide remote database access for applications...

2009-09-19 Thread JoaJP
Naturally, you've got the right idea - and the elements are (almost) in place today. There's probably more legwork needed than a nicely wrapped framework would require, and there's a security concern that you need to cover yourself. What can be done today: - On the server side, you can use

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Jim Ancona
ebisudave wrote: On the whole, yes. Bear in mind that Android uses WebKit, so where you see browser-specific instructions for Javascript libraries, follow those for iPhone, Safari, or perhaps Chrome. If only Chrome were available on Linux... but that's another issue. I'm reading this

[android-developers] Problem updating app in android market.

2009-09-19 Thread CaseyB
I have an application in the market and I tried to post an update, but it says that The apk must be signed with at least one certificate in common with the previous version. I don't have the previous certificate and I can't simply create a new project since my app is a paid app and I don't want

[android-developers] Find contact with Phone Number

2009-09-19 Thread CaseyB
How can I find a contact enrty given a phone number? --~--~-~--~~~---~--~~ 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

[android-developers] Re: How to open a dialog immediately after onResume? Is it even possible?

2009-09-19 Thread Robert Green
Yeah. It's easy. Override onCreateDialog() - have it create your dialog. Override onResume() - call showDialog(id). It's the same as any creation of a dialog. I like to declare a constant for each dialog id. The ID you pass from showDialog gets passed into onCreateDialog(int id). So just

[android-developers] Re: Get dimension from R.attr in Java code

2009-09-19 Thread an00na
I see, but I am not initializing a custom view. Is there any simple way to retrieve a predefined attribute value as whatever proper type? On Sep 20, 2009, at 1:33 AM, Dianne Hackborn wrote: You are trying to retrieve an attribute identifier as a dimension, which is incompatible. If you

[android-developers] Restore last viewed Activity

2009-09-19 Thread droidin.net
I have 3 different Activities that user navigates between in no particular order. My goal it twofold: 1. When user switches to something else when app is resumed I want to start where user left even if app was terminated. Specifically I want to display last viewed activity, not the default

[android-developers] Re: WebView data caching

2009-09-19 Thread droidin.net
My problem is that data I'm loading/reloading into WebView takes long time to process since it's full blown HTML + JS + CSS. I noticed that when cached, same code loads way faster. What I'm trying to do is to minimize loading hiccup when user reloads already cached content On Sep 3, 4:42 pm,

[android-developers] Re: WebView data caching

2009-09-19 Thread droidin.net
Indra - I would suggest asking separate question. It's hard to answer 2 questions on a single thread however related these may be On Sep 18, 4:10 am, indra indrad...@gmail.com wrote: Hi Guys, I am doing google search and I want to receive the data without loading the webView. Just like a

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Shawn Brown
Hi, * http://www.nanaze.com/2009/01/debugging-javascript-on-android.html * Thank you for the link, however, that article went way, way over my head, at commercial airliner altitudes. Maybe not. Just: 1) get the sdk http://developer.android.com/sdk/1.6_r1/index.html 2) set your path

[android-developers] Re: Get dimension from R.attr in Java code

2009-09-19 Thread Dianne Hackborn
I'm just saying you need to retrieve it from the theme, and the custom view Api demo is one example I know of doing so. On Sat, Sep 19, 2009 at 6:26 PM, an0...@gmail.com wrote: I see, but I am not initializing a custom view. Is there any simple way to retrieve a predefined attribute value as

[android-developers] Re: Default Styles?

2009-09-19 Thread Dianne Hackborn
R.style contains all of the public styles. If it isn't in there, it isn't public. On Sat, Sep 19, 2009 at 4:07 PM, Felix Oghina felix.ogh...@gmail.comwrote: Where can I find default styles for my widgets? Let me give you an example. In the Contacts application, when adding a new contact, at

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Here's what I have learned so far: The following scripts all behave the same on my Android device: http://developer.yahoo.com/yui/examples/slider/slider-ticks.html http://developer.yahoo.com/yui/examples/slider/slider_dual_thumb_clean.html

[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread ebisudave
Shawn, This is much easier than the stuff I know you fiddle with in you linux box No... no it's not. Let's not get into broad statements about what my environment is like or how I handle it. Linux is fine, it's me who has different abilities, so please leave it for me to decide what I can and