[android-developers] Content Provider General Questions For a Newbie

2010-03-01 Thread Hunk of Hulk
Hi there, I am having a hard time understanding content providers. In the notepad example and others, the content provider never even declares its CONTENT_URI anywhere inside itself, yet the docs say to publicly declare this. It's declared in a different class. So when an activity queries a

[android-developers] Programmatically check whether Market shows paid apps

2010-03-01 Thread westmeadboy
I am about to release a Pro version of my app and so would like to provide Get the Pro links. However, it makes no sense to do this if the user is taken to the Market and then can't see the Pro app (i.e. they are in a non-paid app country). Maybe, such users would be sent to a 3rd party Market

[android-developers] Any api to check if recording is going on?

2010-03-01 Thread ani
I wanted to know if there is any api available to check if audio recording is going on or not?? Something like isMusicactive() which tell us if music is active or not. Please respond. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Webview / Container problem

2010-03-01 Thread arnouf
I know Mark, but for my needs it's required :-/ On Feb 28, 7:38 pm, Mark Murphy mmur...@commonsware.com wrote: arnouf wrote: Hi all, My program doesn't work correctly with Android 1.6 (running on Acer), it works correctly with others devices. Apparently, my xml view is not correctly

[android-developers] Tiny URL

2010-03-01 Thread Sasikumar.S
Hi, How to create a Tiny URL in android? Any suggestion ? -- Thanks Regards Sasikumar.S -- 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

[android-developers] Re: Variable in getResources().getStringArray

2010-03-01 Thread Alain
This does not work either, the returned ID is always 0. The items for which I am trying to retrieve an ID are in res/values/array.xml and defined as: string-array name=itemName item value1 @ value2 /item item value3 @ value3 /item /string-array The user would have selected from another

Re: [android-developers] Content Provider General Questions For a Newbie

2010-03-01 Thread Mark Murphy
Hunk of Hulk wrote: In the notepad example and others, the content provider never even declares its CONTENT_URI anywhere inside itself, yet the docs say to publicly declare this. That's really only helpful if the ContentProvider will be used by something else in the same process, and it is

Re: [android-developers] Why is English the only Locale my Phone has in Settings

2010-03-01 Thread Mark Murphy
lordjoe wrote: and How can I change this Buy a different phone, or root it and load a different ROM. For example, my Motorola DROID has English and Spanish. My Nexus One has a range of language/regions, 13 in total. My HTC Tattoo has English (Malaysia) and English (Vietnam) and nothing else,

[android-developers] Re: Programmatically check whether Market shows paid apps

2010-03-01 Thread Peli
It is more complicated than that. In some countries, you can access paid or only non-paid apps depending on the provider you are currently using: http://code.google.com/p/android/issues/detail?id=3852 In OI Notepad and OI Shopping List, we provide both links for extensions and themes (menu

[android-developers] intents getting incrementing each time received?

2010-03-01 Thread draf...@gmail.com
Hi all, I have started using custom intents in my application and I have come across a bit of a problem. When I send a custom intent I register a Broadcast Receiver and I catch the intent no problem. However problems seem to appear when I send the intent again, the Broadcast Reciever seems to

[android-developers] Re: Programmatically check whether Market shows paid apps

2010-03-01 Thread westmeadboy
I checked that link and I don't understand why everyone is talking about the MCC/MNC when I thought that the sim country was the important thing? So, in the TelephonyManager, using getSimCountryIso() instead of getNetworkCountryIso(). The link talks about the Bob operator in Austria. Could it be

[android-developers] from where i can get 3d model loading library

2010-03-01 Thread Manoj
hi guys i am working on an opengl application and i want to load the 3d model. but for that i need library. can anybody suggest me from where to get the 3d model loading library. thanks in advance manoj -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Variable in getResources().getStringArray

