[android-developers] glTexImage2D is too slow,

2010-11-15 Thread 袁堂夫
when draw YUV frame use opengl 2.0 and shader on nexus one,but the function glTexImage2D is too slow ,cost 40-60 ms who can fix it ?I want know whether EGLimage can fix it,but I do not know how use EGLimage,who can give me some examples? the key codes:

[android-developers] Re: Home button LongPress issue.

2010-11-15 Thread AJ
Do you calling finish() on Activity A while launching Avticity B? Thanks, AJ On Nov 15, 4:12 pm, Muhammad maks@gmail.com wrote: Hi I need Immediate help!! When i launch app after splash screen Activity  A is launched .In activity A there is a button on clicking that button Another

[android-developers] Re: Best tool to visualize an Android Project ?

2010-11-15 Thread ko5tik
On Nov 15, 7:07 am, Saurabh shahsaurabhs...@gmail.com wrote: Hello All; Can anyone suggest me a good tool to quickly understand a reasonably big Android project: the class hierarchies, relations and methods via some visual means? Is some kind of plugin available that we can point it to the

[android-developers] Re: Read Barcode

2010-11-15 Thread John-Z80
The best way is to install the BarcodeScanner application from google (it's free on the market), then you can call it with an Intent, and get the results back in a String. Something like: Call the QRCOde: Intent intent = new Intent(com.google.zxing.client.android.SCAN);

Re: [android-developers] Re: android.telephony.SmsManager.sendTextMessage throw exception when destination addr is email addr

2010-11-15 Thread 陈增顺
Check the length of sMessage, if the message body is too long it may course this exception. Try to split your message body into shot pieces. Good luck! 2010/2/4 sherry syang...@gmail.com This exception only occurs in emulator not on actual device. On Feb 3, 2:54 pm, sherry syang...@gmail.com

Re: [android-developers] Re: android.telephony.SmsManager.sendTextMessage throw exception when destination addr is email addr

2010-11-15 Thread 陈增顺
You can call SmsManager.divideMessage(String) to split your message by legal length. 2010/11/15 陈增顺 samuel...@gmail.com Check the length of sMessage, if the message body is too long it may course this exception. Try to split your message body into shot pieces. Good luck! 2010/2/4 sherry

[android-developers] Re: Home button LongPress issue.

2010-11-15 Thread Muhammad
yes on Activity A as well as on Activity B On Nov 15, 1:06 pm, AJ ajeet.invinci...@gmail.com wrote: Do you calling finish() on Activity A while launching Avticity B? Thanks, AJ On Nov 15, 4:12 pm, Muhammad maks@gmail.com wrote: Hi I need Immediate help!! When i launch app after

[android-developers] Re: LocationListener and getLastKnownLocation

2010-11-15 Thread John-Z80
Yes the onCreate is called always when the application starts (I've even tried to uninstall application and install again), but the getLastKnownLocation does not return the previous positions taken by my application (positions captured by the activity listener), one workaround could be to store

Re: [android-developers] How to make phone call from home screen widget?

2010-11-15 Thread Marcin Orlowski
On 15 November 2010 06:54, Rohith Nandakumar rohith.nandaku...@gmail.com wrote: I have a widget, and I want it to make a phone call to a preset number when the user clicks on it. How do I do this? The same way you call from any other code. Intent intent= new Intent(Intent.ACTION_CALL);

Re: [android-developers] Re: Read Barcode

2010-11-15 Thread Marcin Orlowski
On 15 November 2010 09:28, John-Z80 gabi.ins...@gmail.com wrote: The best way is to install the BarcodeScanner application from google BarcodeScanner is ZXing Team's not google -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: How to change the name of an app in the application menu?

2010-11-15 Thread MobileVisuals
Thanks, it worked! On 13 Nov, 16:25, Mark Murphy mmur...@commonsware.com wrote: On Sat, Nov 13, 2010 at 9:59 AM, MobileVisuals eyv...@astralvisuals.com wrote: Thelistingnameof anappin theapplicationmenuisdeterminedby the activity android:name tagg. How can I change thisnamewithout

[android-developers] Mutating of nine-patch images

2010-11-15 Thread Евгений Григорьев
Hi all. I have a problem with using nine patch images. I have an original picture: http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRgCMLX1v_14p_6hQE#5539703233595974274 Than i use nine-patch tool from sdk to set 2-pixel stretchable area in the center of horizontal line. Then i

Re: [android-developers] Mutating of nine-patch images

2010-11-15 Thread Kumar Bibek
You should stretch the areas that are uniform. That is, do not stretch the corners. That should fix this problem 2010/11/15 Евгений Григорьев grigoriev.evgen...@gmail.com Hi all. I have a problem with using nine patch images. I have an original picture:

[android-developers] Re: Best tool to visualize an Android Project ?

2010-11-15 Thread Saurabh
Currently I am using Eclipse IDE for development. I saw on the page for IntellliJ plugins repository that the Android plugin is not being actively developed. I would prefer sticking to Eclipse, at least for now. Any tools for this purpose? Perhaps a Eclipse UML plugin? On Nov 15, 4:20 pm, ko5tik

[android-developers] Re: not well-formed invalid token parser.pm

2010-11-15 Thread Android Humanoid
Can you please suugest what to do now, to handle it or by pass it On Nov 14, 11:00 pm, Frank Weiss fewe...@gmail.com wrote: Without more detailed debugging info, I would guess that there is a character coding issue. If the input stream reader is expecting UTF-8, the copyright symbol, U+00AA,

[android-developers] help in getting python working

2010-11-15 Thread Salil GK
Hi I have installed python environment using python_for_android_r1.apk file. While installing, it installed some other 'extra packages' also so almost 8 - 10 MB files are instralled looks like. I got an icon in my applications, as Python for Android. But now when I try to execute this by

[android-developers] Modularity: advises to develop an applicatin plugin that could access application Sqlite, preferences, ...

2010-11-15 Thread Thierry Legras
Hi, I want to add a big feature to an application i am developping, but as this feature interest few people and is quite independant from the main part, I would like to put that in a seperate plugin application. Does anyone knows any design patterns, snippets, reference examples about such

[android-developers] alignment issue in top left and top right

2010-11-15 Thread alok upadhyay
hi !!i done it and using relativelay. i am facing a new problem ie, i want to fill whole screen with the background image.code i am trying is: requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FILL_PARENT,WindowManager.LayoutParams.FLAG_FULLSCREEN);

Re: [android-developers] Re: Camera saving corrupted photos

2010-11-15 Thread Mark Murphy
Agreed. I tossed out the manifest change as an idea just in case the bug was somehow tied to dynamically setting full-screen mode. If you think of it, write this up as an issue on http://b.android.com, no so much for the bug itself (which is probably an HTC thing), but as a CTS bug, since ideally

[android-developers] Connection device problem

2010-11-15 Thread RKJ (Android developer)
Hi All, I want to run my apps in devices directly not in emulator (htc), i install htc sync, again running in emulator, what to do.? Thanks in advance -- 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] Re: Layout help - limiting dialog size

