Re: [android-developers] Save ListView items for next time

2009-12-11 Thread sathya subbiah
Try using a data base for storing the data and update the list from the database table. On Fri, Dec 11, 2009 at 1:39 AM, Abhi abhishek.r.sha...@gmail.com wrote: Hi, My problem sounds pretty easy to solve... not getting any right direction. My app starts with a blank listview with a Menu

[android-developers] DynamicLayout and StringBuilder

2009-12-11 Thread Michael Scott
Hi, I am writing a custom View that uses a DynamicLayout to write text on the screen. The DynamicLayout is constructed with a StringBuilder that I use to change the text. This works fine, but my problem is that when I add linebreaks to the string, sb.append(\n), they show up as squares on the

[android-developers] Re: restricting edittext control's max chars

2009-12-11 Thread Nithin
try setFilters().. Thanks On Dec 11, 10:28 am, Jags jag...@gmail.com wrote: nobody has tried this before ? On Nov 26, 9:39 pm, Jags jag...@gmail.com wrote: I need to restrict edittext's max chars to 255, how can i do that in layout or functions ? regardsJagat -- You received this

[android-developers] Re: restricting edittext control's max chars

2009-12-11 Thread Nithin
check this, http://smartandroidians.blogspot.com/2009/11/creating-edittext-programmatically-in.html On Dec 11, 2:16 pm, Nithin nithin.war...@gmail.com wrote: try setFilters().. Thanks On Dec 11, 10:28 am, Jags jag...@gmail.com wrote: nobody has tried this before ? On Nov 26, 9:39 pm,

[android-developers] [Android Dev Phone 1] How to select/install a locale other than English ?

2009-12-11 Thread Syl
My application has resources files in English and French and works on Android 1.5 and . Inside the emulator, in Settings Locale Text Select Locale, I can choose English or French. This updates the language of my application. However, when I use the Android Dev Phone 1, only English is

[android-developers] Re: noHistory=true rocks

2009-12-11 Thread Samuh
Dianne, Firstly, many thanks for your reply! (1) This is a debugging feature, not something to turn on for normal production. I understand this. (2) It doesn't finish the activity; it destroys the current instance, which will thus needed to be re-instantiated the next time the user

[android-developers] Re: Use Camera API for normal quality pictures

2009-12-11 Thread benbenbenben
Mark, thanks for the link! I hope the problem ( one single line :S ) will be solved in 2.0 -- 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

Re: [android-developers] Re: restricting edittext control's max chars

2009-12-11 Thread hongki park
thank you it is a good informations 2009/12/11 Nithin nithin.war...@gmail.com check this, http://smartandroidians.blogspot.com/2009/11/creating-edittext-programmatically-in.html On Dec 11, 2:16 pm, Nithin nithin.war...@gmail.com wrote: try setFilters().. Thanks On Dec 11, 10:28

[android-developers] Please help me

2009-12-11 Thread IPEG Student
Hello, I want to capture the phone number of any android device. am using this code TelephonyManager mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); sim = mTelephonyMgr.getLine1Number(); in emulator it returns a value. But when i

[android-developers] Re: Contacts FAQ?

2009-12-11 Thread ydario
Hi, When you navigate to Contacts-[menu]-Accounts-AddAccount or Settings-Accounts sync-Add Account does your custom account type appear?  If not, this is probably your next milestone.  I achieved this by reading the code in packages/apps/Email/, which is a far cry thanks for pointer. But

[android-developers] URLconnection.setConnectTimeout doesn't work?

2009-12-11 Thread Kaj Bjurman
Hi, I have code that is reading data from a website, the website that I'm reading data from is at times a bit slows, so I want to use setConnectTimeout on the URLconnection that I'm using. The problem is that it looks like the value is ignored, or that it doesn't work. I have set the

[android-developers] Re: GK:How to Animate the single image in the Gallery

2009-12-11 Thread Jack Ganesh
Some one help me ! ! ! On Dec 10, 4:52 pm, Jack Ganesh ganesh...@gmail.com wrote: No one knows ? Any suggestions are appriciated. Cheers, Ganesh.., On Dec 10, 3:09 pm, Jack Ganesh ganesh...@gmail.com wrote: Hi All,   I added and displayed set of images in mygallery. I made like

