[android-developers] Re: static getString()??

2009-05-05 Thread Sheado
Thanks for the quick reply Yogini.. unfortunately that doesn't work.. I'm trying to access the string resource from a static method: public static void blah() { getResources().getString() // doesn't work } I also tried Resources.getSystem().getString() with no luck.. but I guess I

[android-developers] Re: How to get current date ??

2009-05-05 Thread swarup
check the time-picker example @ http://developer.android.com/guide/tutorials/views/hello-timepicker.html On May 5, 10:50 am, daehoon jeondaeh...@gmail.com wrote: How to use calendar.get(Calendar.DATE) I want to display current date, but it doesn't work. private void DateDisplay() {        

[android-developers] Cannot use dependent projects in 1.5

2009-05-05 Thread Rainer
Hi I have 2 projects in the following layout MainActivityProject - BaseProject (i.e. MainActivityProject depends on the other project). Both are android projects created with the eclipse New Android project functionality) however, the BaseProject does not have an activity defined. However, in

[android-developers] Soft keypad not appearing for edit text-Urgent

2009-05-05 Thread Android Users
Hi, I have an application that has 2 AutoComplete TextViews on a single screen. I have just upgraded the application from 1.0 to 1.5 and I am facing 2 issues here: 1. I get soft keypad for only one of the text view. Wat could be the problem with the other one? 2. For the text view that i get soft

[android-developers] Change custom title view of window at run time

