[android-developers] Re: Moving map method

2010-07-04 Thread Michael
How does the draw method track location changes? On Jul 3, 4:59 pm, Frank Weiss fewe...@gmail.com wrote: Try this and let us know if it works for you: http://osdir.com/ml/Android-Developers/2010-06/msg01242.html -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to set the default download files location

2010-07-04 Thread priyanka
Hello, There is a library called iText which helps create pdf docs in Java. I read old posts from the author of iText regarding compiling this library for Android - not sure what the current status is. You can find some info about iText here :

[android-developers] Choosing resolution over density for drawables

2010-07-04 Thread Stephen Lebed
I'm looking for a way to tell Android to use a specific drawable folder for specific device resolutions. I have graphics designed for 320x480 displays and 480x800 displays. Android wants to automatically pick the best graphics based on density. Is there a way to work around that? If the device

[android-developers] Re: notification/broadcast for sent sms

2010-07-04 Thread Saurav
Could anyone enlighten me on this subject? Please! Regards, Saurav Mukherjee. On Thu, Jul 1, 2010 at 11:09 PM, Saurav to.saurav.mukher...@gmail.comwrote: hi all, is there any way to be notified (using a broadcast receiver) after a sms is sent? i want to get notified when a sms is sent

Re: [android-developers] Choosing resolution over density for drawables

2010-07-04 Thread Kostya Vasilyev
Stephen, There is a whole bunch of qualifiers for resource folder names, described here: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources You can do things like res/drawable-large, which should match both 480x800 and 480x854. -- Kostya

[android-developers] Re: Choosing resolution over density for drawables

2010-07-04 Thread Stephen Lebed
Thank Kostya. I know about the qualifiers. I was hoping for another solution. Actually it looks like the emulator is reporting the wrong resolution back to eclipse. I've set up an AVD to match the Droid specs of high density 854x480 resolution, but the log is showing a resolution of 569x320

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Dianne Hackborn
I am going to very strongly urge you *not* to do this. And definitely don't do what was recommended by someone on the other thread you started, using the deprecated explicit size qualifier. What you are doing is going against the design of Android that is there to help applications deal with the

Re: [android-developers] Re: Choosing resolution over density for drawables

2010-07-04 Thread Dianne Hackborn
On Sun, Jul 4, 2010 at 1:28 AM, Stephen Lebed srle...@gmail.com wrote: Actually it looks like the emulator is reporting the wrong resolution back to eclipse. I've set up an AVD to match the Droid specs of high density 854x480 resolution, but the log is showing a resolution of 569x320 with a

