[android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-06-16 Thread LeveloKment
just a small bump ... with the hope someone can answer my question. On 8 Jun., 09:46, LeveloKment levelokm...@googlemail.com wrote: Hello. I provide a small tool called PatternControl via the market that give the users the opportunity to temporary deactivate the Android lock pattern for a

[android-developers] Re: How to add application settings in android device

2010-06-16 Thread FrankG
Sorry, Rajesh .. what do you mean by sample code in this respect ? You can take the existing Settings-Code as an big example how to incorperate your own things. Settings uses aidl, callbacks, System Properties and so on. On 15 Jun., 14:15, Rajesh Pelluru mail2pell...@gmail.com wrote: Hi,  

[android-developers] Re: Best way to live demo apps

2010-06-16 Thread Nightwolf
Only Gallery app is allowed right now. On Jun 16, 7:58 am, Stuart Reynolds s...@stureynolds.com wrote: Any word on whether the EVO can display the phone screen to a monitor? Thanks - Stuart On Fri, May 28, 2010 at 5:42 PM, Mark Murphy mmur...@commonsware.com wrote: Wayne Wenthin wrote:

Re: [android-developers] how to parse this string using json

2010-06-16 Thread rahul jain
Sorry there was typo. I meant String s = [{id: 1, fields: {Name: hello1, Age: 10 }}, {id: 2, fields: {Name: hello2, Age: 12}}] I am not able to convert this into JSON array. --RJ On Tue, Jun 15, 2010 at 10:15 PM, Frank Weiss fewe...@gmail.com wrote: Sorry, I though you knew JSON better.

[android-developers] Re: application's persistent not work

2010-06-16 Thread James Wang
We did more research on it. Based on Pone app, we changed our app's AndroidManifest.xml with two platform certificate and system shareuserid. But our app is still killed when in background. Can anybody tell me how to make our app persisitent really? Thanks. James -- You received this message

[android-developers] glOrthof() not clipping

2010-06-16 Thread A Curious Developer
I am new to openGL and I am probably misunderstanding something fundamental here, so any hints would be appreciated... In a nutshell, glOrthof() does not seem to be clipping within its bounds (as glFrustrumf() does). I expected the left, right, top, bottom, near and far bounds of the glOrthof()

[android-developers] Re: Making the Java assert statement work

2010-06-16 Thread A Curious Developer
Controlling the Embedded VM:  http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d... Thanks, that was educational, although I couldn't figure out how to turn it into a solution. ;) I found a few other times this question has been raised, and it seems like it doesn't have an

[android-developers] How to store information in android setting menu

2010-06-16 Thread NishantKumar
Hi, I am creating an application that requires some values of username during execution. Hence, I want to create an option for storing information. I donot want to use the general java.io classes for storing information. I want to create an option MyAppInfo in the android setting menu . When I

[android-developers] guidance on cocos2d

2010-06-16 Thread kavitha b
Hi All, where can i get help about using cocos-2d android. I am completely new.So i need guidance on how to start. Thanks Kavitha -- 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] switching GPS on and off

2010-06-16 Thread kamiseq
I cant really find anything on how to start GPS device if it is switched off and how to stop it if it is no longer needed. can someone guide me ??? cheers -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to store information in android setting menu

2010-06-16 Thread kavitha b
Hi Nishanth,, you can store that file either in sdcard or context cache,,and retrieve it whenever required back. Thanks Kavitha On Wed, Jun 16, 2010 at 1:03 PM, NishantKumar nishant.cs...@gmail.comwrote: Hi, I am creating an application that requires some values of username during

Re: [android-developers] How to store information in android setting menu

2010-06-16 Thread Nishant Kumar
Hi, I want to see the information stored in the file by browsing my android phone. How can I do that? Moreover, is it not possible to create my own setting menu inside android setting menu ? This will store information about my application Thanks, Nishant On Wed, Jun 16, 2010 at 10:03 AM,