[android-developers] Re: I can't launch layoutopt(using Window7)

2009-12-11 Thread Chris
Did you perform this step: Windows users: to start layoutopt, open the file called layoutopt.bat in the tools directory of the SDK and on the last line, replace %jarpath% with -jar %jarpath%. On Dec 11, 1:56 am, lch1721 lch1...@gmail.com wrote: I saw the blog, and try to launch

[android-developers] view inside a customView

2009-12-11 Thread Atif Gulzar
Is it possible to use standard views inside your custom defined views. e.g. use ImageView in my class that is extended form View ? Or is it possible to use one custom view inside another custom view? Actually I have animations defined in xml view which I want to apply on some of the images. But

[android-developers] Playing Flash file in Android

2009-12-11 Thread Maxood
Does Android support flash? If yes then i need an example code to play a flash file. Wonder if we can play a flash file in WebView? Waiting for reply -- 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] SSL handshake failure when client certificate is requested

2009-12-11 Thread swapnil kamble
I am also looking for using custom keystore, do you know how generate and store cert and priv key in keystore programmatically ? On Thu, Dec 10, 2009 at 4:12 PM, droidsan droid...@googlemail.com wrote: Hello, Trying to set up a secure connection via SSL I get a SSL handshake failure when the

[android-developers] Alpha Gradient on Bitmap of PNG

2009-12-11 Thread Taf
Hi, I'm trying to apply an Alpha gradient to a bitmap that I've created from a PNG. I want the image to be opaque at the top and fade to transparent at the bottom. I know this can be done be using getPixels and setPixels for Bitmap and iterating through each row of pixels in the Bitmap and

[android-developers] Re: Alarms, Receivers and Wakelocks...oh my!

2009-12-11 Thread Lee
The most elegant solution for the receiver-service dilemma I've seen is to use this code in the (standard) service: public static void lockAndStartService( Context context, Intent intent ) { synchronized ( startServiceLock ) { MyWakeLockManager.acquirePartial( context, TAG );

[android-developers] Debugging on Acer Liquid

2009-12-11 Thread bestpriv...@googlemail.com
I have problems to start debugging on my new Acer Liquid. Windows XP SP3 always tells me that it cannot find any drivers for the Acer HSUSB Device. I already installed the latest usb drivers (Revision 2, November 2009) using the SDK Manager. Do I have to wait for a new revision? Does somebody else

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

2009-12-11 Thread Ecthelion
Hi Matt, you could try explicitly freeing the resources your bitmaps use by invoking Bitmap.recycle(). The description of this method reads Free up the memory associated with this bitmap's pixels, and mark the bitmap as dead, meaning it will throw an exception if getPixels() or setPixels() is

[android-developers] Re: awakenScrollBars() not showing scrollBar in custom View

2009-12-11 Thread Nithin
Hi Romain Guy, I want auto-fading scroll bar. How to do that ?. Or at the least, I want to show scroll bar in my custom view. How to do using compute*() methods. My custom view is scrolling, but I want to show the scroll bar. I also find a link from you,

[android-developers] Re: AnimationDrawable and Out of Memory Errors

2009-12-11 Thread Mark Hansen
So I did get the crashes to stop, and I have a idea of why it works... anyways.. I updated the onWindowFocusChange set the backGroundDrawable to null when the app loses focus. I also do this on the onDestroy() and onPause() methods as well. My guess is that the app goes into pause mode and when

[android-developers] Applying effects to camera viewfinder

2009-12-11 Thread Will
I want to make a motion-jpeg. This is not a video format that is supported by the built-in codecs. One approach I've looked at is to use the preview callback, asking for a JPEG buffer. Unfortunately, the HTC phones I've tried this on all call back at several second intervals and give me an NV12

[android-developers] Re: Accessing Droid Moto Corporate Calendar database for my widget

2009-12-11 Thread Mike
Hi Dianne, I realize this definitely, but for now am willing to take the risk and adjust later, much like we have to do when each new Android release comes out. Thanks! Mike On Dec 10, 6:06 pm, Dianne Hackborn hack...@android.com wrote: Anyone who does try to do this will most likely break in

