[android-developers] Re: Recorder Audio

2008-09-22 Thread jphdsn
have you find a solution? On Sep 22, 11:50 am, ZIN <[EMAIL PROTECTED]> wrote: > I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only > format audio recorder type is .AMR > But the music media in Android can't play this format? > What can i solve this problem? --~--~-~--~

[android-developers] Re: Recorder Audio

2008-09-22 Thread jphdsn
do you have a solution? On Sep 22, 11:50 am, ZIN <[EMAIL PROTECTED]> wrote: > I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only > format audio recorder type is .AMR > But the music media in Android can't play this format? > What can i solve this problem? --~--~-~--~--

[android-developers] Re: Change colors Tabs

2008-09-22 Thread Valentin Chifa
I created one resource file with colors, and i can change only the entire background. I can't change color for widget. I want to change background for the indicator where is a char sequence and an icon. Resource files are following Colors: #7f00 #77ff #7700ff00 #7700

[android-developers] Re: ResourceBundle and *.properties files in classes.dex

2008-09-22 Thread janb
Xavier, Thanks for that clarification. The situation that I'm talking about is in fact within a 3rd party library. After ensuring that the properties files are correctly placed inside the .apk file, I still get an error when the 3rd party code tries to access the ResourceBundle. I've presented

[android-developers] Unable to create an URI for a local sound

2008-09-22 Thread CG
Hey, I try to play a local sound in a notification. The issue I meet is the folowing : I am unable to load the file. My code is : Uri uri = Uri.parse("android.resource://com.xirgonium.android/raw/ beep"); mNotify.sound = uri; The package name is the one described in my manifest. I get the err

[android-developers] Does Android support Chinese Traditional Language?

2008-09-22 Thread Dennis
Does Android support Chinese Traditional Language(Big5)? --~--~-~--~~~---~--~~ 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 unsubscr

[android-developers] Re: why I can't launch web browser from Android?

2008-09-22 Thread yangrunfeiandroid
add in your androidmanifest.xml good luck for you 在2008-09-23,april <[EMAIL PROTECTED]> 写道: > >Follwoing is my code : >String url="http://www.google.com";; >Intent i = new Intent(Intent.VIEW_ACTION,Uri.parse(url)); >startActivity(i); > > >I got error: >"No Activity found to handle Int

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-22 Thread sudheer
Hello Mark Thanks a lot for that pointer. It worked and the errors went away. but now I have the second problem. I see only grids and no map. How can I see a map now? Best Regards, Sudheer On Sep 22, 4:16 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > sudheer wrote: > > I have the same problem.I

[android-developers] why I can't launch web browser from Android?

2008-09-22 Thread april
Follwoing is my code : String url="http://www.google.com";; Intent i = new Intent(Intent.VIEW_ACTION,Uri.parse(url)); startActivity(i); I got error: "No Activity found to handle Intent {action=android.intent.action.VIEW data=http://www.google.com} I remembered I have used same code to launch we

[android-developers] Re: View after ListView does not show up

2008-09-22 Thread Romain Guy
Just give the listview a height of 0dip and a weight of 1.0. On Sep 22, 2008 1:46 PM, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > I have a problem to display the view (e.g. Button after the ListView > which I will bind and popu... > The list displays perfectly, however, the button at bottom n

[android-developers] Re: Simulate KeyEvent

2008-09-22 Thread 詹正維
If this is the case, then how do I simulate pressing the hardware keys in other screens (for instance, pressing the right key in home screen)? 2008/9/23 hackbod <[EMAIL PROTECTED]> > > As it says, one application inject key events in to another > application. It would be a huge security hole to

[android-developers] Re: How to buy a HTC G1 (Dream) Phone?

2008-09-22 Thread Matt
Find out tomorrow http://www.engadget.com/2008/09/16/its-official-t-mobile-unveiling-first-android-handset-next-tue On Sep 22, 12:35 pm, BikingBill <[EMAIL PROTECTED]> wrote: > Is there any source to buy one of these phones at this time?  I want > to make sure our titles look their best on the ha

[android-developers] switch between activities

2008-09-22 Thread chouman82
this should be something simple but yet i can't seem to find the answer anywhere. I have a parent activity that starts a sub activity. From the sub activity, i want to be able to go back to the parent activity without terminating the child activity. Both activities will have UI so i don't think

[android-developers] Re: Web Browser in .9

2008-09-22 Thread Mark Murphy
> I was able to bring up a web browser with the following in m5: > > > Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri > .parse("http://www.cnn.com/";)); > startActivity(myIntent); > > Now that VIEW_ACTION has b

