[android-developers] Re: how to initialize MediaRecorder in the background?

2012-08-13 Thread Pent
> I have the same problem now... Ditto, except a year ago. We know you have the answer. Spill the beans Robert :-) Pent -- 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

[android-developers] Create 2 groups in expandable listview

2012-08-13 Thread Krishna Veni
Hi I have tried to develop expandable listview in android application.Now I have one doubts.How is creating 2 groups ion below my code for separate child details? For Eg: Group name: OrderInfo,CustomerInfo. Childname(OrderInfo):payment_method. Childname(CustomerInfo):name,email. How to do t

[android-developers] Re: how to initialize MediaRecorder in the background?

2012-08-13 Thread jsmith
Dear Robert, have you found solution for this issue? I have the same problem now... четверг, 6 августа 2009 г., 17:22:24 UTC+3 пользователь Robert написал: > > > I tried various things to overcome the limitation of setPreviewDisplay > (): > > - preserved the surface (sf), so mSurfaceHolder.getSu

Re: [android-developers] Arrow keys on custom keyboard

2012-08-13 Thread Dianne Hackborn
That sample code is interpreting these as Unicode characters which it applies as edit operations on the text. You will need to modify the code to do the appropriate calls to move the cursor. On Mon, Aug 13, 2012 at 5:59 AM, yakobom wrote: > Hi, > I've been trying to add arrow keys to the SoftKe

Re: [android-developers] How to remove black topbar on activity animation?

2012-08-13 Thread Dianne Hackborn
I assume you mean the part of your window that is normally behind the status bar? If so, there is no simple way to do this. Aside from just making your app fullscreen so there is no status bar (and thus your content draws all the way to the top), you'd need to do an approach like playing games wh

Re: [android-developers] Sharing data between Android framework and app

2012-08-13 Thread galapogos
Thanks Kristopher, I fully understand the kludgeyness of this implementation, and you're absolutely right, this is a quick dirty hack. The actual implementation will not be done in this way, but rather in a more secure location. However, that portion is currently not being done by myself, so in

