[android-developers] Re: READ/WRITE HISTORY BOOKMARKS permissions broken???

2009-11-25 Thread joebowbeer
A couple related questions: 1. Can we assume these permissions are now standard (as of 1.6) because they are declared in android.Manifest? Or should we regard them as non-standard because their string constants begin with com.android. rather than android.? 2. Is it possible for an app to use

Re: [android-developers] Re: Background Service is not working.

2009-11-25 Thread Dianne Hackborn
The lifecycle is that onCreate() is called first thing when the service is being created in the process, for whatever reason. onStart() is called for each startService() call. On Wed, Nov 25, 2009 at 10:41 AM, jotobjects jotobje...@gmail.com wrote: On Nov 25, 5:25 am, saify.zeenwala

[android-developers] Re: 1.1 to 2.0: dalvik.system.PathClassLoader can't locate its own classes?

2009-11-25 Thread fadden
On Nov 24, 5:20 pm, Kennard Consulting rich...@kennardconsulting.com wrote: In summary, note that: 1. Dalvik is unable to locate 'org.metawidget.android.widget.AndroidMetawidget' 2. 'org.metawidget.android.widget.AndroidMetawidget' is in the original stack trace: it is, in fact, the calling

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Streets Of Boston
As in the comment in your bug-report by Romain, you're using too much memory. Note that you only have 16MByte total available RAM for your process, including your bitmaps. - Only load the bitmaps that are absolutely necessary (especially when they become quite large). - Load the bitmaps scaled to

[android-developers] Re: High performance access on static data: What is your approach?