[android-developers] ViewVideo & mp4 or 3gp (both local or net) problems

2008-09-22 Thread Matteo Crippa
Hi, I was trying to set up my app to play a video. I tried to load it form local and net both, but no way to get it working: I still receive a "Cannot play video" error. Basically I used the same src that we are able to find in sample dir. Here you are my media.xml http://schemas.android.com

[android-developers] Web Browser in .9

2008-09-22 Thread Robert
I was able to bring up a web browser with the following in m5: Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri .parse("http://www.cnn.com/";)); startActivity(myIntent); Now that VIEW_ACTION has been rem

[android-developers] Re: Problem when running SoundRecordingAPISample of Megha

2008-09-22 Thread De San Nicolas Jean Philippe
another question about sound an recording. I've read that the only way to record sound is to record it in AMR format. Is it true that the media player does not read this format? And if it's true, is there another way to read with the mediaplayer the sound that we'we recorded? 2008/9/23 Megha Joshi

[android-developers] Re: Problem when running SoundRecordingAPISample of Megha

2008-09-22 Thread De San Nicolas Jean Philippe
thank's. another time... 2008/9/23 Megha Joshi <[EMAIL PROTECTED]> > Yes...the sample is intended to be used for 0.9 sdk, it wont work correct > for m5. > > 2008/9/22 De San Nicolas Jean Philippe <[EMAIL PROTECTED]> > > me again... >> >> I think Ive resolved the problem with sdcard but I have ano

[android-developers] Re: Problem when running SoundRecordingAPISample of Megha

2008-09-22 Thread Megha Joshi
Yes...the sample is intended to be used for 0.9 sdk, it wont work correct for m5. 2008/9/22 De San Nicolas Jean Philippe <[EMAIL PROTECTED]> > me again... > > I think Ive resolved the problem with sdcard but I have another problem... > > the error message in red > > > ERROR/AudioHardware(518): Er

[android-developers] Re: TextView weird layout

2008-09-22 Thread Mark Murphy
> Fwiw, an EditText is just a TextView that has input methods and such > set for editing. All of the text layout and other basic behavior is > inherited from TextView. Understood. However, I wasn't sure if having the input method be set for editing would impact scrolling behavior. -- Mark Murph

[android-developers] Re: TextView weird layout

2008-09-22 Thread hackbod
Fwiw, an EditText is just a TextView that has input methods and such set for editing. All of the text layout and other basic behavior is inherited from TextView. On Sep 22, 12:54 pm, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > yes, text it more or less 5 times bigger than TextView's area could

[android-developers] Re: Problem when running SoundRecordingAPISample of Megha

2008-09-22 Thread De San Nicolas Jean Philippe
me again... I think Ive resolved the problem with sdcard but I have another problem... the error message in red ERROR/AudioHardware(518): Error 16 opening record channel ERROR/AudioFlinger(518): openRecord returned error 16 ERROR/AudioHardware(518): Attempt to close without open I run the sam

[android-developers] Re: Problem when running SoundRecordingAPISample of Megha

2008-09-22 Thread jphdsn
Hello, I try the same sample and I have nearly the same result. have you installed an sdcard and try another time? Have you a positive result? I try to install an sdcard but I've always the same line In the logcat: "sdcard access error" I think I've an error in the path but don't arrive to resolve

[android-developers] Re: Is there a way to manage data without using SQLite?

2008-09-22 Thread Mark Murphy
> Is there a way to manage data without using SQLite? Local XML files. Local JSON files. Local anything-else-you-have-some-parsing-code-for files. SharedPreferences. Is there a particular problem that you are trying to solve for which you feel SQLite is unsuitable? We might be able to provide mo

[android-developers] Is there a way to manage data without using SQLite?

2008-09-22 Thread Ramin
Is there a way to manage data without using SQLite? --~--~-~--~~~---~--~~ 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 f

[android-developers] How to buy a HTC G1 (Dream) Phone?

2008-09-22 Thread BikingBill
Is there any source to buy one of these phones at this time? I want to make sure our titles look their best on the handset when it ships. Thank you, William Volk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "And

[android-developers] google visualization in Android web app