2010-11-15 Thread Neilz
Ok, I'm hoping for some luck with the Monday daytime crowd... I can't resolve this. I'm even trying to get hold of the height of the Dialog after it's been drawn, but all I get is -1 or 0: LinearLayout frame = (LinearLayout) layout.findViewById(R.id.dialog_root); Log.e(Tag, HEIGHT +

Re: [android-developers] Re: Explicit intents

2010-11-15 Thread Mark Murphy
On Sun, Nov 14, 2010 at 11:15 PM, Peter Webb r.peter.w...@gmail.com wrote: Lets say I have an Activity on top of the stack. It passes an intent to another of my apps but doesn't finalise, and the new app is now on top of the stack. It sends an intent back to the original application.

Re: [android-developers] Connection device problem

2010-11-15 Thread Rocky
i got solution, just need to sync with system. but i'm getting no network connection, but while working with emulator not showing any errors On Mon, Nov 15, 2010 at 5:34 PM, RKJ (Android developer) rkjhaw1...@gmail.com wrote: Hi All, I want to run my apps in devices directly not

[android-developers] Re: Collecting my Market installation statistics

2010-11-15 Thread Lance Nanek
Here's what I can open source of the scraper I use: http://code.google.com/p/skylight1/source/browse/trunk/MarketConsoleScraper/ The juiciest file being here: http://code.google.com/p/skylight1/source/browse/trunk/MarketConsoleScraper/src/com/wsl/marketconsolescraper/logic/Scraper.java It

[android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread kk
DanH, I've had a look at the allocations using DDMS. The only things that are being allocated during the game (that I have control over) are Integer.toString and Drawable.setBounds calls. Also, I calling System.gc() periodically and it logs the time taken to do the collection...It doesn't seem

[android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Neilz
Hi Mark. I've taken a look at this, and put together a quick sample based on your demo. It seems to me that you must have your list content already separated before adding them to the ListView. So, you add one Array, then you add a different View, then you add another Array. I can probably find

Re: [android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread Kostya Vasilyev
SetBounds has a version that takes four integers - no new Rect is necessary. As for Integer.toString - it's easy enough to write your own version that outputs the result into a supplied char[] buffer, that's only allocated once. Canvas.drawText() has a version that takes char[]. But I

[android-developers] Webview and native http requests clash

2010-11-15 Thread Ashwini
I have an app which has webviews to point to a url to browse pages. I also need to download data in background using httpurlconnection from the same server. When both are going on at the same time, webview at times displays the results from the http request, even though it didn't make the request

Re: [android-developers] Getting Keyboard To Appear With Ought Having To Click on EditText

2010-11-15 Thread TreKing
On Sun, Nov 14, 2010 at 8:44 PM, Prasanna Perera prasanna.per...@gmail.comwrote: Is there a way to get the keyboard to automatically pop up when I bring up the AlertDialog so that the user does not have to click on the EditText filed to get the Keyboard. Programmatically set focus on the

[android-developers] How to do selective compiling in Android

2010-11-15 Thread MathiasL
My problem is this. I want build an app that runs on most Android Platforms, but uses some APIs that's unavaliable in the older versions, e.g. 1.6 I have read the long discussion in

[android-developers] Re: Mutating of nine-patch images

2010-11-15 Thread Евгений Григорьев
I mark only 2 center pixels as stretchable area. The problem is not stretching, but small changes in color of line and little mutations of corners. I thought it can be resolved by putting original picture to raw resource folder, but in this case it is not stretched correctly. On 15 ноя, 15:00,

[android-developers] Bluetooth BUG in the framework?

2010-11-15 Thread Gergely Juhász
Hi! I have a problem with bluetooth scan mode. I am not sure, but i think the BluetoothAdapter.ACTION_SCAN_MODE_CHANGED intent never contains EXTRA_PREVIOUS_SCAN_MODE extra. According to the doc it should:

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Thierry Legras
Hi, I found something that highlights Kostya solution including a trick to avoir header to appear selected: http://thebogles.com/blog/2010/02/section-headers-for-android-listviews/ This seems straightforward to follow ... except that i can't get previous record. Unfortunately the

[android-developers] How to fly to a location in Google Earth from your android app

2010-11-15 Thread StevePotell
There are not any current published API's for Google Earth Android version. The current version does handle search intents. You can launch Google Earth in Android and fly to a location with the following intent: Please keep in mind Google could change this at any time and the following code

[android-developers] New Line in SMS

2010-11-15 Thread welly tambunan
Hi all, i'm trying to send 2 line of sms with this code String messageToSent = Some line\nAnother line; SmsManager sms = SmsManager.getDefault(); System.out.println(Sending SMS to: + phoneNumber + , message: + messageToSent);

[android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Neilz
Interesting solution thanks , and I've kind of got it working very quickly. Unfortunately the headers are still clickable when visible (as they're part of a list item), so it's not as clean a solution as the MergeAdapter - if I can get that working! On Nov 15, 3:10 pm, Thierry Legras

Re: [android-developers] LocationListener and getLastKnownLocation

2010-11-15 Thread TreKing
On Fri, Nov 12, 2010 at 3:30 AM, John-Z80 gabi.ins...@gmail.com wrote: close the application, start again and getLastKnownLocation and I got no position... why? What's no position? Null? Zeroes? Not what had last time? Something random?

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread niko20
DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); ScreenWidth = dm.widthPixels; ScreenHeight = dm.heightPixels; And then set your main view's height and width to match those values.

[android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread kk
Just to make sure, can someone please tell me if I'm misusing StringBuilder here. This is what I do: private StringBuilder m_healthString = new StringBuilder(8); I update by doing: m_healthString.replace(0, 8, Integer.toString(myHealth)); Is this expensive/wrong? Is there a better way to update

Re: [android-developers] Modularity: advises to develop an applicatin plugin that could access application Sqlite, preferences, ...

2010-11-15 Thread TreKing
On Mon, Nov 15, 2010 at 5:09 AM, Thierry Legras tleg...@gmail.com wrote: - that separate plugin application should be able to access some tables in the main application DB. Is it possible to do that without broadcast receiver? Look into ContentProvider. - the main application uses a

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Kostya Vasilyev
Ok, so I had a cursor-based ListView laying around, and decided to try and practice what I preach :) Got it working in just a few minutes, actually. The second screenshot shows that there aren't any issues with trackpad based selection highlighting, at least on my Motorola Milestone. To

Re: [android-developers] How to do selective compiling in Android

2010-11-15 Thread TreKing
On Mon, Nov 15, 2010 at 8:25 AM, MathiasL mathiaslarsso...@gmail.comwrote: How do I do to get around this problem? Build against a version of the platform that has the function you're trying to use. Also, using a String constant for the build version and checking contains is quite silly

[android-developers] webview cookie issue

2010-11-15 Thread Ashwini
I am writing a client server comms app. The server does a 302 temporarily down whenever the user requests to logout. The new url redirects the user the main page. This 302 response clears off the cookies, but webview I am using in the app doesn't seem to clear the cookies correctly and keeps the

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Thierry Legras
Could you please share the way you grab the previous row from within setViewValue? :) 2010/11/15 Kostya Vasilyev kmans...@gmail.com Ok, so I had a cursor-based ListView laying around, and decided to try and practice what I preach :) Got it working in just a few minutes, actually. The

Re: [android-developers] Modularity: advises to develop an applicatin plugin that could access application Sqlite, preferences, ...

2010-11-15 Thread Thierry Legras
Thanks TreKing. This seems a very good start. I will try that. Thierry. 2010/11/15 TreKing treking...@gmail.com On Mon, Nov 15, 2010 at 5:09 AM, Thierry Legras tleg...@gmail.com wrote: - that separate plugin application should be able to access some tables in the main application DB. Is it

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Pent
Here's a dialog I have with a webview top and a button row bottom. In general I've found dialogs to be a total pain to layout. Pent LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 8:12 AM, Neilz neilhorn...@gmail.com wrote: It seems to me that you must have your list content already separated before adding them to the ListView. So, you add one Array, then you add a different View, then you add another Array. That's what MergeAdapter does. As I

Re: [android-developers] New Line in SMS

2010-11-15 Thread Marcin Orlowski
i'm trying to send 2 line of sms with this code String messageToSent = Some line\nAnother line; Blind guess - tried CR? -- 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] Re: Adding separators to a ListView

2010-11-15 Thread Neilz
Maybe I can shuffle the order of your long list ;-) Yes and yes, though probably not easily. You might consider Kostya's approach. Creating a CursorHeadingAdapter or some such is on my 18,000-item to-do list. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Neilz
Nico, the problem here is that I want the dialog to wrap (shrink) where the text isn't that big. I simply can't get hold of the size of the dialog once it's displayed, so I have no idea when to set what you show below. So the layout itself has to do the shrinking, but stay at a maximum height