Re: [android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 10:55 PM, Jason Hsu wrote: > Would a script in HTML5 be able to provide the automatic Google Map search > capability that I'm seeking? I have no idea. HTML5 has nothing to do with Android or this list. I'm not really sure how you expect this functionality to be "automati

[android-developers] Friend invites you to join Pickzup

2012-08-13 Thread Friend
  Follow Us Dear Friend, Here is Pickzup, a show-stopper and a rewards-based website that gives us unique benefits including free mobile recharge,  fabulous offers and gifts as we surf. You know, Pickzup impressed me and I signed up immediately. I am already enjoying the benefits

[android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread Jason Hsu
Would a script in HTML5 be able to provide the automatic Google Map search capability that I'm seeking? Or is having an in-app database the only way? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

Re: [android-developers] Tabbed Menu with Gallery-like Menu in one of the tab

2012-08-13 Thread Jeff Huang
the problem should be coming from. public void setViewImage(ImageView v, String value) { super.setViewImage(v, value); try { v.setImageBitmap(BitmapFactory.decodeStream(new URL(value).openConnection().getInputStream())); } catch (Exception e) {

Re: [android-developers] Sharing data between Android framework and app

2012-08-13 Thread Kristopher Micinski
Well, this isn't really the appropriate place to answer system hacking related questions, but basically, you're not running in the context of that package, you're running somewhere else, so you're not storing in that shared preferences. But beyond that, this is just a horrible design, you're using

[android-developers] Re: Sharing data between Android framework and app

2012-08-13 Thread galapogos
Thanks. However, the device I'm working on doesn't have an internet connection nor any accounts set up, so whenever I try to access the accounts, even just accounts[0], I get a ArrayIndexOutOfBoundsException. On Monday, August 13, 2012 4:11:48 PM UTC+8, jb wrote: > > You can store key/value pair

Re: [android-developers] Sharing data between Android framework and app

2012-08-13 Thread galapogos
Thanks, I didn't know of the android-platform group, I've posted my question there. Meanwhile, do you have any idea why I would encounter the above-mentioned problems with SharedPreferences? I've also tried simply creating a file in /mnt/sdcard in the framework with the intention of the app re

Re: [android-developers] Possible to do it on Android platform

2012-08-13 Thread Budd
Yes, it's truth. I think one of the problem of android system is hard to support all the device and all different version of android os. On Monday, August 13, 2012 10:32:31 AM UTC-4, Kristopher Micinski wrote: > > Your point #3 should be solved by better programming :-), > > kris > > On Sat,

[android-developers] Re: Possible to do it on Android platform

2012-08-13 Thread Budd
Thanks. I am still at very beginning level. Do you have some tutorial site or some material that i can take a look for reference? It sounds like i need to run some services and do i need to root the device to do it? I would be very appreciate it if you could share some of your experience. Th

[android-developers] Re: i lost my mobile. IS ANY WAT TO FIND THE LOCATION OF SAMSUNG GALAXY Y MOBILE WITH THE IMEI NUMBER.MY MOBILE IMEI NUMBER IS 352384051456475

2012-08-13 Thread John Coryat
I've never done this but in theory, it should work. Go to the Play store using a desktop and Chrome browser. Sign in with the same Google account as your phone uses. Find a phone location app and select it to download to your missing device. Do whatever the app requires to start tracking your p

[android-developers] Re: i lost my mobile. IS ANY WAT TO FIND THE LOCATION OF SAMSUNG GALAXY Y MOBILE WITH THE IMEI NUMBER.MY MOBILE IMEI NUMBER IS 352384051456475

2012-08-13 Thread lbendlin
instead of asking Vodafone to block the SIM you should have asked them to track the phone when it is booking in and out of cells. Now with the SIM blocked you'll have to hope for the finder to put in their own SIM (which may not be Vodafone). Not a smart move either. On Monday, August 13, 2012

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Nikolay Elenkov
On Tue, Aug 14, 2012 at 7:18 AM, Kostya Vasilyev wrote: > > > The media scanner has a utility class in the framework: > > http://developer.android.com/reference/android/media/MediaScannerConnection.html > > The easiest thing you can do is to call static > MediaScannerConnection.scanFile. > BTW,

[android-developers] Re: How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread mattcoz
This sounds a lot like a problem I used to have. Every time I would scroll the list it would rebuild the entire thing about 4 times. The problem isn't limited to bitmaps, it's any modification of the view after it has been added to the list. What I did was make sure I was caching my bitmaps

Re: [android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 5:26 PM, Jason Hsu wrote: > If there isn't a function that pulls up Google maps and automatically does > a search, then how do apps like Meijer > Find-itand > Liquor > Run > Mobile

Re: [android-developers] source download time

2012-08-13 Thread Jim Graham
On Mon, Aug 13, 2012 at 03:45:51PM -0600, Larry Meadors wrote: > Depends on your net connection, not your CPU. :) It CAN depend on your CPU and your link. If the CPU isn't fast enough (as was the case with my old laptop) to handle speeds (again, with my connection) around 4.5 MB/s (end-to-end thr

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Kostya Vasilyev
2012/8/14 Nathan > > > On Monday, August 13, 2012 3:18:14 PM UTC-7, Kostya Vasilyev wrote: > >> >> The media scanner has a utility class in the framework: >> >> http://developer.android.com/**reference/android/media/** >> MediaScannerConnection.html

Re: [android-developers] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet

2012-08-13 Thread b0b
I've posted a topic today with another noname tablet showing exactly the same issue. That's annoying because some user are able to buy apps, but LVL will always fails binding the service. Somewhat the Google play should not allow that and deny selling paid apps if binding to the ILicensingSer

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Nathan
On Monday, August 13, 2012 3:18:14 PM UTC-7, Kostya Vasilyev wrote: > > The media scanner has a utility class in the framework: > > > http://developer.android.com/reference/android/media/MediaScannerConnection.html > > The easiest thing you can do is to call static > MediaScannerConnection.scan

[android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread Jason Hsu
Thanks for the quick responses. If there isn't a function that pulls up Google maps and automatically does a search, then how do apps like Meijer Find-itand Liquor Run Mobile

Re: [android-developers] source download time

2012-08-13 Thread Kostya Vasilyev
3-5-10 minutes and I'm pretty far from the land of eternal sunshine (California) You don't need to sync the whole thing (unless you're interested in things like board-specific drivers and such). Doing "repo sync frameworks/base" and maybe "repo sync packages/apps/Settings" or some other app i

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Kostya Vasilyev
2012/8/14 Nathan > > > On Monday, August 13, 2012 2:02:48 PM UTC-7, Kostya Vasilyev wrote: >> >> You are supposed to tell the media scanner about the new file yourself, >> or else it might only be scanned after the next reboot. >> > How? Any example code to do that? I didn't know I would be inter

Re: [android-developers] MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 5:06 PM, Jason Hsu wrote: > Is there a way I can create an Android app that not only pulls up a map > but ALSO does an AUTOMATIC search for the grocery stores, gas stations, or > restaurants in my area? Where can I find a good tutorial that actually > works? There is no

Re: [android-developers] MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread Mark Murphy
On Mon, Aug 13, 2012 at 6:06 PM, Jason Hsu wrote: > Is there a way I can create an Android app that not only pulls up a map but > ALSO does an AUTOMATIC search for the grocery stores, gas stations, or > restaurants in my area? No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | h

Re: [android-developers] Re: Weird behavior on different device

2012-08-13 Thread Kostya Vasilyev
One for every of 13 or 21, or 47 virtual home screen pages? In the same corner? To OP: is your service perhaps getting killed before it has a chance to update every widget? Since it's your own device, you could add some logging to your service. Oh, and have you tried creating a new RemoteViews o

[android-developers] MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread Jason Hsu
I've gone through the basic MapView tutorials that display a map and even overlays. Is there a way I can create an Android app that not only pulls up a map but ALSO does an AUTOMATIC search for the grocery stores, gas stations, or restaurants in my area? Where can I find a good tutorial that a

Re: [android-developers] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet

2012-08-13 Thread Kostya Vasilyev
2012/8/14 Acubeware > Thanks for your response. The user has informed us that their version of > the Google Play app is 3.7.15. So is mine on a Galaxy Nexus Still -- if that device uses a pirated version of Market (even the latest version) it could break in various ways. And it does look l

Re: [android-developers] source download time

2012-08-13 Thread Larry Meadors
Depends on your net connection, not your CPU. :) Larry On Mon, Aug 13, 2012 at 3:17 PM, bob wrote: > Anyone know how long it typically takes to get the Android source code (say > on a new Macbook Pro)? > > > I did a "repo sync", and it's sure taking it's time. > > > -- > You received this messag

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Nathan
On Monday, August 13, 2012 2:03:07 PM UTC-7, Mark Murphy (a Commons Guy) wrote: > Also, it may be tied somewhat to your MTP client -- I don't know if > all of them will auto-refresh when the MTP server information changes. > Windows Vista is the client - I don't know what it does. Nathan

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Nathan
On Monday, August 13, 2012 2:02:48 PM UTC-7, Kostya Vasilyev wrote: > > You are supposed to tell the media scanner about the new file yourself, or > else it might only be scanned after the next reboot. > How? Any example code to do that? I didn't know I would be interested in the media apis un

[android-developers] Re: Weird behavior on different device

2012-08-13 Thread bob
Why would anyone want two of the same battery level widget? On Monday, August 13, 2012 11:20:33 AM UTC-5, f.Audire wrote: > > Hello, > I'm developing an appwidget that shows the current batterylevel, but I'm > getting some weird behavior on one of my devices. > I have an alarmanager running wh

[android-developers] source download time

2012-08-13 Thread bob
Anyone know how long it typically takes to get the Android source code (say on a new Macbook Pro)? I did a "repo sync", and it's sure taking it's time. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

Re: [android-developers] LVL service binding fails on ALLVIEW PC ALLDRO SPEED tablet

2012-08-13 Thread Acubeware
Thanks for your response. The user has informed us that their version of the Google Play app is 3.7.15. On Thursday, July 26, 2012 10:24:00 PM UTC+12, Kostya Vasilyev wrote: > > Ask the user to check the Google Play app version. > > I'd guess the device uses the Play app obtained in unofficial w

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Mark Murphy
>> If I save a file to the external storage on ICS, how soon should I be able >> to see it from my computer? On a reboot, or once you run the MediaScannerConnection: http://commonsware.com/blog/2011/08/31/mtp-external-storage.html Also, it may be tied somewhat to your MTP client -- I don't know

Re: [android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Kostya Vasilyev
You are supposed to tell the media scanner about the new file yourself, or else it might only be scanned after the next reboot. 14.08.2012 0:56 пользователь "Nathan" написал: > Has anyone else seen this behavior? It is 100 percent reproducible. I > write a file using a FileOutputStream. > I use a

[android-developers] Re: Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Nathan
Has anyone else seen this behavior? It is 100 percent reproducible. I write a file using a FileOutputStream. I use a file explorer on the device and I see the file. It has 9 files in the folder. I browse the folder from My Computer where it says "Galaxy Nexus". The same folder has 8 files. The

Re: [android-developers] is constructor constructing?

2012-08-13 Thread bob
Good idea. This is what I found: public ArrayAdapter(Context context, int textViewResourceId) { init(context, textViewResourceId, 0, new ArrayList()); } On Monday, August 13, 2012 3:08:23 PM UTC-5, TreKing wrote: > > On Mon, Aug 13, 2012 at 1:57 PM, bob > > wrote: > >> public A

Re: [android-developers] is constructor constructing?

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 1:57 PM, bob wrote: > public ArrayAdapter (Context context, int textViewResourceId) > > does it automatically create an array that it will use for me? > This is one of those questions that you can answer yourself quite easily, as you have access to the complete source cod

Re: [android-developers] Weird behavior on different device

2012-08-13 Thread f.Audire
Sorry, I know but I got no clue what could be relevant in that case since it basically works. When the intent of my alarmanager is send I start my updateservice from the onReceive funktion of my widget (if my preference activity is not running). Then from onStartCommand() of the service I simpl

Re: [android-developers] i lost my mobile. IS ANY WAT TO FIND THE LOCATION OF SAMSUNG GALAXY Y MOBILE WITH THE IMEI NUMBER.MY MOBILE IMEI NUMBER IS 352384051456475

2012-08-13 Thread Kristopher Micinski
dumping an IMEI number on a public list is probably not an entirely good idea.. kris On Mon, Aug 13, 2012 at 8:48 AM, Siva Kumar wrote: > > Dear All, > > I LOST MY MOBILE TODAY @ 9.30 WHILE TRAVELLING IN BUS.I BLOCKED MY SIM > THROUGH VODAFONE.I ALSO RISED A POLICE COMPLAINT.iS THERE IS ANY WAT

Re: [android-developers] Re: Examples for Android with Eclipse

2012-08-13 Thread Kristopher Micinski
You'll have to provide some help, such as, what the errors are, otherwise we have no idea where the error is coming from. It's probably coming from your setup. kris On Mon, Aug 13, 2012 at 3:08 PM, augusto wrote: > Thank you for your answer Justin. Please excuse my poor english > knowledments.

Re: [android-developers] Re: Examples for Android with Eclipse

2012-08-13 Thread Justin Anderson
Well, what errors are you running into? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 13, 2012 at 1:08 PM, augusto wrote: > Thank you for your answer Justin. Please excuse my poor english > knowledments. > > I want to use the examples to lea

[android-developers] Re: Examples for Android with Eclipse

2012-08-13 Thread augusto
Thank you for your answer Justin. Please excuse my poor english knowledments. I want to use the examples to learn about Android programming. I have installed the Samples for SDK of Android 4.1, 2.3.3 and 2.1. As example, I have imported the"com.example.android.apis.Apidemos" of Android 4.1, bu

Re: [android-developers] is constructor constructing?

2012-08-13 Thread Justin Anderson
> > public ArrayAdapter (Context context, int textViewResourceId) > > does it automatically create an array that it will use for me? I'm > surprised > the docs don't make this clear. > The very first line in the documentation says this: *"A concrete BaseAdapter that is backed by an array of arbit

[android-developers] is constructor constructing?

2012-08-13 Thread bob
If I use this constructor: public ArrayAdapter (Context context, int textViewResourceId) does it automatically create an array that it will use for me? I'm surprised the docs don't make this clear. -- You received this message because you are subscribed to the Google Groups "Android Developer

Re: [android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 9:50 PM, powerdroid wrote: > So, in a sense we move the sprite in the Z axis and that determines the size > it will be on the screen, correct? You can alter x/y coordinates also which may make it easier too as you don't have to worry about depth buffer. Making it (x, y, 0)

Re: [android-developers] Re: How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread Justin Anderson
Your map should work... Is it possible to post some of the relevant code so that we can see how you are doing this? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 13, 2012 at 8:37 AM, user123 wrote: > You don't understand what I mean. The pro

Re: [android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread powerdroid
So, in a sense we move the sprite in the Z axis and that determines the size it will be on the screen, correct? On Monday, August 13, 2012 2:11:25 PM UTC-4, Harri Smått wrote: > > > On Aug 13, 2012, at 9:03 PM, powerdroid > > > wrote: > > > I wonder if it is possible (and if so, how it is done

Re: [android-developers] Weird behavior on different device

2012-08-13 Thread Justin Anderson
If you posted the relevant code, then someone might be able to help... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 13, 2012 at 10:20 AM, f.Audire wrote: > Hello, > I'm developing an appwidget that shows the current batterylevel, but I'm >

Re: [android-developers] Re: How to dynamically change row layout of list view on click event

2012-08-13 Thread Justin Anderson
> > What he means is that you should add a boolean in your data model for list > items and use that instead of setting a tag in the view. What you are doing > is storing your data in your view which is wrong from an MVC point of view. > Bingo! Thanks, Justin Anderson MagouyaWare Developer http://s

Re: [android-developers] ArrayAdapter confusion

2012-08-13 Thread Justin Anderson
If I have ListView that doesn't use a TextView then I usually just subclass BaseAdapter... It is a little more work but it gives me complete control. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 13, 2012 at 12:26 PM, Harri Smått wrote: > >

[android-developers] Invisible Files on ICS - media scanner thing?

2012-08-13 Thread Nathan
If I save a file to the external storage on ICS, how soon should I be able to see it from my computer? Two or three weeks is what I am seeing. And what if include a .nomedia file in a folder above this one? Does that mean I will never ever see it? Perhaps I missed it, but I am not seeing good d

Re: [android-developers] ArrayAdapter confusion

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 9:12 PM, bob wrote: > So, I guess you don't have to use a text view? Then why do all the > constructors take a textViewResourceId? What should I pass in for that if > I'm not really going to use a text view? If you're lucky it's only getView(…) that uses textViewResourceI

[android-developers] Re: JPG corrupted after save and load from external storage

2012-08-13 Thread bob
I'd look at fileUri.toString() Looks suspicious. It might be putting file:// in front of the path or something like that. On Monday, August 13, 2012 11:31:17 AM UTC-5, user123 wrote: > > Hi, > > I have a jpg with a white background, and after saving and loading it to > external storage, it's

[android-developers] ArrayAdapter confusion

2012-08-13 Thread bob
I'm looking at the docs for ArrayAdapter. It says this: To use something other than TextViews for the array display, for instance, ImageViews, or to have some of data besides toString() results fill the views, override getView(int, View, ViewGroup) to return the type of view you want. So, I

Re: [android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 9:03 PM, powerdroid wrote: > I wonder if it is possible (and if so, how it is done) to scale a 2D > Texture/Sprite during rendering. Once you render an image to screen you have two things for it; 1. Vertex positions in 2D space. 2. Texture coordinates for vertices. Alter

[android-developers] Resizing a 2D OpenGL ES Texture/Sprite during render

2012-08-13 Thread powerdroid
I wonder if it is possible (and if so, how it is done) to scale a 2D Texture/Sprite during rendering. For example, I have a 128x128 image that I will load and use for the texture, but I would like to draw that image sometimes as 100%, sometimes as 85% of its size, and sometimes as 70% of its s

RE: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 11 Topics

2012-08-13 Thread Tully Kingsbury
-- 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+unsubscr.

[android-developers] Re: "unable to open database file" after OS upgrade

2012-08-13 Thread Support Remote
You should uninstall the app, then power off or clean app cache, then reinstall the app. Is it in this order? Walter On Sun, Aug 12, 2012 at 10:05 PM, lishali wrote: > Only one user of our app also reported same issue, and she had clear the app > data cache, uninstall our app and then re-install

Re: [android-developers] JPG corrupted after save and load from external storage

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 8:05 PM, user123 wrote: > Maybe it's important, this is the code I instantiate the downloaded > bitmap/drawable (which is later saved to the sd card) with: > > InputStream is = fetch(urlString); > TypedValue typedValue = new TypedValue();

Re: [android-developers] Re: How to dynamically change row layout of list view on click event

2012-08-13 Thread Nadeem Hasan
On Monday, August 13, 2012 4:05:55 AM UTC-4, Jovish P wrote: > > Justin Anderson , how to set clicked status on the adapter for the > clicked item ? Can you explain a little bit more if you don't mind. It will > be a great help for us. > > Thanks , > Jovish > What he means is that you should a

Re: [android-developers] Android DNS failover not robust

2012-08-13 Thread Robert Greenwalt
No. I asked some questions and didn't receive answers. In your case, did your internal DNS server say that there was no server by that name (answer authoritatively)? Can you capture a tcpdump of the session? On Mon, Aug 13, 2012 at 3:57 AM, Tsz Ming Wong wrote: > Hi Robert, > > Robert Greenw

Re: [android-developers] JPG corrupted after save and load from external storage

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 8:05 PM, user123 wrote: > What do you mean exactly with original? I'm downloading it from the web, the > image in the web has jpg extension. Having .jpg extension does not guarantee it's a JPG image (image format is decoded from image header). But as said this is a long sh

Re: [android-developers] JPG corrupted after save and load from external storage

2012-08-13 Thread user123
Oh, and the fetch method looks like this: private InputStream fetch(String urlString) throws MalformedURLException, IOException { DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet request = new HttpGet(urlString); HttpResponse response = httpClient.e

Re: [android-developers] JPG corrupted after save and load from external storage

2012-08-13 Thread user123
What do you mean exactly with original? I'm downloading it from the web, the image in the web has jpg extension. Maybe it's important, this is the code I instantiate the downloaded bitmap/drawable (which is later saved to the sd card) with: InputStream is = fetch(urlString);

[android-developers] Re: Whats the best practices when using Camera

2012-08-13 Thread AnDev Quer
You may want to surround the block with an if statement. if(camera != null) { camera.stopPreview(); camera.release(); camera = null; } On Tuesday, January 26, 2010 5:22:38 AM UTC-6, steve wrote: > Greetings, > > I have an application that uses the camera quite

Re: [android-developers] JPG corrupted after save and load from external storage

2012-08-13 Thread Harri Smått
On Aug 13, 2012, at 7:31 PM, user123 wrote: > What am I doing wrong? Thanks. This is a long shot but are you sure original image is JPG and not a PNG with alpha channel? Alpha could cause some unexpected behaviour once storing image as JPG. -- H -- You received this message because you are

[android-developers] JPG corrupted after save and load from external storage

2012-08-13 Thread user123
Hi, I have a jpg with a white background, and after saving and loading it to external storage, it's corrupted. Looks like: The code: Save: try { outStream = new FileOutputStream(file

[android-developers] Weird behavior on different device

2012-08-13 Thread f.Audire
Hello, I'm developing an appwidget that shows the current batterylevel, but I'm getting some weird behavior on one of my devices. I have an alarmanager running which every now and then checks if the battery level changed. If the level changed I start a service to update all widgets. It works fin

Re: [android-developers] My developer account has been canceled., Anybody knows the reason???

2012-08-13 Thread julious raj
Hi the_edge123, I have not published even a single app., My application is under development only., Regards, Julious raj. On Friday, August 10, 2012 5:05:40 AM UTC-7, the_edge123 wrote: > > On 10/08/2012 11:58, julious raj wrote: > > Hi Developers, > > I am an Android application develope

Re: [android-developers] prevent from reinitializing value

2012-08-13 Thread tarun sablok
Save the values you want to persist in onPause() or onStop() using SharedPreferences or you can also use onSaveInstanceState() to save your values and extract it when the activity is started the next time. On Mon, Aug 13, 2012 at 9:12 PM, TreKing wrote: > On Mon, Aug 13, 2012 at 12:28 AM,

Re: [android-developers] prevent from reinitializing value

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 12:28 AM, Sadhna Upadhyay wrote: > can someone tel me how to prevent from reinitializing value when activity > is re called i mean You need to explain more clearly exactly what you're trying to do.

Re: [android-developers] Some tips on graphics for a coder coming from ActionScript

2012-08-13 Thread Romain Guy
The equivalent of the Tween API would be android.animation. On Aug 12, 2012 4:53 PM, "antonio brandao" wrote: > Hello, I come to ask only for a few tips or merely a bit of guidance on my > development for Android. > > I'm pretty skilled in ActionScript but completely new to Java. > > In this thre

[android-developers] Re: How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread user123
You don't understand what I mean. The problem is that in getView() I make a call to fetch the bitmap from remote. And if getView() is calles multiple times for one position, this call will be made multiple times, and the resulting bitmap will be instantiated multiple times. If I recycle the vie

Re: [android-developers] Possible to do it on Android platform

2012-08-13 Thread Kristopher Micinski
Your point #3 should be solved by better programming :-), kris On Sat, Aug 11, 2012 at 8:35 AM, Budd wrote: > Hi, I am totally new on Android development. I am just reading a book about > it. > > I have a project and i am not sure if i can do all of them on Android > platform. > > 1) Automatic

Re: [android-developers] Sharing data between Android framework and app

2012-08-13 Thread Kristopher Micinski
This group is solely for SDK related applications. There is a list of groups on the website indicating which might be good for this, android-platform, and android-porting, perhaps? I'm a little weary of sticking this in shared preferences for this, but I guess there's nothing inherently horrible

[android-developers] Re: Some tips on graphics for a coder coming from ActionScript

2012-08-13 Thread bob
This class contains most of the drawing routines: http://developer.android.com/reference/android/graphics/Canvas.html On Saturday, August 11, 2012 6:48:33 PM UTC-5, antonio brandao wrote: > > Hello, I come to ask only for a few tips or merely a bit of guidance on my > development for Android. >

[android-developers] Re: Possible to do it on Android platform

2012-08-13 Thread bob
Yes, it is possible. I've done it actually. On Saturday, August 11, 2012 7:35:42 AM UTC-5, Budd wrote: > > Hi, I am totally new on Android development. I am just reading a book > about it. > > I have a project and i am not sure if i can do all of them on Android > platform. > > 1) Automatic

[android-developers] Re: How to remove black topbar on activity animation?

2012-08-13 Thread bob
To make fullscreen: getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); On Saturday, August 11, 2012 4:20:52 PM UTC-5, user123 wrote: > > I defined a scale animation from 0 to 1 for entering activity: > > overridePendingTransiti

[android-developers] Re: prevent from reinitializing value

2012-08-13 Thread bob
Maybe make it static? On Monday, August 13, 2012 12:28:43 AM UTC-5, Sadhna Upadhyay wrote: > > Hi everybody, >can someone tel me how to prevent from reinitializing value when > activity is re called i mean > > > > int i=0; > and it became > i=1; > and when i called this activity agai

[android-developers] Re: java.lang.IllegalStateException: Fragment is not currently in the FragmentManager

2012-08-13 Thread Mor G.
There's a solution in stackoverflow: http://stackoverflow.com/questions/11296411/fragmentstatepageradapter-illegalstateexception-myfragment-is-not-currently but it doesn't seem to be helping me, since I'm not instantiating my fragments as he did, but maybe it'll help you. I'm still looking for a

[android-developers] Re: How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread bob
Why not use the convertView parameter to getView? On Monday, August 13, 2012 8:45:15 AM UTC-5, user123 wrote: > > Hi, > > I have a big problem with bitmaps and the listview's behaviour of calling > getView() on each position multiple times. > > My list contains only bitmaps and fetches them as

[android-developers] Re: Bitmap size exceeds

2012-08-13 Thread bob
"If your app is done in API 11 or higher, in the < application /> in the Android Manifest.xml, you can use largeHeap=”true” which will allow the application to use more heap if it is available." On Sunday, August 12, 2012 6:48:14 PM UTC-5, Numair Qadir wrote: > > So, i was working on a project t

[android-developers] Re: How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread user123
Another possibility which comes to my mind, but feels like a terrible solution, is to pre-fetch the bitmaps, so, before the list scrolls, I have already next x bitmaps in the cache. This would be implemented in combination with a scrolllistener, where scrolling causes to fetch the next x items

Re: [android-developers] Camera.ACTION_NEW_PICTURE

2012-08-13 Thread bt
I checked what you wrote (the old intent) so I can use this filter now. It works well on emulator but it seems that my HTC doesn't send this broadcast. This is the way of usage on ICS: IntentFilter filter = new IntentFilter(); filter.addAction(Camera.ACTION_NEW_PICTURE); filter.addDataT

[android-developers] How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread user123
Hi, I have a big problem with bitmaps and the listview's behaviour of calling getView() on each position multiple times. My list contains only bitmaps and fetches them asynchronously from a remote location. Now, when the listview is displayed, since getView() is called about 4 times for each p

Re: [android-developers] Re: How could i check the android device is rooted or not?

2012-08-13 Thread Nadeem Hasan
You absolutely wrong here. Please try to understand what OP wants. All root are not equal. On Monday, August 13, 2012 5:19:00 AM UTC-4, asheesh arya wrote: > /** Method to check whether external media available and writable > and to find the > root of the external file system. *

[android-developers] Arrow keys on custom keyboard

2012-08-13 Thread yakobom
Hi, I've been trying to add arrow keys to the SoftKeyboard example from the SDK, without success: Added this to the keyboard xml (qwerty.xml): I get the extra keys, but when I click them I get squares. Can anyone tell why? I googled for it but could not find

[android-developers] i lost my mobile. IS ANY WAT TO FIND THE LOCATION OF SAMSUNG GALAXY Y MOBILE WITH THE IMEI NUMBER.MY MOBILE IMEI NUMBER IS 352384051456475

2012-08-13 Thread Siva Kumar
Dear All, I LOST MY MOBILE TODAY @ 9.30 WHILE TRAVELLING IN BUS.I BLOCKED MY SIM THROUGH VODAFONE.I ALSO RISED A POLICE COMPLAINT.iS THERE IS ANY WAT TO FIND THE LOCATION OF SAMSUNG GALAXY Y MOBILE WITH THE IMEI NUMBER.MY MOBILE IMEI NUMBER IS 352384051456475 -- *Thanks & Regards, Sivakumar.J*

Re: [android-developers] Camera.ACTION_NEW_PICTURE

2012-08-13 Thread Mark Murphy
On Mon, Aug 13, 2012 at 7:58 AM, Tamás Barta wrote: >> No. As I mentioned, the broadcast seems to be sent with only an action >> string, nothing else. > > With an uri: (com.android.camera.Util.java) > > public static void broadcastNewPicture(Context context, Uri uri) { > context.sendBr

[android-developers] Re: Android 2.2 and background sensor

2012-08-13 Thread Pavel Brans
I mean don't collects in backgroung when screen is off. понедельник, 13 августа 2012 г., 15:00:25 UTC+3 пользователь Pavel Brans написал: > > I have android 2.2.2 on my phone(LG-P970) but sensors don't collects data > with partial wake lock. Why? How to deal with it? -- You received this mess

[android-developers] problem when i set margins dynamically for imageview

2012-08-13 Thread Vijay Krishnan
Hi all, From the above xml code,i can position the two imageview on same line at the bottom of the layout.when i set the margins dynamically through program,there exists only one imageview at the top of the layout.Here is my program discoverDevice=(ImageView)findViewById(R.id.di

[android-developers] Android 2.2 and background sensor

2012-08-13 Thread Pavel Brans
I have android 2.2.2 on my phone(LG-P970) but sensors don't collects data with partial wake lock. Why? How to deal with it? -- 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@googlegroup

Re: [android-developers] Camera.ACTION_NEW_PICTURE

2012-08-13 Thread Tamás Barta
> No. As I mentioned, the broadcast seems to be sent with only an action > string, nothing else. With an uri: (com.android.camera.Util.java) public static void broadcastNewPicture(Context context, Uri uri) { context.sendBroadcast(new Intent(android.hardware.Camera.ACTION_NEW_PICTURE,

Re: [android-developers] Camera.ACTION_NEW_PICTURE

2012-08-13 Thread Mark Murphy
On Mon, Aug 13, 2012 at 7:35 AM, Tamás Barta wrote: > But it should work on ICS emulator, shouldn't it? I would have expected it to work. > Am I right if I set data scheme to "content" in the intent filter? No. As I mentioned, the broadcast seems to be sent with only an action string, nothing e

  1   2   >