2008-09-22 Thread Billsen
Hi, I want to display a page with Google Visualization stored in device, but got an error message like this: Console: ReferenceError: Can't find variable: google line: 5 source: file:///android_asset/area_chart.html line 5 referers to this line -google.load("visualization", "1", {packages:["

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
On 22 Wrz, 19:54, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > I'm really sorry. All through this discussion, I have been thinking you > were using EditText, not TextView. no problem, will return to my original setup > > So, going back to your original situation... > > It might not be possible

[android-developers] Re: WebView unable to display www.google.com?

2008-09-22 Thread Mark Murphy
> PS: Any thoughts on another problem I posted earlier about focus > issues when a WebView partially obscures a ListView? - DS. I saw that one. I didn't have any ideas. It feels like a bug -- WebView is more complicated and has more third-party code in it than any other widget, so it's going to b

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
On 22 Wrz, 19:54, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > I'm really sorry. All through this discussion, I have been thinking you > were using EditText, not TextView. no problem, i'll return to my initial configuration. it's a pity that it must be so complex - simple TextView wuyld be much

[android-developers] Re: WebView unable to display www.google.com?

2008-09-22 Thread Disco Stu 010
As always, Mark Murphy to the rescue. Thanks a bunch, Mark. Regards, DS. PS: Any thoughts on another problem I posted earlier about focus issues when a WebView partially obscures a ListView? - DS. On Sep 22, 2008, at 3:55 PM, Mark Murphy wrote: > >> Here is a simple test activity that is una

[android-developers] Re: Change colors Tabs

2008-09-22 Thread hackbod
You can't just change the color, you'd need to make your own tab drawable graphic (with the various required states) and have it use that instead. On Sep 22, 8:37 am, "Valentin Chifa" <[EMAIL PROTECTED]> wrote: >          Can sommebody help me with a litle question. I'm beginner in > Android's Pl

[android-developers] Re: WebView unable to display www.google.com?

2008-09-22 Thread Mark Murphy
> Here is a simple test activity that is unable to show www.google.com. > However, www.yahoo.com shows properly. It is strange that the same > URL, "http://www.google.com/"; renders just fine in the web browser > application built into the SDK. This baffled me for the longest time, but somebody

[android-developers] Re: TextView weird layout

2008-09-22 Thread Mark Murphy
> yes, text it more or less 5 times bigger than TextView's area could > show. > i found in other threads that i should yet use ScrollView as a > TextView parent. are you sure i don't have to use ScrollView? I'm really sorry. All through this discussion, I have been thinking you were using EditTex

[android-developers] WebView unable to display www.google.com?

2008-09-22 Thread Disco Stu 010
Hi, Here is a simple test activity that is unable to show www.google.com. However, www.yahoo.com shows properly. It is strange that the same URL, "http://www.google.com/"; renders just fine in the web browser application built into the SDK. Any ideas? Thanks, DS. public class WebVie

[android-developers] Re: View after ListView does not show up

2008-09-22 Thread Mark Murphy
> I have a problem to display the view (e.g. Button after the ListView > which I will bind and populate from a CursorAdapter). > The list displays perfectly, however, the button at bottom never shows > up.. If I put the button on top of the list, it works fine. Have you tried putting a specifi

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
On 22 Wrz, 18:58, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > i removed ScrollView and yes i can see TextView's scrollbar but cannot > > scroll TextView in any way (finger/mouse or keyboard). > > Do you have enough text in there to require scrolling? If there's nothing > to scroll, it won't scr

[android-developers] View after ListView does not show up

2008-09-22 Thread elephantbug
Hi, I have a problem to display the view (e.g. Button after the ListView which I will bind and populate from a CursorAdapter). Here is the part of the XML file: The list dis

[android-developers] Re: Determining if an Activity is visible

2008-09-22 Thread Megha Joshi
It seems like you want to check if any Activity from your app is visible to the user. There is no easy way to do this except for checking in each Activity. Or you can do what the Messaging app does, and show the notification regardless of whether the Activity is visible to the user or not. 2008/9

[android-developers] Re: TextView weird layout

2008-09-22 Thread Mark Murphy
> i removed ScrollView and yes i can see TextView's scrollbar but cannot > scroll TextView in any way (finger/mouse or keyboard). Do you have enough text in there to require scrolling? If there's nothing to scroll, it won't scroll. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
On 21 Wrz, 20:44, Mark Murphy <[EMAIL PROTECTED]> wrote: > Delete the ScrollView, then set android:singleLine="false" in your XML > layout. > > TextView does its own scrolling, and putting self-scrolling widgets in a > ScrollView causes problems. > > -- > Mark Murphy (a Commons Guy)http://commo