[android-developers] Embedding appwidget in activity

2010-06-16 Thread angushir...@googlemail.com
Hi all, I need to implement a reusable view for use in several Android applications. Would it be possible to develop an appWidget that can be embedded in an activity, or am I best off providing a customised component? Thanks in advance Angus -- You received this message because you are

[android-developers] Re: How trigger intent to execute a specific method from a specific activity

2010-06-16 Thread a2ronus
1. Register a BroadcastReceiver that listens for a specific Intent. 2. When the user clicks on the Notification, the PendingIntent will be launched. You can put extra's in this Intent. You can use the extra's to determine which method will be launched in the Service. Good luck, a2ronus On Jun

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread MarcoAndroid
1) 3-4M for one image is a lot since you have total of 16M for the whole app! Dunno the answer to your question 2) 25*256K in bitmaps is already over 6,4M. Added to 1) makes already over 10M! AFAIK you should only use .recycle() if you really don't need them anymore. Unclear to me what really

Re: [android-developers] Re: Android finishActivity()

2010-06-16 Thread Sean Hodges
Hello Mike, I somehow missed your last email. On Wed, Jun 16, 2010 at 5:16 AM, mike hasitharand...@gmail.com wrote: Hi Sean, i hope you also has gone out of answers. any way kindly let me know this. A -- B -- C -- C -- where? C to A? C to finished? C to force close dialog? What I'm

[android-developers] Re: Android finishActivity()

2010-06-16 Thread mike
hi Sean, finally finally i have sorted out. but not 100% but by 99% i have achieved it. give me your mail address so i'll mail you a sample code. this is my Activity A public class blur extends Activity { /** Called when the activity is first created. */ @Override

[android-developers] Intercepting incoming call

2010-06-16 Thread Kartic
Hi, I am making a Phone app and would like to intercept both incoming call and outgoing call events. My query is regarding ACTION_ANSWER. earlier there was a problem in using this action (it has been explained in the foloowing threads)

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread Yahel
Maybe you can tell us what the 4 mb pictures is used for. Say if you are working on a game and it is your scrolling background, maybe you could use tiles instead and only have smaller chunks. I understand your question is about best practices, but maybe with a use case scenario of these bitmap

Re: [android-developers] Embedding appwidget in activity

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 4:11 AM, angushir...@googlemail.com angushir...@yahoo.co.uk wrote:       I need to implement a reusable view for use in several Android applications. Would it be possible to develop an appWidget that can be embedded in an activity, or am I best off providing a customised

Re: [android-developers] How to store information in android setting menu

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 4:06 AM, Nishant Kumar nishant.cs...@gmail.com wrote: Moreover, is it not possible to create my own setting menu inside android setting menu ? This will store information about my application No, you cannot modify the Settings application, except by compiling your own

Re: [android-developers] switching GPS on and off

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 3:52 AM, kamiseq kami...@gmail.com wrote: I cant really find anything on how to start GPS device if it is switched off and how to stop it if it is no longer needed. can someone guide me ??? When you request location updates (requestLocationUpdates()), GPS will turn on

[android-developers] ListView - textrow not highlighted completely

2010-06-16 Thread AndyDev
Hi, I have a ListView, with just text rows. I had to click on the text only, to invoke the ClickListener. If I click anywhere else on that text row, the row is not highlighted, and the listener is not invoked. Is there any property for ListView or TextView, to resolve this. I want the whole

[android-developers] ListView - textrow color on click

2010-06-16 Thread AndyDev
Hi, Is there a way that I can change the default color(yellow) to something else, after the textrow in the ListView is clicked. Thanks, AndyDev -- 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] Problem in getting scroll position in web-view

2010-06-16 Thread brijesh masrani
Hello Everyone, I have a web-view with Html content.I want to calculate height of web-view when it is scrolled. The method *getScrollY()* can return the Y scroll but the problem is that when I scroll web-view 2-3 time continuously it takes some time in scrolling. I just want to know if there is