[android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-04 Thread alex.tchumel
Activity can't be started from the service without FLAG_ACTIVITY_NEW_TASK flag. Probably there is some alternative to this flag, but activity from the service doesn't started simple without this flag and without any other flag. Read about this flag here

Re: [android-developers] Re: Start ACTION_CALL activity from service on Motorola Milestone

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 4:49 AM, alex.tchumel alex.tchu...@gmail.com wrote: Activity can't be started from the service without FLAG_ACTIVITY_NEW_TASK flag. Then do not start that activity from a service. There better be a user using the device at the time the call needs to be placed, and the

Re: [android-developers] Re: notification/broadcast for sent sms

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 3:28 AM, Saurav to.saurav.mukher...@gmail.com wrote: Could anyone enlighten me on this subject? Please! Send the SMS with SmsManager, and then you can register a PendingIntent to be notified when it is sent. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Default shared preferences consistency check

2010-07-04 Thread Federico Paolinelli
I am in need of checking the consistency between a couple of values of default shared preferences, while using the default preference activity. An example is a send mail option which needs a target mail address to be valid. What I am going to implement is a OnSharedPreferenceChangeListener in

[android-developers] Display android screen on projector

2010-07-04 Thread Nishant Kumar
Hi, I have made an android application. Now I want to demonstrate the application to a group of people. How can I show my android screen live on a projector through a laptop/desktop. Thanks, Nishant -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Display android screen on projector

2010-07-04 Thread Krishna Kumar
laptop On Sun, Jul 4, 2010 at 5:20 PM, Nishant Kumar nishant.cs...@gmail.comwrote: Hi, I have made an android application. Now I want to demonstrate the application to a group of people. How can I show my android screen live on a projector through a laptop/desktop. Thanks, Nishant --

Re: [android-developers] Default shared preferences consistency check

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 4:57 AM, Federico Paolinelli fedep...@gmail.com wrote: I am in need of checking the consistency between a couple of values of default shared preferences, while using the default preference activity. An example is a send mail option which needs a target mail address to

Re: [android-developers] Display android screen on projector

2010-07-04 Thread Mark Murphy
You can use dr...@screen: http://blog.ribomation.com/2010/01/21/droidscreen/ That is based on my earlier DroidEx utility. Both can only do about 6 frames per second, due to the limitations of the adb interface. Hence, this is fine for basic apps, but will not work well for: -- videos -- camera

Re: [android-developers] Re: Is automatic calling possible with android?

2010-07-04 Thread Mark Murphy
On Sat, Jul 3, 2010 at 8:52 PM, Smarth Behl smarthb...@gmail.com wrote: So this application is not possible with android? Your Step #4 is not possible with Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |

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

2010-07-04 Thread Mark Murphy
On Sat, Jul 3, 2010 at 7:14 PM, jdeslip jdes...@gmail.com wrote: I still have this issue. Does anyone know what I am doing wrong. Other apps (like the gallery) can share images to Twitter/buzz; so, I must be missing something. I have not tried using ACTION_SEND with an attachment. However, I

[android-developers] Re: Default shared preferences consistency check

2010-07-04 Thread Federico Paolinelli
On 4 Lug, 11:24, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jul 4, 2010 at 4:57 AM, Federico Paolinelli fedep...@gmail.com wrote: I am in need of checking the consistency between a couple of values of default shared preferences, while using the default preference activity. An

Re: [android-developers] Re: Moving map method

2010-07-04 Thread Frank Weiss
I suppose via the mapview parameter. -- 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: Oriented marker

2010-07-04 Thread ENSI
ok :) thanks a lot On 1 juil, 19:38, TreKing treking...@gmail.com wrote: On Sat, Jun 26, 2010 at 4:53 AM, ENSI nouha.khy...@gmail.com wrote: as i'm working on a google map application,i would like to use an arrow as a marker that should be oriented to  another marker (destination). is

[android-developers] Re: Where can I get an installable Froyo image for my Android Market Device Seeding Program Nexus One?