[android-developers] i would like be able to find the authors write books Android in China.

2008-09-22 Thread jiess
i would like be able to find the authors write books Android in China. Through our efforts, For the popular android to do something. If you are interested in the ability, welcome to join us. mail: [EMAIL PROTECTED] beijing --~--~-~--~~~---~--~~ You received this

[android-developers] Change colors Tabs

2008-09-22 Thread Valentin Chifa
Can sommebody help me with a litle question. I'm beginner in Android's Platform and i want to change the defult color orange when a tab is selected and i d'ont know from where. A short sequece code will be helpfull for me. Thanks a lot! --~--~-~--~~~---~--~

[android-developers] Gesture detection

2008-09-22 Thread kingtut
I am developing an application and would like to have the user navigate the app using gestures. I tried using the GestureDetector but some of the gestures are not detected. I am trying to allow them to go backwrds and forward by doing a left-to-right and right-to-left gestures. I tried to detect t

[android-developers] Where is time stamp info kept for sms and recent calls

2008-09-22 Thread Matt
Hi When using the Androdi SDK emulator, I saw that when you make calls and sms messages the Android phone keeps a record of when these were made. For example there is a list of all the recent calls which includes times and dates. But when I look at the database of the Android platform i cannot s

[android-developers] Re: Mouse Gesture for Navigation?

2008-09-22 Thread kingtut
Any luck in getting the onFling or onScroll event to fire? I am facing the same problem. On Sep 12, 5:14 pm, Mark Hansen <[EMAIL PROTECTED]> wrote: > Ok, I'll keep trying it.. for some reason the events aren't firing > such as Fling etc. > > On Sep 12, 10:12 am, Kavi <[EMAIL PROTECTED]> wrote: >

[android-developers] Determining if an Activity is visible

2008-09-22 Thread Tauno T
Hi all! A quick question - is there a way to determine if an activity is visible to the user or not? I'd like to display a notification to the user but only then when the user is not seeing any of my Activities. I figure that one possibility is to raise a flag in onResume() and lower it in onPau

[android-developers] No date/time stamps on call history/sms database, where is it stored?

2008-09-22 Thread Matt
Hi When I make a test call using the emulator the phone seems to make a record of all the calls made. ie when you look at the recent calls list on the emulator, it knows when the last calls were made. But when I interrogate the database file: /data/data/com.android.providers.contacts/databases/c

[android-developers] help reading files by line

2008-09-22 Thread vallis
Hi all, I'm fairly new to android. I've been building a very basic SMS application as a way to get to know the system but I'm having problems reading a text file back into the app. The code looks like so: FileInputStream inFile = openFileInput(SMSFile); InputStreamReader

[android-developers] Re: Logon to spreadsheets.google.com

2008-09-22 Thread sebrOck
hi clavigo, afaik, to access google spreadsheets you will need a *google account*, not nescessarily a gmail account. On Sep 22, 1:16 pm, clavigo <[EMAIL PROTECTED]> wrote: > Some time after participating at the challenge, I got an email > suggesting to fill out a form for further information abou

[android-developers] How enable horizontal scrolling?

2008-09-22 Thread Ramunas
Hello, My problem is that I can not to scroll horizontally. I have table from several columns and all theses columns do not fit to screen. So, I need to scroll it horizontally. I tried to use ScrollView, but this view can scroll only vertically. So what I must to use, that I can s

[android-developers] Re: Simulate KeyEvent

2008-09-22 Thread hackbod
As it says, one application inject key events in to another application. It would be a huge security hole to allow such things. On Sep 22, 1:54 am, Tigers <[EMAIL PROTECTED]> wrote: > How do I simulate a keyevent in the home screen? > I can simulate a keyevent with "windowManager.injectKeyEvent"

[android-developers] Re: unregisterReceiver() error??? mean???

2008-09-22 Thread hackbod
It means that you didn't call unregisterReceiver() for something that you had previously registered. You must unregister by the time onDestroy() returns. On Sep 22, 2:29 am, Wesley Sagittarius <[EMAIL PROTECTED]> wrote: > hi all, > > May I know what is this error below??? it happen when I trying

[android-developers] Re: Gears for Android?

