[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 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() > { >     getResources().getString() // doe

[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 "Andro

[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 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] 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 wrote: > > So is there any possibility to calculate CPU usage? > > On May 4, 9:19 pm

[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; import

[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 "A

[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 wrote: > Hi all, > > I'm relatively new to Android. I want to dra

[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 wrote: > Hi > > I am using a custom title view in my application for each activity. In > one of the activities, based on button cl

[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 wrote: > > Right you are, and indeed it has fixed it, however, I thought that the

[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 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 particular

[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 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 eclipse

[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 your

[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 wrote: > > I want to draw strokes on

[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 wrote: > > In the preview release of SDK 1.5, internet didn't work on the 1.1 > emulator. Is that still true

[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 wi

[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 n

[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 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 noticed it at first). I

[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); bundle.putStri

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

2009-05-05 Thread for android
<> 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 Villalobos < jeremyvillalo...@gmail.com> wrote: > I am updating some code from 1.1 to run with the new SDK 1.5. I noticed > that onActivi

[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 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 preview. > > On Tue, May 5,

[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 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'

[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 project

[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 thor

[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 main.xml

[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 se

[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: I suggested using the registering via the code as a last resort. --~--~-~--~~~---~--~~ You received this mess

[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 .S

[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 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 code is in c++ a

[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, afte

[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 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 code. >

[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 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 wrote: > >> Hi, >> >> If you want see the logs from your C++ application, follow these >> steps. >> >>

[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 = Uri.parse("file:///sdcard/abc_xyz

[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 l

[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 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 recog

[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 wrote: > Yes... just try it out... > > On 5/5/09, dillirao malipeddi wrote: > >> i want to see the logs of the Android OS source code (which is in c++)

[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 wrote: > > sorry for disturbing you

[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 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 apps breaking when we

[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 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 Intent(android.

[android-developers] How To Set Audio Buffer In AudioTrack Class?

2009-05-05 Thread Reghu
Hi All, This is my audio configuration int mStreamType = AudioManager.STREAM_MUSIC; int mSampleRate = 44000; int mChanelconfig = AudioFormat.CHANNEL_CONFIGURATION_STEREO; int mAudioFormat= AudioFormat.ENCODING_PCM_16BIT; Can any body tell me

[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 la

[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 wrote: > it's "audio/mp3" not "/audio/mp3" > > On May 5, 11:27 am, Asif k wrote: > > > > > Hi all, > > >    I want to play a mp3 file which is stored in the /sdcard/ using > > ACTIO

[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: Logcat output:

[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 wrote: > Hi to all... > >          I am creating a simple application of database...

[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 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 T-Mobile 3G > connectivity

[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 wrote: > > You could also use Log Collector, which is available on the Andro

[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 Tha

[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 b

[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 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 you specify that

[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 ax

[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 wrote: > > My application behavior is similar to voice call, but I need also to handle > key events. My application is still running in background an

[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 wrote: > hello world > > i try to make the Content view of SlidingDrawer is a ViewGroup, > for example , in the Launcher

[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 wrote: > > 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." 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 them larger

[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 to

[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 wrote: > Hi > > I have 2 projects in the following layout > > MainActivityProject -> BaseProject > > (i.e. MainActivityProject depends on

[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 wrote: > > 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

[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"; p

[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 wrote: > Hello, > > How can I get/calculate current process CPU usage? ActivityManager > provides method that returns a list of all active processes (list of > RunningAppProcessInfo), bu

[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 Devel

[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 wrote: > Hi, > All, > > How can I keep my application which is a transparent window ontop of   >

[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 Nelis

[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: ... which works well. My question is if it was possible to change the priority of this recei

[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 proc

[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 A

[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 1.

[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 wrote: > > Hi all, > > I have developed a music player and the application defines a bradcast > receiver that h

[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 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 Tue, May 5, 2

[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 wrote: > > You can use output of the top command, for your process > Here is what I did: > >Runtime runtime = Runtime.getRuntime(); >Process process; >St

[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 wrote: > > My application behavior is similar to voice call, but I need also to handle > key events. My app

[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 wrote: > > Hi All, > > I am trying to create a application, w

[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 wrote: > No, you can't do this.

[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 chan

[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 wrote: > > 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 > >

[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 wrote: > You can't. > > > On Tue, May 5, 2009 at 9:

[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 stolen

[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 wh

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

2009-05-05 Thread jrgraf...@googlemail.com
Thanks Dianne, that did the trick, I have setup a Broadcast receiver to try and catch users manually changing values via the settings panel.now its just a case of finding the names of all the broadcasts that are sent out by various settings panels! On May 5, 5:54 pm, Dianne Hackborn wrote: >

[android-developers] Widget "proxy drawable"

2009-05-05 Thread Ward Willats
In the "widget design guidelines" under "widget graphics tips and tricks" is says "In some cases, devices that have low pixel depths that can cause visual banding and dithering issues. To solve this, application developers should pass assets through a "proxy" drawable defined as XML:. This t

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

2009-05-05 Thread Marco Nelissen
On Tue, May 5, 2009 at 10:14 AM, Taísa Cristina wrote: > In fact I do need to handle key strokes. Then you need a foreground activity. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Widget "proxy drawable"

2009-05-05 Thread Romain Guy
It's just a typo. Here's a proxy example: Doing so lets you for instance enable or disable dithering using android:dither. On Tue, May 5, 2009 at 10:25 AM, Ward Willats wrote: > > In the "widget design guidelines"  under "widget graphics tips and > tricks" is says > > "In some cases, devices

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

2009-05-05 Thread Filipe Abrantes
Thanks I will try having a preference for the user to disable my player to be the default handler of the intent using the PackageManager. One question more: do the PackageManager changes persist through a reboot? Cheers, Filipe http://abrantix.org/rockon.php Dianne Hackborn wrote: > You can a

[android-developers] Re: AbsoluteLayout deprecated ... a simple example to be complaint with 1.5 SDK ?

2009-05-05 Thread Mike
Dianne, with all due respect, I'm with Mark on this one. The only reasonable thing for a developer to do at this point is abandon the deprecated classes as quickly as possible. Google's track record with Android releases proves that they can and will spin on a dime without giving much notice as

[android-developers] texture map ,opengl es ,gallery

2009-05-05 Thread xiaofeng
tex1 = loadTexture(gl, bmp0); tex2 = loadTexture(gl, bmp1); tex3 = loadTexture(gl, bmp2); tex4 = loadTexture(gl, bmp3); tex5 = loadTexture(gl, bmp4); protected static int loadTexture(GL10 gl, Bitmap bmp) { Bitmap bmp_tmp = bmp; return loadTexture(gl, k,bmp_tmp,

[android-developers] [OOT] looking for push mobile mail libs/framework

2009-05-05 Thread Hira Sirojudin
any body can help mei'm currently looking for a framework or library to develop push mobile mail system which compliant with android platform. has any body developed such system?and advantages? thanks alot for your suggestion and BR -- Hira Sirojudin +628 111988846 --~--~-~--~~-

[android-developers] Transfert a call using DTMF

2009-05-05 Thread PI9
Hy everyone! 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 your contact 2- You ask him to p

  1   2   3   >