Re: [android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Mark Murphy
I'd consider going android:layout_height=0px on the WebView. I'm not sure what wrap_content means in this context, particularly if the content is long. On Mon, Nov 15, 2010 at 12:15 PM, Pent tas...@dinglisch.net wrote: Here's a dialog I have with a webview top and a button row bottom. In

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Kostya Vasilyev
Sure. This is my list view activity, including the adapter: http://pastebin.com/MrD03Uv9 This is the plain list item layout: http://pastebin.com/6fKWEkfc And this is the layout that starts a new group, with the header: http://pastebin.com/QMB12kWD The code in the list adapter probably

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Kostya Vasilyev
Since this came up before, and generally *seems* useful, should I post the entire recipe somewhere? (i.e. my blog)? 15.11.2010 20:32, Neilz пишет: Maybe I can shuffle the order of your long list ;-) Yes and yes, though probably not easily. You might consider Kostya's approach. Creating a

Re: [android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 12:50 PM, Kostya Vasilyev kmans...@gmail.com wrote: Since this came up before, and generally *seems* useful, should I post the entire recipe somewhere? (i.e. my blog)? Sounds cool by me! -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Pent
I'd consider going android:layout_height=0px on the WebView. I'm not sure what wrap_content means in this context, particularly if the content is long. Yes, that's the usual combo, and works here too. Most of my dialog layouts are the result of 30 rounds of 'maybe this wiill work' tweaking.

[android-developers] Re: Adding separators to a ListView

2010-11-15 Thread Neilz
Yes please Kostya, and thanks for your input :-) On Nov 15, 5:50 pm, Kostya Vasilyev kmans...@gmail.com wrote: Since this came up before, and generally *seems* useful, should I post the entire recipe somewhere? (i.e. my blog)? 15.11.2010 20:32, Neilz пишет: Maybe I can shuffle the order of