2008-09-22 Thread goat
In browser settings, there is an option to enable/disable gears and a place to view websites that have been granted permissions to use gears. On Sep 18, 8:03 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > I don't see it mentioned on either the Gears site or anywhere in > Android-dom... > > Is there

[android-developers] Re: Gears for Android?

2008-09-22 Thread Mark Murphy
goat wrote: > In browser settings, there is an option to enable/disable gears and a > place to view websites that have been granted permissions to use > gears. Interesting...I had been focusing looking at WebSettings and didn't think to examine the Browser activity's own preferences. I'll have

[android-developers] Re: TextView weird layout

2008-09-22 Thread skink
On 21 Wrz, 20:44, Mark Murphy <[EMAIL PROTECTED]> wrote: > > Delete the ScrollView, then set android:singleLine="false" in your XML > layout. > > TextView does its own scrolling, and putting self-scrolling widgets in a > ScrollView causes problems. thank you Mark so much, i'll try your advice

[android-developers] Re: create a calendar in android

2008-09-22 Thread Mark Murphy
Peterman wrote: > I would like know if we can create a custom calendar with android. > > The reason will be show month a month and can pick some days to view > if a client has a appointment. There is no built-in Calendar widget, or Events content provider, in Android 0.9 that I'm aware of. Thi

[android-developers] Logon to spreadsheets.google.com

2008-09-22 Thread clavigo
Some time after participating at the challenge, I got an email suggesting to fill out a form for further information about showcasing my application. The form was made available by this link: https://spreadsheets.google.com/a/google.com/viewform?key= (Key value omitted here.) When clicking on t

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-22 Thread Mark Murphy
sudheer wrote: > I have the same problem.I made all mentioned changes to > androidmanifest.xml. > here is my manifest file > > ?xml version="1.0" encoding="utf-8"?> > http://schemas.android.com/apk/res/android"; > package="BuddyProj.BuddyPack"> > android:name="android.permission.ACCESS_C

[android-developers] Re: Acessing web services with ksoap

2008-09-22 Thread Mark Murphy
stanchat wrote: > I sort of new to this and downloaded the following jars. Where is the > actual source code located? I do not see a package with src and lib. http://ksoap2.sourceforge.net/ Click on either Browse Source (if you want to peruse it online) or SVN Access (if you want to do a Subv

[android-developers] create a calendar in android

2008-09-22 Thread Peterman
Hi I would like know if we can create a custom calendar with android. The reason will be show month a month and can pick some days to view if a client has a appointment. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
I didn't realize I was using the "wrong order" in my first test, and the "right order" in my recent test... Thanks for the tip hackbod, I'll try to remember that for future drawables... On 22 sep, 10:51, hackbod <[EMAIL PROTECTED]> wrote: > The drawabletries each item in order, until it finds the

[android-developers] Re: Problem with MapView

2008-09-22 Thread sudheer
Hello All I still face the problem of a grid being shown instead of a map. my manifest file is copied below http://schemas.android.com/apk/res/android"; package="BuddyProj.BuddyPack"> Ca

[android-developers] Recorder Audio

2008-09-22 Thread ZIN
I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only format audio recorder type is .AMR But the music media in Android can't play this format? What can i solve this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: How to use onListItemClick() while overriding dispatchTouchEvent() in ListActivity?