2010-07-04 Thread pistol
Just got it over the air - and nothing to do with my phone company as my SIM card wasn't in. Great - kudos to the big G! On 26 May, 11:15, Al Sutton a...@funkyandroid.com wrote: From the current information circulating it appears there will be an OTA update when it's ready (and, for you, there

[android-developers] How to check if a BluetoothSocket is connected or not

2010-07-04 Thread Raffaello Brondi
Hi How can i know if a BluetoothSocket is still connected to the endpoint? How can i detect if the socket has been disconnected by the endpoint? Thanks Raffaello -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Tom Gibara
Dianne, I'm confused about the correct approach. With the release of the Dell Streak, this question is coming-up more frequently. Al Sutton put up a blog post about it too: http://blog.alsutton.com/2010/07/03/android-tablets-and-mdpi-large This is what I'm not clear on: suppose you have a UI

Re: [android-developers] How change android Home default application (launcher.apk)

2010-07-04 Thread murali raju
add this in intent filter in manifest file category android:name=android.intent.category.HOME / category android:name=android.intent.category.DEFAULT/ and this in activity tag android:launchMode=singleInstance this should work On Fri, Jul 2, 2010 at 4:33 PM, Arun achoudhary2...@gmail.com wrote:

Re: [android-developers] newbie android help

2010-07-04 Thread murali raju
save the rss news in a database(preferred) or any plain text. read the data and display in offline mode.. On Thu, Jul 1, 2010 at 12:53 PM, anu anu0a...@gmail.com wrote: hello, i m developing an RSS Reader for the purpose of learning more about this platform. Till now i have been able to parse

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 7:31 AM, Tom Gibara m...@tomgibara.com wrote: This is what I'm not clear on: suppose you have a UI design that calls for an ImageButton that fills approximately half the screen. The geometry is easily defined by combining layout_weight and fill_parent etc. The image

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-07-04 Thread Neilz
I'm trying to modify the example, so that I can set each view according to my own xml layout file. So each of the five views will have its own layout.xml file, which gets inflated with a LayoutInflater and set as its view. Only three of the views are being instantiated, the other two just take the

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Tom Gibara
Thanks Mark, That lays it out very clearly. If that is the approach we should be taking, then I don't think I understood Dianne's contraindication in the post I replied to. Also, it concerns me that, as the number of variations in screen densities and screen sizes increase, this approach might be

Re: [android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-07-04 Thread Australuke
Hi, i only have time for a quick reply. Inflating each view will have a performance hit on the fling animation; if there are only five then inflate them first in onCreate and store them in an array. Then modify getView to return the appropriate view from the array. This will of course mean there

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-07-04 Thread Neilz
Many thanks Australuke, I'll give that a go. On Jul 4, 1:21 pm, Australuke austral...@gmail.com wrote: Hi, i only have time for a quick reply. Inflating each view will have a performance hit on the fling animation; if there are only five then inflate them first in onCreate and store them in an

[android-developers] Best practice to pass persistent objects from an activity to another activity

2010-07-04 Thread Thomas Frick
Dear All, I have two activities. Activity A creates an object and stores some data in this object. After that, activity B ist started. In activity B I have to use the object created in activity A. What is the best way to pass the object from activity A to B? I think it is not possible to store

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 8:11 AM, Tom Gibara m...@tomgibara.com wrote: That lays it out very clearly. If that is the approach we should be taking, I'm saying it is *an* approach. then I don't think I understood Dianne's contraindication in the post I replied to. Also, it concerns me that, as

[android-developers] Acessing web services with ksoap

2010-07-04 Thread YNC
The regular requests for a web-service are fine but the common tutorials are quite far from the real life. What exactly I would like to know is how to add the namespace (eb: wsse: etc) into the request by ksoap2? What the right approach for creating the web-service's request like that:

[android-developers] What is the combo key press to fix project errors again?

2010-07-04 Thread B Woods
I am working and when I try to run my project it is saying that I have errors that need correcting. In my project list I see a red x by the project but when I open it up I have no errors at all in my code. I remember reading about a key press to use if this happens but I cant remember. Can

Re: [android-developers] multitouch for a piano

2010-07-04 Thread Kwan Cheng
You can't android only tracks two touch points a time On Jul 3, 2010 1:10 PM, ArcDroid jacobrjohn...@gmail.com wrote: Hi does anyone have good way to impliment multi touch for a piano, thanks Jake -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Terminal Server access from an Android Tablet PC

2010-07-04 Thread Michael MacDonald
On 07/02/10 16:26, Peter Ciank wrote: Dear People, very soon, I have to implement for my users something smaller than a notebook. I've been searching and researching and I found iPad and other Tablets with Android. I'm very interested in Android because, I think, it's more flexible but one

[android-developers] Re: Holding On to Camera

2010-07-04 Thread TreKing
On Sun, Jul 4, 2010 at 8:46 AM, perumal316 perumal...@gmail.com wrote: To control the camera But WHY? For what PURPOSE do you need to control the camera and lock out other applications from using it?

Re: [android-developers] multitouch for a piano

2010-07-04 Thread Jonas Petersson
Hi Kwan Jake, On 07/04/2010 04:36 PM, Kwan Cheng wrote: You can't android only tracks two touch points a time On Jul 3, 2010 1:10 PM, ArcDroid wrote: Hi does anyone have good way to impliment multi touch for a piano, thanks Jake To my understanding, Android from 2.x and up as such may in

[android-developers] Re: multitouch for a piano

2010-07-04 Thread ArcDroid
Hi Kwan, How would I make it so that I can click two keys at once? Ontouch might give the perception of multitouch by having a faster response when playing the piano, but repeats way to fast. How do I make it play once for a single on touch? Thanks Jake On Jul 4, 7:36 am, Kwan Cheng

[android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread SirAndroidDev
Thanks. I finally got this going. However, I may not be handling this situation the best way. Now I've been struggling for several more days on another issue. So, I have a ListView with the following for the row.xml: ?xml version=1.0 encoding=utf-8? com.test.CheckableLinearLayout

Re: [android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread Brad Gies
Put a listener on your checkboxes and update your array from there... Then, you only need to check your array, which is much faster and easier to handle anyway. On 04/07/2010 8:20 AM, SirAndroidDev wrote: Thanks. I finally got this going. However, I may not be handling this situation the

[android-developers] Re: What is the combo key press to fix project errors again?

2010-07-04 Thread B Woods
I figured this out nevermind... On Jul 4, 10:32 am, B Woods bradleydeanwo...@gmail.com wrote: I am working and when I try to run my project it is saying that I have errors that need correcting. In my project list I see a red x by the project but when I open it up I have no errors at all in my  

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

2010-07-04 Thread jdeslip
The image file is on the sdcard and when I choose other applications like facebook and gmail the image is attached fine - it just when the user chooses to share the image with Twitter/Buzz that nothing happens... But, the gallery app is able to successfully share images with Twitter/ Buzz; so,

Re: [android-developers] Is onDetachedFromWindow more reliable than onStop

2010-07-04 Thread TreKing
On Fri, Jul 2, 2010 at 4:43 AM, James Wang jameswangc...@gmail.com wrote: We record one flag in A's onStop to remember going to background and restore that flag in onStart. Use onPause and onResume. So we have to find the other way to tell foreground and backgroud. Why do you need to

[android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread SirAndroidDev
Okay, thanks Brad. I thought the CheckedTextViews (ctv) were all one in the same? Seems I read a post a bit ago that recommeneded casting the second argument in the onListItemClick() method (View v) to get at the actual CheckedTextView. Does that sound right? Sorry I'm a bit in the fog on

[android-developers] Changing text size on spinner example

2010-07-04 Thread Connie Walsh
I've been trying to do this for a couple of days so I thought I would share how I eventually did it. I created a new xml file with the name spinnerrow.xml (Notice that there are no underscores and no caps, I had trouble with xml files with those characters) ?xml version=1.0 encoding=utf-8?

[android-developers] Re: multitouch for a piano

2010-07-04 Thread Lance Nanek
Ontouch might give the perception of multitouch by having a faster response when playing the piano, but repeats way to fast. How do I make it play once for a single on touch? The onTouchEvent method is called with a parameter that is an instance of MotionEvent. You need to check the action of

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

2010-07-04 Thread jdeslip
OK - I found out that if I got rid of the body extra than it worked. Apparently the twitter app and buzz app don't want both a pic and a body... On Jul 4, 2:29 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jul 3, 2010 at 7:14 PM, jdeslip jdes...@gmail.com wrote: I still have this

[android-developers] PreferenceActivity and appWidgetId relation

2010-07-04 Thread Premier
Hello, i'm using PreferenceActivity class to configure my widget. PreferenceActivity class automatically saves user preferences, so in widget update service i can call context.getSharedPreferences() and i obtain user preferences. Problem is follow: if you have many widget of same type, how

[android-developers] Re: notification/broadcast for sent sms

2010-07-04 Thread Saurav
Thank you for ur reply! Indeed. Point is i'm not sending the sms. the sms is sent by the user using some other app or the default messaging app. So, basically, my hands are tied. Like the sms_receive broadcast, is there something for sms sent? i just need to know when a sms is sent. On Jul 4,

Re: [android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread Brad Gies
You can setup your listener when you are filling in the text information... just make it the same listener for all of them, and sort out which one it is in the listener event... I usually just use the convertView Tag property for that, and set it to the position in your Array list.. that way

[android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread Premier
I want to know how i can get shared preferences for each appWidgetId. Regards. On 4 Lug, 18:56, Premier a.grum...@gmail.com wrote: Hello, i'm using PreferenceActivity class to configure my widget. PreferenceActivity class automatically saves user preferences, so in widget update service i

Re: [android-developers] Re: notification/broadcast for sent sms

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 1:09 PM, Saurav to.saurav.mukher...@gmail.com wrote: Thank you for ur reply! Indeed. Point is i'm not sending the sms. the sms is sent by the user using some other app or the default messaging app. For privacy reasons, I am quite happy with other applications not knowing

[android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread SirAndroidDev
Thanks Brad. I'll give that a go. I was checking out your application from you Website, that looks pretty nice. On Jul 4, 1:10 pm, Brad Gies rbg...@gmail.com wrote: You can setup your listener when you are filling in the text information... just make it the same listener for all of them,

[android-developers] Froyo vs Froyo-release?

2010-07-04 Thread Skute
Hi, I'm downloading the Android source code and I've downloaded the Froyo Froyo-Release tags. What is the difference between the two? I'm just looking to use the source code to aid in debugging apps when an exception occurs and it says source file not found. Cheers, -- You received this

Re: [android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread Kostya Vasilyev
If you allow the user to configure individual widgets, then you need to store settings separately for each widgetId. I recently implemented this for my widgets, here is how: http://kmansoft.wordpress.com/2010/06/22/per-widget-options-stale-widgets/ -- Kostya 04.07.2010 21:22, Premier пишет:

[android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread Premier
So, i can't use PreferenceActivity, is it right? On 4 Lug, 20:04, Kostya Vasilyev kmans...@gmail.com wrote: If you allow the user to configure individual widgets, then you need to store settings separately for each widgetId. I recently implemented this for my widgets, here is how:

Re: [android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread Brad Gies
Hah.. well.. hopefully the one I am releasing in a day or two will be even better... ;). But.. thanks. Oh.. just realized that you are probably talking about the new one.. I just realized I put screen shots of it up... well.. I can't take much credit for the looks... I broke down and hired an

Re: [android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread YuviDroid
Basically what you should do is to use as 'key' a concatenation of your original preference key and the appWidgetId, which is what you can see in the code posted by Kostya. On Sun, Jul 4, 2010 at 7:22 PM, Premier a.grum...@gmail.com wrote: I want to know how i can get shared preferences for

[android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread Premier
If you lookt at here (http://github.com/commonsguy/cw-advandroid/blob/ master/AppWidget/TwitterWidget/src/com/commonsware/android/appwidget/ TwitterWidget.java) Mark Murphy use PreferenceActivity to store widget preferences, and after it uses

[android-developers] Re: PreferenceActivity and appWidgetId relation

2010-07-04 Thread Premier
With PreferenceActivity, you haven't to set Preference name, it is managed by framework. Is it right? On 4 Lug, 20:09, YuviDroid yuvidr...@gmail.com wrote: Basically what you should do is to use as 'key' a concatenation of your original preference key and the appWidgetId, which is what you can

[android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Bob Kerns
Dianne, I really don't feel that Android's solution here is as complete and universal and helpful as you appear to describe. (I carefully say appear to describe, because I think a good part of the issue is that it is HARD to describe). The assumption you are making appears to be that UI should

[android-developers] Unable to Connect to FTP server and upload a file

2010-07-04 Thread Geo
Hi, I am try to upload file from android phone to FTP site using folowing code where the string to URL is a FTP site with user and password parameters: public synchronized boolean connect() { try { URL url = new URL(ftp://; + user + : +

[android-developers] Re: CheckedTextView - only can select once checkbox

2010-07-04 Thread SirAndroidDev
Ah, thanks for the recommendation. I have a guy somewhat helping as a co-developer. But I do all of the UI and 85% of the code. However, as the company grows (fingers crossed) having access to a recommended designer sure helps. Thanks. On Jul 4, 2:08 pm, Brad Gies rbg...@gmail.com wrote:

[android-developers] Re: A clear, concise tutorial on PreferenceActivity Preferences?

2010-07-04 Thread Premier
Hello Mark. I want to use PreferenceActivity to set preferences for my widget. How i can retrieve widget preferences if i have many widget instances? Thanks On 1 Giu, 18:39, Mark Murphy mmur...@commonsware.com wrote: Donal Rafferty wrote: Thanks Mark. To access my preferences outside my

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Dianne Hackborn
On Sun, Jul 4, 2010 at 5:42 AM, Mark Murphy mmur...@commonsware.com wrote: 2. The Web designer decides that the original design was nonsensical and comes up with a design that works better on a range of browser window dimensions. The Android equivalent of this is more or less what Ms.

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 3:04 PM, Dianne Hackborn hack...@android.com wrote: The 2d Canvas APIs are functionally pretty equivalent to SVG, and can be used to generate the same kinds of images. True, but I have yet to see an Illustrator or Inkscape plugin that exports to Android 2D Canvas Java

[android-developers] Re: Is it possible to disable scroling in a ListView (GridView)?

2010-07-04 Thread Jakob Sachse
same here On 28 Mai, 15:49, JMichel jmbouff...@gmail.com wrote: Just to show that there is an interest to this topic... I'm looking to do the same thing. Any help appreciated. On Apr 27, 9:13 pm, alien9 alienjazz...@gmail.com wrote: I have the same question.. did you find an answer?

[android-developers] App Not Visible On Donut

2010-07-04 Thread Pent
Another app-not-visible-on-the-market post, sorry. App is called Tasker. It should be visible in all Donut+ devices but it's only actually visible in Eclair+ devices. Tested on my G1, reported by other users (devices unknown). Manifest: uses-sdk android:minSdkVersion=4

[android-developers] How to make a imageview at right of linearlayout

2010-07-04 Thread cindy
Hi All, In the linearlayout, I need to put the image at right. I have tried a lot of method, none of them works. Can someone point out what is wrong? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

Re: [android-developers] How to make a imageview at right of linearlayout

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 4:55 PM, cindy ypu01...@yahoo.com wrote: In the linearlayout, I need to put the image at right. I have tried a lot of method, none of them works. Can someone point out what is wrong? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android                

[android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Stephen Lebed
Hi Dianne and Mark, Thanks for taking the time to chime in on this. Mark, I've purchased your Advanced Android Development book and find it very informative. I've tried your suggestions, but its still not working. I am testing on the emulator, so there may be an issue with that. I'm targeting

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Mark Murphy
On Sun, Jul 4, 2010 at 6:06 PM, Stephen Lebed srle...@gmail.com wrote: I've tried your suggestions, but its still not working.  I am testing on the emulator, so there may be an issue with that.  I'm targeting v1.6 Do you have your supports-screens element set up properly? -- Mark Murphy (a

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Tom Gibara
2. The Web designer decides that the original design was nonsensical and comes up with a design that works better on a range of browser window dimensions. The Android equivalent of this is more or less what Ms. Hackborn was hinting at (I think) in her replies on the two threads -- use a

[android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Stephen Lebed
Yes, and I've tested changing 'any density' to true and false. The results are the same for each device tested. This is from my manifest: supports-screens android:smallScreens=false android:normalScreens=true android:largeScreens=true

[android-developers] Re: Best practice to pass persistent objects from an activity to another activity

2010-07-04 Thread snowy_tracks
I implement parcelable on my object and pass it in as an extra in the intent intent.putExtra(customObject, myParcelableObject); Hope this helps! Marc On Jul 4, 1:34 pm, Thomas Frick frick...@gmail.com wrote: Dear All, I have two activities. Activity A creates an object and stores some

[android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Stephen Lebed
I have tried creating a drawable folder called res/drawable-480x320 and res/drawable-800x480 thinking that this would do the trick, but it doesn't work either. Stephen On Jul 4, 3:44 pm, Tom Gibara m...@tomgibara.com wrote: 2. The Web designer decides that the original design was nonsensical

[android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Stephen Lebed
As another test, I removed the drawable-normal-hdpi and drawable-large- mdpi folders and left drawable-480x320 and drawable-800x480. The G1 is displaying correctly, the Droid is using the layout for the G1, using the normal res graphics and scaled them to fill the screen, the Dell Streak is

[android-developers] Re: Deploy App on Google Android G1 Phone

2010-07-04 Thread Indicator Veritatis
Real IP? Which one? The one used by the LAN for identifying your machine, or the one NAT translates it to for the outside world to see the same machine? 10.0.2.2 is in the block reserved for the former, i.e., it is for internal use only: if you are trying to access it from the WiFi on your phone,

[android-developers] Is there a graphs utility?

2010-07-04 Thread Dmitri Snytkine
Just wondering, is there a way to create pie charts and other types of graphs in your application without using web based google graphs API? -- 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 make a imageview at right of linearlayout

2010-07-04 Thread cindy
After I change to android:layout_width=wrap_content, the image is show up at the left of screen. Before that, it is show at the center of screen, LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

Re: [android-developers] Re: How to make a imageview at right of linearlayout

2010-07-04 Thread Mark Murphy
android:layout_alignParentRight is an attribute for use with RelativeLayout, not LinearLayout. Try android:layout_gravity=right. I apologize for not noticing this in your earlier post. On Sun, Jul 4, 2010 at 8:02 PM, cindy ypu01...@yahoo.com wrote: After I change to

[android-developers] Re: Best practice to pass persistent objects from an activity to another activity

2010-07-04 Thread Nicholas Albion
You could cache objects in your Application subclass and pass the DB pk or Preferences key in the intent. If you've already got the object in memory, just grab the cached instance, otherwise you can load it from the DB or Preferences (if your application has been killed and restarted) On Jul 4,

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Dianne Hackborn
Okay let me put it this way... what you are trying to do is not how things are intended to work, because it results in applications that are very tied to specific screen resolutions and are likely to not behave well when encountering new kinds of screens that they didn't anticipate. So I

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Dianne Hackborn
On Sun, Jul 4, 2010 at 3:44 PM, Tom Gibara m...@tomgibara.com wrote: Half-the-screen is a conveniently simplified example just to discuss the technicalities. Al's screenshot of the facebook app provides a concrete real-world example. There are six possible actions, and the UI design maps this

[android-developers] Re: https://dl-ssl.google.com/android/repository/repository.xml

2010-07-04 Thread Indicator Veritatis
I had trouble with the HTTPS repository once upon a time way back when, but now I have been using it with no problems for quite some time now. If you are still having trouble with it, I have to wonder if you have broken SSL support, or too old a version of either Eclipse or the ADT. On Jul 3,

Re: [android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Tom Gibara
Thanks, that clarifies things a lot. It can sometimes be difficult to understand how to best apply APIs, even if you're familiar with them, and especially when they are tracking a moving target. So my personal high-level take-away from this is that it's simply not the responsibility of the

Re: [android-developers] Re: Get all text (including encoded) from XML Text Node

2010-07-04 Thread Julius Spencer
Not sure - I just put the data back together. It didn't appear to be that expensive. On 4/07/2010, at 6:14 AM, Bob Kerns wrote: I'm a little puzzled by this behavior. This is supposed to be controlled by this:

Re: [android-developers] Is it possible to disable scroling in a ListView (GridView)?

2010-07-04 Thread Peter Teoh
On Sat, Apr 3, 2010 at 11:24 AM, oviroa ovi...@gmail.com wrote: I need to add a drawable background to a GridView that scrolls with the grid, instead of having the grid scroll on top of the background. I figured the easiest way is to disable the scrolling and nest the grid inside a ScrollView.

[android-developers] How to eliminate the java.lang.OutOfMemoryError: bitmap size exceeds VM budget issue while scrolling in bluetooth screen.

2010-07-04 Thread sourabh.j...@gmail.com
HI , While performing scrolling on the Bluetooth scanned devices screen I faced the below out of memory issue. 06-28 12:35:51.338 E/AndroidRuntime( 1311): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 06-28 12:35:51.338 E/AndroidRuntime( 1311): at

[android-developers] Re: Resource Alias not resolving

2010-07-04 Thread Stephen Lebed
Thanks Dianne, I really do take what you say to heart. I would love to abandon fixed graphics sizes and work with scalable graphics. The problem is that I'm trying to design an app that not only functions well, but looks better than everything else out there. It seems like it would be easier

[android-developers] Question about IP packet header's TOS field marking

2010-07-04 Thread comet565
Hi, i am making a small android application which VoIP program based in SIP(Session Initiation Protocol) using the android default emulator. Through this program, i will support the QoS for each service such as voice telephony, SMS messaging and so on. So, i want to mark the TOS field(8bit) in IP

[android-developers] Application Priority

2010-07-04 Thread arindam
Hello everyone, I have few question in application side.Questions are below 1. Can LMK (Low Memory Killer) kill service ? 2. Can I open multiple instance of same applications ? 3. Can I set the priority for the application ? 4. LMK kills application(process) or one

[android-developers] Question about IP packet header's TOS field marking

2010-07-04 Thread comet565
Hi, i am making a small android application which VoIP program based in SIP(Session Initiation Protocol) using the android default emulator(version : android 2.2) . Through this program, i will support the QoS for each service such as voice telephony, SMS messaging and so on. So, i want to mark

[android-developers] Question about IP packet header's TOS field marking

2010-07-04 Thread comet565
Hi, i am making a small android application which VoIP program based in SIP(Session Initiation Protocol). Through this program, i will support the QoS for each service such as voice telephony, SMS messaging and so on. So, i want to mark the TOS field(8bit) in IP packet header to grant priority

[android-developers] Re: Best practice to pass persistent objects from an activity to another activity

2010-07-04 Thread JP
Another way is to build a Service that holds the object(s) in question and that the two activities connect to. Once that's in place the object(s) can be accessed with the usual getter and setter methods. For lists and the like, you'll probably want to check out the Collections framework for

[android-developers] Question about IP packet header's TOS field marking

2010-07-04 Thread comet565
Hi, i am making a small android application which VoIP program based in SIP(Session Initiation Protocol) using the android default emulator(version : Android SDK 2.2) Through this program, i will support the QoS for each service such as voice telephony, SMS messaging and so on. So, i want to mark

[android-developers] Question about IP packet header's TOS field marking

2010-07-04 Thread comet565
Hi, i am making a small android application which VoIP program based in SIP(Session Initiation Protocol) using the android default emulator(version : android 2.2) Through this program, i will support the QoS for each service such as voice telephony, SMS messaging and so on. So, i want to mark the

Re: [android-developers] Application Priority

2010-07-04 Thread Dianne Hackborn
On Sun, Jul 4, 2010 at 8:39 PM, arindam arindam2gh...@gmail.com wrote: 1. Can LMK (Low Memory Killer) kill service ? Yes. 2. Can I open multiple instance of same applications ? You can launch multiple activity stacks; they will be running in the same process. 3. Can I set the

  1   2   >