[android-developers] Any way to find out the current running activity from a service?

2009-08-03 Thread Paul Drummond
Hi, I have been looking for this for a while but I can't find any way of doing it. A contrived example would be a service that simply displays the name of the current running activity as an Ongoing Notification. For instance, when the user is reading a particular email, the name of the activity

[android-developers] Re: listactivity problems

2009-08-03 Thread Carl
Great! That works. I would like to show a textview at the top of the list (saying something like "Select the item"). I followed an example, but I can only see it say "No data". I have changed my code by adding setContentView(R.layout.mylistact), and this is what mylistact.xml looks like: http:/

[android-developers] Device keyboard backlight

2009-08-03 Thread Shang Hao
Hi, I want to create a menu which would help to alter the timeout of the back-light of the device keyboard.. So, if i know where exactly we are setting the device-keyboard value most of my problem can be solved PLease let me know if any clues u have. Thanks. --~--~-~--~~-

[android-developers] AutoCompleteTextView with SimpleAdapter

2009-08-03 Thread kostmo
Hello, I am trying to use a SimpleAdapter to populate my AutoCompleteTextView. I observe that the Filter runs after the third keystroke as specified in my layout, and "suggestion_list" is being populated with at least five elements. After the filter runs, the completionHint drops down from the A

[android-developers] about the hardware acceleration of Skia drawing

2009-08-03 Thread Zhiguo Ge
Hi, I would like to know whether Android currently supports the hardware accelleration for SKia 2D drawing. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Re: Catching memory exception

2009-08-03 Thread whitech
thank you, I can catch the error now. I've use catch(Exception) not catch(Error) before so I can't catch it. There is another problem, can I push the limit of memory higher? It is a little too small with only 16 MB On 8月4日, 上午2时14分, fadden wrote: > On Aug 2, 8:01 pm,whitech wrote: > > > Hi all.

[android-developers] Re: How to integrate my application to paypal

2009-08-03 Thread JP
I've seen WebViews with the PayPal payment button snippet pasted in. On Aug 3, 5:21 am, Venkat wrote: > Hi > > Could please help me how to integrate my application with paypal, so > that User can pay money in my application through paypal to the > merchant? > > Thanks & Regards > Venkat --~--~-

[android-developers] Re: Clearing the cache of your app on exit

2009-08-03 Thread Dianne Hackborn
On Mon, Aug 3, 2009 at 12:20 AM, for android wrote: > i was not talking about the files which my app writes on the local file > system. > > I was talking about the "Clear Cache" button in here "Settings --> Apps --> > Manage Apps --> "My App" --> Clear Cach" What that button does is remove all

[android-developers] Re: SQLiteDatabase table

2009-08-03 Thread janardhan
hey Jeff Sharkey, pls can u send the code for login application using sqlite databse On Aug 4, 9:55 am, Jeff Sharkey wrote: > You should really look at using SQLiteOpenHelper; it automatically > helps with initial database creation and any upgrade paths. > > j > > > > On Tue, Jul 28, 2009 at 7:3

[android-developers] Re: SQLiteDatabase table

2009-08-03 Thread janardhan
hey boomerbubba, pls can u send the code for login application using sqlite databse On Aug 3, 9:03 pm, boomerbubba wrote: > SELECT EXISTS(SELECT * FROM sqlite_master WHERE type = 'table' AND > Name = 'MyTableName'); > > returns 1 or 0 for True or False > > Substute your own table name for MyTabl

[android-developers] prevent native application

2009-08-03 Thread Honest
Hello, I want to prevent native application to receive message.I want that my application only receive message. Is it possible ? if yes then how ? can i access the received message and delete it ? --~--~-~--~~~---~--~~ You received this message because you are subs

[android-developers] Signal re-sampling in android

2009-08-03 Thread Tez
Hi, Is there any library already available for speech signal re-sampling? I have sample speech input with the following config. 8Khz, 16bit PCM. I wish to resample to rates like 11.25, 22.5, 44.1khz, 16khz etc. Is there any open source project doing this? Cheers, Earlence --~--~-~--~-

[android-developers] Re: ListActivity selected Item

2009-08-03 Thread bpellow
Hey Mike, Did you ever get this working?? I need to do something similar in an app I'm trying to put together. I need the highlight from a touch on a ListActivity row to remain highlighted after the touch. Thanks so much, Ben On Jul 8, 8:14 am, mike wrote: > I'm having trouble with a list Act