[android-developers] Problem in getting scroll position in web-view

2010-06-16 Thread brijesh masrani
Hello Everyone, I have a web-view with Html content.I want to calculate height of web-view when it is scrolled. The method *getScrollY()* can return the Y scroll but the problem is that when I scroll web-view 2-3 time continuously it takes some time in scrolling. I just want to know if there is

RE: [android-developers] Problem in getting scroll position in web-view

2010-06-16 Thread youken
What about WebView.getContentHeight()? _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of brijesh masrani Sent: Wednesday, June 16, 2010 8:18 PM To: android-developers@googlegroups.com; android-beginn...@googlegroups.com Subject:

[android-developers] Re: switching GPS on and off

2010-06-16 Thread kamiseq
funny cos I ve always turned on GPS before using maps or other application :-) thanks On 16 June, 12:46, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jun 16, 2010 at 3:52 AM, kamiseq kami...@gmail.com wrote: I cant really find anything on how to start GPS device if it is switched off

[android-developers] Re: Problem in getting scroll position in web-view

2010-06-16 Thread brijesh
I know that but problem is not with method BUT problem is on Which Event should i write IT.. On Jun 16, 4:40 pm, youken youken1...@gmail.com wrote: What about   WebView.getContentHeight()?   _   From: android-developers@googlegroups.com

RE: [android-developers] Re: Problem in getting scroll position in web-view

2010-06-16 Thread youken
WebViewClient.onPageFinished() I think the height will not change when you scroll the webview. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of brijesh Sent: Wednesday, June 16, 2010 8:48 PM To: Android Developers

[android-developers] Problem in getting result from filtered list

2010-06-16 Thread Addy
Hi. In my application I used a custom list for displayed some country name. and for enable search from the list, Filter applied on the custom list. Filter works on a simply String ArrayList. And its work fine. But My problem is When I searched for any country name the search happend only on

Re: [android-developers] Re: switching GPS on and off

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 7:42 AM, kamiseq kami...@gmail.com wrote: funny cos I ve always turned on GPS before using maps or other application :-) You may be confusing enabled and on. For example, HTC Sense phones have a home screen feature that looks like an on/off switch for GPS. That,

[android-developers] Re: Android finishActivity()