[android-developers] Re: Debugging on Acer Liquid

2009-12-11 Thread bestpriv...@googlemail.com
Okay, I got it working this way: 1. get the latest usb updates 2. modify your android_winusb.inf file by adding these three lines to [Google.NTx86] and [Google.NTamd64]: ; Acer Liquid %SingleAdbInterface%= USB_Install, USB\VID_0502PID_3202 %CompositeAdbInterface% = USB_Install,

[android-developers] GK: How to recognize Left touch dragging and Right touch dragging(Scrolling) in Android?

2009-12-11 Thread Jack Ganesh
Hi All, I displayed set of images inside the Gallery. By default it has scrolling. But I don’t want this way of scrolling. So I implemented “OnTouchListener” it has only OnTouch() method. Now I want to implement the same left and right scrolling(Left and right dragging) in my own. How to do

[android-developers] Re: Alarms, Receivers and Wakelocks...oh my!

2009-12-11 Thread MrChaz
The code I'm using has a static method in the service I'm about to start that creates a wake lock that I then reference from within the started service. I took it from a discussion about WakeLocks in here and it seems to work. private static PowerManager.WakeLock _wakeLock = null;

[android-developers] Re: clicks to MapView to firing onClick

2009-12-11 Thread Chris
Essentially I want to get the current location, the idea of the click on the map is for the user to indicate they are happy with the current location and accuracy. They might well be driving at the time so ideally the bigger the area to press the better so not as to distract them to much by

[android-developers] Emulator closes when attempting to enter full screen mode

2009-12-11 Thread Per Sandström
If I am in the emulator and press alt+enter to get full screen, the emulator closes and the following output is written in the console: [2009-12-11 15:01:00 - Emulator]### Error: could not create or resize SDL window: No video mode large enough for 1050x1680 Note that I have my monitor flipped

[android-developers] GridView in a ListView: results are unusable the way it is now

2009-12-11 Thread Brion Emde
Here's a simple program that puts a bunch of GridViews inside a ListView. My original question was about how the list item that has no GridView entries, or one row of entries, still has two rows. But, upon further examination of the included program, the worse problem is that the GridView items

[android-developers] Re: glCopyTexImage2D - Success anyone?

2009-12-11 Thread scott19_68
Works for me on my HTC Hero - I too could only use RGB and not RGBA. Emulator flips the textures upside down though... Does anyone else have more information regarding other phones? I have an app on the app store that uses this method and I am suspecting that it does not work for all current

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

2009-12-11 Thread Streets Of Boston
If you're nulling your static bitmap in onPause why is it static to begin with? E.g. to have access to bitmaps outside of my activity, in classes that don't have reference to my activities. Or, in case there can be multiple instance of an activity, these instances can share 'expensive' data.

Re: [android-developers] GridView in a ListView: results are unusable the way it is now

2009-12-11 Thread Mark Murphy
Here's a simple program that puts a bunch of GridViews inside a ListView. Putting scrollable items inside scrollable items usually does not work well in Android. I would recommend you use either a GridView or a ListView. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App

[android-developers] Re: Where can I catch a point that is assured to be called when a Service is destroied

2009-12-11 Thread zhiyazw
Who can help? On 12月11日, 上午11时27分, zhiyazw zhiy...@gmail.com wrote: Thank you, Mark. I read your linked topic, But AlarmManager is not suitable to me. My service is not started periodically, it started by broadcast, Actually by android.intent.action.PHONE_STATE. On each starting, the

[android-developers] Re: outgoing call data stream / channel

2009-12-11 Thread Mr Pinguin
Is it possible to record only VOICE_DOWNLINKVoice call downlink (Rx) audio source ? It doesn't work for me. it records only 2 ways. On 4 Dez., 08:00, hongki park parkhongki.spr...@gmail.com wrote: ^^ what are you talking about ??? 2009/12/4 Hetal Patel heta...@gmail.com Will anybody