[android-developers] Rectangle vs Parallelogram..Plz Help!!!!

2009-08-03 Thread Sagar
Hi all, I check rectangle intersection when an object intersects with that rectangle. Now I create a parellelogram using Path class. How can I check intersection now?? The problem right now is: -- | _| |_ | | _| |_ | |

[android-developers] Re: some basic question.

2009-08-03 Thread Honest
I am so thankful to your reply. Can some one tell me how can i get the SDKS to change framework of o/s ? On Aug 3, 8:42 pm, Roman wrote: > Signal Strength > > For being able to get the signal strength of your current GSM > connection, implement a   onSignalStrengthChanged callback method. > Thi

[android-developers] Spinner - don't display selection

2009-08-03 Thread droidin.net
I'm trying to use Spinner as a button with selection pop-up. Basically I want an icon and when user clicks it - the popup list is displayed and user can make a selection. The Spinner happily accepts icon image as drawable background. Unfortunately when I select a value the text overlays the backgr

[android-developers] Re: Images not loading on the phone

2009-08-03 Thread Jeff Sharkey
>                        if(photoUrl.contains(" ")) { >                                photoUrl = photoUrl.replaceAll(" ", "%20"); >                        } Just a random side note, but you probably want to use Uri.encode() to properly escape all characters, not just spaces. -- Jeff Sharkey j

[android-developers] Re: appwidget onReceive() appwidgetIds null

2009-08-03 Thread Jeff Sharkey
There's a known bug where the DELETED broadcast sends EXTRA_APPWIDGET_ID (instead of IDS): http://groups.google.com/group/android-developers/msg/e405ca19df2170e2 j On Mon, Aug 3, 2009 at 8:21 AM, ChangliWang wrote: > >        public void onReceive(Context context, Intent intent) { >            

[android-developers] Re: SQLiteDatabase table

2009-08-03 Thread Jeff Sharkey
You should really look at using SQLiteOpenHelper; it automatically helps with initial database creation and any upgrade paths. j On Tue, Jul 28, 2009 at 7:35 PM, jayaram wrote: > > Hi, >     I've an SQLiteDatabase mydb.db.   I want to check whether a > particular table named 'table1' exists or

[android-developers] Re: ImageButton press feedback

2009-08-03 Thread Jeff Sharkey
The framework offers "stateful" drawables that automatically change based on user interaction, such as focus or touch. Here's an example of the default Button background is defined: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/drawable/btn_default.xml;hb=cu

[android-developers] Re: Clearing the cache of your app on exit

2009-08-03 Thread Jeff Sharkey
Another thing worth mentioning when you're managing your own cache is to listen for the ACTION_DEVICE_STORAGE_LOW broadcast through a . This way, if the device runs low on space, you can help by automatically purging your cache. j On Fri, Jul 24, 2009 at 5:27 PM, Mark Murphy wrote: > > niko001

[android-developers] Re: HTTP and some extra

2009-08-03 Thread Kausik Das
While you are using HTTP Get, you have nothing to do with the HTTP packet that is sent to the server. But while you are doing POST, then the body part in the request is very important. If you've seen the code, the problem is, say, I want to ready a file - do base64 encode - send the packet to the

[android-developers] Re: Add menu item to Gallery's share BY CODE

2009-08-03 Thread Dianne Hackborn
Sorry, this can only be done by a manifest declaration. You can, however, enable or disable the component declared in your manifest at runtime using the PackageManager class. On Mon, Aug 3, 2009 at 8:40 PM, Anthony Xu wrote: > > Cannot implement it? > > > On Aug 1, 12:18 pm, Anthony Xu wrote:

[android-developers] Re: Catching memory exception

2009-08-03 Thread whitech
Uncaught handler: thread main exiting due to uncaught exception java.lang.OutOfMemoryError at xx On 8月4日, 上午2时14分, fadden wrote: > On Aug 2, 8:01 pm,whitech wrote: > > > Hi all. I've got this problem: > > When my program using too much memory, it die. Is there an exception > > o

[android-developers] Re: Add menu item to Gallery's share BY CODE