2010-06-16 Thread UD
Hi Mike, I would suggest a better approach for this. Firstly I will put your problem in my worlds what I understand: You have 3 Activities ActivityA, ActivityB, ActivityC. ActivityA is starting activity. Activities launch sequence is:- ActivityA --(On some

[android-developers] OnOrientationChanged leaks in ListView

2010-06-16 Thread Alok Kulkarni
Hi, I am having a ListView with custom ArrayAdapter.For defining a list item i have my own class ListItem which stores all info including list item images, and other textual info in it. I have handled orientation change in onRetainNonConfigurationInstance() in which i save the array of ListItems

[android-developers] Fix for OutofMemoryError: bitmap size exceeds VM budget

2010-06-16 Thread pawan nimje
Hi all, in my application i have a functionality where a user can take photo and poet it to a web server or select a photo from galerry and upload. So initially i used to get below exception for the very* first time* i used to select a photo: Android: OutofMemoryError: bitmap size exceeds VM

[android-developers] ScrollView and programmatically scrolling

2010-06-16 Thread Neilz
Hi all. When I update the textview within my scrollview, I want the scrollview to automatically scroll down to the bottom, so that the latest text is displayed. I've tried this code: scroll.fullScroll(ScrollView.FOCUS_DOWN); ...and it worked once or twice, intermittently, but generally has no

[android-developers] bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-16 Thread Christophe
hello everyone, I have a strange problem with one of my ListActivity. I have overrided the default ArrayAdapter in order to customize my list. I have then filled the adapter with an ArrayList. If I insert an element on the list and then call notifyDataSetChanged() on the adapter everything works

[android-developers] Re: Oracle Android App Store

2010-06-16 Thread gosh
When I look at BlackBerryAppWorld it lists over 200 countries which... Not so. They currently offer free apps to 56 countries and paid apps to 13 countries (a slightly different 13 than Android Market's 13 ... Not Canada! - no, just kidding). Its not that clear which countries Blackberry

[android-developers] Setting Translucent Theme from Java

2010-06-16 Thread droidsan
Depending on an extra value of the Intent that starts my Activity the Activity should show up with translucent or solid background. Therefore, I use the following code in my Activity's onCreate method: if (getIntent().getBooleanExtra(transparent, false)) {

[android-developers] How to trace localhost proxy connection?

2010-06-16 Thread Moto
Hi, I'm currently trying to debug an issue with my application and I wanted to see if my internal proxy is sending the data in the proper order. Is there any way to essentially sniff my proxy pipe? Thanks! -Moto -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-16 Thread Hasn AlTaiar
Hi Frank, Thank you very very much for your kind reply, I really do appreciate it. I have looked at the methods of .getLatitudeSpan() and .getLongtudeSpan(). However, I could not understand the return type of both of them, in the API it said, they would return (int), and it also said in decimal

[android-developers] ListView with sections from a SINGLE Cursor

2010-06-16 Thread sasq
I've been looking around a lot on how to separate a ListView into sections with headers, and all solutions are based on using multiple adapters. I have only a single database query that is ordered by a specific field. I want to present this information in a ListView, and insert headings whenever

Re: [android-developers] ListView with sections from a SINGLE Cursor

2010-06-16 Thread Connick
I'm facing this exact challenge this morning! +1 On Wed, Jun 16, 2010 at 11:33 AM, sasq jonas.minnb...@gmail.com wrote: I've been looking around a lot on how to separate a ListView into sections with headers, and all solutions are based on using multiple adapters. I have only a single

Re: [android-developers] How to trace localhost proxy connection?

2010-06-16 Thread David Turner
If you are using the emulator, try the -tcpdump file option, it will save the emulated ethernet traffic into a file that you can open with WireShark. On Wed, Jun 16, 2010 at 7:27 AM, Moto medicalsou...@gmail.com wrote: Hi, I'm currently trying to debug an issue with my application and I

Re: [android-developers] ListView with sections from a SINGLE Cursor

2010-06-16 Thread Brad Gies
Hi, Sorry, I don't have time to look up the links for you, but search this group for getItemViewType and getViewTypeCount. There was a thread in the last week that had a couple of very good links explaining exactly what you want to do. I'm pretty sure the message you want was from Mark

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-16 Thread Frank Weiss
The return type of the *Span() methods is int as follows: Latitude: 47° 30' 21, in decimal degrees 47.505833, times one million 47505833. This allows for using integers instead of floats for storing and comparing lat/longs. -- You received this message because you are subscribed to the Google

Re: [android-developers] ListView with sections from a SINGLE Cursor

2010-06-16 Thread Mark Murphy
Actually inserting the headers as a second viewtype requires you to scan the whole result to get an accurate count. The best I've come up with is returning the Header combined with the first item as a single view so as to keep the count correct, but then selection looks wrong. Any tips?

Re: [android-developers] how to parse this string using json

2010-06-16 Thread Brad Gies
Where are you getting the JSON String from? If you change the double quotes to single quotes it will convert to a JSON Array, and you can get each object by using : JSONObject jObj = JArray.getJSONObject(0); JSONObject jObj = JArray.getJSONObject(1); [{'id': 1, 'fields': {'Name': 'hello1',

Re: [android-developers] android and restful api

2010-06-16 Thread Frank Weiss
Please read this page carefully: http://developer.android.com/intl/de/reference/android/os/AsyncTask.html Google for blogs on the subject AsyncTask. -- 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: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread Nathan
On Jun 16, 2:29 am, MarcoAndroid marco...@gmail.com wrote: 1) 3-4M for one image is a lot since you have total of 16M for the whole app! Dunno the answer to your question Yep 2) 25*256K in bitmaps is already over 6,4M. Added to 1) makes already over 10M! AFAIK you should only use .recycle()

[android-developers] Re: Orientation and Webview

2010-06-16 Thread nikhil
Let me know if you get the solution to this problem. On Jun 15, 4:26 pm, hansamann sven.hai...@googlemail.com wrote: Sorry, no answer, but you just helped me a lot by letting me know that android:configChanges=orientation stops thewebviewreloading!!! Sven On Jun 15, 2:16 pm, nikhil

[android-developers] blank screen with opengl

2010-06-16 Thread Simone
I got this, to show a rectangle: private float[] sCoords = { // X, Y, Z GameRenderer.W/3, GameRenderer.H/3, 0, GameRenderer.W/3, 20f, 0, 30f, 20f, 0, 30f, GameRenderer.H/3, 0 }; ... gl.glVertexPointer(3, GL10.GL_FLOAT, 0,

[android-developers] logcat buffer size

2010-06-16 Thread Jeffrey Blattman
i want to increase the logcat buffer size. that is, when i do logcat from adb or from a shell, i want to see more historical log entries. i see that logcat has a -r size option, but that requires -f filename also. i don't understand what this means. i want to change the size of the default

[android-developers] Re: Orientation and Webview

2010-06-16 Thread Maps.Huge.Info (Maps API Guru)
If you change the default behavior of your app with the configChanges, then you just have to handle the loading of a different resource yourself. Also, don't forget to handle the keyboard as well. -John Coryat -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread Nathan
On Jun 16, 3:43 am, Yahel kaye...@gmail.com wrote: Maybe you can tell us what the 4 mb pictures is used for. It's a screen buffer. It's not useful to me unless it covers the entire screen - and then some because of arbitrary rotation. So it can easily be a 908x908 image on Incredible. Say

[android-developers] Re: ListView with sections from a SINGLE Cursor

2010-06-16 Thread sasq
Ok, then I will probably stick with my current solution... if the title has a solid background and is relatively small it all looks pretty OK. The only issue is the missing line under the title and the fact that you can click the title to select the item below it. The problem with your solution

Re: [android-developers] Run android apps on Linux natively

2010-06-16 Thread Alan Carvalho de Assis
Hi, On 5/18/10, suhas suvisu...@gmail.com wrote: Hello, I have ported and built the android kernel for x86 and it is booting up on ubuntu. Now I want to know how to run android applications natively on ubuntu without SDK. As I have said i have the android kernel working. How do I go about

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread Nathan
I tried the Eclipse MAT tool. Really cool stuff. Unfortunately, it appears blind to bitmaps, at least so far. I was relieved to find out that the 4 Megabyte bitmap is only taking up 32 bytes. ;) The cache of 25 bitmaps was listed as the biggest suspect. But with a retained heap of 600K, this

Re: [android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread Romain Guy
Bitmaps are allocated on the native heap but their size is counted against the Java heap limit. You can use tools like MAT to see whether you are leaking Bitmap objects but you can't rely on these tools to measure the amount of memory used by those bitmaps. Thankfully, it's very easy to figure out

Re: [android-developers] Re: ListView with sections from a SINGLE Cursor

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 1:56 PM, sasq jonas.minnb...@gmail.com wrote: Ok, then I will probably stick with my current solution... if the title has a solid background and is relatively small it all looks pretty OK. The only issue is the missing line under the title and the fact that you can

[android-developers] Re: ListView with sections from a SINGLE Cursor

2010-06-16 Thread sasq
On Jun 16, 8:52 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jun 16, 2010 at 1:56 PM, sasq jonas.minnb...@gmail.com wrote: The problem with your solution seems to be if you scroll directly to the center of a large list, then you'd have to scan back to the beginning to find the

[android-developers] Correct way to set up buffer for glReadPixels?

2010-06-16 Thread Geefer
Hi, What is the correct way to set up a buffer for the return data for gl.glReadPixels? Does it have to be a direct buffer or is simply wrapping an integer array ok (with IntBuffer.wrap)? I have seen both used by various people in online examples. I am currently wrapping an integer array and it

Re: [android-developers] Re: ListView with sections from a SINGLE Cursor

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 2:59 PM, sasq jonas.minnb...@gmail.com wrote: The problem with your solution seems to be if you scroll directly to the center of a large list, then you'd have to scan back to the beginning to find the correct offset. No, just cache it. Provided the View has asked

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-06-16 Thread Nathan
On Jun 16, 11:48 am, Romain Guy romain...@android.com wrote: Bitmaps are allocated on the native heap but their size is counted against the Java heap limit. You can use tools like MAT to see whether you are leaking Bitmap objects but you can't rely on these tools to measure the amount of

[android-developers] Re: parse local media file to get Mime type

2010-06-16 Thread Kumar Bibek
If you know the path, you can access all the details through the MediaStore content provider. Cursor cursor = managedQuery(Uri.parse(data.getDataString()), null, null, null, null); cursor.moveToNext(); // Retrieve the path and the mime type String path =

[android-developers] Setting background color on row layout prevents display of highlight on select

2010-06-16 Thread Connick
I'm setting background color based on a given state of an object in each row in a list. That part is working just fine but when I set the background color on the outermost layout the row no longer highlights when selected. Probably a specific attribute I'm not setting/changing? Thanks, Stace --

[android-developers] /log/dev/radio, /log/dev/events

2010-06-16 Thread BuckeyeDroid
Does anyone know where these files get created? 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@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Help me out with my Listview custom row layout, I already tried many combinations

2010-06-16 Thread Kumar Bibek
There are some errors I found. Have a look at this xml. But without knowing what exactly you want, I can't really help you with the layout. A screenshot will be helpful. ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android

[android-developers] Re: Setting background color on row layout prevents display of highlight on select

2010-06-16 Thread Stacy
Getting closer using android:drawSelectorOnTop on the list ...only hiccup now is that the selector is also on top of the text! On Jun 16, 3:18 pm, Connick oconn...@gmail.com wrote: I'm setting background color based on a given state of an object in each row in a list. That part is working just

[android-developers] Re: Offloading data from an android app

2010-06-16 Thread Kumar Bibek
Use eclipse to pull out any file you want. Go to file explorer view and there you can find all the files. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 14, 4:33 am, lloyd1949 lloydmcfarl...@comcast.net wrote: What is the recommended approach? I am planning to create a

[android-developers] Re: how to make the tab view which like ASTRO Filemanager

2010-06-16 Thread Kumar Bibek
I suspect thats not a TabHost. It's a Gallery. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 12, 7:10 am, petitlen raul.linji...@gmail.com wrote: hi,does any one use ASTRO?i feel the tab view in this software is very nice and i want to imitate it. i find that this tab

Re: [android-developers] blank screen with opengl

2010-06-16 Thread Leigh McRae
Could be anything. Make sure you have a glGetError in your render loop someplace as it might indicate a problem. Also check for EGL errors. Maybe your texture isn't being loaded correctly. Try starting with clearing the screen to pink to be sure your rendering context is working. Then

[android-developers] Re: How to check the network status for both wifi and 3g mobiles

2010-06-16 Thread Kumar Bibek
Check the ConnectivityManager API. http://tech-droid.blogspot.com/2010/06/checking-network-availability.html Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 15, 11:23 am, Imran ahmed imran4...@gmail.com wrote: Android developers can check this code to check the network

[android-developers] Re: Start an App via the Web

2010-06-16 Thread Kumar Bibek
Well, The cloud-to-device messaging feature that was announced with Froyo will help you in this.Check out the vidoes at Google I/O 2010 Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 13, 9:44 pm, EricM3 ericmorg...@gmail.com wrote: Hello everyone, I would like to create

[android-developers] Re: Setting background color on row layout prevents display of highlight on select

2010-06-16 Thread Kumar Bibek
You are actually overriding the default behaviour. So, you should also handle the other states besides the default state. Look at StateDrawables in the Android docs. Thanks and Regards, Kumar Bibek On Jun 17, 12:23 am, Stacy oconn...@gmail.com wrote: Getting closer using

[android-developers] Re: blank screen with opengl

2010-06-16 Thread Simone
Hi, I solved the first problem by using gl.glOrthof(0, w, 0, h, -1, 1); instead of gl.glOrthox(0, w, 0, h, -1, 1); Now it shows a black rectangle, so no textures. I think it could be because the texture is too large, right? Simone -- You received this message because you are subscribed to the

[android-developers] Re: bug with notifyDataSetChanged() in ArrayAdapter ?

2010-06-16 Thread Kumar Bibek
You have to override the getCount method. Please go through the examples to check how the Adapters work. Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Jun 16, 6:07 pm, Christophe christophe.lebesner...@gmail.com wrote: hello everyone, I have a strange problem with one of

[android-developers] Repackaging Android System Classes in an application

2010-06-16 Thread Greg Giacovelli
Hi, So I came across this today and was wondering does this work in production app or does it merely work because my phone allows non market apks. Here is an example, Take a class like, android.view.IWindow, and copy it's source into your project and recompile it after changing a few things.

Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-16 Thread Richard C. Cox
Hi Mark, Thanks for the response. Yeah, goToSleep may be restricted in the API, but it says nothing about that in the SDK Documentation. I based my assumptions about it being a permission issue on a comment I saw over at the Stack Overflow forums. Somebody mentioned that they got a security

Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-16 Thread Al
Richard C. Cox wrote: Yeah, goToSleep may be restricted in the API, but it says nothing about that in the SDK Documentation. Non-public APIs aren't mentioned in the sdk documentation. They may be documented in the source code but suppressed from javadoc with @hide. So, I'm not sure. I guess

Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 4:39 PM, Al alcapw...@googlemail.com wrote: Richard C. Cox wrote: Yeah, goToSleep may be restricted in the API, but it says nothing about that in the SDK Documentation. Non-public APIs aren't mentioned in the sdk documentation. They may be documented in the source

Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-16 Thread Richard C. Cox
Thanks Al, Yes, I can see that's Power Manager is part of the public API. So, it's a permissions problem. Thanks for pointing me to that. On Wednesday 16 June 2010 16:39:44 Al wrote: Richard C. Cox wrote: Yeah, goToSleep may be restricted in the API, but it says nothing about that in the

Re: [android-developers] Unable To run Service

2010-06-16 Thread tarek attia
The problem was this in the AndroidManifest.xml :SS I was registering the service as following Service android:enabeled=true android:name.MyService/ and there was no problem in the compilation,,,I changed it to a lower-case letter not upper-case letter it worked fine service

Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-16 Thread Richard C. Cox
Thanks Mark, Yes, it is public. I did give the DEVICE_POWER permission to my app, but still get the security exception when I call the goToSleep function. Somebody said it was a level 2 (signature) permission, so ordinary 3rd party apps (ones that don't hold the same signature as the API)

Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 5:07 PM, Richard C. Cox conard...@gmail.com wrote:  What I was really looking for was some documentation about which permissions are at what level. Sorry, there is no well-organized documentation on that specific topic. -- Mark Murphy CommonsWare

[android-developers] share images with twitter app and buzz app

2010-06-16 Thread jdeslip
So, I added the following intent to my app to share images captured. Intent i=new Intent(android.content.Intent.ACTION_SEND); i.setDataAndType(Uri.parse(sharedfilename),image/jpeg); i.putExtra(Intent.EXTRA_SUBJECT, Check out this picture from

[android-developers] appWidgetId not valid

2010-06-16 Thread sergi...@gmail.com
Hi, I'm developing a widget with a configuration activity. This activity is launched correctly where the widget is installed (at first time), but not the other times when I click on the widget at home screen. I have debugged the code and I see that the appWidgetId is not valid (0 value). The

[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-06-16 Thread blab
Dianne, Is there a way to prevent aapt v2.2 from automatically including the appropriate minimum version for new configurations, so that older platforms do not see them? Due to this sneaky aapt behavior we simply cannot use 2.2 SDK as we either will loose 1.5 support or increase our APK size by

[android-developers] Re: Orientation and Webview

2010-06-16 Thread nikhil
Can you give me some pointers on how to change the images according to the orientation? My problem is I have webview and imageview on same layout, I wish to stop webview from reloading and adjust the imageview with landscape and portrait images. I am not able to achieve this both. On Jun 16,

Re: [android-developers] Re: blank screen with opengl

2010-06-16 Thread Max Gilead
I'd suggest going with some basic tutorial like http://insanitydesign.com/wp/projects/nehe-android-ports/ and building on what you learn, modifying code little step by step so you're always a couple of Ctrl-Zs from a working version. Max -- You received this message because you are subscribed to

[android-developers] Re: Phone Unlocked Notification

2010-06-16 Thread Nik Bhattacharya
I *think* I might have stumbled upon it. http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_PRESENT Not very obvious since I was looking for something related to keyguard or lock, but the API doc does say the following: Broadcast Action: Sent when the user is present

[android-developers] Re: ListView

2010-06-16 Thread Sandy
I was able to successfully add HorizontalScrollView to the ListView's item without having to do any custom changes. I did not fully test all the functionality but haven't seen any obvious issues so far. In some of the previous forums it was mentioned that this is not possible, what are the issues

[android-developers] ProgressBar.setProgressDrawable bug

2010-06-16 Thread ls02
Apparently ProgressBar.setProgressDrawable has bug, if called to set new drawable, progress bar disappears completely. Is there any other way to change progress bar color dynamically at run time? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Orientation and Webview

2010-06-16 Thread nikhil
ok I have solved my issue I kept theandroid:configChanges=orientation setting so as to prevent webview from reloading. While for the image view public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig);

[android-developers] Target Java module does not define any source or resource files.

2010-06-16 Thread Jimmy
Hello everyone, I am building SDK under windows, as instructed, I run the script at ./ development/build/tools/make_windows_sdk.sh. This gives me much troubles, each time I built, the error message showed up Target Java module does not define any source or resource files.. Does anyone have an

[android-developers] Re: Droid Incredible Not Returning Valid DeviceID?

2010-06-16 Thread Josh F.
OK, this is interesting. I now have a series of users who are reporting a work around / temporary fix for the issue. A few of our users are reporting that if they power off their phones and eject the battery, wait a few minutes, and turn it back on again - the problem clears up (at least for a

Re: [android-developers] Re: ListView

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 6:14 PM, Sandy snarr...@gmail.com wrote: In some of the previous forums it was mentioned that this is not possible, what are the issues you are having when using the HorizontalScrollView within a ListView ? I wasn't expecting it to work, just because scrollable things

[android-developers] Re: application's persistent not work

2010-06-16 Thread James Wang
Hi Dianne, Would you shed some light on this topic? Thanks. James -- 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] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-16 Thread Robert Macaulay
I recently converted my long lived service(setForeground) app to one triggered by the AlarmManager. The nature of the work is I want to be woken up on intervals, but do not want to wake up the phone if it's not awake. And I don't want the duplicate alarms that you'd get with setRepeating. So

Re: [android-developers] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-16 Thread Mark Murphy
On Wed, Jun 16, 2010 at 9:23 PM, Robert Macaulay robert.macau...@gmail.com wrote: This works, I see my app run over and over. I see my app being killed, and respawned via alarmReceiver. This all works great, but it randomly ceases. No exceptions in the log. I luckily have the log showing the

  1   2   >