Re: [android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread Dianne Hackborn
On Mon, Nov 15, 2010 at 8:37 AM, kk kkostia...@gmail.com wrote: private StringBuilder m_healthString = new StringBuilder(8); I update by doing: m_healthString.replace(0, 8, Integer.toString(myHealth)); Is this expensive/wrong? Is there a better way to update a StringBuilder with a new

[android-developers] Custom checkable ImageView

2010-11-15 Thread Bret Foreman
I trying to create an ImageView with 3 states - default, pressed, and checked. I've extended ImageView, implemented the Checkable interface, and created a selector drawable file with entries for the three states. But I'm confused about just how it all is supposed to work. I've got the default and

Re: [android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread Kostya Vasilyev
What I was suggesting was, rather than using Integer.toString(), or any other String / StringBulider methods, format the value yourself. In class declaration: char[] mMyHealthStr = new char[8]; int mMyHealthLen = 0; When drawing: // convert integer to string in mMyHealthStr, set mMyHealthLen

[android-developers] Re: Custom checkable ImageView

2010-11-15 Thread Kumar Bibek
This might give you some hints http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/CompoundButton.java On Nov 15, 11:54 pm, Bret Foreman bret.fore...@gmail.com wrote: I trying to create an ImageView with 3 states - default, pressed, and checked.

Re: [android-developers] Activity display over incoming call screen

2010-11-15 Thread mohammad Rukab
Thanks All , I resolved problem through work around solution.. Thank Again. On Mon, Nov 15, 2010 at 2:39 AM, Dianne Hackborn hack...@android.comwrote: On Sun, Nov 14, 2010 at 3:27 AM, mohammad Rukab mohammad.ru...@gmail.comwrote: This issue can resolve through put a delay before fire new

Re: [android-developers] Calling an external application problem.

2010-11-15 Thread Diego Queiroz
tyvm! look, tried to modify my code to accomplish what u said (didn't get it very clear) so here's the final solution i got by trying your tip out: try { Intent mainIntent = new Intent(Intent.ACTION_MAIN); ComponentName batteryUseComponent = new ComponentName(

[android-developers] force resolution be be higher than 800*480

2010-11-15 Thread billconan
Hello guys, I'm working on a game application and because the testing phones i use have 800*480 and 854*480 resolutions, I created my game assets based on 800*480 resolutions. supporting low resolution will result in changing lots of my code. and the game experience on low resolution screens will

[android-developers] Re: Game performance degrading over time - any ideas?

2010-11-15 Thread kk
Top stuff Kostya/Dianne. Thank you for the feedback. I think before I look into anything else, I should do this first to get rid of the thousands of micro-allocations that take place there. UI elements are drawn about 20 times per second and although I cache values that don't change, a lot of the

[android-developers] Accessing style items by style ID

2010-11-15 Thread Vitaliy Tarasenko
Hello. I have a problem. Any View have a constructor public View (Context context, AttributeSet attrs, int defStyle) which called when View declared with a style attribute So, if I have some class inherited from View class, I can access to declared attributes (like android:layout_width or

Re: [android-developers] force resolution be be higher than 800*480

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 3:34 PM, billconan billco...@gmail.com wrote: I'm working on a game application and because the testing phones i use have 800*480 and 854*480 resolutions, I created my game assets based on 800*480 resolutions. supporting low resolution will result in changing lots of my

[android-developers] Re: Layout help - limiting dialog size

2010-11-15 Thread Neilz
Pent... your layout did the trick for me. Strange thing is, I can't really understand why yours works and mine doesn't... that's android for you I guess! Thanks :-) Oh, and this time for once, layout_height=0px; didn't work. It actually made it zero height. On Nov 15, 5:15 pm, Pent

[android-developers] Force all tabs in a TabActivity to initialise

2010-11-15 Thread kl4232
I have a TabActivity class that has 3 tabs on it. Typically you pick 1 to be currently active and it initializes. Only when you select another tab is that one initialized. Is there any way to force all 3 tabs to initialize onstartup. Calling setCurrentTab(0); setCurrentTab(1); setCurrentTab(2);

Re: [android-developers] Referencing a library adds libraryProj_src reference

2010-11-15 Thread Xavier Ducrohet
http://developer.android.com/guide/developing/eclipse-adt.html#libraryMigrating Xav On Wed, Nov 10, 2010 at 3:39 AM, oriharel ori.ha...@gmail.com wrote: Hi, after updating Eclipse Android plugin (ADT 0.9.9) I get strange behavior. I have one android project referencing another

[android-developers] Re: help in getting python working

2010-11-15 Thread Kristian
Hi, I think Python for android either requires you to use the ASE or run it from the terminal. Try to use adb to connect to your phone, type python and see what happens. If it works, you should enter the interactive shell. -Kristian -- You received this message because you are subscribed to

[android-developers] ClassNotFoundException for a compiled class

2010-11-15 Thread pskr
Hi, I am writing an application and due to various reasons I had to build it using make (froyo code) and not SDK. When I run my app on emulator it works fine. I have an Android device and code to build image for the device. When I build my app with device code, it builds fine. How ever, when

[android-developers] Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
I am using the following to obtain the ANDROID_ID for the device: Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID); Unfortunately this is returning null on 1.6 system (emulator and actual devices). I have also tried using Settings.Secure.ANDROID_ID; which is

Re: [android-developers] Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread Mark Murphy
That should work on devices. It returned null on the emulator until 2.2 (or maybe 2.1, not sure when they made that cutover). But I have definitely gotten it to work on 1.6 devices, though I haven't tried in quite some time. On Mon, Nov 15, 2010 at 6:52 PM, John Gaby jg...@gabysoft.com wrote: I

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
I just double checked it on a Motorola Devour running 1.6 and it is definitely returning a null. I will see if I can find another 1.6 device and check to see if it is just this particular one. Given that this call CAN return null, is there some other way to get a unique id for the device?

Re: [android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread Mark Murphy
On Mon, Nov 15, 2010 at 7:17 PM, John Gaby jg...@gabysoft.com wrote: I just double checked it on a Motorola Devour running 1.6 and it is definitely returning a null.  I will see if I can find another 1.6 device and check to see if it is just this particular one.  Given that this call CAN

Re: [android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread Brad Gies
Settings.System.getString(getContentResolver(), Settings.System.ANDROID_ID); Sincerely, Brad Gies --- Bistro Bot - Bistro Blurb http://bgies.comhttp://nocrappyapps.com http://bistroblurb.com

[android-developers] Short survey for a friend

2010-11-15 Thread James Payne
Hi guys A friend of mine is studying the economics of app development at USC this fall. She's putting together a paper which she will send you if you are interested. Here's a link to the survey - I just completed it and it only took a couple of minutes:

[android-developers] How to make network reconnection in the app of c/s?

2010-11-15 Thread Jenus Dong
Hi, all Such like messager app, client/server framework, using tcp long connection using heart beating packet. Cause TCP connection, so when local network is diable or changed, connection would be disconnected. But to the client, it may not be known right now till the next interaction with the

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Thanks for the info, but, as I stated at the beginning of this thread, that is exactly what I am using now, and I can tell you it does NOT work on some devices. On Nov 15, 4:59 pm, Brad Gies rbg...@gmail.com wrote: Settings.System.getString(getContentResolver(), Settings.System.ANDROID_ID);

Re: [android-developers] How to make network reconnection in the app of c/s?

2010-11-15 Thread Miguel Morales
Something like this wouldn't be hard to implement in your application. Android offers several classes that will help you in probing for the state of the network connection, wifi connection, etc. If what you're doing is just regular socket TCP communication simply wrap your communication in an

[android-developers] Re: Custom checkable ImageView

2010-11-15 Thread Bret Foreman
Hmm, the git example was remarkably unhelpful. A few comments in the code would be nice. Anyway, here's what I'm trying to do: My selector XML looks like this: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item

[android-developers] Get the screenshot includes the current wallpaper without DDMS

2010-11-15 Thread Vic
I applied android:theme=...@android:style/Theme.Wallpaper” to get the current wallpaper as the background of my application. Then, I used the getRootView().getDrawingCache() to get the screenshot of my application. I found that the screenshot didn’t include the current wallpaper. Does anyone know

[android-developers] Looking for ListAdaptor pattern

2010-11-15 Thread Bret Foreman
I have a custom layout with a lot of Views. Currently, I build the entire view hierarchy in the onCreate, though I stream the actual work in small batches. This works OK up to about 1000 Views and then performance degrades a little. Obviously, I'd like to use the ListAdapter pattern and only

[android-developers] Unexplained Errors from Android MediaPlayer

2010-11-15 Thread Prajakta Shitole
Hi All, I am getting the below errors from the Media Player Error(1, -1002) or Error(1, -2147483648) Has anyone been able to resolve these errors? is this because of the media format? Any kind of help is highly appreciated. Thanks, Prajakta -- You received this message because you are

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Ok, I tried it out on an HTC Tatoo also running 1.6, and it returns a value, so it does happen on only some devices. However, I really need a unique id that will work on every device. Do you have any suggestions about what I could use in the case where the ANDROID_ID is null? Thanks. On Nov

[android-developers] Re: Cannot get ANDROID_ID on 1.6 systems

2010-11-15 Thread John Gaby
Thanks, I will give those a try. On Nov 15, 4:24 pm, Mark Murphy mmur...@commonsware.com wrote: On Mon, Nov 15, 2010 at 7:17 PM, John Gaby jg...@gabysoft.com wrote: I just double checked it on a Motorola Devour running 1.6 and it is definitely returning a null.  I will see if I can find

[android-developers] Re: Get the screenshot includes the current wallpaper without DDMS

2010-11-15 Thread Mooncheol Yang
because Root view doesn't have notify area or background. there is no way to get full screenshot without being rooted. On 11월16일, 오전11시07분, Vic kvic2...@gmail.com wrote: I applied android:theme=...@android:style/Theme.Wallpaper” to get the current wallpaper as the background of my

[android-developers] Re: Looking for ListAdaptor pattern

2010-11-15 Thread Mooncheol Yang
use holder pattern, look for google I//O, even better if use cache pattern On 11월16일, 오전11시08분, Bret Foreman bret.fore...@gmail.com wrote: I have a custom layout with a lot of Views. Currently, I build the entire view hierarchy in the onCreate, though I stream the actual work in small

[android-developers] Re: How to make network reconnection in the app of c/s?

2010-11-15 Thread Mooncheol Yang
override broadcast onreceive method On 11월16일, 오전10시56분, Jenus Dong jenus.ne...@gmail.com wrote: Hi, all Such like messager app, client/server framework, using tcp long connection using heart beating packet. Cause TCP connection, so when local network is diable or changed, connection would

Re: [android-developers] How to make network reconnection in the app of c/s?

2010-11-15 Thread Jenus Dong
Thanks, Miguel Morales. When network disconnected, the code will check right now. Yes, now start the timer to connect periodically till it connect successfully. It works. After googling, Android has one manager, ConnectivityManager, can detect the network information. So can check the available

[android-developers] Re: Looking for ListAdaptor pattern

2010-11-15 Thread Bret Foreman
I've been looking at the AdapterView but it's not clear how you tell it how many views wide for a 2-D arrays of Views. It's also not clear how you tell it which views are pinned and should not be included in either the vertical or horizontal scroll. Think of a spreadsheet where every column is a

[android-developers] how to make a hidden notification bar popup

2010-11-15 Thread Eric Murtaugh
so i have my app running in fullscreen however i want to add a button that when pressed basically makes the notificationbar pop back up and imedeatly drop down so all notifications are visible, however i also want it to redisappear when its slide back up, is this possible? -- You received this

[android-developers] wish to join you

2010-11-15 Thread andy zhao
cause I am interested in the android, hope can join your groups. tkx:) -- 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] application crashes when trying to play media in res/raw

2010-11-15 Thread Daniel Quach
I have a small mp3 (326KB) in my res/raw folder. In my code, I have mPlayer = MediaPlayer.create(FakeCallScreen.this, R.raw.sample); mPlayer.prepare(); mPlayer.start(); The application just crashes when it tries to start the activity, I cannot figure out why. -- You received this message

[android-developers] Going through resources one by one

2010-11-15 Thread Omi
Hello, I want to make a library that when called will extract all text from all the resources in the app. I understand how to access resource by ID but I want this library to be generic ( I don't want it to know what resources are available). Does anyone have an idea on how to do just that? --

[android-developers] Android tablet

2010-11-15 Thread Ravi Shankar Kumar
Hi, Can anyone suggest me that is there any difference between android phone android tablet in application development. I want to develop an application for android tablet. so plz tell me that what should know me regarding general info to develop application for android tablet. can i use same

[android-developers] Slow execution getThumbnail in HTC hero

2010-11-15 Thread Lovely
I am using MediaStore.Images.Thumbnails.getThumbnail to create bitmap of thumbnail in htc hero , it takes lots of time to execute this. I other device it works faster. Please suggest any alternative to this method to create bitmap thumbnail so speed improves. -- You received this message

[android-developers] Re:

2010-11-15 Thread rushmore
Yep the best way to start with android is developer.android.com. Also I have used: . Android Wireless Application Development - Shane Conder, Lauren Darcey . Professional Android Application Development - Reto Meier On 12 nov, 08:54, xc s sxchao2...@gmail.com wrote: hey,everyone,I am student

[android-developers] MOVING BACKGROUND IMAGE FOR ANDROID GAME

2010-11-15 Thread elioncho
Hello, I'm currently developing an Android game where the user controls a plane and evades obstacles. I'm using simple draw commands into a Canvas. I want to know what is the best way to move a background image to give a sense of speed to the game. Is there a way to make the background- image

[android-developers] Connect to MSN messenger in android

2010-11-15 Thread Nagaraj Shet
hi Can any one please tell me how to connect to MSN messenger which protocol to use and any java library is available to that for android? I tried with XMMP but MSN does not support it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

  1   2   >