2008-09-22 Thread Urakagi
Oops, I'm wrong, I can't get position. Is there other ways to get position in a ListView using X and Y message in MotionEvent? On 9月22日, 上午9時24分, Urakagi <[EMAIL PROTECTED]> wrote: > That sounds good, but I also have a problem for it. > > protected void onListItemClick(ListView l, View v, int pos

[android-developers] unregisterReceiver() error??? mean???

2008-09-22 Thread Wesley Sagittarius
hi all, May I know what is this error below??? it happen when I trying to quit my activity??? 09-22 09:18:39.226: ERROR/ActivityThread(1167): Activity com.basic.ui.BasicUI has leaked IntentReceiver [EMAIL PROTECTED] that was originally registered here. Are you missing a call to unregisterReceive

[android-developers] How to make my Form b transparent/Translucent background???

2008-09-22 Thread Wesley Sagittarius
hi, I don't know how to make it transparent/translucent background??? I try the same code as in ApiDemo it working inside the demo... then I copy as similar as ApiDemo... but it does not working in my project... did I miss out something??? it only show black background, but I wants it to be trans

[android-developers] Simulate KeyEvent

2008-09-22 Thread Tigers
How do I simulate a keyevent in the home screen? I can simulate a keyevent with "windowManager.injectKeyEvent" in my application, but after I send the KEYCODE_HOME(Go to Home Screen), the other simulate keyevent can't be sent. The log is as below, please help me, Thanks. 09-22 08:34:13.911: WARN/

[android-developers] Re: How to import a new CA certificate

2008-09-22 Thread lm
Hi,I connect to gmail with developing board with android. But I can't login and it show a warning cetificate untrusted. Is it for the android can't store the CA? On 9月8日, 下午11時47分, maennel <[EMAIL PROTECTED]> wrote: > Hi all, > I am trying to connect with Android to a server which I develop > mys

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
Oh, it explains what it fails the first time. I didn't realize the second time I tested it, I used the "right" order. Thanks for that tip ! On 22 sep, 10:51, hackbod <[EMAIL PROTECTED]> wrote: > The drawabletries each item in order, until it finds the > first that matches the current state.  So y

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
Luckily, it's what I've done, but I will try to remember that for future drawables :p On 22 sep, 10:51, hackbod <[EMAIL PROTECTED]> wrote: > The drawable tries each item in order, until it finds the > first that matches the current state.  So you want the one with the > least specific state (in

[android-developers] Re: screen orientation values in Display class

2008-09-22 Thread hackbod
Don't use Display.getOrientation(), it is the low-level screen rotation constant. On Sep 20, 12:54 pm, Huebi <[EMAIL PROTECTED]> wrote: > There are several classes where int values for screen orientations are > available (Configuration, ActivityInfo). Unfortunately, none matches > the values retu

[android-developers] Re: v0.9, TabActivity, communicate between tabs with intents.

2008-09-22 Thread hackbod
That is behaving as expected -- startActivity() launches a new top- level activity. You need to explicitly add tabs just like you put your first in the tab host. On Sep 22, 1:09 am, Guillaume Perrot <[EMAIL PROTECTED]> wrote: > Ok, here is a sample project:http://tinyurl.com/test-tabs > Two tabs

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread hackbod
The drawable tries each item in order, until it finds the first that matches the current state. So you want the one with the least specific state (in this case the one that requires no states) to be after ones with more specific state requirements. On Sep 12, 4:00 am, Guillaume Perrot <[EMAIL P

[android-developers] Re: Get the coordinates of screen when I touch it

2008-09-22 Thread drjunior
Well, this is another problem(logic problem)... But my first solution to your problem is: First, you need to know what's the latitude, longitude of your central point in your MapView... Second, you catch the point where user make a mouse click ( the up left side of screen have the coordinates 0,

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
In fact I was hacking "focus" to handle a "selection" mechanism. It will be useful in a next version of the SDK to have both states handled. I also found in the documentation: "It also dispatches Tap and Focus- change events to optional listeners. " But we can only listen to focus-change, I had to

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
For those who are interested: @Override protected boolean onTap(int index) { /* Set focus on tapped item so that he's drawn over others */ setFocus(getItem(index)); /* Consume tap event */ return true; } @Override public boolean onTap(GeoPoint p, MapView mapView) {

[android-developers] Re: Drawable in XML referencing other drawables by state.

2008-09-22 Thread Guillaume Perrot
> It's probably because MapView doesn't set the state of the bubbles. In fact it works well with state_focused, but we have to handle the focus ourself, I had to override the onTap functions to set the focus myself. I am not sure to understand the concept of focused overlay item... On 12 sep, 18:

[android-developers] Re: Trouble with 0.9 beta and MapActivity

2008-09-22 Thread sudheer
I have the same problem.I made all mentioned changes to androidmanifest.xml. here is my manifest file ?xml version="1.0" encoding="utf-8"?> http://schemas.android.com/apk/res/android"; package="BuddyProj.BuddyPack">

[android-developers] Re: v0.9, TabActivity, communicate between tabs with intents.

2008-09-22 Thread Guillaume Perrot
Ok, here is a sample project: http://tinyurl.com/test-tabs Two tabs, each tab is an activity. There is one menu item in each tab that allow to jump to the other via an intent. The problem is, instead of jumping into the expected tab, a new activity is launched full screen. I tried different combin

[android-developers] Re: Turn off Android mobile ??

2008-09-22 Thread Baonq86
:D. Thank "ema first". Does anyone help me to built the application to turn off the Android mobile ? What is the key character of Red-Key (Cancel) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"