[android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Neilz
Well, I've done some considerable debugging and testing on this. My code is based on the examples given with the SDK docs, so it's nothing different or profound. http://developer.android.com/intl/fr/guide/developing/tools/aidl.html I can confirm that if you pause the activity that called the

Re: [android-developers] Re: Defining width for spinners options.

2009-12-11 Thread murali raju
Hi, May be I am missing some where, I am not able to implement it. As you said I used the simple_spinner_dropdown_item file in my program and changed the width. Only the radio icons(default which are placed on the extreme right) move towards text(ie.. left side), but the background still

Re: [android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Mark Murphy
I can confirm that if you pause the activity that called the service, when the activity is resumed it does not pick up the same connection object. You are the one creating the connection object (private ServiceConnection m_connection), not Android. If you want to hang onto it, hang onto it.

[android-developers] Re: GridView in a ListView: results are unusable the way it is now

2009-12-11 Thread Brion Emde
Thank you. I was looking for something that would mimic the behavior of floating elements in HTML, where several items can be added and they could end up looking like a grid. Like this: http://gobeering.com/beers.html If you look at that page on a mobile device, the tags under a beer will move

[android-developers] Pick Contacts and dynamically adding into ListView.... Help!

2009-12-11 Thread Abhi
Hi I am copying my code below to do the above. The problem I have right now is after I have picked a Contact from the list, I am not able to add the name to the listview. I get a Force Close at that step. See point no. A below to understand what I am talking about. Also, the ListView is built

Re: [android-developers] Re: GridView in a ListView: results are unusable the way it is now

2009-12-11 Thread Mark Murphy
Thank you. I was looking for something that would mimic the behavior of floating elements in HTML, where several items can be added and they could end up looking like a grid. Like this: http://gobeering.com/beers.html If you look at that page on a mobile device, the tags under a beer will

[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-12-11 Thread polyclefsoftware
Well, if anyone is still following this thread at all... I'm able to replicate the behavior RoryD describes, but it is still less than ideal from the user's perspective. Here's what happens: 1) The user opens the app for the first time, clicks a button to log in. 2) Account Manager tries to get

Re: [android-developers] URLconnection.setConnectTimeout doesn't work?

2009-12-11 Thread Jeffrey Blattman
you can try doing the same thing w/ the httpclient classes. i know that doesn't answer your question but it's something else to try. On 12/11/09 3:53 AM, Kaj Bjurman wrote: Hi, I have code that is reading data from a website, the website that I'm reading data from is at times a bit slows, so

[android-developers] leaked window?

2009-12-11 Thread stanlick
Can someone who speaks better droid than me please help to translate this beauty? 12-11 09:19:51.879: ERROR/WindowManager(232): Activity com.androidologist.friendfinder.MainActivity has leaked window com.android.internal.policy.impl.phonewindow$decorv...@43db25f0 that was originally added here

Re: [android-developers] Re: clicks to MapView to firing onClick

2009-12-11 Thread TreKing
In that case, what I would probably do is derive a class from MyLocationOverlay, as you already mentioned, and override the onTap function (not dispatchTap). I believe this is called whenever the map view is pressed anywhere, but then only returns true if the given overlay was actually tapped (to

[android-developers] GPS beacon vs. locked

2009-12-11 Thread stanlick
I am trying to determine whether satellites are being acquired or if a lock has been acquired. I can see this with a pulsing vs. fixed dish icon on the notification bar, but so far I have not quite achieved a solution in code. Apparently this does nor necessarily mean LOCK_ACQUIRED?

Re: [android-developers] GridView in a ListView: results are unusable the way it is now

2009-12-11 Thread Romain Guy
ListView and GridView are not meant to be embedded within one another (the same is true with ScrollView.) And when I say they are not meant to, it's not supported to do so. On Fri, Dec 11, 2009 at 6:53 AM, Brion Emde brione2...@gmail.com wrote: Here's a simple program that puts a bunch of

Re: [android-developers] leaked window?

2009-12-11 Thread TreKing
What happening in your app when you see this error? Are you showing a dialog with dialog.show() instead of Activity.showDialog()? I know this will happen if you do this but don't dismiss the dialog before the activity is destroyed.

[android-developers] Re: leaked window?

2009-12-11 Thread Kaj Bjurman
I think I've seen something similar to that on the Droid. I got it when I invoked updateConfiguration with a new locale without specifying android:configChanges=locale in the activity section in the AndroidManifest. (The same code worked in 1.5 and 1.6 without any errors) On 11 Dec, 17:49,

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

2009-12-11 Thread Hong
I don't know the technical details but they can add CDMA devices to their network by assigning some numbers, same procedure for China Telecom, on which some Palm Pres are currently running ;) On Thu, Dec 10, 2009 at 8:36 PM, Mark Carter mjc1...@googlemail.com wrote: Thanks for the explanation

Re: [android-developers] Re: Accessing Droid Moto Corporate Calendar database for my widget

2009-12-11 Thread Dianne Hackborn
On Fri, Dec 11, 2009 at 5:44 AM, Mike mikehoepfin...@comcast.net wrote: I realize this definitely, but for now am willing to take the risk and adjust later, much like we have to do when each new Android release comes out. Let's be clear: you don't generally need to do this for each new

[android-developers] Re: leaked window?

2009-12-11 Thread stanlick
Well how did I miss that one? :) Thanks for the tip and I'll look into my manifest. It sure seems like there is a lot of guess-and-be-golly with Android today. I'm not complaining guys -- just stating my observation. P.S. This has become common vernacular have you tried this? Peace, Scott

Re: [android-developers] view inside a customView

2009-12-11 Thread Dianne Hackborn
You need to extend ViewGroup so you can be container of other Views. On Fri, Dec 11, 2009 at 4:22 AM, Atif Gulzar atif.gul...@gmail.com wrote: Is it possible to use standard views inside your custom defined views. e.g. use ImageView in my class that is extended form View ? Or is it possible

[android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Neilz
Well, we're going right back to the basic fundamentals here! I thought I had got to grips with this long ago, but clearly not. Here's what's happening: If I press the 'home' key, onPause and onStop are called. If I press the 'back' key, in addition onDestroy is called (that's the behaviour that

[android-developers] Re: AppWidget / Home screen widget and size

2009-12-11 Thread Kaj Bjurman
dip and dp is the same according to the documentation. dp Density-independent Pixels - an abstract unit that is based on the physical density of the screen. These units are relative to a 160 dpi screen, so one dp is one pixel on a 160 dpi screen. The ratio of dp-to- pixel will change with the

[android-developers] Re: Accessing Droid Moto Corporate Calendar database for my widget

2009-12-11 Thread Mike
Sure Dianne, you are right. Using private API's is risky With that said, it is the only way to get to the calendar data that I am aware of. Can you give me some pointers to access the Corporate Calendar (Exchange) data, or point me to public API's that may help for either? Thanks! Mike On

Re: [android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Mark Murphy
If I press the 'home' key, onPause and onStop are called. Correct. If I press the 'back' key, in addition onDestroy is called (that's the behaviour that has confused me). Correct. BACK, by default, will destroy your activity. If I restart the activity by 'long pressing' the home key,

[android-developers] US export law

2009-12-11 Thread Andrei
If I access my web site using https from my app will it break any export laws? -- 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

[android-developers] Re: leaked window?

2009-12-11 Thread Matt Kanninen
On Dec 11, 9:45 am, stanlick stanl...@gmail.com wrote: It sure seems like there is a lot of guess-and-be-golly with Android today.  I'm not complaining guys -- just stating my observation. Today? It always has, and always will be. Although the problem could be helped if Google starts hiring

[android-developers] Application closes after about seven hours

2009-12-11 Thread kaloer
Hi, I have a problem with my application. Sometimes, it closes after about seven hours run because of an exception. I can really not figure out why this exception is thrown, and I cannot have the device connected to my computer for debugging in seven hours. However, I've used the

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

2009-12-11 Thread Matt Kanninen
You catch out of memory? I wasn't willing to do that yet, but it would solve all my problems... On Dec 11, 7:09 am, Streets Of Boston flyingdutc...@gmail.com wrote: If you're nulling your static bitmap in onPause why is it static to begin with? E.g. to have access to bitmaps outside of my

Re: [android-developers] Re: leaked window?

2009-12-11 Thread Greg Donald
On Fri, Dec 11, 2009 at 12:21 PM, Matt Kanninen mathias...@gmail.com wrote: Today?  It always has, and always will be.  Although the problem could be helped if Google starts hiring people specifically to improve the Java docs. Yeah, seems a unsolvable situation. Google only hires smart people

[android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Neilz
Yes :-) we are going round in circles a bit! The overiding problem for me is that the behaviours I described above are causing different scenarios with my service. When I press 'back', and then return to the activity, a new connection to the service is created. Which results later in the service

[android-developers] Re: Pick Contacts and dynamically adding into ListView.... Help!

2009-12-11 Thread Abhi
I guess I found the solution. Abhishek On Dec 11, 11:15 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi I am copying my code below to do the above. The problem I have right now is after I have picked a Contact from the list, I am not able to add the name to the listview. I get a Force Close

Re: [android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Mark Murphy
The overiding problem for me is that the behaviours I described above are causing different scenarios with my service. When I press 'back', and then return to the activity, a new connection to the service is created. Which results later in the service not being destoyed when I tell it to,

[android-developers] Emulator scancodekeycode mapping file

2009-12-11 Thread one tow
Hello, My emulator's Home key and Search key can not work, so i need to check if the keymapping is right. Any body know which file definite the emulator's scancode and keycode mapping. I can found the the keycode in this folder development/emulator/keymaps, but where is scancode mapping file?

[android-developers] Re: Where are the HTC dev phone 1 image package links?

2009-12-11 Thread Bob
Cool. It works! On Dec 9, 12:35 pm, Ryan Beesley ryan.bees...@swypeinc.com wrote: lbcoder posted this on one of the other groups: On Dec 7, 7:41 pm, lbcoder lbco...@gmail.com wrote: The page is just broken. The files are still there to download.

[android-developers] getting the browser to use localhost in airplane mode

2009-12-11 Thread jami
Hi All, I have been using an application called ankimini that is basically a flash card application using ase and python. To cut a long story short it initiates a server that listens on 127.0.0.1:8000 and you then view the flash cards using the browser. This all works fine until you lose

[android-developers] about how to detect the usb device in Android

2009-12-11 Thread lidemin
hi all, now i have ported the Android to a x86 platform. And i want to detect the USB plug-in.But follow the information about the android.intent.action.MEDIA_MOUNTED in the SDK's DOC, i can't receive the event of the USB's plug-in. i have checked my code and it can receive the other event (

[android-developers] Re: I can't launch layoutopt(using Window7)

2009-12-11 Thread lch1721
My mistake. I did not see the last sentence. Windows users: to start layoutopt, open the file called layoutopt.bat in the tools directory of the SDK and on the last line, replace %jarpath% with -jar %jarpath% -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: without Absolutelayout, how to put button on arbitary coordinates

2009-12-11 Thread shomari
After being forced to move away from AbsoluteLayout (not because it was depreciated, but because of the new screen densities that it wouldn't support) I choose to use RelativeLayout (although FrameLayout works the same way). I was successful after making the following changes to ALL xml files:

[android-developers] what kind of Java in Android

2009-12-11 Thread EricWang
When I debug a program on Android, the debug info like this: at java.io.ObjectStreamField.resolve(ObjectStreamField.java:351) at java.io.ObjectInputStream.readNewClassDesc(ObjectInputStream.java: 1877) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:840) at

[android-developers] landScape mode problem

2009-12-11 Thread ranjit
hello, my app is working on portrait mode in good view support.but when i m going for landscape mode my app works but the background image stretched and the layout display all but having right side blank. i have given a image in result page which is in below part of result.so when i go

Re: [android-developers] Re: Camera crashes when taking pictures

2009-12-11 Thread 李務誠
We have fixed it in 2.0, and we are publishing a patch for manufacturers that use 1.6. It will be up to individual manufacturers/carriers to decide whether to make that patch available to existing users. For developers, using setOneShotPreviewCallback will reduce the odds of the crash. The

[android-developers] Eclipse Crashes

2009-12-11 Thread g...@devicedriven
Whenever i try to open the layout.xml file in eclipse..eclipse crashes and exits without any messages.. However if i try to open the xml file without using the layout editor of ADT plugin everything is fineit will open as an editable file..the problem started only after i updated the latest

[android-developers] Using android.app.ActivityManagerNative and android.app.IActivityManager

2009-12-11 Thread zz zt1082
I need to configure the Setting through IActivityManager. But after adding import android.app.ActivityManagerNative; and import android.app.IActivityManager in eclipse, errors still exist that ActivityManagerNative cannot be resolved BackupManager cannot be resolved IActivityManager cannot be

[android-developers] Application use of Haptics (When to enable/disable - minimizing confusion annoyance)

2009-12-11 Thread Steve Scherer
Is there a general guideline for application developers about when to disable haptic responses? I know there are ways to enable/disable long-press haptics, but if an application was created to use haptic feedback for other events are there guidelines that application developers should follow?

[android-developers] Playing video from source file?!

2009-12-11 Thread Valentino XM
Hello, new to all of this. using Android 2.1 in Eclipse, all i want to do for now is to get the video working in an Emulator via videoview .. little help would be vmuch apperciated. cheers.. package info.shouraig.com; import android.app.Activity; import

[android-developers] Acer Liquid on Ubuntu

2009-12-11 Thread Mikael
Hi, I'm having problems getting adb recognize my acer liquid. I tried modifying ~/.android/adb_usb.ini by adding the line 0x0502 and restarted the adb server but still nothing. Anyone being more lucky? Thanks, Mikael -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Applying effects to camera viewfinder

2009-12-11 Thread 李務誠
On Fri, Dec 11, 2009 at 9:33 PM, Will var...@yahoo.co.uk wrote: I want to make a motion-jpeg. This is not a video format that is supported by the built-in codecs. One approach I've looked at is to use the preview callback, asking for a JPEG buffer. Unfortunately, the HTC phones I've tried

[android-developers] How to use existing contact create app of device

2009-12-11 Thread vikram deshpande
I want to invoke my application once user creates / updates contact from his device. i.e once user hit Done button. is it possible ? If possible please provide sample code or link. Please help and thanks in advance. -- You received this message because you are subscribed to the Google Groups

[android-developers] Fail to build Android platform source code, need help

2009-12-11 Thread mundou
Hi, all! I'm building android platform source code on Fedora 11, with jdk1.5.0_21. I used git to get the entire project from /platform/ manifest.git. When I build the source, it fails with the following message: Install: out/host/linux-x86/framework/dx.jar Copy: dx

[android-developers] Re: Block Switch App

2009-12-11 Thread shomari
I must say that I have really enjoyed reading this thread to see how both sides view this issue so passionately. As I've grown in my study and understanding of the Android platform, many of these issues HAVE frustrated the hell out of me, but I've come to just accept them. And as far as the

[android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Neilz
That's not *quite* what I'm after... I want the service to continue running (whatever happens to the calling activity) and then later (i.e. 2 hours) when the user calls the activity again (could be recreated or restarted) the service can be bound to, information collected from it, and then

Re: [android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Mark Murphy
That's not *quite* what I'm after... I want the service to continue running (whatever happens to the calling activity) and then later (i.e. 2 hours) when the user calls the activity again (could be recreated or restarted) the service can be bound to, information collected from it, and then

[android-developers] Re: Custom Component ImageView Override Help

2009-12-11 Thread superjet
Bump? Nothing at all? Certainly someone has done this! Please share, or offer me a place to get more guidance! I would prefer not to override all of view and make my own buttons. sj On Dec 8, 9:52 am, superjet superje...@gmail.com wrote: Hi, I've made a little testcomponentthat overrides

[android-developers] Re: Moving from Cupcakle to Eclair: ContentObserver is broken

2009-12-11 Thread Mo
Hi Dimitry, Can you shed some light on this? BR On Dec 10, 9:00 pm, Mo ladn...@gmail.com wrote: Hi, I was trying to register for any changes to the Contact.People DB as follows:        registerContentObserver(Contacts.People.CONTENT_URI, true, co); And in my ContentObserver class I had the

[android-developers] Re: Moving from Cupcakle to Eclair: ContentObserver is broken

2009-12-11 Thread Mo
Hi Dimitry, Can you shed some light on this? BR On Dec 10, 9:00 pm, Mo ladn...@gmail.com wrote: Hi, I was trying to register for any changes to the Contact.People DB as follows:        registerContentObserver(Contacts.People.CONTENT_URI, true, co); And in my ContentObserver class I had the

[android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Neilz
Presumably. Of course, I really wish you wouldn't write an app like that: http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-a... All you are going to do is get task killers attacking your app because you drain the battery. Well in this instance I will be telling the user

[android-developers] Re: Acer Liquid on Ubuntu

2009-12-11 Thread Andrei
look at the bottom of http://developer.android.com/guide/developing/device.html On Dec 11, 11:12 am, Mikael mikael.rous...@gmail.com wrote: Hi, I'm having problems getting adb recognize my acer liquid. I tried modifying ~/.android/adb_usb.ini by adding the line 0x0502 and restarted the adb

Re: [android-developers] Re: Controlling my service from main activity

2009-12-11 Thread Mark Murphy
Well in this instance I will be telling the user not to do so, and the nature of the service will make it quite clear that this would be the case, they would know not to do it. Okee-dokee. Just remember: users rarely RTFM. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App

[android-developers] } catch (OutOfMemoryError E) {

2009-12-11 Thread Matt Kanninen
Can I ask what Android does with un caught OutOfMemoryErrors that it wouldn't do if I caught them? It's really tempting for me to do this: try { setContentView(R.layout.result); } catch (OutOfMemoryError E) { outOfMemoryCount++; e.printStackTrace();

Re: [android-developers] where is my trialing #?

2009-12-11 Thread Mark Murphy
I'm using Android 1.5_r2. In the following code I was trying to auto dial: Intent intent = new Intent( Intent.ACTION_CALL, Uri.parse(tel:+ **76*1234567890*#)); activity.startActivity( intent ); the dial screen come up but the number it actually dialed is

[android-developers] Re: US export law

2009-12-11 Thread Matt Kanninen
Not as described. It is possible to break US export laws from code, but its hard to do without seeing a big warning first. IIRC you have to code your own cryptography and make it too strong. It's silly, and I hope the law I'm thinking of isn't actually enforced anymore. On Dec 11, 10:16 am,

[android-developers] Re: AnimationDrawable and Out of Memory Errors

2009-12-11 Thread Matt Kanninen
Statics are just the first thing to check. On Dec 11, 5:32 am, Mark Hansen stonedon...@gmail.com wrote: So I did get the crashes to stop, and I have a idea of why it works... anyways.. I updated the onWindowFocusChange set the backGroundDrawable to null when the app loses focus.  I also do

[android-developers] DatePicker - resizes as you pick different dates?

2009-12-11 Thread Mark Wyszomierski
Hi, I'm using the DatePicker class, sample here: http://developer.android.com/guide/tutorials/views/hello-datepicker.html when you start selecting different dates from the picker, the dialog will resize itself as the label up top [with the selected date] updates itself - this is really

[android-developers] Re: notifyDataSetInvalidated does *not* reset scroll position

2009-12-11 Thread WoodManEXP
I have run into the same thing in 1.6 in that sometimes notifyDataSetInvalidated sends the list back to the top and sometimes it does not. Here is a block of code that seems to work (at least it has not not worked yet in testing). lViewAdapter.notifyDataSetInvalidated(); // New data, this does

[android-developers] Re: Large data file: how to deal with it?

2009-12-11 Thread Andriy Tsykholyas
John and Mark, thanks for your answers :) On Dec 10, 7:50 pm, Mark Murphy mmur...@commonsware.com wrote: My idea is to put this data as a file in the .apk. Then, on initial application launch to read this data and populate Android SQLite database with it. Then just work with this database.

[android-developers] Re: where is my trialing #?

2009-12-11 Thread sherry
Thanks. It works! Sherry On Dec 11, 11:20 am, Mark Murphy mmur...@commonsware.com wrote: I'm using Android 1.5_r2. In the following code I was trying to auto dial:                 Intent intent = new Intent( Intent.ACTION_CALL, Uri.parse(tel:+ **76*1234567890*#));                

[android-developers] Re: GPS beacon vs. locked

2009-12-11 Thread jeffro
You might be better off checking the accuracy of your GPS location instead. Even though GPS is locked, your GPS accuracy may be too poor for what you need for your application. /* (non-Javadoc) * @see android.location.LocationListener#onLocationChanged (android.location.Location)

  1   2   >