2010-03-01 Thread skink
On Mar 1, 11:29 am, Alain aarn...@gmail.com wrote: This does not work either, the returned ID is always 0. The items for which I am trying to retrieve an ID are in res/values/array.xml and defined as: string-array name=itemName    item value1 @ value2  /item    item value3 @ value3  /item

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-01 Thread andrew android
I agree with most of your points but agree with some others that you need to edit it for length and tone down the negativity. Also, how about ability to receive emails for each sale made or daily stats as an option? On Feb 21, 7:43 am, Rob Irondad rob.iron...@gmail.com wrote: Hi fellow

[android-developers] Re: Tiny URL

2010-03-01 Thread skink
On Mar 1, 10:34 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to create a Tiny URL in android? Any suggestion ? -- Thanks Regards Sasikumar.S what is Tiny URL in android? pskink -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Using services synchronously

2010-03-01 Thread Will
Can you bind and invoke calls exposed by a service in a thread without a looper? I have a thread that is doing blocking IO on a socket; sometimes I want to invoke some service and make an RPC call with some data that I receive over the socket. However, it does not seem that I can bind to the

Re: [android-developers] Using services synchronously

2010-03-01 Thread Mark Murphy
Will wrote: Can you bind and invoke calls exposed by a service in a thread without a looper? No on the binding part. I have a thread that is doing blocking IO on a socket; sometimes I want to invoke some service and make an RPC call with some data that I receive over the socket. However,

[android-developers] Re: Using services synchronously

2010-03-01 Thread Will
Can you elaborate on your advice Mark? How would I put a looper comfortably into a background thread that's reading from a socket? And what is the local singleton, and how does it help me invoke RPC with services? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Why is English the only Locale my Phone has in Settings

2010-03-01 Thread Hekki
Simply download Locale 2 from the market, and you'll have all the languages you want for your phone. No need for root or anything like that. Yahel On 1 mar, 13:43, Mark Murphy mmur...@commonsware.com wrote: lordjoe wrote: and How can I change this Buy a different phone, or root it and

Re: [android-developers] Re: Tiny URL

2010-03-01 Thread Falko Richter
http://tinyurl.com/yaocler has the answer :) On Mon, Mar 1, 2010 at 2:36 PM, skink psk...@gmail.com wrote: On Mar 1, 10:34 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to create a Tiny URL in android? Any suggestion ? -- Thanks Regards Sasikumar.S what is Tiny URL in

Re: [android-developers] Re: Tiny URL

2010-03-01 Thread skink
Falko Richter wrote: http://tinyurl.com/yaocler has the answer :) On Mon, Mar 1, 2010 at 2:36 PM, skink psk...@gmail.com wrote: On Mar 1, 10:34 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Hi, How to create a Tiny URL in android? Any suggestion ? -- Thanks Regards

Re: [android-developers] Re: Using services synchronously

2010-03-01 Thread Mark Murphy
Will wrote: Can you elaborate on your advice Mark? How would I put a looper comfortably into a background thread that's reading from a socket? I haven't done it before, because I disagree with your pattern -- binding should be between Android components, not random other hunks of code. In

[android-developers] Re: Animation fillAfter(true) and click locations

2010-03-01 Thread Loki117
Haha yeah I wont be using display once I have running what I want this was just a POC for something larger. Anyway I found the issue seems that even though I was trying to resize a LinearLayout because it was inside a FrameLayout my layout params had to be of type FrameLayout seems weird to me

[android-developers] Android activity's memory management

2010-03-01 Thread Mihai Dumitrache
Hello guys, I have a problem with my application, and it's about a Virtual memory error: ERROR/AndroidRuntime(19790): java.lang.OutOfMemoryError: bitmap size exceeds VM budget The story is like this: I have an activity (let's call it A), the user click on a button from this activity, then i will

[android-developers] Re: how to run adb shell on windows as super user

2010-03-01 Thread mah
Root your phone, perhaps? I'm only guessing; I haven't rooted a device yet. If com.lam.recipedisplay is your own app, you could probably add code to copy the database to/from an alternate location such as /sdcard. If it's not your app, well... this is why you're not given a root shell by default