2009-08-03 Thread Anthony Xu
Cannot implement it? On Aug 1, 12:18 pm, Anthony Xu wrote: > Hi All, > > I must to new a thread. > > I know how to implement this issue by Menuifest.xml, see > also:http://groups.google.com/group/android-developers/browse_thread/threa... > > But my question is how to add share menu ofGalleryby

[android-developers] adc2: can use third party lib from the market?

2009-08-03 Thread blues
My app uses the text-to-speech lib from the market, which is developed by Google Charles Chan. User needs to install the lib from the market first time use my app (using market intent). So is it eligible to have the app download the lib from the market? And any technique difficulty here? for exa

[android-developers] Re: 1.5_r3 backward compatibility

2009-08-03 Thread Peter Jeffe
Xavier and Diane, thanks for the confirmation on the SDK level, I was hoping that was the case! On Aug 3, 3:35 pm, Dianne Hackborn wrote: > Actually, Market should have been supporting android:minSdkVersion for a > while, since that was done way back for 1.5.  Is it not working? Yes, that works

[android-developers] Using Intent on default Google Map

2009-08-03 Thread guna
I launch the default google map apk from my application, by starting the intent new Intent(Intent.ACTION_VIEW, Uri.parse("geo:"+lon+","+lat)), 3); What I want is to start the map with menu option "my location" clicked and the current address displayed on the sign (user normally can bring up the s

[android-developers] how to load a .so library in a apk?

2009-08-03 Thread xuxiake2...@gmail.com
I have a .so library ,which I had put in directory "assets" . But how can i load it ? I can't use System.loadLibrary or System.load because i can't get the path. thanks in advance for your answers. --~--~-~--~~~---~--~~ You received this message because you

[android-developers] How can I specify a border color for an ImageView when it has focus

2009-08-03 Thread n179911
Hi, In android, how can I specify a border color for an Image View when it has focus? e.g. how to put an orange border around an Image View when it has focus? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: View Android Marketplace

2009-08-03 Thread steiljes
hey thanks On Aug 3, 3:02 pm, Mattwho wrote: > There are a few websites that supply this informationhttp://www.cyrket.com/is > one of them. > > On Aug 3, 10:48 am, steiljes wrote: > > > > > How to view the comprehensive list of apps in the marketplace? Do I > > need to buy a handset AND the se

[android-developers] Re: Serious dx error. Desperately need expert advice.

2009-08-03 Thread Keith Wiley
Thanks for your continued efforts. On Aug 3, 11:40 am, Dan Bornstein wrote: > First of all, thanks for taking the time to investigate, and I'm glad > you've found a workaround for this. > > As a bit of background, the original version of the code that collects > local variable debugging info was

[android-developers] Soft keyboard - full alpha-numeric, but defaulting to numbers

2009-08-03 Thread Jason
For cases where you know a user is likely to enter a number before characters, is it possible to set an EditText View's soft keyboard/IME default to the "numbers input" yet still retain all it's alpha-numeric capabilities? I can get the keyboard to automatically shift to the numbers input by sett

[android-developers] Re: Eclipse 3.3, Android SDK 1.5, adb 1.0.18 running, 1.0.20 needed

2009-08-03 Thread misbell
FYI, Just looked at my Windows install, no "platforms" dir there either. Wow, I installed it in Nov 2008, SDK 1.0 R1! That was when I built my last Android app. Heh. No wonder I'm a little rusty. --~--~-~--~~~---~--~~ You received this message because you are sub

[android-developers] Re: Eclipse 3.3, Android SDK 1.5, adb 1.0.18 running, 1.0.20 needed

2009-08-03 Thread misbell
>> /Users/Dev/android-sdk_m5-rc15_mac-x86/platforms is missing By the way, that is absolutely correct. That directory does not exist in my version of the SDK. misbell --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-developers] Re: Eclipse 3.3, Android SDK 1.5, adb 1.0.18 running, 1.0.20 needed

2009-08-03 Thread misbell
Yes, I am. I only have one SDK downloaded onto OSX. As I said, I went right into the directory (android-sdk_m5-rc15_mac-x86/tools) and stopped and restarted adb. The SDK definitely comes with 1.0.18. Let me check again visually right now... Ok so I a) downloaded the folder android-sdk_m5-rc15_m

[android-developers] Re: Images not loading on the phone