2009-11-25 Thread Streets Of Boston
I use a RandomAccessFile for a thumbnail database. Works pretty fast (i haven't done any exact benchmarking). On Nov 24, 3:09 am, Marc Reichelt mcreich...@googlemail.com wrote: Hi! I am writing a program where I have to access some static data, and now I am looking for the best method of how

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
Great guesses! This happens randomly through my application, every half hour on a G1, every 5 mins on the droid. The error happens randomly, usually in setContentView, per another post of mine. On Nov 25, 11:11 am, Streets Of Boston flyingdutc...@gmail.com wrote: As in the comment in your

[android-developers] Re: Android Market Protocol

2009-11-25 Thread nEx.Software
WHAT??? Google doesn't want people to decode the protocol??? On Nov 25, 11:13 am, wimbet wim...@gmail.com wrote: I don't think Google wants you to decode their protocol. It would be nice if they just opened it up, but I don't see that happening anytime soon. On Nov 25, 9:41 am,

[android-developers] Re: fwd: get the file path from a URI instance

2009-11-25 Thread Streets Of Boston
Thanks! I never thought about going through the file-descriptor. But why is using the DATA column discouraged? It works fine and it's a public column (not part of a private API or such). On Nov 17, 12:42 pm, Dianne Hackborn hack...@android.com wrote: On Tue, Nov 17, 2009 at 7:06 AM, Streets Of

[android-developers] Re: Nested Table layout not showing

2009-11-25 Thread jotobjects
This example might help - http://caguilartech.blogspot.com/2009/08/notes-on-android-tablelayouts-and.html On Nov 25, 10:38 am, Patrick Plaatje pplaa...@gmail.com wrote: Hi there, thanks for the response, but i need to add rows to the table dynamically, so an xm file is not an option i guess.

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
Matt, So in this case I definitely am frequently loading and unloading small images. Those 10 id's all point at different states in our animation. I can reduce the quality of our animation by reducing the views, and decrease how often I stumble down this cow path: but I only posted this stack

[android-developers] Re: Android Market Protocol

2009-11-25 Thread strazzere
If you mean 'authToken' for the 'tokenId', then I don't think you fully read the blog. There is a post that describes exactly that. As for fully decoded? Plenty of people have done it so far, OK maybe not plenty but I know quiet a few. Are people just releasing this as an API for everyone to use?

Re: [android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Hall
Yeah, we've had a similar issue before. One thing you can try is to call recycle() on the last frame of your animation before you replace it. This is normally called by the garbage collector and works fine when you're not close to the memory limit, but it sounds like there might be cases where you

[android-developers] How to retrieve FrameLayout with android:id=@android:id/tabcontent

2009-11-25 Thread Becca
Hi, I'm trying to retrieve the FrameLayout object that has its ID set to @android:id/tabcontent - doing this within a TabActivity class. How is this done? Is there a special notation to use with findViewById() with these types of IDs? Or does the TabActivity class have a method that I'm not

Re: [android-developers] How to retrieve FrameLayout with android:id=@android:id/tabcontent

2009-11-25 Thread Romain Guy
Hi, Simply use android.R.id.tabcontent to use ids from the android scope. On Wed, Nov 25, 2009 at 11:58 AM, Becca rsquaredcreati...@gmail.com wrote: Hi, I'm trying to retrieve the FrameLayout object that has its ID set to @android:id/tabcontent - doing this within a TabActivity class.  How

Re: [android-developers] How to retrieve FrameLayout with android:id=@android:id/tabcontent

2009-11-25 Thread Mark Murphy
Becca wrote: Hi, I'm trying to retrieve the FrameLayout object that has its ID set to @android:id/tabcontent - doing this within a TabActivity class. How is this done? Is there a special notation to use with findViewById() with these types of IDs? Or does the TabActivity class have a

[android-developers] Re: ADC2 is over - Devs, check your e-mail spam folder

2009-11-25 Thread Doug
Yeah, I found it quite ironic that official Google mail got spam- blocked in its own email product. Twice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: java.lang.OutOfMemoryError: bitmap size exceeds VM budget

2009-11-25 Thread Matt Kanninen
Thank you, this is exactly the sort of workaround I was looking for. I just filed the Media Recorder release bug, since the first bug got closed so fast. http://code.google.com/p/android/issues/detail?id=5047 On Nov 25, 11:43 am, Matt Hall matt.h...@gmail.com wrote: Yeah, we've had a similar

Re: [android-developers] Re: A good idea for collaborative code development...

2009-11-25 Thread Kenneth Adam Miller
Yea... who wants free invites though? i have like 34 On Wed, Nov 25, 2009 at 12:35 AM, Micah mi...@zoltu.net wrote: Good idea, probably the wrong group though. If there is a code.google.com group that would likely be more applicable, or the Google wave group perhaps. On Nov 24, 5:04 pm,

Re: [android-developers] Re: A good idea for collaborative code development...

2009-11-25 Thread Kenneth Adam Miller
to google wave I mean On Wed, Nov 25, 2009 at 2:22 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: Yea... who wants free invites though? i have like 34 On Wed, Nov 25, 2009 at 12:35 AM, Micah mi...@zoltu.net wrote: Good idea, probably the wrong group though. If there is a

[android-developers] google wave invites

2009-11-25 Thread Kenneth Adam Miller
who wants one? i have 34 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

Re: [android-developers] google wave invites

2009-11-25 Thread Jason Proctor
oh jc, here we go again. this is android-developers!!! please at least ask that people respond privately rather than flooding the list. who wants one? i have 34 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: fwd: get the file path from a URI instance

2009-11-25 Thread Dianne Hackborn
That only works if the provider's data exists somewhere that is world-readable, which is basically only the media provider. It really shouldn't be specified as a generic column, but something very specific to the media provider. I would strongly recommend not using it. On Wed, Nov 25, 2009 at

Re: [android-developers] google wave invites

2009-11-25 Thread Kenneth Adam Miller
oh sorry guys! what is it that I should do? On Wed, Nov 25, 2009 at 2:33 PM, Jason Proctor jason.android.li...@gmail.com wrote: oh jc, here we go again. this is android-developers!!! please at least ask that people respond privately rather than flooding the list. who wants one? i have 34

Re: [android-developers] google wave invites

2009-11-25 Thread Kenneth Adam Miller
ask that people respond privately... I didn't mean to disturb you guys the past few times with non related topics. I just got a g1 so I should be more on topic from now on anyway. sorry On Wed, Nov 25, 2009 at 2:40 PM, Kenneth Adam Miller kennethadammil...@gmail.com wrote: oh sorry guys! what

[android-developers] How to stop soft keyboard events for a disabled TextView ?

2009-11-25 Thread Derek
Hi, I would like to stop end-user to enter characters in TextView on specific conditions. I use TextView.setEnabled(false) it it works fine for regular keyboard. However, if I use soft keyboard then all characters are displayed in TextView even if it is disabled. How to disable/enable soft

[android-developers] Custom Tabwidget Styles

2009-11-25 Thread Becca
Hello, Has anyone had experience with this? I would like to make some small changes to the style of the built-in TabWidget (i.e. make the height smaller and change some colors). Is there a relatively simple way of doing this and can someone point me in the right direction please? Thanks,

[android-developers] best way to go from GeoPoint to Location

2009-11-25 Thread tatman
I have a GeoPoint (point from MapView) object and Location (from LocationManager) object. I want to compute the distance between the two. Location has a distanceTo function. I cannot create a new Location object from lat, lon values. What is the recommended way for doing this? Matt -- You

[android-developers] Re: Custom Tabwidget Styles

2009-11-25 Thread nEx.Software
When using Donut or higher, you can provide your own views for the tabs (and essentially make them look however you want). If wanting to stay compatible with Cupcake, you can easily do that too, but you have to copy the Donut source for the TabHost/TabWidget stuff into your project. I actually

Re: [android-developers] best way to go from GeoPoint to Location

2009-11-25 Thread Mark Murphy
tatman wrote: I have a GeoPoint (point from MapView) object and Location (from LocationManager) object. I want to compute the distance between the two. Location has a distanceTo function. I cannot create a new Location object from lat, lon values. What is the recommended way for doing

[android-developers] Re: PACKAGE_ADDED, PACKAGE_REMOVED and PACKAGE_REPLACED...

2009-11-25 Thread sdphil
ping... On Nov 18, 3:19 pm, sdphil phil.pellouch...@gmail.com wrote: how do you do that? I tried: receiver android:name=com.test.MyApp.UpdateReceiver     intent-filter         action android:name=android.intent.action.PACKAGE_ADDED/         action

[android-developers] Re: AutoCompleteTextView update from thread problem

2009-11-25 Thread Derek
Anyone ? On Nov 25, 8:56 am, Derek cram.de...@gmail.com wrote: Same problem here. Any solution ? I've tried to add textView.performValidation(); textView.showDropDown(); but it does not display drop down. On Nov 4, 6:42 pm, Tim timoth...@gmail.com wrote: I've posted this in a couple

[android-developers] Re: How to access source.android.com in china mainland?

2009-11-25 Thread moneytoo
http://groups.google.com/group/android-developers/browse_thread/thread/30209e18c22036cf/ On Nov 25, 9:28 am, BoBo jiang.bo@gmail.com wrote: I need the source code of Android and the source of SDK API, but I can't access source.android.com:(. what should I do? -- You received this message

[android-developers] Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Artem - WorkSmart Labs
Our app needs to do a tiny amount of work at boot-up to reschedule some reminders for the user. So we made a BroadcastReceiver for the boot event and declared it in our manifest. Everything works well, except many users have a habit of checking what's running right after starting the phone, and

[android-developers] Re: Only Droid Support Bluetooth API?

2009-11-25 Thread moneytoo
I've used G1 with beta 2.0 (from xda-devs) for developing Bluetooth application. I have to say it works perfectly. I had no stability issues. I have few testers with Droid and the app I'm working on works fine for them too. On Nov 25, 2:40 am, AGA changxiangzh...@gmail.com wrote: Hi, As we

Re: [android-developers] Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Mark Murphy
Artem - WorkSmart Labs wrote: Everything works well, except many users have a habit of checking what's running right after starting the phone, and they complain about our application running in the background all the time. How are they determining this? Android 2.0 has a new Settings page or

[android-developers] Re: No surfaceCreated() callback after phone wakes up

2009-11-25 Thread Michael Leahy (Tactel US)
This sounds very similar to a problem I saw previously also regarding SurfaceHolder callbacks not arriving properly. My experience was the opposite where I wasn't getting the callback upon the press of the END_CALL button. I filed a bug about 2 months ago that is here give a star and perhaps add

[android-developers] Re: sounpool problem

2009-11-25 Thread TonyDoc
I had issues with this too, converting all music to mp3 fixed it. I think there are weird bugs in soundpool relating to sample rates with wav files. On Nov 25, 2:49 pm, Jags jag...@gmail.com wrote: i am trying to play continuous background music using sound pool here is my code        

Re: [android-developers] Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Dianne Hackborn
They are probably looking at one of those $%^#!! task killer apps, and not understanding that just because a process exists does not mean it matters or anything. Unless you are actually starting a service and not stopping it, all they are seeing is that sometime during boot the system needed to

Re: [android-developers] Encrypting in PHP and Decrypting in Android

2009-11-25 Thread Raymond C. Rodgers
Here is PHP code I lifed out of a project that I've now abandoned. I'll find and post the Android side of things later. The basics are that I used the Rijndael-128+ECB encryption combined with Base-64 encoding to transmit information back and forth between the application and the web server.

[android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Artem - WorkSmart Labs
Yes, Dianne, they are using Advanced Task Killers, and I fully share your sentiment for those apps -- it makes our app look evil, even when it's trying to behave very well :) In the spirit of the Thanksgiving season, I'd like to be thankful for having users and Android being successful enough for

[android-developers] Android 2.0 Bugs in ContactsContract.Intents.Insert

2009-11-25 Thread wusch
Hi all, so I am using the Android 2.0 intents to create contacts. Looks like several of the Constants when past as Extra's in the Intent objects do not properly map to the fields in the Add UI in the contacts app. Specifically the ones I am having issues with are: COMPANY JOB_TITLE do not seem

Re: [android-developers] Android 2.0 Bugs in ContactsContract.Intents.Insert

2009-11-25 Thread Mark Murphy
wusch wrote: Hi all, so I am using the Android 2.0 intents to create contacts. Looks like several of the Constants when past as Extra's in the Intent objects do not properly map to the fields in the Add UI in the contacts app. Specifically the ones I am having issues with are: COMPANY

Re: [android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Cédric Berger
On Thu, Nov 26, 2009 at 00:52, Artem - WorkSmart Labs p.ar...@gmail.comwrote: Yes, Dianne, they are using Advanced Task Killers, and I fully share your sentiment for those apps -- it makes our app look evil, even when it's trying to behave very well :) And what about asking / helping task

Re: [android-developers] Re: How to access source.android.com in china mainland?

2009-11-25 Thread Fion Z
You can get source code by repo/GIT. Git server can be accessed in China. Then build a SDK from source code. On Thu, Nov 26, 2009 at 6:10 AM, moneytoo m...@seznam.cz wrote: http://groups.google.com/group/android-developers/browse_thread/thread/30209e18c22036cf/ On Nov 25, 9:28 am, BoBo

Re: [android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Cédric Berger
2009/11/26 Cédric Berger cedric.berge...@gmail.com Sorry if I still misunderstand, but I admit I am still not completely at clear about how the system exactly manages memory/processes, regarding exact priorities of what it will kill first. Where is it detailed in the docs ? - when will it

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-25 Thread James Wang
@PJ Thanks for your interesting. We just want to display such picture, no further edition on it. In fact, we know sharp brought us with a phone-fax product-in-phone (http://www.sharp.co.jp/in-phone/index.html) with 8000*8000 photo displaying supports. Although, in-phone is not an Android Box, but

[android-developers] Re: Is there any way to display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-25 Thread Streets Of Boston
My suggestion of a RandomAccessFile would involve only *one* file. This file is the RandomAccessFile, much like an uncompressed zip file, containing records, each record being a sub-jpeg. On Nov 25, 8:15 pm, James Wang jameswangc...@gmail.com wrote: @PJ Thanks for your interesting. We just want

[android-developers] Re: fwd: get the file path from a URI instance

2009-11-25 Thread Streets Of Boston
But if you know when you're dealing with images from the media- provider that are stored on the SD-card, then using the MediaStore.Images.ImageColumns.DATA column should be fine? On Nov 25, 3:34 pm, Dianne Hackborn hack...@android.com wrote: That only works if the provider's data exists

[android-developers] Re: Only Droid Support Bluetooth API?

2009-11-25 Thread Ben
Thanks for your reply. I'll get involve in that community and do some researches. On Nov 26, 6:19 am, moneytoo m...@seznam.cz wrote: I've used G1 with beta 2.0 (from xda-devs) for developing Bluetooth application. I have to say it works perfectly. I had no stability issues. I have few testers

[android-developers] how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-25 Thread Bryan
Sorry for the simple question, but I'm having trouble finding an answer. My app targets 1.5, and runs fine on my phone (1.6), but to support droid, I need the package android.telephony.cdma from 2.0. Targeting 2.0 excludes the current devices running my app (including my own G1), but as it is now,

[android-developers] Ellipsize attribute in 1.6???

2009-11-25 Thread prashant hegde
Hi All I have a layout that includes the following: AutoCompleteTextView android:id=@+id/search_code android:layout_width=fill_parent android:layout_height=wrap_content android:selectAllOnFocus=true android:completionThreshold=2 android:maxLength=60

[android-developers] Re: Interleaving vertex data in OpenGL ES

2009-11-25 Thread Marc
almost, but you need to bump the pointer instead of using cubeVertices for all 3; Well in my case I was using all GL_FLOAT, I think mixing float, byte short complicates the offset. Maybe the offset is in bytes and you need 7*sizeof(). Truth is I have not done it yet. I have just been reading up

Re: [android-developers] Debug config not stopping at break points

2009-11-25 Thread Brad Gies
Eclipse has a very limited amount of breakpoints allowed. If you're over the limit, some of them are disabled. Pierre Henry wrote: Why should the debugger dont make breakpoints stop when running an android app on Eclipse ? -- You received this message because you are subscribed to the

[android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread String
On Nov 25, 11:36 pm, Dianne Hackborn hack...@android.com wrote: I hate these task killers.  I hate hate hate them. Ah, but you're uniquely lucky in that you are in a position to no-op the API that they're misusing to mess with other apps. In the spirit of Thanksgiving, the rest of us (whose

[android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-25 Thread Ravi
My understanding is that You can't. I cloned my app for 2.0 (ofcourse you will loose your feedback and popularity) and set minSDK to 5 Catch 22: If you set min sdk to 5 aka 2.0, 1.5 1.6 can not see the app. If you set to 1.5 or 1.6 then you can not see your cdma package. On Nov 25, 9:31 pm,

[android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-25 Thread Bryan
Thanks for the quick reply. I was starting to fear that I'd need to publish a separate 2.0 app. I've not the time to start maintaining multiple releases, so I guess I'll just wait to support 2.0 until 2.0 is available for all devices. On Nov 25, 11:16 pm, Ravi textlo...@gmail.com wrote: My

[android-developers] Floating button?

2009-11-25 Thread Hongbo
Hey guys: I wonder how to make floating buttons, like the zoom button in the build-in web browsee? Actually there are 2 things i'd like to know: 1. How to make a view(button) floating above other views? 2. How to make the fade in/fade out effect regarding to touch screen? Thanks a lot -- You

[android-developers] Receiving inactivity notifications in service from android

2009-11-25 Thread swapnil kamble
Hi, I want to launch an activity only when there is no activity on android till a particular a period of time. I know the timer value, and I want notification after inactivity timeout of timer value. Just like what windows provides, you set some timer value and system will be locked after that

[android-developers] adding view to a layout dynamically

2009-11-25 Thread pav
Hi, I have drawn my own layout(myLayout.xml), inside which i want to get a listview.(other components in layout are surface view n edit text) along with dat i want to have a list view. methods i tried are, 1 i declared a single text view in one layout (list.xml) and used o array adapter to

[android-developers] prelink-linux-arm.map issues

2009-11-25 Thread anshexp
i want to add a shared library in android build . should i add that shared library to prelink-linux-arm.map file prelink-linux-arm.map file having the list of shared library name and address(Shared library address) like that # 0xC000 - 0x Kernel # 0xB010 - 0xBFFF Thread 0

[android-developers] Re: Android in China - What is going on?

2009-11-25 Thread Shane
Reading through this thread it makes me realize why it is great to live in a free country. I really do not know why the people of China put up with your government's actions Let the defending of your Chinese government begin! Shane On Nov 24, 8:06 pm, Jie Hong jie.j.h...@gmail.com wrote:

[android-developers] Screen Size

2009-11-25 Thread Sasikumar.S
Hi, What are the different screen size of android mobile? I need mobile screen size model number of those mobiles. any one can know about these? Thanks in advance... -- Thanks Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: No surfaceCreated() callback after phone wakes up

2009-11-25 Thread String
On Nov 25, 12:55 pm, David Given d...@cowlark.com wrote: Press HANGUP to turn screen off - onPause() surfaceDestroyed() Press HANGUP again to screen on, going to the screen lock page - onResume() Deactivate screen lock, switch back to game - nothing! Not only am I not informed

[android-developers] use of buildspec.mk

2009-11-25 Thread anshexp
hi, i am new to android i am trying to understand android makefile . can anybody tell me uses of buildspec.mk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Multiple Choice ListView with icons

2009-11-25 Thread wongxming
How to build a Multiple Choice ListView with icons? I try to implement using ImageView +CheckedTextView, but when I extends ArrayAdapter, it does not work well. Somebody makes a Multiple Choice ListView like this: ImageView + TextView + ImageView LinearLayout ImageView //icon

[android-developers] Re: Android unnecessarily hard to unit test?

2009-11-25 Thread James Wang
Hi, Kennard. I present my opinion on this topic(http://groups.google.com/group/ android-developers/browse_thread/thread/96cc0ca69c9c8c1b/ 4fb8f7f009d19670), it maybe helpful. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: why is my app asking to access phone calls and storage?

2009-11-25 Thread Max Binshtok
I am having the same problem and I just want to confirm: You are saying that when you try to install over the air (just by downloading APK file) you get asked those permissions, but when your application is installed through the Android Market - you are NOT asked for PHONE_STATE and STORAGE? Is

[android-developers] Re: Only Droid Support Bluetooth API?

2009-11-25 Thread windstorm
The sad thing is even beta 2.0 is not available for G2 and G3. So now your only choice is G1 if you don't go for Droid On Nov 25, 8:21 pm, Ben changxiangzh...@gmail.com wrote: Thanks for your reply. I'll get involve in that community and do some researches. On Nov 26, 6:19 am, moneytoo

[android-developers] Re: Android in China - What is going on?

2009-11-25 Thread shimsim
Like I said in the post, it's blocked 90% of the time, not all the time, which makes it even stranger. The strangest things though is just how quiet Google is being about this, actually less open that the GFW! Someone please shed some light on whats going on here On Nov 25,

[android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-25 Thread sathya subbiah
Hi, I am trying to mention X and Y values for the Bitmap image, but the phone panics on mentioning the values. Bitmap temp_image = Bitmap.createBitmap(mAlbumArtImage,0,0,old_width,old_height,matrix,true); - Phone does not panic with this code as X and Y values are 0 and 0 Panic code: Bitmap

[android-developers] Re: no title bar

2009-11-25 Thread Jags
Theme.NoTitleBar is predefined ? which tag it should be embedded with ? android:windownoTitle=true which tag it should be associated with ? Activity and Application refuse to take it ! On Nov 25, 11:42 pm, Dianne Hackborn hack...@android.com wrote: Or, best, set your activity to one of the no

[android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-25 Thread m_vitaly
You can use Reflection API to be able to use 2.0 api in 1.5 api level. There was an article about this from google. You are welcome to ask more about it. On Nov 26, 5:31 am, Bryan piusve...@gmail.com wrote: Sorry for the simple question, but I'm having trouble finding an answer. My app

Re: [android-developers] Re: no title bar

2009-11-25 Thread Dianne Hackborn
activity ... android:theme=@android:style/Theme.NoTitleBar / On Wed, Nov 25, 2009 at 10:31 PM, Jags jag...@gmail.com wrote: Theme.NoTitleBar is predefined ? which tag it should be embedded with ? android:windownoTitle=true which tag it should be associated with ? Activity and

[android-developers] Re: How to Track Down Force Closes?

2009-11-25 Thread rflexor
We have successfully implemented a crash-handler based on Thread.setDefaultUncaughtExceptionHandler(). You just have to make your ExceptionHandling-code fast and robust and must not rely on the availability of any resources. We just write the stacktrace to a file together with the versionnumber

[android-developers] Re: Android unnecessarily hard to unit test?

2009-11-25 Thread James Wang
I present my opinion on this topic(http://groups.google.com/group/ android-developers/browse_thread/thread/96cc0ca69c9c8c1b/ 4fb8f7f009d19670), it maybe helpful. =sorry, that topic is closed and I sent the reply to author directly. Please check

[android-developers] Receiving/Sending SMS in a particular Port

2009-11-25 Thread Saj TK
Hi All, I am just wondering if it is possible to receive SMS in a particular port. I believe by default all SMS messages are delivered to Port 0 and SMS manager gives the notification about this message. Is there any way in which we can send and Receive SMS messages in any particular port apart

Re: [android-developers] Re: how can I target api 1.6, but use packages from 2.0 (and safely)

2009-11-25 Thread Dianne Hackborn
You absolutely can. In fact Java gives you a lot of neat things you can do. For example, if you want to write a Service that uses the new onStartCommand() on 2.0 but still works on older versions with the old onStart(), just write it like this: @Override void onStart(Intent intent, int

[android-developers] Re: Android in China - What is going on?

2009-11-25 Thread 夏華
Android Official Site, youtube, facebook, twitter are blocked in China Mainland. But Google Sync, Market are all working fine on my G2. What is blocked and what is not is very clear, when you said 90% effect, it may because the unstable network. I really hope that android could be accessed. I

Re: [android-developers] Re: Android in China - What is going on?

2009-11-25 Thread Dianne Hackborn
On Wed, Nov 25, 2009 at 10:18 PM, shimsim shim@gmail.com wrote: The strangest things though is just how quiet Google is being about this, actually less open that the GFW! I doubt any of the Google employees on this group have any clue what the Chinese government does in blocking Google

Re: [android-developers] Re: why is my app asking to access phone calls and storage?

2009-11-25 Thread Dianne Hackborn
These are new permissions added to 1.6. If an application is targeting anything below API 4 (1.6), they will automatically be requested because in 1.5 and lower there was no restriction on these operations. As of 1.6 these permissions were added, and if you target API 4 or later you need to

[android-developers] Blocking Window key shortcut when specific activity is running

2009-11-25 Thread swapnil kamble
Hi All, I want to block window key shortcut, which takes user back to home screen by suspending current activity. I want to block that, I want to eat up that key event. I also wrote onkeydown handler using which I could eat up all other keys, but this key event is not been received by

[android-developers] Re: Android in China - What is going on?

2009-11-25 Thread 夏華
Politics is very complex. On Nov 26, 2:44 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Nov 25, 2009 at 10:18 PM, shimsim shim@gmail.com wrote: The strangest things though is just how quiet Google is being about this, actually less open that the GFW! I doubt any of the

Re: [android-developers] Re: No surfaceCreated() callback after phone wakes up

2009-11-25 Thread Dianne Hackborn
Regardless of issues with SurfaceView, you really should pause your game when it is paused and/or loses focus, and don't resume again until the user deliberately does so. They may have put their device to sleep, gone to bed, got up the next morning, unlocked the phone, and there is your game. It

[android-developers] Re: Android in China - What is going on?

2009-11-25 Thread 夏華
I think this post may be deleted soon.. That is what we called Politics -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Blocking Window key shortcut when specific activity is running

2009-11-25 Thread Romain Guy
You cannot block that event. On Wed, Nov 25, 2009 at 10:48 PM, swapnil kamble swap.kam...@gmail.com wrote: Hi All, I want to block window key shortcut, which takes user back to home screen by suspending current activity. I want to block that, I want to eat up that key event. I also

Re: [android-developers] Blocking Window key shortcut when specific activity is running

2009-11-25 Thread swapnil kamble
Hi, Thanks for your reply. My application is a locker application. So I have to block this key . On Thu, Nov 26, 2009 at 12:20 PM, Romain Guy romain...@google.com wrote: You cannot block that event. On Wed, Nov 25, 2009 at 10:48 PM, swapnil kamble swap.kam...@gmail.com wrote: Hi All,

Re: [android-developers] Blocking Window key shortcut when specific activity is running

2009-11-25 Thread Dianne Hackborn
You can not block it. On Wed, Nov 25, 2009 at 10:56 PM, swapnil kamble swap.kam...@gmail.comwrote: Hi, Thanks for your reply. My application is a locker application. So I have to block this key . On Thu, Nov 26, 2009 at 12:20 PM, Romain Guy romain...@google.com wrote: You cannot

Re: [android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Dianne Hackborn
On Wed, Nov 25, 2009 at 8:16 PM, String sterling.ud...@googlemail.comwrote: Ironically, I hate task killers in the hands of muppets, but as a developer I occasionally find them useful for removing all traces of my own apps from memory during testing. Go figure. You can use Manage

Re: [android-developers] Re: Users complaining of app running in background after it finishes executing Boot BroadcastReceiver

2009-11-25 Thread Dianne Hackborn
2009/11/25 Cédric Berger cedric.berge...@gmail.com And what about asking / helping task managers developers to improve their apps, so that they show more relevant (and understandable) information ? Android 2.0's Running Services UI is a much more appropriate solution. -- Dianne Hackborn

Re: [android-developers] Re: fwd: get the file path from a URI instance

2009-11-25 Thread Dianne Hackborn
If you know exactly that is what you are dealing with, okay. On Wed, Nov 25, 2009 at 6:46 PM, Streets Of Boston flyingdutc...@gmail.comwrote: But if you know when you're dealing with images from the media- provider that are stored on the SD-card, then using the

Re: [android-developers] Blocking Window key shortcut when specific activity is running

2009-11-25 Thread Romain Guy
Unfortunately you cannot block it, precisely for the reason you are mentioning. This is a guarantee for the user that she will be able to always go back to the Home screen and access settings, applications, etc. On Wed, Nov 25, 2009 at 10:56 PM, swapnil kamble swap.kam...@gmail.com wrote: Hi,   

[android-developers] ADC 2 and Android Market Place Application Error

2009-11-25 Thread croco
Hi all, I decided to put World of Bombs on the Market place but it ran unsuccessfully. The upload site ask me to change the package name since i've already an app with the same package already there. :( :( The thing is i can't see the ADC entry i used to for the contest to supress it and replace

[android-developers] input box text validation

2009-11-25 Thread Jags
i am using this inputbox for asking name to the user. I need to validate that user does not enter empty string and if enters i am trying not to dismiss the dialog http://www.anddev.org/viewtopic.php?p=12915 new AlertDialog.Builder(this) .setView(fl)

Re: [android-developers] Encrypting in PHP and Decrypting in Android

2009-11-25 Thread Raymond Rodgers
Here's the Android side of things. I did this under 1.1 I believe, but it still compiled and worked under 1.5. I suspect it'll probably work under 2.0, but I'll leave it up to you to locate and/or implement a Base-64 encoding/decoding scheme. Again, this is basic functionality to allow

[android-developers] killing the task in the application

2009-11-25 Thread Asif k
Hi All, I want to kill some tasks that I got through ActivityManager.RunningTaskInfo class. Is there any API available for that ? or Can you please suugest some approach to achieve that? I checked task.baseActivity but there is no finish() API here. Thanks, Asif -- You received this

[android-developers] disabling button onclicklistener for certain time

2009-11-25 Thread Jags
I have a typical problem where if i keep repetedly press a button, a certain value increases, actually i am supposed to increase once till it disappears [it disappears in 700 ms] public class CatchMeOnClickListener implements OnClickListener { public void onClick(View v) {

<    1   2