[android-developers] How to add and remove rows in a SimpleAdapter?

2010-03-01 Thread Cog
Hi, I'm using a SimpleAdapter to display two strings on each row of a ListView and want to be able to remove rows. The ListView initially displays correctly but when I click a row to remove it a null pointer error is thrown. Can't seem to find any documentation or examples anywhere. Can anybody

[android-developers] Re: Passing a LinearLayout from one Activity to another

2010-03-01 Thread Zigurd
I'm sure you are starting to see that what you thought of doing was made intentionally difficult. The reason is that, if you do it right, taking the code for an activity and moving it to another application is easy. It's part of Android's modularity. The data you pass using an Intent object, and

[android-developers] Invalid statement in fillWindow()

2010-03-01 Thread creativepragmatic
Hello Everyone, I know the error will probably be painfully obvious to you but using cursor.getCount() on the result of the following returns a 0 when there are multiple items in the table and trips the error Invalid statement in fillWindow(). public Cursor getListItemsCursor(long

[android-developers] Using relative paths with attach database in SQLite?

2010-03-01 Thread westmeadboy
I eventually got attach database to work by using this syntax: db.execSQL(attach database ? as userdb, new String[]{/data/data/ com.mycompany.myapp/databases/user.db}); However, I cannot seem to get this working using relative paths. What is the path relative to? -- You received this message

[android-developers] Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
Hi, I want to draw a bitmap on the screen by specifying the x,y locations of the four corners. I.e. I have a square bitmap and I would like to draw the: * Top right corner at pixel x=100,y=100 * Bottom right corner at pixel x=120,y=220 * Bottom left corner at pixel x=50,y=200 *

[android-developers] Re: Using relative paths with attach database in SQLite?

2010-03-01 Thread westmeadboy
Hmmm - it seems its relative to root which means context.getDatabasePath(user.db).getPath() does the trick: db.execSQL(attach database ? as userdb, new String[] {context.getDatabasePath(user.db).getPath()}); On Mar 1, 4:46 pm, westmeadboy westmead...@yahoo.co.uk wrote: I eventually got attach

[android-developers] File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
Hi all I'm writing an app that uploads files to a web service. My question is how to write a Service to handle this: I want to upload in a background thread (or process - not sure of the precise wording), so that the user can go to other applications without interrupting the upload, and show a

[android-developers] Problems when using GridView in Gallery

2010-03-01 Thread Molee
I got the similar problem as a post in stackoverflow forum with name gridview in gallery I can implement and successfullly run with gridview in gallery class. yet gallery no longer fire the onfling function. For the sake of writing something simliar to homescreen, displaying thumbnail of apps

Re: [android-developers] File upload in background: thread/service/AIDL...?

2010-03-01 Thread Mark Murphy
Anna PS wrote: should it be a LocalService or a RemoteService, as per the API examples? A local service should be fine. And do I need to call a new thread once I start the service, or do all services by definition run in a different thread? Services by definition run on the main

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread skink
On Mar 1, 2:50 pm, mscwd01 mscw...@gmail.com wrote: Hi, I want to draw a bitmap on the screen by specifying the x,y locations of the four corners. I.e. I have a square bitmap and I would like to draw the:     * Top right corner at pixel x=100,y=100     * Bottom right corner at pixel

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-01 Thread Bob Kerns
Yeah, I finally realized I hadn't posted there before (odd, but true) and that was probably what was going on. I'm being patient -- I was just letting y'all know, since I had posted here that I had posted there...trying to minimize the confusion. Al Sutton wrote: Bob, If it's your first post

[android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
Brilliant, thank you! So I'm clear, is the best sequence as follows: 1. call a (local) Service 2. from within the Service, call an ASyncTask to initiate a new thread 3. from within the new thread, call the Notifications and file uploading code Also, I need to pass in a filename to the file

[android-developers] Re: Alert Dialog to display across activities?

2010-03-01 Thread Sam
Basically I'm trying to get a popup notification that will work independently of the Activity underneath it. Basically I want a message to be on top of an Activity and stays there even if a timer kicks in a the Activity transitions to another. On Feb 26, 9:11 am, TreKing treking...@gmail.com

[android-developers] style problem in 1.5

2010-03-01 Thread Christine
I have an image of 320px wide and 454px high that I display as the background of a linearlayout with the following style: style name=balloon item name=android:layout_width320dip/item item name=android:layout_height454dip/item item

[android-developers] Re: Invalid statement in fillWindow()

2010-03-01 Thread creativepragmatic
Never mind. It works. I am not sure why it works now but I am moving on. On Mar 1, 10:40 am, creativepragmatic creativepragma...@gmail.com wrote: Hello Everyone, I know the error will probably be painfully obvious to you but using cursor.getCount() on the result of the following returns a 0

Re: [android-developers] Re: Can I get sued for using Android Caller ID?? -Please answer

2010-03-01 Thread chris harper
Thank you for responding ko5tik. I think you are right. The people who open these patents won't care unless your app is doing well because they just want the money. I disagree somewhat with Dmitri. I think developers need to be aware that many features that they might put in their application

Re: [android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Mark Murphy
Anna PS wrote: Also, I need to pass in a filename to the file uploading code - that wouldn't change anything, I assume it's possible to pass a filename to a Service class as an argument? In a manner of speaking. It really kinda depends on what else you're using this Service for. -- Mark

[android-developers] Re: Invalid statement in fillWindow()

2010-03-01 Thread creativepragmatic
I think I figured it out. I was calling getCount() after the database connection was closed. On Mar 1, 11:48 am, creativepragmatic creativepragma...@gmail.com wrote: Never mind.  It works.  I am not sure why it works now but I am moving on. On Mar 1, 10:40 am, creativepragmatic

[android-developers] Re: Variable in getResources().getStringArray

2010-03-01 Thread Bob Kerns
I think we need to help you clear up your model of the language. I've been trying to figure out what computer language is your main language, but I can't quite figure it out -- but it's not Java, I don't think. If you tell us, maybe we can explain a bit better, but I'll give it a shot anyway. At

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
Hey, Thanks for the tip. I have had a look at drawBitmapMesh in the docs and it has left me slightly confused. Do you know how it is meant to be used? Thanks On Mar 1, 4:04 pm, skink psk...@gmail.com wrote: On Mar 1, 2:50 pm, mscwd01 mscw...@gmail.com wrote: Hi, I want to draw a bitmap

[android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
Nothing, really. I just want to upload a file in the background, with an icon in the status bar, and update the icon when the upload is complete. I might possibly want to call the main application back again when the upload is complete or if there is a problem, but I don't expect to use the

[android-developers] Re: Programmatically check whether Market shows paid apps

2010-03-01 Thread Bob Kerns
Thanks for raising this -- I hadn't considered the problem. My understanding is that in some places, it's the country that is the source of the restrictions (i.e. legal barriers to Google Checkout or something like that), while in other places, that barrier doesn't exist, but carriers impose

Re: [android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Mark Murphy
Anna PS wrote: Nothing, really. I just want to upload a file in the background, with an icon in the status bar, and update the icon when the upload is complete. I might possibly want to call the main application back again when the upload is complete or if there is a problem, but I don't

[android-developers] Re: File upload in background: thread/service/AIDL...?

2010-03-01 Thread Anna PS
Superb - thank you :) On Mar 1, 5:31 pm, Mark Murphy mmur...@commonsware.com wrote: Anna PS wrote: Nothing, really. I just want to upload a file in the background, with an icon in the status bar, and update the icon when the upload is complete. I might possibly want to call the main

Re: [android-developers] Re: Alert Dialog to display across activities?

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 10:30 AM, Sam samm...@gmail.com wrote: Basically I'm trying to get a popup notification that will work independently of the Activity underneath it. Basically I want a message to be on top of an Activity and stays there even if a timer kicks in a the Activity transitions

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread skink
On Mar 1, 4:23 pm, mscwd01 mscw...@gmail.com wrote: Hey, Thanks for the tip. I have had a look at drawBitmapMesh in the docs and it has left me slightly confused. Do you know how it is meant to be used? Thanks On Mar 1, 4:04 pm, skink psk...@gmail.com wrote: On Mar 1, 2:50 pm,

[android-developers] Re: Android activity's memory management

2010-03-01 Thread Bob Kerns
If I'm interpreting your pattern correctly, you're invoking activity A from activity B, and activity B from activity A? That would explain your problem, at least. Instead of invoking A from B -- return to A by finishing B. Then you'll only every have one A, and at most one B active at a time.

[android-developers] Re: Tiny URL

2010-03-01 Thread Bob Kerns
My take on it is that he wants to create one from inside an Android app, and doesn't understand that the question is not at all specific to Android. (And further, that he didn't give us enough context to help anyway). It would be more useful to politely point out (rather than as rhetorically)

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
I found this in the Demos: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/BitmapMesh.html However, I cant see how this will help me draw a Bitmap by specifying the x,y coordinates of each corner though. If only Android had a drawBitmap(Bitmap,

[android-developers] Video overlays and PIP

2010-03-01 Thread Sandy
One of the things I'm trying to design is a Picture in Picture, or PiP, effect which displays one video playing on the full screen while another plays as an insert. This is the same type of effect you see when watching a news program on TV in which the commentator is shown sitting at a desk and

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread skink
On Mar 1, 5:21 pm, mscwd01 mscw...@gmail.com wrote: I found this in the Demos:http://developer.android.com/resources/samples/ApiDemos/src/com/examp... However, I cant see how this will help me draw a Bitmap by specifying the x,y coordinates of each corner though. If only Android had a

Re: [android-developers] Video overlays and PIP

2010-03-01 Thread Mark Murphy
Sandy wrote: One of the things I'm trying to design is a Picture in Picture, or PiP, effect which displays one video playing on the full screen while another plays as an insert. This is the same type of effect you see when watching a news program on TV in which the commentator is shown

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
I realise the verts array is what manipulates the Bitmap, however I am unsure how I construct the verts array. Basically I have calculated where the four corners of the Bitmap should be drawn on the screen (I have four x,y pairs), I just need to work out how to construct a verts array which

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread skink
On Mar 1, 5:54 pm, mscwd01 mscw...@gmail.com wrote: I realise the verts array is what manipulates the Bitmap, however I am unsure how I construct the verts array. Basically I have calculated where the four corners of the Bitmap should be drawn on the screen (I have four x,y pairs), I just

Re: [android-developers] Re: Tiny URL

2010-03-01 Thread TreKing
On Mon, Mar 1, 2010 at 12:17 PM, Bob Kerns r...@acm.org wrote: My take on it is that he wants to create one from inside an Android app My take on it, based on the OP's posting history, is that he wants people to do his work for him. My response to one of his previous posts applies here as

[android-developers] ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
I want to create a list view that looks like this: +--+--+--+ | | | | +--+--+--+ | | | | +--+--+--+ It looks like a grid in terms of the selection can go to any row and column, but I want the left most column to be significantly wider than the

Re: [android-developers] ListView vs. GridView vs. TableLayout

2010-03-01 Thread Mark Murphy
sdphil wrote: I want to create a list view that looks like this: +--+--+--+ | | | | +--+--+--+ | | | | +--+--+--+ It looks like a grid in terms of the selection can go to any row and column, but I want the left most column to be

[android-developers] porting native C library to android

2010-03-01 Thread Abhi
Could someone guide me to an online tutorial that explains this really well? Thanks, Abhi -- 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

[android-developers] Preferences for input method

2010-03-01 Thread Andriy Tsykholyas
Hi, I'm working on input method. While creating the settings for it I've stuck with the following problem: settings view (which extends PreferenceActivity) fails to show if its package differs from the application's package. So, application package is my.ime, and full name of settings view is

[android-developers] Re: read phone state and identity?

2010-03-01 Thread skyhigh
I have been contacted by a few users that are concerned that my application uses the read phone state and identity permission. They are asking why I need to read their identity. In my case my application just checks the phone state to automatically pause audio playback when the user gets a phone

Re: [android-developers] porting native C library to android

2010-03-01 Thread Rogério de Souza Moraes
Hi Abhi, there is some incomplete instructions in http://android.serverbox.ch/?p=151 A little more complete is this pdf:

[android-developers] Re: porting native C library to android

2010-03-01 Thread Abhi
Roger, Thanks a ton. This is good stuff! Abhi On Mar 1, 4:09 pm, Rogério de Souza Moraes rogerio.so...@gmail.com wrote: Hi Abhi, there is some incomplete instructions inhttp://android.serverbox.ch/?p=151 A little more complete is this

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
okay - thanks. how do I make the columns have a different width? i.e. the first column is wider than the second two. i see android:columnWidth and setColumnWidth(), but those assume a uniform column width. On Mar 1, 12:01 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: I want to

[android-developers] Re: Why is HTC Hero using drawable-ldpi?

2010-03-01 Thread westmeadboy
To recap, I have an app that targets v4, with min v3. I ended up with three drawable folders: drawable-hdpi-v4 drawable-mdpi drawable-ldpi-v4 Is this the correct approach in this situation? On Jan 29, 11:40 am, Dianne Hackborn hack...@android.com wrote: Correct, it doesn't do anything with

[android-developers] _data column in audio_meta table

2010-03-01 Thread A R
Hi, Does anyone know how is _data column used by RingtonePickerActivity? I checked the tabled using sqlite browser and it has path to the ringtone file. Is it possible to make RingtonePicker ask my app's content provider for ringtones? For eg if I enter content://myprovider/ringtones/1 I want

Re: [android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread Mark Murphy
sdphil wrote: okay - thanks. how do I make the columns have a different width? i.e. the first column is wider than the second two. With luck, width will be driven by the contents. Make the contents of your first column be wide to take up the desired space. You'll note, though, that in my

[android-developers] Re: Petition: Google, please improve the Android Market.

2010-03-01 Thread Rob Irondad
Hello everybody. I've posted a couple of messages to the other list but I am subject to moderation as well right now. I just wanted to say that if anyone wants to edit the current draft, I'll be happy to 'invite' them through Google docs' collaboration features. Just send me your email (has to

Re: [android-developers] Re: Passing a LinearLayout from one Activity to another

2010-03-01 Thread Aniruddh Bajirao
@Zigurd: Using Intents is fine and I'm using that as well. But my question was more about creating a LinearLayout and adding child views to it outside an Activity (like in a regular Java class) and then spawning an Android Activity based on certain parameters (say some parameters derived from a

Re: [android-developers] Re: Why is HTC Hero using drawable-ldpi?

2010-03-01 Thread Mike Novak
I've seen this before. Where the 1.5 devices are pulling the -ldpi drawable folder even though it really shouldn't know about them. The only way I was able to get around this was removing the -ldpi resources. Mike On 03/01/2010 04:45 PM, westmeadboy wrote: To recap, I have an app that

[android-developers] Re: Draw a Bitmap by specifying the x,y locations of the four corners

2010-03-01 Thread mscwd01
Thanks for your help pskink, this was the solution in the end: float[] verts = {nwTranslation[0], nwTranslation[1], neTranslation[0], neTranslation[1], swTranslation[0], swTranslation[1], seTranslation[0], seTranslation[1]} ;

[android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread sdphil
hm... what about three ListView's side by side hide the scrollbar on all but the right most one On Mar 1, 1:52 pm, Mark Murphy mmur...@commonsware.com wrote: sdphil wrote: okay - thanks.  how do I make the columns have a different width? i.e. the first column is wider than the second

Re: [android-developers] Re: ListView vs. GridView vs. TableLayout

2010-03-01 Thread Mark Murphy
sdphil wrote: hm... what about three ListView's side by side hide the scrollbar on all but the right most one You can try it. Personally, I doubt it will work well. For starters, you will have to take great pains to make sure each row is the same height. And, the user will still be able to

[android-developers] sd card access

2010-03-01 Thread Dan
Is there a right associated with write/read access to the sd card that needs to be set in the manifest.xml file? I'm currently trying to write to the sd card using a standard FileOutputStream here: FileOutputStream out = new FileOutputStream(/ sdcard/images/+imageName);

Re: [android-developers] sd card access

2010-03-01 Thread Mark Murphy
Dan wrote: Is there a right associated with write/read access to the sd card that needs to be set in the manifest.xml file? I'm currently trying to write to the sd card using a standard FileOutputStream here: FileOutputStream out = new FileOutputStream(/

[android-developers] Re: Problems when using GridView in Gallery

2010-03-01 Thread Molee
to be more specific http://stackoverflow.com/questions/1986763/gridviews-inside-a-gallery I got the same problem with him about touchscreen, not able to fling the items(gridview) of the gallery. In general cases, when u use the tracakball in gallery, u can see orange rectangle rounding the

[android-developers] Re: Problems when using GridView in Gallery

2010-03-01 Thread Molee
Below is my code fragment CustomGallery is a class extending class Gallery to modify the fling event.. onCreate()/ setContentView(R.layout.grid_gallery); gal = (CustomGallery) findViewById(R.id.appsgallery);

[android-developers] How to color code individual rows of a list view?

2010-03-01 Thread JRock
How can I color code individual rows in a ListView exactly like it is done in the native MESSAGING app? I do NOT want to simply do alternating rows, but I want to copy the format used in the MESSAGING app, where message rows have a different background color based on the username of the message.

[android-developers] Learn the latest device from htc prices, and potential

2010-03-01 Thread kokosos...@yahoo.com
Learn the latest device from htc prices, and potential http://i-mobile2.blogspot.com/2010/02/htc-hero-htc-hero-price-4650-l.html -- 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] Universal web services suite for Android apps development

2010-03-01 Thread Injoit
Hi there! We are a group of iPhone / Android developers who have developed a suite of web services to assist us and other developers in building great apps. After numerous projects we have become tired of having to set up the server scripts to do all the same things for different clients. Most of

[android-developers] Wheel Gesture

2010-03-01 Thread Abhishek
Hi I am developing a list application on 1.6 with a wheel gesture(Like in iPod) on the screen Now I was able to make a circle and trigger the gesture but that is not really what I want. Here a gesture event is triggered only when the finger is lifted from the screen which is very much unlike that

[android-developers] developing for differant sizes

2010-03-01 Thread Gagan
Hello all, I am currently at the end of devoping a simple program with a radio group, two buttons and a text view. When I test it on my g1 and the 1.6 emulator it looks great, but when my friend tries it on his droid many elements are displaced and cut off. I am using absolutelayout, does this

[android-developers] How to get camera specs.

2010-03-01 Thread kumar
Hi, Can someone tell me whether it is possible to get camera specs such as focal length, sensor size, crop factor etc using android api. Thank you. kumar -- 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: how to crop an image in android 2.x

2010-03-01 Thread Damian
I have encountered this problem also. Did you find a solution? On Feb 16, 11:50 am, Vaibhav Goel vaibhavgoe...@gmail.com wrote: By removing class-name and private restrictions, it works for the images picked from gallery but when i pass Uri ofimageafter capturing it from camera, it gives

[android-developers] Re: Uploading a File with HttpClient and HttpPost

2010-03-01 Thread Luke Chi
Hello, has anybody tried this? http://stackoverflow.com/questions/1067655/how-to-upload-a-file-using-java-httpclient-library-working-with-php-strange-pro On 1月24日, 上午6時06分, Hubert Behaghel behag...@gmail.com wrote: Have you tried without the header Expect: 100-Continue ?

[android-developers] How do you do dim an image view?

2010-03-01 Thread bouncyman
I have a GridView on top of an ImageView (which has a background image) and want to dim the Image View so that the GridView will be more prominent. What is the best way to do this? Is there a simple xml attribute I can use? I tried using the FLAG_DIM_BEHIND from WindowManager.LayoutParams but it's

[android-developers] My first iPhone vs Nexus One review

2010-03-01 Thread Urban ArtFX
http://www.youtube.com/watch?v=4zmCgrYe90Q Please give me advise and suggestions. -- 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

Re: [android-developers] error while compiling droid pdf...

2010-03-01 Thread Hans-Werner Hilse
Hi, I would suggest discussing this matter further in the relevant mailing list here: http://groups.google.com/group/droidreader-developer-list Please re-post there, here's just a short hint: Try rectifiing the jpeg/ subdirectory by unpacking a fresh, *new* version of libjpeg, i.e. jpegsr8.zip.

[android-developers] Accelerometer results translation from phone to word orientation

2010-03-01 Thread Ofer.H.G
Hi, I have a problem with the translation of the accelerometer results from the phone to the world orientation. The Z results seem OK but the X and Y get wrong values. It was tested in horizontal phone move. Attached is the code. public void onSensorChanged(SensorEvent event) {

[android-developers] Re: Uploading a File with HttpClient and HttpPost

2010-03-01 Thread Luke Chi
http://stackoverflow.com/questions/1067655/how-to-upload-a-file-using-java-httpclient-library-working-with-php-strange-pro On 1月24日, 上午6時06分, Hubert Behaghel behag...@gmail.com wrote: Have you tried without the header Expect: 100-Continue ?

[android-developers] ActivityNotFoundException

2010-03-01 Thread frak
Hi there, I am trying to start a new activity from a menu action, as follows: public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case MENU_PREF: showDialog(MENU_PREF); return true;

[android-developers] Using merge with multiple ImageView s

2010-03-01 Thread paul zazzarino
Anyone know if merge works with multiple images: header.xml = merge xmlns:android=http://schemas.android.com/apk/res/android; ImageView android:id=@+id/ImageView02 android:background=@drawable/imagex /ImageView ImageView android:id=@+id/ImageView01

[android-developers] How can I efficiently get all contacts that have a contact photo (and avoid joint facebook account results which are invalid)

2010-03-01 Thread Tom W
I see from this post (http://www.mail-archive.com/android- develop...@googlegroups.com/msg68933.html) that due to a facebook policy decision that facebook account data such as contact photo can't be accessed via the api. For my app's purposes, that's fine, but it seems to be causing me pains

[android-developers] Android Camera Issue

2010-03-01 Thread Renjith
Hi, I was trying to write a snapshot application on android and I got stuck at this error 02-28 19:11:10.851: ERROR/QualcommCameraHardware(51): native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 12 error Connection timed out 02-28 19:11:10.851: ERROR/QualcommCameraHardware(51): getPicture failed!

[android-developers] bitmap size exceeds VM budget

2010-03-01 Thread wei yan
Hi: some of you may met the same problem, I was using BitmapFactory.decodeStream, and got this exception: 03-01 23:28:17.663: ERROR/dalvikvm-heap(940): 1572864-byte external allocation too large for this process. 03-01 23:28:17.663: ERROR/(940): VM won't let us allocate 1572864 bytes 03-01

[android-developers] Launch application from homescreen with a button

2010-03-01 Thread ferdy182
Hi all, my name is Fernando and i'm new here :) I have a question to the group. I need to bind the click event of the dpad to an application to launch it from the home screen. I mean, use the dpad button to open a concrete application from home screen. I don't know if a widget could handle the

  1   2   >