2009-08-03 Thread Jason
Pulkit, I had a similar problem. It seems that BitmapFactory silently fails (returning null) when BufferedInputStream blocks while fetching from the connection (I think). If the BufferedInputStream is coming from an SD source, it works because it doesn't block (I think). The solution for me was

[android-developers] Re: listactivity problems

2009-08-03 Thread Mark Murphy
Carl wrote: > I am trying to build a listactivity with listitems that consist of two > textviews. Unfortunately I don't see anything but lines in my list. > Can anyone tell me whats wrong with this code? > > > in list_item.xml > > > xmlns:android="http://schemas.android.com/apk/res/andro

[android-developers] Re: Eclipse 3.3, Android SDK 1.5, adb 1.0.18 running, 1.0.20 needed

2009-08-03 Thread Xavier Ducrohet
Are you sure that you are pointing ADT to the latest SDK? Xav On Mon, Aug 3, 2009 at 5:31 PM, misbell wrote: > > > When you try to point Eclipse 3.3 to Android SDK 1.5 (latest build as > of today Aug 3 2009) I get an error saying that I have the wrong adb. > > so I went to /tools and checked it

[android-developers] Eclipse 3.3, Android SDK 1.5, adb 1.0.18 running, 1.0.20 needed

2009-08-03 Thread misbell
When you try to point Eclipse 3.3 to Android SDK 1.5 (latest build as of today Aug 3 2009) I get an error saying that I have the wrong adb. so I went to /tools and checked it out, running adb version. Sure enough, 1.0.18. including after a restart. Could I have vry specific directio

[android-developers] listactivity problems

2009-08-03 Thread Carl
I am trying to build a listactivity with listitems that consist of two textviews. Unfortunately I don't see anything but lines in my list. Can anyone tell me whats wrong with this code? in list_item.xml http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" a

[android-developers] Re: Canvas + Bitmap + ColorMatrixFilter is great. How to SAVE the bitmap?

2009-08-03 Thread Shane M. (Pop Crowd)
Off screen bitmap might be a possibility - let me look into that. Thanks Jason. Shane On Aug 3, 5:06 pm, Jason Proctor wrote: > the problem i think is that the filters and transforms and all that > are done in native code, then that code writes to the frame buffer. > getting that stuff back an

[android-developers] Canvas + Bitmap + ColorMatrixFilter is great. How to SAVE the bitmap?

2009-08-03 Thread Jason Proctor
the problem i think is that the filters and transforms and all that are done in native code, then that code writes to the frame buffer. getting that stuff back and turning it into a java Bitmap would be expensive. can you draw into an offscreen bitmap somehow? ISTR something being possible al

[android-developers] Re: Canvas + Bitmap + ColorMatrixFilter is great. How to SAVE the bitmap?

2009-08-03 Thread Shane M. (Pop Crowd)
I guess from the lack of responses this isn't possible? Too bad. Shane On Aug 2, 2:14 pm, Shane wrote: > So I have a Canvas which uses a bitmap to store the draw calls on.  I > have applied a ColorMatrixFilter to the underlying bitmap of the > canvas.  It looks awesome when on the phone a

[android-developers] Re: LocationManager and PendingIntent problem

2009-08-03 Thread Lutz Schönemann
Okay, I managed to get it to work on a real phone (Google Dev Phone 1). But why doesn't it work on an emulator? Is there more to do than just use the geo command? Am 03.08.2009 um 19:02 schrieb Dianne Hackborn: > Please look at the examples in ApiDemos. > > 2009/8/3 Lutz Schönemann > > I h

[android-developers] Re: Launching a Service at the startup