2009-05-05 Thread idev
Hi I am using a custom title view in my application for each activity. In one of the activities, based on button clicks I need to change the custom title view. Now this works fine every time when I make a call to setFeatureInt. But if I try to update any items in the custom title (say change

[android-developers] Re: Retrieving Draft SMS details

2009-05-05 Thread sermojohn
many thanx for that information! at least I have the starting point now to search more on how to retrieve this data, as I was stack on this problem! Hopefully it will not be hard now. many thanx again, /sermojohn On May 4, 11:06 pm, swarup me.s...@gmail.com wrote: drafts are stored at the same

[android-developers] onDraw() help

2009-05-05 Thread Sukitha Udugamasooriya
Hi all, I'm relatively new to Android. I want to draw strokes on my screen when the user touches. Next stroke should be drawn from the end point of the previous stroke. This is my code. What happens here is just only the current stroke is drawn. Previous strokes are vanished? What is wrong here?

[android-developers] onDraw() help needed....!

2009-05-05 Thread Sukitha Udugamasooriya
Hi all, I'm relatively new to Android. I want to draw strokes on my screen when the user touches. Next stroke should be drawn from the end point of the previous stroke. This is my code. What happens here is just only the current stroke is drawn. Previous strokes are vanished? What is wrong here?

[android-developers] Re: Obtaining/calculating process CPU usage.

2009-05-05 Thread Donald_W
So is there any possibility to calculate CPU usage? On May 4, 9:19 pm, Dianne Hackborn hack...@android.com wrote: There isn't a supported API for this. On Mon, May 4, 2009 at 7:02 AM, Donald_W wojcik.to...@gmail.com wrote: Hello, How can I get/calculate current process CPU usage?

[android-developers] Re: sdcard on emulator mounted read only !!

2009-05-05 Thread David Turner
I guess /system/etc/vold.conf is missing from your build. How did you configure it ? On Mon, May 4, 2009 at 11:51 PM, Marco Nelissen marc...@android.com wrote: Well, so what does the system log say? If there's an error mounting the card, it's probably going to be logged there. On Mon, May

[android-developers] Re: static getString()??

2009-05-05 Thread Wendal Chen
Maybe create a new Resources object will work . On May 5, 1:59 pm, Sheado chad...@gmail.com wrote: Thanks for the quick reply Yogini.. unfortunately that doesn't work.. I'm trying to access the string resource  from a static method: public static void blah() {    

[android-developers] 1.1 emulator - internet problem

2009-05-05 Thread Christine
In the preview release of SDK 1.5, internet didn't work on the 1.1 emulator. Is that still true in the current release? In my 1.1 emulator, I don't have internet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Custom Locale, Spare parts - how to get them?

2009-05-05 Thread Donald_W
Like in the topic - after uprading my G1 Dev Phone with recovery images provided by HTC I don't have those 2 apps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Permission on apk

2009-05-05 Thread danielececil...@gmail.com
Hi, I've a problem to read on an apk File. I've created my sdcard with command 'mksdcard ...' I execute this code : File tmpdir = new File(tmpdirpath+name); if (!tmpdir.exists()) { boolean b = tmpdir.mkdirs(); } else {

[android-developers] Re: static getString()??

2009-05-05 Thread Dianne Hackborn
You can't. Pass a Context or Resources object into the function. On Mon, May 4, 2009 at 10:59 PM, Sheado chad...@gmail.com wrote: Thanks for the quick reply Yogini.. unfortunately that doesn't work.. I'm trying to access the string resource from a static method: public static void

[android-developers] Re: Obtaining/calculating process CPU usage.

2009-05-05 Thread Dianne Hackborn
There is no supported API for this. I am not helping people find and use unsupported APIs, and then having to deal with their apps breaking when we update the platform. On Mon, May 4, 2009 at 11:43 PM, Donald_W wojcik.to...@gmail.com wrote: So is there any possibility to calculate CPU usage?

[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-05 Thread Sukitha Udugamasooriya
I want to draw strokes on my screen when the user touches. Next stroke should be drawn from the end point of the previous stroke. This is my code. What happens here is just only the current stroke is drawn. Previous strokes are vanished? What is wrong here? Please help.. package src.test;

[android-developers] Test browsertestplugin

2009-05-05 Thread Maha
Hi, Please anyone tell me how to test broswertestplugin that comes up with mydroid package? Please tell me how to develop broswer plugins?? Thanks, Maha --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: onDraw() help needed....!

2009-05-05 Thread Christine
Your program does what you tell it to do: it draws a line every time onDraw is called. If you want it to draw the previous lines also, you have to tell it to draw the previous lines also. On May 5, 8:43 am, Sukitha Udugamasooriya suk...@gmail.com wrote: Hi all, I'm relatively new to Android.

[android-developers] Re: Keeping an application transparently on top of all other applications

2009-05-05 Thread Christine
The application model gives all resources to the currently active app. You can't prevent your app from being stopped, unless you go around the app model, which I think means going around the SDK. I don't think you can have an app that stays on top at all times. If you find a way to do it, plz let

[android-developers] Re: Change custom title view of window at run time

2009-05-05 Thread Christine
Maybe you can provide more detail on what your code does? You can update TextViews and titles from your code, with .setText() or setTitle (). On May 5, 8:16 am, idev ideveloper...@gmail.com wrote: Hi I am using a custom title view in my application for each activity. In one of the

[android-developers] Re: how can i change the layout_gravity by code?

2009-05-05 Thread Dianne Hackborn
invalidate just asks the view hierarchy to draw in its current state; request layout asks it to do a layout traversal (which will then do invalidates of whatever has changed). On Mon, May 4, 2009 at 8:01 PM, Sheepz eladk...@gmail.com wrote: Right you are, and indeed it has fixed it, however, I

[android-developers] Re: getting location name from lat, lon

2009-05-05 Thread Christine
It's called GeoCoder. On May 5, 7:51 am, jj jagtap...@gmail.com wrote: hello everybody Is there any API method{[android.location pack ] to get location name? did not find related method to to retrieve location name for given GeoPoint(lat,lon); I wanted to keep list of location names for

[android-developers] Re: Cannot use dependent projects in 1.5

2009-05-05 Thread Christine
Try switching sdk compatibility to 1.1, then back to 1.5. On May 5, 8:08 am, Rainer rbur...@gmail.com wrote: Hi I have 2 projects in the following layout MainActivityProject - BaseProject (i.e. MainActivityProject depends on the other project).  Both are android projects created with the

[android-developers] access to the audio channel

2009-05-05 Thread PI9
Hello, I'm working on an Android Project. I'm trying to create an application using DTMF (Dual Tone Multi Frequency) to provide special service to user. In fact, I would like that once you call someone, this person could put you through (using DTMF). The process is the following: 1- You call

[android-developers] Re: Change custom title view of window at run time

2009-05-05 Thread iDeveloper
Here's the code Initially , when the activity is created, I set the title like this getWindow ().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.text_title); TextView databar = (TextView) findViewById(R.id.search_title_text); databar.setText(titleText); On a button click, I change the title

[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-05 Thread Mariano Kamp
The onDraw() method starts from the scratch every time and so doesn't keep your drawings from the last invocation. Instead you would need to save all the previous points yourself and use them in onDraw(). On Tue, May 5, 2009 at 9:25 AM, Sukitha Udugamasooriya suk...@gmail.comwrote: I want to

[android-developers] Re: 1.1 emulator - internet problem

2009-05-05 Thread Mariano Kamp
At least here on Mac OSX the official release 1.5r1 supports internet access from within an 1.1 avd/emulator. And that didn't work in the preview. On Tue, May 5, 2009 at 9:15 AM, Christine christine.kar...@gmail.comwrote: In the preview release of SDK 1.5, internet didn't work on the 1.1

[android-developers] Background streaming video playback.

2009-05-05 Thread AndroidJimmy
Hi, I try to write a streaming player AP with videoView to play the streamming video. If there is an incoming phone call during the streaming video is playing, I'll call mediaplayer.pause() in onPause() to pause the video. Streaming AP will be put to background, and the surface of the videoView

[android-developers] How to create and save data(DATE, TIME) to DB???

2009-05-05 Thread daehoon
Hi everyone. I found lots of samples on internet about DB, but most of all contain two String variables. like this : public static final String KEY_TITLE=title; public static final String KEY_BODY=body; create table notes (_id integer primary key autoincrement, + title text not

[android-developers] Re: android 1.5: How do we use the AudioTrack class?

2009-05-05 Thread blindfold
On May 1, 6:43 pm, Jean-Michel jmtr...@gmail.com wrote: Blindfold, Yes, with the marker set at 1000 I would now *sometimes* get the onMarkerReached() callback, but extremely rarely (maybe once in a hundred one-second 8-bit mono PCM sample playbacks on my ADP, which is why I had not even

[android-developers] Old value in bundle in BroadcastReceiver

2009-05-05 Thread Zeeshan Khan
Hello , I have used AlarmManager to schedule my sms . and in the intent i add value of destination and message content in the bundle and put the bundle in the intent Bundle bundle = new Bundle(); bundle.putString(DESTINATION, destination);

[android-developers] Re: onActivityResult called before onRestart()

2009-05-05 Thread for android
Activity A starts at onActivityResultf(). So if you try to make a clean exit with onStop(), it will cause nullPointers when it comes back. Probably you need to set the result.You have to set the result and handle this case also in the onActivityResult() On Tue, May 5, 2009 at 7:57 AM, Jeremy

[android-developers] Re: 1.1 emulator - internet problem

2009-05-05 Thread Christine
I have Ubuntu on AMD64. I checked that 1.5r1 is on my path when starting the emulator. On May 5, 10:33 am, Mariano Kamp mariano.k...@gmail.com wrote: At least here on Mac OSX the official release 1.5r1 supports internet access from within an 1.1 avd/emulator. And that didn't work in the

[android-developers] Re: 1.1 emulator - internet problem

2009-05-05 Thread Christine
Hmm. Must have been a temporary glitch, or something I did or didn't do. I have it working now. Sorry to have bothered you all. On May 5, 10:33 am, Mariano Kamp mariano.k...@gmail.com wrote: At least here on Mac OSX the official release 1.5r1 supports internet access from within an 1.1

[android-developers] Debugger Log information on device

2009-05-05 Thread Dilli
Hi all I am developing an application using media player I want to print total log to printed ( with the logs in the source code of android - media player) ie. the android(os) source code is in c++ and i trace the code and see the printing of error messages. but while compiling my

[android-developers] Why cannot work correctly with Android-1.5 radio image of 1.5?

2009-05-05 Thread david 1
I got my G1 updated with ota-radio-2_22_19_26I.zip. Then based on the source of Android-1.5 Master, I got the boot and system images, updating them to my device. It turns out that Video Recording cannot work correctly, the generated video is white-black. Additionally, the device becomes silent

[android-developers] Move to one activity to another

2009-05-05 Thread JITU
Hi All, I am new to Android.I am facing some problem. Scenario: 1) I have two XML files in res/layout i.e. main.xml and play.xml. 2)main.xml contains no of buttons. 3)play.xml contains some contents (Like image,button.text etc.) objective: 1)When i will click on the buttons present in

[android-developers] Re: Get result from settings activity intent

2009-05-05 Thread jrgraf...@googlemail.com
The problem I have here is that after the setting is updated in the configuration dialogue I need to dynamically update the current display of all widgets, however since they are running as a pending Intent from the Widget manager I cant see how I can get a notified when the user has closed the

[android-developers] android audio

2009-05-05 Thread PI9
Hello, In the source of Android I found programs written in language C (dsp_core.c and dsp_dtmf.c) which are capable of decode DTMF. I've recorded (amr file) with my phone a conversation in which the one I'm calling dials DTMF tones from his cell and I would like to use the program to detect

[android-developers] How to use the ACTION_EDIT Intent to open the edit activity?

2009-05-05 Thread rjy...@gmail.com
Hi I tried open a edit activity by through send a ACTION_EDIT intent, but the program catched. code: Intent intent = new Intent(Intent.ACTION_EDIT,Uri.parse(sample text)); startActivity(intent); Where am I wrong? Thanks RongJun Ying

[android-developers] Re: Bug using BroadcastReceivers in the App Widget Framework ?

2009-05-05 Thread Alea
No, ExampleBroadcastReceiver does not use registerReceiver(); it is registered via the xml: receiver android:name=.appwidget.ExampleBroadcastReceiver android:enabled=false intent-filter action android:name=android.intent.ACTION_TIMEZONE_CHANGED /

[android-developers] Tabs Control Code

2009-05-05 Thread Anitha
Hi , This is anitha. I am new to android. I want the application for the creating tabs. while i was using the code in the following link http://developer.android.com/guide/tutorials/views/hello-tabwidget.html it shows that null pointer exception in our design means main.xml page

[android-developers] Re: Debugger Log information on device

2009-05-05 Thread Fred Grott(shareme)
are you referring to the log in the traces file? On May 5, 4:18 am, Dilli dilliraomca...@gmail.com wrote: Hi all I am developing an application using media player I want to print total log to printed ( with the logs in the source code of android - media player) ie. the android(os) source

[android-developers] How to send the On Call Screen Back

2009-05-05 Thread raj.10788
Hi All, I am trying to create a application, which is capable of making phone calls to the given number at the scheduled time (someting like reminder). But at the same time once it starts to make the call, my application should take a picture from Camera. So after starting the call activity,

[android-developers] Re: Debugger Log information on device

2009-05-05 Thread maha lakshmi
Hi, If you want see the logs from your C++ application, follow these steps. 1. use fprintf(stderr,..._); to print the logs in your source code. 2. launch ./emulator -shell 3. In another prompt, Type these commands $ adb shell stop $ adb shell setprop

[android-developers] Re: Debugger Log information on device

2009-05-05 Thread dillirao malipeddi
i want to see the logs of the Android OS source code (which is in c++) On Tue, May 5, 2009 at 3:47 PM, maha lakshmi maha2...@gmail.com wrote: Hi, If you want see the logs from your C++ application, follow these steps. 1. use fprintf(stderr,..._); to print the logs in your source

[android-developers] Re: Debugger Log information on device

2009-05-05 Thread maha lakshmi
Yes... just try it out... On 5/5/09, dillirao malipeddi dillir...@arijasoft.com wrote: i want to see the logs of the Android OS source code (which is in c++) On Tue, May 5, 2009 at 3:47 PM, maha lakshmi maha2...@gmail.com wrote: Hi, If you want see the logs from your C++ application,

[android-developers] Playing a .mp3 file using View Intent

2009-05-05 Thread Asif k
Hi all, I want to play a mp3 file which is stored in the /sdcard/ using ACTION_VIEW intent and I used following code to accomplish that, but I got ActivityNotFound Exception.. Intent intent = new Intent(android.content.Intent.ACTION_VIEW); Uri data =

[android-developers] Re: onDraw() help needed....!

2009-05-05 Thread MrChaz
You're overwriting the previous line each time you touch so the application can only draw one line. As far as I know each onDraw() call clears the screen and, therefore, your previous strokes. Take a look at the Path class, this provides an easy way of chaining together multiple points into one

[android-developers] Re: android.intent.extra.videoQuality not working for image capturing

2009-05-05 Thread BoD
I too really would like to know the answer to that question. Help please :) BoD On May 4, 2:41 pm, Guillaume Perrot guillaume.p...@gmail.com wrote: When looking at the documentation, we can see that the intent whose action is ACTION_IMAGE_CAPTURE can have the EXTRA_VIDEO_QUALITY argument:

[android-developers] Re: Google voice recognition on Emulator

2009-05-05 Thread qvark
Hi Dave, so... this is what I have understood about speech recognition in Android 1.5: - The only thing included (and public) in the 1.5 platform is the RecognizerIntent class, which is just a bunch of constants to standardize the use of speech recognition applications. - The actual speech

[android-developers] Re: Debugger Log information on device

2009-05-05 Thread dillirao malipeddi
sorry for disturbing you i cant write fprintf() in java application am i doing in correct way.. On Tue, May 5, 2009 at 3:57 PM, maha lakshmi maha2...@gmail.com wrote: Yes... just try it out... On 5/5/09, dillirao malipeddi dillir...@arijasoft.com wrote: i want to see the logs of the

[android-developers] Re: Debugger Log information on device

2009-05-05 Thread maha lakshmi
Hi, If it is a java application, u can use System.out.println or Log class and using adb logcat u can see the logs. Look at this following link http://developer.android.com/reference/android/util/Log.html Thanks, Maha On 5/5/09, dillirao malipeddi dillir...@arijasoft.com wrote:

[android-developers] Re: Obtaining/calculating process CPU usage.

2009-05-05 Thread Donald_W
Well I thought rather of any calculations using some process data. Anyway thanks for help. BR, Tomek On May 5, 9:20 am, Dianne Hackborn hack...@android.com wrote: There is no supported API for this.  I am not helping people find and use unsupported APIs, and then having to deal with their

[android-developers] Re: Playing a .mp3 file using View Intent

2009-05-05 Thread MrChaz
it's audio/mp3 not /audio/mp3 On May 5, 11:27 am, Asif k asifk1...@gmail.com wrote: Hi all,    I want to play a mp3 file which is stored in the /sdcard/ using ACTION_VIEW intent and I used following code to accomplish that, but I got ActivityNotFound Exception.. Intent intent = new

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread ellipsoidmob...@googlemail.com
If what you want is to have a notification that the user can swipe down and click to go back to your application, then you don't really need to be handling key events whilst your activity is paused. What you could do is create a service which displays the notification, and then use an intent to

[android-developers] Re: Playing a .mp3 file using View Intent

2009-05-05 Thread Ask
Hi MrChaz, Thanks for your help. I changed it and its working now. regards, Asif On May 5, 3:55 pm, MrChaz mrchazmob...@googlemail.com wrote: it's audio/mp3 not /audio/mp3 On May 5, 11:27 am, Asif k asifk1...@gmail.com wrote: Hi all,    I want to play a mp3 file which is stored

[android-developers] SQlite error

2009-05-05 Thread N V
Hi to all... I am creating a simple application of database... I am first time using it.. I tried sample program, But it has lot of errors... Can any one tell me how can write simple INSERT DELETE UPDATE quries...?ans also Is there any settings for the database in eclipse...?

[android-developers] Re: Bug using BroadcastReceivers in the App Widget Framework ?

2009-05-05 Thread Alea
I have discovered a bug in ExampleAppWidgetProvider.onEnabled() and in the configuration of the ExampleBroadcastReceiver. The correct configuration of the BroadcastReceiver (BR) which leads to the Callback as desired: receiver android:name=.appwidget.ExampleBroadcastReceiver

[android-developers] Re: SQlite error

2009-05-05 Thread swarup
go through the Notepad tutorial @ http://developer.android.com/guide/tutorials/notepad/index.html and Notepad sample code @ http://developer.android.com/guide/samples/NotePad/index.html On May 5, 4:00 pm, N V nithi...@gmail.com wrote: Hi to all...          I am creating a simple

[android-developers] Re: What units does Location.getAltitude() return in?

2009-05-05 Thread ellipsoidmob...@googlemail.com
It's in meters, but your device is fine - the issue is that that the GPS system has to make an approximation about the shape of the Earth and the average sea level, but it is only an approximation so you will find differences between the GPS average sea level and the local average sea level. See:

[android-developers] Re: TCP (XMPP) Keep Alive and T-Mobile

2009-05-05 Thread Guillaume Perrot
Nobody can answer me ? I am still forced to leave the setting to 30s and it drains users battery. On 14 avr, 11:55, Guillaume Perrot guillaume.p...@gmail.com wrote: Hi, I just wondered which frequency is OK to send whitespace keep alive packets onto a TCP connection to keep it alive on a

[android-developers] Re: viewing logcat from phone not possible in Android 1.5?

2009-05-05 Thread mathias axelsson
Log Collector was great (esp since end-users also can use it). Ill prob take a look at creating a su replacement as well since I sometimes need to kill an app on the road. Thanks! On Fri, May 1, 2009 at 1:32 PM, Carter ccjerni...@gmail.com wrote: You could also use Log Collector, which is

[android-developers] how to enable log of Android OS code - opencore

2009-05-05 Thread Dilli
Hi I want to enable the log of of the OS (android) I enabled debugging mode to true, i downloaded android source code of opencore with pvplayer and protocols etc i cant see the errors printed in the source code in my logcat is there any way to enable those log messages need help

[android-developers] Can the Content of SlidingDrawer be a ViewGroup ???

2009-05-05 Thread allstars
hello world i try to make the Content view of SlidingDrawer is a ViewGroup, for example , in the Launcher example it can have two GridView in the same SlidingDrawer my sample is to make android:content = @id/layout ,which is a LinearLayout but i found only the first child in the layout will be

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
My application behavior is similar to voice call, but I need also to handle key events. My application is still running in background and the activity is paused. Is there a way to receive key events in such situation? When the call screen is paused, it receives end call key event. Can I receive a

[android-developers] Re: How Do I Compile in Release Mode?

2009-05-05 Thread Jon Colverson
On May 5, 1:38 am, hivebrain hivebr...@gmail.com wrote: I am following the instructions on code signing on the Android Developer site, and it mentions that if you specify that you want to compile in Debug mode, it automatically signs the resulting file with a debug key.  It also says that if

[android-developers] Re: viewing logcat from phone not possible in Android 1.5?

2009-05-05 Thread Al
You could try using Logcat from http://code.google.com/p/android-random/. If you patch it, using this patch I submitted: http://code.google.com/p/android-random/issues/detail?id=4 , you can filter it and save the logcat output to /sdcard (Useful when a crash occurs). On May 5, 1:24 pm, mathias

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Satya Komatineni
perhaps is there a way to intercept all key events globally before they are dispatched to the apps? On Tue, May 5, 2009 at 8:51 AM, Taísa Cristina taisa.san...@gmail.com wrote: My application behavior is similar to voice call, but I need also to handle key events. My application is still

[android-developers] Re: Can the Content of SlidingDrawer be a ViewGroup ???

2009-05-05 Thread allstars
also i would like to ask is it possible to make HandleView lies on top of ContentView so far i think Handle cannot reside 'inside' Content thanks On May 5, 8:48 pm, allstars allstars@gmail.com wrote: hello world i try to make the Content view of SlidingDrawer is a ViewGroup, for example

[android-developers] Cube Runner game for Android

2009-05-05 Thread g1port.com
Hi Guys, Here is an iPhone classic Cube Runner game for Android! http://www.youtube.com/watch?v=GHzZOcEZOWY Some screen shots: http://www.g1port.com Enjoy! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: 1.1 emulator - internet problem

2009-05-05 Thread David Turner
This was fixed in the final release On Tue, May 5, 2009 at 9:15 AM, Christine christine.kar...@gmail.comwrote: In the preview release of SDK 1.5, internet didn't work on the 1.1 emulator. Is that still true in the current release? In my 1.1 emulator, I don't have internet.

[android-developers] Re: Questions on Tab (TabWidget) Width

2009-05-05 Thread Lewis Z.
Any comments please? On May 2, 8:56 pm, Lewis Z. lzh...@gmail.com wrote: I'm writing applications with many tabs (at least 6 tab pages). After adding all the tabs, the tab heads become very small (i.e., screen width / # of tabs - gaps). Is there way to override this default style so to make

[android-developers] ::App submission

2009-05-05 Thread Imran
Hii i am in India I have developed one Game and i want to Submit in Market... its paid Application is the market Accepting Application from Indian Developers...!!! Cheers, Imran --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Re: Cannot use dependent projects in 1.5

2009-05-05 Thread StevePotell
The answer is coming into this thread: http://groups.google.com/group/android-developers/browse_thread/thread/5537ae10e4143240?pli=1 On May 5, 2:08 am, Rainer rbur...@gmail.com wrote: Hi I have 2 projects in the following layout MainActivityProject - BaseProject (i.e. MainActivityProject

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Marco Nelissen
When your application is paused, which activity is in the foreground? On Tue, May 5, 2009 at 5:51 AM, Taísa Cristina taisa.san...@gmail.comwrote: My application behavior is similar to voice call, but I need also to handle key events. My application is still running in background and the

[android-developers] Location of Gears Local DB

2009-05-05 Thread Evan Ruff
hey guys, I was wondering if anyone could direct me to where Gears is putting the local SQL Lite DBs. I can't seem to find it mentioned in the documentation anywhere! Thanks! Evan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Obtaining/calculating process CPU usage.

2009-05-05 Thread rezar
You can use output of the top command, for your process Here is what I did: Runtime runtime = Runtime.getRuntime(); Process process; String res = -0-; try { String cmd = top -n 1;

[android-developers] Re: Obtaining/calculating process CPU usage.

2009-05-05 Thread rezar
I though I sent it once, but Use out put of top linux command with java Runtime. On May 4, 4:02 pm, Donald_W wojcik.to...@gmail.com wrote: Hello, How can I get/calculate current process CPU usage? ActivityManager provides method that returns a list of all active processes (list of

[android-developers] Launch Activity

2009-05-05 Thread cecilia daniele
Hi, How can I launch an android activity, defined with : * public class MyActivity extends Activity {...}* from a Java method ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Location of Gears Local DB

2009-05-05 Thread Mark Murphy
I was wondering if anyone could direct me to where Gears is putting the local SQL Lite DBs. Probably some place that cannot be accessed on production hardware. My guess is that it is in the Browser application's private file store. -- Mark Murphy (a Commons Guy) http://commonsware.com _The

[android-developers] Launch Activity

2009-05-05 Thread danielececil...@gmail.com
Hi, I try to launch an Activity created with : public class MyActivity extends Activity { ... } from a java method. Somebody can help me please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Keeping an application transparently on top of all other applications

2009-05-05 Thread Steve
If it's completely transparent, then do you also mean the user cannot interact directly with it? if so, why not use a service? What are you trying to accomplish? On May 4, 10:54 pm, Alex Jurgensen asquare...@gmail.com wrote: Hi, All, How can I keep my application which is a transparent

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-05 Thread GiladH
Yep.. it's that simple. Pls note however that whatever content you're setting will not be actually visible until onCreate() is completed. If your onCreate() processing is lengthy, as ours, you're better off placing your startup image in a dedicated activity. On May 5, 12:34 am, Marco

[android-developers] Possible to change BroadcastReceiver priority from within Activity

2009-05-05 Thread Filipe Abrantes
Hi all, I have developed a music player and the application defines a bradcast receiver that handles MediaButton intents: ... application... receiver android:name=MediaButtonIntentReceiver intent-filter android:priority=32000 action

[android-developers] Re: Displaying a now loading image while applic is, well, loading

2009-05-05 Thread Marco Nelissen
Well, no. If the work you're doing takes that long, you should do it in another thread. Or, if you absolutely must to do it in your main thread (you never did say why you think you need to do that), you should break it up in to smaller chunks and post messages to your main thread to tell it to

[android-developers] Re: Launch Activity

2009-05-05 Thread Marco Nelissen
http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent) On Tue, May 5, 2009 at 8:00 AM, danielececil...@gmail.com danielececil...@gmail.com wrote: Hi, I try to launch an Activity created with : public class MyActivity extends Activity

[android-developers] Re: Transparency on Views behaving differently in 1.5

2009-05-05 Thread Moto
I'm having a similar issue, except that I have an activity on top of another with AndroidManifest.xml declaring android:theme=@android:style/Theme.Translucent.NoTitleBar When I set the background color to #8800 in Android 1.1 it works nicely giving a darker transparancy... and in Android

[android-developers] Re: Possible to change BroadcastReceiver priority from within Activity

2009-05-05 Thread Marco Nelissen
I don't know if you can change the priority, but you could just have your receiver do nothing when you don't want to handle the button. On Tue, May 5, 2009 at 8:22 AM, Filipe Abrantes filipe.abran...@gmail.comwrote: Hi all, I have developed a music player and the application defines a

[android-developers] Re: Possible to change BroadcastReceiver priority from within Activity

2009-05-05 Thread Dianne Hackborn
You can also use the PackageManager API to disable or enable the component. On Tue, May 5, 2009 at 9:38 AM, Marco Nelissen marc...@android.com wrote: I don't know if you can change the priority, but you could just have your receiver do nothing when you don't want to handle the button. On

[android-developers] Re: Obtaining/calculating process CPU usage.

2009-05-05 Thread Dianne Hackborn
This is very likely to break in future platform updates. On Tue, May 5, 2009 at 7:53 AM, rezar rraw...@gmail.com wrote: You can use output of the top command, for your process Here is what I did: Runtime runtime = Runtime.getRuntime(); Process process;

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Dianne Hackborn
No, you can't do this. The home and end call keys are trapped by the system before being delivered to the application, and handled by itself. On Tue, May 5, 2009 at 5:51 AM, Taísa Cristina taisa.san...@gmail.comwrote: My application behavior is similar to voice call, but I need also to handle

[android-developers] Re: How to send the On Call Screen Back

2009-05-05 Thread Dianne Hackborn
You won't be able to do this. If nothing else, there is no way to cause the phone to hang up, so you will leave the call running for an indefinite amount of time without the user being aware. On Tue, May 5, 2009 at 3:17 AM, raj.10788 raj.10...@gmail.com wrote: Hi All, I am trying to create

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
I don't want to handle end call or home keys. I just want to handle another key, such as space bar, while my Activity is in background. Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 On Tue, May 5, 2009 at 1:45 PM, Dianne Hackborn hack...@android.com wrote: No,

[android-developers] Re: Get result from settings activity intent

2009-05-05 Thread Dianne Hackborn
Correct there is no way to get a result back from a PendingIntent that someone else launched. But you could just write you pending intent to launch your own activity which launches the settings panel. (Though this will still leave back-doors where the user could explicitly go to settings and

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Dianne Hackborn
You can't. On Tue, May 5, 2009 at 9:53 AM, Taísa Cristina taisa.san...@gmail.comwrote: I don't want to handle end call or home keys. I just want to handle another key, such as space bar, while my Activity is in background. Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
Whenever I press a key, will the Bookmark activity handle it? Is it a default behavior that can *not* be configured? Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 On Tue, May 5, 2009 at 1:55 PM, Dianne Hackborn hack...@android.com wrote: You can't. On Tue,

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Streets Of Boston
I really hope that this is *not* possible. A background application that steals key-strokes is not a good idea. I won't doubt that your application only has good itentions, but the idea that i could be downloading a key-stroke sniffer is not very appealing. I'd rather not have my passwords

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
In fact I do need to handle key strokes. It would be easier if I could handle home key, so that I could prevent the user from going to home screen. I think it's not a good approach to finish my Activity when it's paused as well. And it would be very boring for the user to go back to the Activity

  1   2   3   >