2009-08-03 Thread Mark Murphy
R Ravichandran wrote: > Thanks Mark. Actually the code I posted missed out the 'onStart' method > details that I actually tried. Here is the actual 'onStart' method of > the MyService class I used where I create the thread and starting it. > > > @Override > public void onStart(Intent int

[android-developers] Activity timeout on WebView load

2009-08-03 Thread droidin.net
In my app I have to load external page into WebView-based activity. Some of my users with slower connections are reporting screen timeout while waiting for the page to load. What would be a good way of loading the page on backgorund thread and then refreshing the screen? Use HttpClient to fetch it

[android-developers] GsmCellLocaion.getCid frequently returns -1

2009-08-03 Thread Richard Schilling
I know that a -1 value from a call to GsmCellLocaion.getCid means that the network is unknown. But, I'm frequently getting that as a result even though the phone is connected to the network and able to send/ receive calls. Can anyone shed some light on why this happens and how to get around it?

[android-developers] Re: 1.5_r3 backward compatibility

2009-08-03 Thread Dianne Hackborn
On Mon, Aug 3, 2009 at 1:32 PM, Dianne Hackborn wrote: > >> >> So that's why I'm really hoping that Google will allow developers to >> publish multiple builds for different OS versions in the future. It >> was very tough to have to hold off releasing 1.5-specific features >> until a critical mas

[android-developers] Re: Launching a Service at the startup

2009-08-03 Thread R Ravichandran
Thanks Mark. Actually the code I posted missed out the 'onStart' method details that I actually tried. Here is the actual 'onStart' method of the MyService class I used where I create the thread and starting it. @Override public void onStart(Intent intent, int startId) { System.ou

[android-developers] Re: Rotate TextView to an angle... What's wrong with this code?

2009-08-03 Thread Moto
Thanks Jeff! It worked but by overriding the onDraw call not the dispatchDraw. @Override onDraw(Canvas canvas) { canvas.save(); canvas.rotate(45); super.onDraw(canvas); canvas.restore(); } I tried the same method on an Image

[android-developers] Supporting RTL language

2009-08-03 Thread Milad
Hi every body As you known android does not support RTL languages like farsi,arabic,... and it is time to comminuty do something ! If android dev team give us clue to workon that, I believe we can solve this problem i do some work on fonts but it's SUCKS and need some change on core (I think

[android-developers] Re: Accessing logs on Android

2009-08-03 Thread Mattwho
Google led me to http://code.google.com/p/android-log-collector/ On Aug 3, 10:59 am, Jay-andro wrote: > Is there a way to access the default logs on the phone for purposes of > uploading for debugging purposes? > > I'd like to be able to provide an "Upload Logs" button that allows the > users of

[android-developers] Re: Pls give me a hand.....

2009-08-03 Thread Balwinder Kaur (T-Mobile)
Delete R.java from your src/ and let Eclipse pick up the one from gen/. That should resolve your problem. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, an

[android-developers] Re: This bug is costing us money every month

2009-08-03 Thread Disconnect
The G2 JUST came out - it may cost you money next month, but it hasn't cost you anything yet... On Mon, Aug 3, 2009 at 3:50 AM, Mister Helmut wrote: > > Hello, > > I'd like to refer to the issue 2379 : > http://code.google.com/p/android/issues/detail?id=2379 > > I know that I may be in infringeme

[android-developers] installing gphone drivers automatically

2009-08-03 Thread jonathan
I wish to create an installer that unpack the driver files so windows new hardware wizard will automatically find it instead of have to let user select where the files are. I unpacked the driver files into windows\system32, windows\ and windows\inf and windows \system32\drivers, then the wizard

[android-developers] Re: android developer cup Season2

2009-08-03 Thread Luciano Broussal
Hi, Thanks for the advice. Croco On Mon, Aug 3, 2009 at 8:24 PM, Yusuf T. Mobile wrote: > > Hi Croco, you can read about ADC here: > > http://code.google.com/android/adc/ > > App submission should start sometime this month. > > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > The views,

[android-developers] Re: 1.5_r3 backward compatibility

2009-08-03 Thread Xavier Ducrohet
On Mon, Aug 3, 2009 at 12:18 PM, Peter Jeffe wrote: > > On Aug 3, 2:04 am, Romain Guy wrote: >> 1.5r3 is compatible with 1.5r2, 1.5r1 and even 1.1 and 1.0 if you are >> careful about which APIs you use. > > Thanks Romain, can you confirm that there were no API changes between > 1.5r1 and 1.5r3?

[android-developers] Re: Rotate TextView to an angle... What's wrong with this code?

2009-08-03 Thread Moto
Thanks Jeff! It worked but by overriding the onDraw call not the dispatchDraw. @Override onDraw(Canvas canvas) { canvas.save(); canvas.rotate(45); super.onDraw(canvas); canvas.restore(); } I tried the same method on an Image

[android-developers] Re: View Android Marketplace

2009-08-03 Thread Mattwho
There are a few websites that supply this information http://www.cyrket.com/ is one of them. On Aug 3, 10:48 am, steiljes wrote: > How to view the comprehensive list of apps in the marketplace? Do I > need to buy a handset AND the service with it to see the marketplace? > I don't want to start

[android-developers] Re: Bug report: widget does not load if the orientation changes during the configuration

2009-08-03 Thread Derek
Are you sure forcing portrait mode for configuration activity could solve the problem ? I've tried to add: android:screenOrientation="portrait" to my activity and the problem is still here. The activity is displayed in portrait whatever the orientation but the phantom widget bug is still here. On

[android-developers] Re: 1.5_r3 backward compatibility

2009-08-03 Thread Dianne Hackborn
On Mon, Aug 3, 2009 at 12:18 PM, Peter Jeffe wrote: > Thanks Romain, can you confirm that there were no API changes between > 1.5r1 and 1.5r3? There aren't any -- you can tell because the SDK version in android.os.Build has not changed. > So that's why I'm really hoping that Google will allow

[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?

2009-08-03 Thread arnouf
It's a real headache this samsung on Linux! I tried a lot of stuff too, but Galaxy is never found by adb...:( On Jul 31, 11:00 pm, "mobidroid.com" wrote: > Hi there, > > Not much success with the galaxy and adb :( > > I'm under ubuntu 8.10 here are my question: > > The step in :http://developer

[android-developers] Re: 1.5_r3 backward compatibility

2009-08-03 Thread Mark Murphy
Peter Jeffe wrote: > So that's why I'm really hoping that Google will allow developers to > publish multiple builds for different OS versions in the future. It > was very tough to have to hold off releasing 1.5-specific features > until a critical mass of users were upgraded to 1.5. At this poin

[android-developers] arcade style virtual joystick

2009-08-03 Thread Croco
Hi All, I'm wondering if someone know a snippet of code that would implement a joystick behavior. I did a 4 orientation button widget but it's really not user friendly for my game :( Thanks by advance. Croco --~--~-~--~~~---~--~~ You received this message becaus

[android-developers] Re: 1.5_r3 backward compatibility

2009-08-03 Thread Peter Jeffe
On Aug 3, 2:04 am, Romain Guy wrote: > 1.5r3 is compatible with 1.5r2, 1.5r1 and even 1.1 and 1.0 if you are > careful about which APIs you use. Thanks Romain, can you confirm that there were no API changes between 1.5r1 and 1.5r3? And Fred, there is definitely no way you can expect a given lev

[android-developers] Re: ADC2

2009-08-03 Thread Luciano Broussal
Thank you Mark for the confirmation. Croco On Mon, Aug 3, 2009 at 7:39 PM, Mark Murphy wrote: > > Croco wrote: > > I'm wondering what is the procedure to submit an application entry for > > the competition. > > Wait for instructions to appear on http://code.google.com/android/adc/. > > -- > Mark

[android-developers] Re: Serious dx error. Desperately need expert advice.

2009-08-03 Thread Dan Bornstein
First of all, thanks for taking the time to investigate, and I'm glad you've found a workaround for this. As a bit of background, the original version of the code that collects local variable debugging info was written to target an inefficient output representation. The output format was fixed be

[android-developers] Re: Keeping graphics running through orientation change

2009-08-03 Thread Mark Murphy
SChaser wrote: > How does one create a graphics canvas that is visible by the user > through orientation (port->land->port) changes? If one defines layout > land and port, there is a noticeable pause during the switch. Yet, I > downloaded a bubble level application that never pauses as orientation

[android-developers] Re: Can We make canvas trancluent ?

2009-08-03 Thread Yusuf T. Mobile
Hi AV, I'm not sure what you are trying to do, but I recommend searching the Canvas javadoc for the word "alpha". That's another way to say "translucent", and Canvas supports it. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the au

[android-developers] Keeping graphics running through orientation change

2009-08-03 Thread SChaser
How does one create a graphics canvas that is visible by the user through orientation (port->land->port) changes? If one defines layout land and port, there is a noticeable pause during the switch. Yet, I downloaded a bubble level application that never pauses as orientation changes - even when it

[android-developers] Re: android developer cup Season2

2009-08-03 Thread Yusuf T. Mobile
Hi Croco, you can read about ADC here: http://code.google.com/android/adc/ App submission should start sometime this month. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: Catching memory exception

2009-08-03 Thread fadden
On Aug 2, 8:01 pm, whitech wrote: > Hi all. I've got this problem: > When my program using too much memory, it die. Is there an exception > or something else to warn me? How can I catch it? What exception is appearing in the log file when your application dies? --~--~-~--~~-

[android-developers] Re: Activity objects in memory after onDestroy.

2009-08-03 Thread fadden
On Aug 3, 7:18 am, Felipe Silveira wrote: > Does anyone know when the Activity object is supposed to be garbage- > collected, and what can be done to avoid the issue I mentioned? Start with this article: http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html If that doesn'

[android-developers] Sending an email

2009-08-03 Thread Mark Wyszomierski
Hi, I'm looking to send an email, I see we have a few options: 1) Start an intent to send the message, this will popup an activity the user has to interact with to fire the message off. 2) Include the javamail jar in my project, ask the user for their smtp info one-time, after that I can automa

[android-developers] View Android Marketplace

2009-08-03 Thread steiljes
How to view the comprehensive list of apps in the marketplace? Do I need to buy a handset AND the service with it to see the marketplace? I don't want to start developing before I know what the market really looks like. The android.com website offers only a few apps. --~--~-~--~~-

[android-developers] Accessing logs on Android

2009-08-03 Thread Jay-andro
Is there a way to access the default logs on the phone for purposes of uploading for debugging purposes? I'd like to be able to provide an "Upload Logs" button that allows the users of my app to upload their logs if they are encountering issues with the app. I know I can write my logs to my own f

[android-developers] Re: Publishing to Android market - question

2009-08-03 Thread Mark Murphy
steiljes wrote: > Do I need to download each carrier's emulator to see what the app > looks like? Carriers don't have emulators. > Or is there a generic one that comes with Android SDK? Yes. > How to view the comprehensive list of apps in the marketplace? Do I > need to buy a handset AND the

[android-developers] Launch an app from within the native Contacts app

2009-08-03 Thread Jay-andro
I would like to be able to launch my app using a URI scheme rather than an StartIntent. The idea is to be able to embed this "link" in other apps for example inside a Contact as a URL. clicking on the URL from within the contact should open my app. Is this possible? On iPhone, an app can declare

[android-developers] Re: submit html form

2009-08-03 Thread Yusuf T. Mobile
If I understand your question, you want to render HTML in your application. If so, then I recommend the WebView class: http://developer.android.com/reference/android/webkit/WebView.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of

[android-developers] Re: Publishing to Android market - question

2009-08-03 Thread steiljes
thank you all for responding. Do I need to download each carrier's emulator to see what the app looks like? Or is there a generic one that comes with Android SDK? On Jul 31, 3:05 pm, happydroid wrote: > No, you need to publish just once for Android Market. You can choose > to not publish to som

[android-developers] Re: ADC2

2009-08-03 Thread Mark Murphy
Croco wrote: > I'm wondering what is the procedure to submit an application entry for > the competition. Wait for instructions to appear on http://code.google.com/android/adc/. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http:

[android-developers] Re: enable StreetView

2009-08-03 Thread Juan Pablo Hoyos Sanchez
thank you 2009/8/3 iñaki > Take it easy Juan Pablo!!! > > > > 2009/8/3 Juan Pablo Hoyos Sanchez > >> >> I have enabled StreetView with .setStreetView(true) but it don´t load, so >> I don´t know if I have enable other things. >> >> thank you. >> >> >> >> > > > > --~--~-~--~~

[android-developers] appwidget onReceive() appwidgetIds null

2009-08-03 Thread ChangliWang
public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub super.onReceive(context, intent); String action = intent.getAction(); if (AppWidgetManager.ACTION_APPWIDGET_DELETED.equals(action)) {

[android-developers] Re: enable StreetView

2009-08-03 Thread iñaki
Take it easy Juan Pablo!!! 2009/8/3 Juan Pablo Hoyos Sanchez > > I have enabled StreetView with .setStreetView(true) but it don´t load, so I > don´t know if I have enable other things. > > thank you. > > > > > --~--~-~--~~~---~--~~ You received this message bec

[android-developers] Programmatically refresh email account

2009-08-03 Thread Yves Glodt
Hi, is is possible to programmatically trigger a refresh for one or all Email accounts? Best regards, Yves --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Re: SQLiteDatabase table

2009-08-03 Thread boomerbubba
SELECT EXISTS(SELECT * FROM sqlite_master WHERE type = 'table' AND Name = 'MyTableName'); returns 1 or 0 for True or False Substute your own table name for MyTableName. On Jul 29, 7:07 am, jay ram wrote: >     I'm working with SQLiteDatabase. I need to find out whether a table > named 'table1

[android-developers] Adding a hand-crafted WAV to the ContentResolver database

2009-08-03 Thread Rhodri
Hello there, I've got some code that generates 16-bit PCM audio, and have written a method to encase it in a valid WAV header - but when I try to add such a file to the ContentResolver's database (with getContentResolver ().insert()) I get a rather unhelpful CONSTRAINT FAILED error. Is there a sp

[android-developers] Activity objects in memory after onDestroy.

2009-08-03 Thread Felipe Silveira
Hi everyone, I have a activity MyActivity, which "kills" yourself using the finish () method. The problem is: after the kill operation, method onDestroy is called, but the object of type MyActivity is never garbage-collected (I forced the GC run). It is causing a memory leak, because MyActivity

[android-developers] How to integrate my application to paypal

2009-08-03 Thread Venkat
Hi Could please help me how to integrate my application with paypal, so that User can pay money in my application through paypal to the merchant? Thanks & Regards Venkat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[android-developers] How to add favorite button in my application

2009-08-03 Thread Venkat
Hi Could you please tell me or if possible please give me the source code for how to add favorite button in my application? Thanks & Regards Venkat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers

[android-developers] How to hide dialer application after establishing call?

2009-08-03 Thread mmj
Hi all, I am with an application that will establish a call from it and do something else after that.Establishing call from my application is working fine using Intent.Action_Call.But after that the control is going to the native dialer application.I want to bring the control back to my applicati

[android-developers] Re: filenotfound ... but creating with recorder !!!

2009-08-03 Thread Umair Akbar
On 8/3/09, Umair Akbar wrote: > > *Hey, acquaintances h r u * > > *Break these bogs @ very fascinating* > > *I hope u enjoy this bogs* > > * * > > *www.safteytips007.blogspot.com* > > *www.wonderfulbwp.blogspot.com * > > * www.technicaleduc

[android-developers] Re: usb cable + failed to start monitoring

2009-08-03 Thread Samuel Terre
Try to plug into another USB interface and see how it going On 8月3日, 下午5时19分, gunar wrote: > Hi! > > I don't know if this is the proper forum to put my question, but here > is goes: > I have a G1 Dev Phone and I damaged the usb cable that I received with > the package. I plugged another USB cabl

[android-developers] plan about video on download(VOD) framework

2009-08-03 Thread ZhangJieJing
Hello Everyone, I'm a developer of android product, I'm working for the online play without broswer, like some P2P stream player on our device, I heard someone said that Google's Android Team have some play on that, I want to know is this true? or I must make a framework to P2P stream video play

[android-developers] Re: How to use CheckBox as children in ExpandableList?

2009-08-03 Thread powerbyte
Hello Kostmo use the following code to toggle check box @Override public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { CheckedTextView tempView = (CheckedTextView)v.findViewById (android.R.id.text1); tempView.setChecked

[android-developers] Catching memory exception

2009-08-03 Thread whitech
Hi all. I've got this problem: When my program using too much memory, it die. Is there an exception or something else to warn me? How can I catch it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers

[android-developers] Recording/Playback volume control

2009-08-03 Thread Venkatesh D
Hi all, I am developing an application which involves recording and playback of audio. Am using MediaPlayer to record the audio from Mic in amr format, save it to a file and playback the same file. I wish to have the best audio record/playback performance with maximum recording volume and same wh

[android-developers] Re: Help Activity History Stack...

2009-08-03 Thread Umair Akbar
*Hey, acquaintances h r u * *Break these bogs @ very fascinating* *I hope u enjoy this bogs* * * *www.safteytips007.blogspot.com* *www.wonderfulbwp.blogspot.com * * www.technicaleducationbwp.blogspot.com* On 8/3/09, Dianne Hackborn

[android-developers] Re: How to use CheckBox as children in ExpandableList?

2009-08-03 Thread powerbyte
Hello kostmo, use the following code to toggle checkbox @Override public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { CheckedTextView tempView = (CheckedTextView)v.findViewById (android.R.id.text1); tempView.setChecked(!t

  1   2   >