[android-developers] Re: How to make apk from .java, png files extracted from jar

2011-06-08 Thread Doug
On Jun 8, 10:33 pm, Rajender wrote: > How can i generate a build.xml ? It's created for you when you create a new android project using the latest tools. Keep reading the docs. Doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] How to know the SIM Operator information before LauncherProvider.java execute ( in Gingerbread)

2011-06-08 Thread Abhishek Kumar Gupta
How to know the SIM Operator information before the loadfavorities() method in LauncherProvider.java execute( /home/abhishek/gingerbread/ packages/apps/Launcher2/src/com/android/launcher2/LauncherProvider ) , so that I can use SIM Operator information. Currently, I am using *Thread.sleep(5000)*

Re: [android-developers] Delete a variable

2011-06-08 Thread Simon Platten
Java may not garbage collect until resources are low and it knows that an object is no longer in use. Make sure that you assign your object to null or ensure it goes out of scope then java wilĺ treat it as no longer referenced. Regards,Sy On 9 Jun 2011 04:11, "TreKing" wrote: On Wed, Jun 8, 20

[android-developers] Android Wiki

2011-06-08 Thread Raghav Sood
Hi all, I have waited for a while and have had no response from all of you. So I am trying again. Could you all help in making this wiki? Anthing android related is welcome on it. http://wiki.androidappcheck.com/ Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ h

[android-developers] Re: webservice php

2011-06-08 Thread tamer hatoum
Actually I am new in such applications , I donot know how to extract and bind the data to listview, and I don't know how to make on-click event depending on the item Id, but I can prepare the php page which returns the data... if there is any sample code would be appreciated... regards... On Jun 9

[android-developers] Re: How to make apk from .java, png files extracted from jar

2011-06-08 Thread Rajender
Hello, Doug, Thanks for your info. It will be helpful if i can get a example. How can i generate a build.xml ? Regards, Rajender On Jun 9, 4:26 am, Doug wrote: > On Jun 7, 4:32 am, Rajender wrote: > > > I want to do all these using batch file (command line).. > > Use ant. > > http:/

[android-developers] problem with ontouch of surfaceview

2011-06-08 Thread grace
Hi, I have my layout like this I have registered onTouch Listeners for all the views.The LinearLayout is made invisible at first(default). Now when i touch the surface view the LinearLayout should be made visible. but s

[android-developers] Mp3 player Forward functionality

2011-06-08 Thread Abhishek Akhani
Hi, I am trying to make an MP3 player in android. Can anyone please suggest me how to forward a media file on forward button click??? i mean is there any way to set progress of that running media file :( -- You received this message because you are subscribed to the Google Groups "Android De

Re: [android-developers] Delete a variable

2011-06-08 Thread TreKing
On Wed, Jun 8, 2011 at 9:05 PM, New Developer wrote: > Bitmap pictBM = BitmapFactory.decodeFile("/sdcard/DCIM/"+CURRENT_IMAGE); > Don't hard code the SD card path - that's not portable. > In c++ there is .free() or .destroy() call > What do you use in android ? > Start here: http://devel

[android-developers] Re: 3G-324M protocol

2011-06-08 Thread Tsahi Levent-Levi
sivakumar gmail.com> writes: > > anybody know how android is facing difficulties with 3G-324M > protocol.. > i need some articles that shows interfacing architecture of android > with 3G-324M protocol.. > and also working principle of 3G-324M architecture with android > mobiles.. > if u have

[android-developers] Replicating the results of the deprecated Sensor.TYPE_ORIENTATION

2011-06-08 Thread Sheado
Hi All, I've been using SensorManager with Sensor.TYPE_ORIENTATION for its pitch/roll values. I want to update the code to support multiple screen orientations (and while I'm at it get rid of some deprecated code). My current solution is below. The main problem with it, is that if I set the phone

[android-developers] Is there any way I can start activity running in different process using Instrumentation?

2011-06-08 Thread Amit Dixit
Hi, My application uses multiple activities which runs in different process. Is there any way I can test it using Instrumentation? Best Regards, Amit Dixit -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Delete a variable

2011-06-08 Thread New Developer
I have an ImageView that I keep changing the picture Bitmap pictBM = BitmapFactory.decodeFile("/sdcard/DCIM/"+CURRENT_IMAGE); image.setImageBitmap(pictBM); parent.addView(image); After 4 or 5 pictures I get a OutOfMemory crash In c++ there is .free() or .destroy() call What do you use in

Re: [android-developers] Re: HTML ImageGetter not working, showing a square with text "obj"

2011-06-08 Thread Kostya Vasilyev
With one TextView per line, a compound drawable on the left side should work very well. -- Kostya Vasilyev 09.06.2011 3:20 пользователь "Doug" написал: > What is the data type of "directions" and what are you doing with it > after you assign it? > > It looks like you're doing string concat with i

[android-developers] Re: Android LifeCycle and Singleton Instances

2011-06-08 Thread Chris
What you quoted is quintessential initialization on-demand holder. And its supposed to be more like _eager_ init, not lazy init. -- 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@googl

Re: [android-developers] Re: webservice php

2011-06-08 Thread Kristopher Micinski
On Wed, Jun 8, 2011 at 4:41 PM, tamer hatoum wrote: > while extracting using httprequest and binding to listview and make > items clickable to open the PDF file > regards... > Typically what you will do is download the source, parse it, stuff it in a listview, and make the handler open up

Re: [android-developers] Re: Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Kostya Vasilyev
For dynamically changing the theme, you can call setTheme in your activities' onCreate, before calling "super". -- Kostya Vasilyev 09.06.2011 3:06 пользователь "Danny D" написал: > I think that may be where we're getting mixed up. > > I've created a style tree that follows the SDK recommendations

[android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Chris
That's awful. My HTC Magic which came out in 2009 supports ~40 languages/varieties. -- 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, s

[android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Zsolt Vasvari
But even my Xoom only includes 3 languages so it's almost useless for testing translations - On Jun 9, 12:04 am, Dianne Hackborn wrote: > Nexus One has a smaller partition for the system image, so can't fit every > possible thing.  New translations were added to the platform after the > initial N

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-08 Thread Adam Ratana
Reporting back, as far as specifically capturing camera preview output to a bitmap and following the prior examples to draw, this is definitely possible. There's some interesting things going on that may be helpful for others: 1. Camera preview size varies, some phones (such as the Samsung Ga

Re: [android-developers] two questions from a newbie

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 8:30 PM, Knutsford Software wrote: > Sorry - what do you mean by stuff the form contents into the Bundle http://developer.android.com/guide/topics/fundamentals/activities.html#SavingActivityState > For part two I meant if you have been browsng and then it loses focus then

Re: [android-developers] two questions from a newbie

2011-06-08 Thread Knutsford Software
- Original Message - From: "Mark Murphy" To: Sent: Wednesday, June 08, 2011 11:24 PM Subject: Re: [android-developers] two questions from a newbie On Wed, Jun 8, 2011 at 6:14 PM, Knutsford Software wrote: 1) If you have a form in in app what do you do if the app goes into the bac

Re: [android-developers] Re: noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 8:23 PM, Streets Of Boston wrote: > If this is what you currently do: > In your Activity, you call a method that winds up parsing some XML. Then you > have implement an xml-handler (content-handler), that has no idea of how to > get at the 'current activity'... And you need

[android-developers] Re: noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Streets Of Boston
If this is what you currently do: In your Activity, you call a method that winds up parsing some XML. Then you have implement an xml-handler (content-handler), that has no idea of how to get at the 'current activity'... And you need that activity (or at least the application-context associated

Re: [android-developers] Re: noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 7:55 PM, Duskox wrote: > Ok, I have an idea. Since I have a myXMLHandler object I will create a > public function in it that will fill a temporary ArrayList and return > it to me through this function. Then I will just put it in my > Application object. Only thing is that th

[android-developers] Re: EditText stops displaying characters as I'm typing?

2011-06-08 Thread Eric Carman
I've submitted a bug report. I don't know what to do about going further with this. I setup an inherited class so that I could throw some logging into the EditText in hopes of finding a pattern or blip. No joy. Bug: 17508 Please feel free to elaborate or correct anything I might have said. T

[android-developers] Re: noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Duskox
Ok, I have an idea. Since I have a myXMLHandler object I will create a public function in it that will fill a temporary ArrayList and return it to me through this function. Then I will just put it in my Application object. Only thing is that this way I can not use the object I defined in myApp clas

[android-developers] Re: noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Duskox
Well I used Application because I thought it would be easily accessible...but it's not. If I declare for example a static variable in my Activity class, I will still have trouble accessing it since the handler for XML is not being called by me, in that case I would just pass the variable, but I pr

Re: [android-developers] noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 7:34 PM, Duskox wrote: > so here I am again with a problem. I have declared a class that > extends Application class and in there I have some variables that I > want to access from wherever I am. But, the problem is that I have > several classes that I use but are not extend

[android-developers] noob Q :-/ regarding global variable - declared the application class but...

2011-06-08 Thread Duskox
Hi all, so here I am again with a problem. I have declared a class that extends Application class and in there I have some variables that I want to access from wherever I am. But, the problem is that I have several classes that I use but are not extending the Activity class so I can not do this.ge

[android-developers] Re: How to make apk from .java, png files extracted from jar

2011-06-08 Thread Doug
On Jun 7, 4:32 am, Rajender wrote: > I want to do all these using batch file (command line).. Use ant. http://developer.android.com/guide/developing/building/index.html Doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Re: How the "Share" options in android Gallery app are sorted

2011-06-08 Thread Doug
On Jun 7, 4:56 am, Zulfiqar wrote: > what i need is my application should be among top positions in that > share menu > is it possible, ??? well i think so its possible but dont know wat to > be done, be coz it isnt in the order of installation of > application... > Plz urgent help requir

[android-developers] Re: HTML ImageGetter not working, showing a square with text "obj"

2011-06-08 Thread Doug
What is the data type of "directions" and what are you doing with it after you assign it? It looks like you're doing string concat with it, which means everything is getting converted to a String, including the output from Html.fromHtml, which probably means that the image is getting stripped out.

[android-developers] Re: Error with XML parsing??

2011-06-08 Thread Duskox
Oh yes, not only slapping my hand on my forehead but slapping myself with a large trout :D -- 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 gro

[android-developers] Re: Android LifeCycle and Singleton Instances

2011-06-08 Thread gjs
Hi, Agreed, that is why I said the 'book'. Regards On Jun 8, 9:07 pm, Mark Murphy wrote: > On Tue, Jun 7, 2011 at 9:05 PM, gjs wrote: > > I saw an interesting variation > > inhttp://www.deelin.com/downloads/books/java_concurrency_in_practice.pdf > > on Page 213 - > > :: snip :: > > > The book

Re: [android-developers] Re: ADT 11.0.0

2011-06-08 Thread Xavier Ducrohet
I'm a bit surprised this used to work. I'll double check. On Wed, Jun 8, 2011 at 2:50 PM, Abhishek Akhani wrote: > Thanks for replying Xavier... > > You are right i am trying to add the reference from the property > sheet... in previous versions i was able to choose ids from this sheet > through

[android-developers] Re: Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Danny D
I think that may be where we're getting mixed up. I've created a style tree that follows the SDK recommendations like this. It follows inheritance, using the "." notation, just like the examples in the SDK MyCompanyStyle | MyCompanyStyle.Header | | | MyCompanyStyle.Header.Bold | My

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Kevin TeslaCoil Software
> I don't remember anyone asking > how to prevent the user from pressing the power key to unlock the phone :) That's be because the power key doesn't unlock the phone :P, it wakes it up, then you slide to unlock. I do actually get user requests to disable the power key from waking the device, but

[android-developers] Re: how would you parse this

2011-06-08 Thread Doug
I think you just need to read up on web services and JSON. Android comes with a JSON parser. On Jun 6, 11:25 pm, mike wrote: > I need to create a news feed that takes the string from the following > link and displays each on separate links, like the google news and > weather feed.  Im not sure h

[android-developers] Slide view up and down- choppy

2011-06-08 Thread Stefan Alder
I'm trying to slide a view on and off the bottom of the screen. The view is a relative layout with a couple of child views- one a header bar, and the other a listview, positioned below it with a margin in all sides. I'm using the translate animation code below. The performance is terrible -- it

Re: [android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread Dianne Hackborn
On Wed, Jun 8, 2011 at 3:17 PM, webmonkey wrote: > > No, as I said, your app will eventually be silently killed. > OK, but not if you are a foreground app, wouldn't be very silent ;-) > It is silent as far as you are concerned -- no warning, no way to recover, just *poof*. > I am talking sane

Re: [android-developers] two questions from a newbie

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 6:14 PM, Knutsford Software wrote: > 1) If you have a form in in app what do you do if the app goes into the > background while you are in the middle of completing the form? Do you need > to do something in OnResume or will it resume in the state that you left it > in before

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread webmonkey
> No, as I said, your app will eventually be silently killed. OK, but not if you are a foreground app, wouldn't be very silent ;-) > Pretty universally people coming from a desktop environment have a very > different definition of "reasonable amount of memory" than is actually sane > for a mobile

[android-developers] two questions from a newbie

2011-06-08 Thread Knutsford Software
I have a couple of questions 1) If you have a form in in app what do you do if the app goes into the background while you are in the middle of completing the form? Do you need to do something in OnResume or will it resume in the state that you left it in before it went into the background?

Re: [android-developers] AlertDialog.Builder question

2011-06-08 Thread Kostya Vasilyev
It does (but not on all devices, IIRC). There are tricks you can play with subclassing AlertDialog, getting the button references after calling super.onCreate and setting your own click listeners. It works for me, but I don't know if this is really kosher. On the other hand, I remember seeing code

Re: [android-developers] Great Problem

2011-06-08 Thread Kostya Vasilyev
What for? The logcat should have a nice readable stack trace with source file names and line numbers. -- Kostya Vasilyev 08.06.2011 21:46 пользователь "Simon Platten" написал: > Add try and catch clauses to your methods that should help you locate the > problem. > > Regards,Sy > > On 8 Jun 2011 1

Re: [android-developers] Re: Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Kostya Vasilyev
?MyCompanyStyle should ultimately resolve to @style/something, via the theme. You can check the Android sources, under \platforms\android-X\data\res\values. Look for themes.xml, styles.xml, attrs.xml. These files have a lot of style references. For example: @android:style/

Re: [android-developers] Re: Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Kostya Vasilyev
?MyCompanyStyle should ultimately resolve to @style/something, via the theme. You can check the Android sources, under \platforms\android-X\data\res\values. Look for themes.xml, styles.xml, attrs.xml. These files have a lot of style references. For example: @android:style/Widget

Re: [android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread Dianne Hackborn
On Wed, Jun 8, 2011 at 1:15 PM, webmonkey wrote: > How does the native heap actually tell you, will malloc return NULL if > it cannot reserve enough space? > No, as I said, your app will eventually be silently killed. > And if you are a foreground app, you won't get in trouble will you > (unle

[android-developers] AlertDialog.Builder question

2011-06-08 Thread dashman
building a dialog with own layout. when i click on any of the positive/neutral/negative buttons, it closes the dialog...any way to stop that...i'm intercepting the onclicklistener but no sure what to set. also, is there any way to change the labels of any of the buttons from within the onclick li

[android-developers] Re: Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Danny D
Thanks Kostya, I think I'm doing pretty much what you said (I'll check again), I'm trying to use the "?foo" reference to dynamically set the style of an individual view or view-group. 1) I've created my own fixed styles, there are three of these. I want to select one of the three by setting the

[android-developers] Re: ADT 11.0.0

2011-06-08 Thread Abhishek Akhani
Thanks for replying Xavier... You are right i am trying to add the reference from the property sheet... in previous versions i was able to choose ids from this sheet through dialog but now i have to write it through XML code I did it through manually writing but it takes more time :( .

Re: [android-developers] ADT 11.0.0

2011-06-08 Thread Xavier Ducrohet
I'm guessing you're trying to add the reference from the property sheet through the dialog that pops-up when you click the "..." button? If this is the case then this "reference chooser" dialog does not in fact show any id. This does not prevent you from setting them though, just manually type @id

Re: [android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread TreKing
On Wed, Jun 8, 2011 at 4:14 PM, Indicator Veritatis wrote: > But you are wrong to deny the causal link between pressing Home and the > lifecycle in turn causing onPause() and onStop() to be called. It is not > only perfectly correct, but even important to understand the lifecycle as > a more media

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Indicator Veritatis
You guessed correctly. Where I wrote 'least', I should have written 'last'. But since you agree that both onPause() and onStop() will be called, Bob M. really has to change the wording in his blog. As it stood when I wrote that, it really did imply that ONLY onPause() is called, not onStop(). As su

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread Streets Of Boston
Yeah, but it'll do. :-) The quality of the cameras on phones and tablets is not that great anyway. -- 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

Re: [android-developers] Dynamically adding a group of views

2011-06-08 Thread TreKing
On Wed, Jun 8, 2011 at 3:40 PM, darrinps wrote: > How can I add multiple segments (my upper LinearView is called a segment) > to the ScrollView? > Add multiple "segments" to one parent LinearLayout then shove that in the ScrollView. --

Re: [android-developers] Re: Broadcasting custom intent actions to background activities from foreground activity.

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 4:16 PM, Diego Tori wrote: > That's the thing, if I set a shared preference flag or cached flag via > cache object, and they did try to check for that value in onResume, > wouldn't the first activity from the back stack to get the foreground > check its state, then set it ba

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread webmonkey
That works but I don't consider 16-bit to be "full-resolution", color fidelity is just as important. On Jun 8, 10:25 pm, Streets Of Boston wrote: > I guess it's playing nice to other background apps. Even a foreground app > can't gobble up all the memory and starve the background apps. > > I figu

[android-developers] Re: webservice php

2011-06-08 Thread tamer hatoum
while extracting using httprequest and binding to listview and make items clickable to open the PDF file regards... On Jun 8, 5:33 pm, James Ots wrote: > Which part in particular are you having difficulty with? > > James -- You received this message because you are subscribed to the Goog

[android-developers] Dynamically adding a group of views

2011-06-08 Thread darrinps
I have a layout that contains a ScrollView Inside of that ScrollView, I would like to dynamically add a group of views as a "package". I know I can do this as single lines, but I have a complex row made up of several views that I need to add as a group. What I want is a CheckBox on the left side,

[android-developers] Re: Broadcasting custom intent actions to background activities from foreground activity.

2011-06-08 Thread Diego Tori
Keep in mind that this is not a one-time event. Rather it is an event that the user generates, all I want those other activities to know is whether or not the event was generated by the user while in the background. On Jun 8, 4:16 pm, Diego Tori wrote: > That's the thing, if I set a shared prefer

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread Streets Of Boston
I guess it's playing nice to other background apps. Even a foreground app can't gobble up all the memory and starve the background apps. I figured out a way to edit 9MPixel images 16-bit (i.e. 18MByte of data). It makes you program quite carefully when using the left over 6Mbyte of memory, but

Re: [android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Kostya Vasilyev
Confusion easily comes from thinking about the home screen and the home key as being more special than they are. The home screen, to a large degree, is just another application. When it comes to the foreground, the usual rules with onPause / onStop apply to the current application. As for not bei

[android-developers] Re: Broadcasting custom intent actions to background activities from foreground activity.

2011-06-08 Thread Diego Tori
That's the thing, if I set a shared preference flag or cached flag via cache object, and they did try to check for that value in onResume, wouldn't the first activity from the back stack to get the foreground check its state, then set it back to false after checking for it being true before having

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread webmonkey
How does the native heap actually tell you, will malloc return NULL if it cannot reserve enough space? And if you are a foreground app, you won't get in trouble will you (unless you use insane amounts of it) I can understand that a background app should not use more native memory than the limit.

Re: [android-developers] Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Kostya Vasilyev
The "?foo" syntax is a reference to a theme attribute. To complete this, you need to first create a theme that has these attributes: value and then specify this theme for your activity: Then the widgets (I hope you mean views by that) will be able to resolve "?fo

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread webmonkey
It is kind of ridiculous that you cannot just load a bitmap in full quality the size of the phone's camera capability, let alone edit it. Then you have to explain to users that you can't because you can only use 16/24/32 MB when their phones have 512MB. As open and powerful as Android is, I never

[android-developers] Use of the Resource reference "?" when setting widget attributes.

2011-06-08 Thread Danny D
Hi, I'm trying to set a widget's "style" attribute with a reference to a custom attribute that's been loaded with a real-concrete style. The Android SDK docs show an explicit example for just setting the textColor attribute based on a style reference: I'm trying to do this for the entire widg

Re: [android-developers] Re: fragment Support with Tabhost

2011-06-08 Thread Brill Pappin
Hi Joachim, Thanks for the tip. Eventually we decided that since the new ActionBar stuff kind of makes tabs mute (or rather has its own similar thing) that we only needed tabs for legacy apps. In that case, we simply use the activity as tab content with the fragments embedded it. It a real pa

Re: [android-developers] Unable to use the surface object from application side in the native side.

2011-06-08 Thread Dianne Hackborn
Gah I meant to say "sp<> and Surface are *internal implementation* details." On Wed, Jun 8, 2011 at 12:37 PM, Dianne Hackborn wrote: > sp<> and Surface are native APIs. This code will break on various devices. > > The only supported way to do this is with the new extended native APIs in > 2.3. >

Re: [android-developers] Unable to use the surface object from application side in the native side.

2011-06-08 Thread Dianne Hackborn
sp<> and Surface are native APIs. This code will break on various devices. The only supported way to do this is with the new extended native APIs in 2.3. On Tue, Jun 7, 2011 at 7:06 AM, Sandeep Patil wrote: > Dear frndz, > > I am facing a problem of being not able to use the surface object > ob

Re: [android-developers] Loading Bitmaps in native heap

2011-06-08 Thread Dianne Hackborn
Note that just because heap limits aren't imposed on the native heap like they are on the Java heap doesn't mean that there aren't limits. The failure cases are just more difficult -- not allowing stuff to work in the background when it should to your application just silently being killed. You *

Re: [android-developers] Broadcasting custom intent actions to background activities from foreground activity.

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 3:00 PM, Diego Tori wrote: > So I want to achieve the following: suppose I have one Activity in my > app that generates an event that I want other Activities in my app's > back stack to know about so they can react to it accordingly (i.e. > update UI, refresh data via separa

Re: [android-developers] 2.2 Froyo Widgets wrong behavior (power-controls widget is showing on update or when the widget brokes)

2011-06-08 Thread emaildevbr . stress
VSent from my Verizon Wireless Phone -Original message- From: Marcos Lima To: Android Developers Sent: Tue, Jun 7, 2011 22:06:06 GMT-03:00 Subject: [android-developers] 2.2 Froyo Widgets wrong behavior (power-controls widget is showing on update or when the widget brokes) Hello, G

[android-developers] Re: fragment Support with Tabhost

2011-06-08 Thread Joachim
Brill, I'm not sure if this is what you're trying to do but I'm using fragments when switching between tabs. Essentially I have each added tab use a generic content_fragment as the content. then the changeTab looks at which tab is selected and does all the fun Fragment transactions. An odd beha

[android-developers] Broadcasting custom intent actions to background activities from foreground activity.

2011-06-08 Thread Diego Tori
So I want to achieve the following: suppose I have one Activity in my app that generates an event that I want other Activities in my app's back stack to know about so they can react to it accordingly (i.e. update UI, refresh data via separate Thread, etc...). What strategies would I have to pursue

[android-developers] Re: [android-develozpers] Unable to use the surface object from application side in the native side.

2011-06-08 Thread emaildevbr . stress
ESent from my Verizon Wireless Phone-Original message-From: Sandeep Patil To: Android Developers Sent: Tue, Jun 7, 2011 22:07:23 GMT-03:00Subject: [android-developers] Unable to use the surface object from application side in the native side.Dear frndz,I am facing a problem of being not abl

[android-developers] multiple opengl context and shared textures

2011-06-08 Thread Paolo
Hi there, as the Object of this topic... is it possible to create two different OpenGL Contexts in the same activity? I mean creating two different glsurfaceviews, where every of them use a different EGLConfig and Renderer. And also... what about texture? Can I share texture through the two OGL C

[android-developers] Re: Loading Bitmaps in native heap

2011-06-08 Thread Streets Of Boston
I wrote an image editor app that claims to deal with full-resolution of the images. However, there is a limit due to the 'issues' you found (limit memory). I got around it (at least, i haven't seen many stack-traces/error-logs sent my way) by doing this: - Limit the resolution. On 1st gen de

[android-developers] Loading Bitmaps in native heap

2011-06-08 Thread Erik R
I'm working on a simple image manipulation app that requires opening bitmaps at full resolution, which of course results in OutOfMemory issues. I know that the short answer is to simply use less memory via BitmapFactory's inSampleSize Option to downsample the bitmap, but for this app I really would

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-08 Thread Mark Murphy
On Wed, Jun 8, 2011 at 2:07 PM, Adam Ratana wrote: > Mark Murphy, you said this is impossible, did you mean in the sense of the > way DDMS grabs the full-monty screenshot? Um, for some definition of "full-monty", I presume, yes. :-) > I do hope that Android Handset/Tablet manufacturers catch on

Re: [android-developers] text colorsv

2011-06-08 Thread emaildevbr . stress
Sent from my Verizon Wireless Phone -Original message- From: bob To: Android Developers Sent: Wed, Jun 8, 2011 13:46:17 GMT-03:00 Subject: [android-developers] text color Can someone help me figure out how to set the text color in a dialog? -- You received this message because you a

Re: [android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-08 Thread Adam Ratana
I just checked this approach out as a user had emailed me asking about screenshot capability. This definitely does the trick, but a another poster pointed out, any output from certain components (in my case the camera preview surfaceview) does not show up. Perhaps the correct approach then is t

Re: [android-developers] Honeycomb keyboard lreesponding to touch events on status bard

2011-06-08 Thread emaildevbr . stress
F2 Sent from my Verizon Wireless Phone -Original message- From: Marcin Orlowski To: android-developers@googlegroups.com Sent: Tue, Jun 7, 2011 18:59:45 GMT-03:00 Subject: Re: [android-developers] Honeycomb keyboard responding to touch events on status bar On Jun 7, 2011 11:44 PM, "J

Re: [android-developers] text color

2011-06-08 Thread Fred Niggle
Hello, You can do this dynamically as well. At http://realfred.uphero.com/android/androidsnippets.html is the following snippet which works button1.setBackgroundColor(Color.argb(125, 0, 0, 255)); Hope this helps, Fred. On 08/06/2011, bob wrote: > Can someone help me figure out how to set the

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Robert Green
Think of home like alt-tab in windows. You never need to capture it. You just need to handle onPause()/onStop() in a way that makes sense for the user temporarily leaving your app. You'll get onFinish() when your app is to be actually destroyed. If you have a need to actually kill off the whole

Re: [android-developers] Honeycomb keyboard responding to touch events on status bar

2011-06-08 Thread emaildevbr . stress
J Sent from my Verizon Wireless Phone -Original message- From: Marcin Orlowski To: android-developers@googlegroups.com Sent: Tue, Jun 7, 2011 18:59:45 GMT-03:00 Subject: Re: [android-developers] Honeycomb keyboard responding to touch events on status bar On Jun 7, 2011 11:44 PM, "Ja

Re: [android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread TreKing
On Wed, Jun 8, 2011 at 12:31 PM, Indicator Veritatis wrote: > But shouldn't it trigger onStop() too? After all, the application is > no longer visible. And what about the Activity Stack? Doesn't pressing > Home put the least recently used Activity on that stack? > Yes and yes (assuming you meant

[android-developers] Continuous listening to server

2011-06-08 Thread dilu
Hi, I am working on an application which will continuously listen to server i.e if there is any changes on server then server will push it to the client and client should be able to receive it.I dont want to poll the server.I want to use push technology. I did a lot of google.People are suggesting

[android-developers] Mode selector pattern - Overlay views

2011-06-08 Thread Federico Paolinelli
Hi all, for my new app I'd like to use mode selector pattern as described here http://www.androidpatterns.com/uap_pattern/mode-selector I was trying to figuring out how to implement it, and I was thinking about using a framelayout, having an hidden listview which overrides the "main" list view,

Re: [android-developers] Great Problem

2011-06-08 Thread Simon Platten
Add try and catch clauses to your methods that should help you locate the problem. Regards,Sy On 8 Jun 2011 15:49, "Diogo Salaberri" wrote: hi guys, I need a help please. I got this error on my app: 06-08 14:42:33.584: ERROR/AndroidRuntime(269): java.lang.RuntimeException: Unable to start act

Re: [android-developers] Great Problem

2011-06-08 Thread Diogo Salaberri
Guys, I solved that problem. My problem was in a layout definition that was defined with caps lock, but with the same name, and the Eclipse don't put erros in line, but the emulator show me in logCat. Thanks, bye. On Wed, Jun 8, 2011 at 12:21 PM, TreKing wrote: > On Wed, Jun 8, 2011 at 10:01 AM

Re: [android-developers] Loading Bitmaps in native heap

2011-06-08 Thread Simon Platten
Java doesnt support pointers or direct access to memory which is why native routines exist...why dont you open the files as streams and only render what is require for the view orrescale the image? Regards,Sy On 8 Jun 2011 18:21, "Erik R" wrote: I'm working on a simple image manipulation ap

Re: [android-developers] Loading Bitmaps in native heap

2011-06-08 Thread Romain Guy
There is no such plan at the moment. On Wed, Jun 8, 2011 at 10:17 AM, Erik R wrote: > I'm working on a simple image manipulation app that requires opening > bitmaps at full resolution, which of course results in OutOfMemory > issues. I know that the short answer is to simply use less memory via >

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Indicator Veritatis
Your blog post IS the best explanation I have seen to date of what the Home key really means. I thought it was particularly interesting that it emphasized something I have been dimly aware of but keep forgetting: unlike the Back key, pressing Home does NOT cause finish() to be called. I assume from

[android-developers] ADT 11.0.0

2011-06-08 Thread abhishek akhani
Hi Today i downloaded ADT 11.0.0 and now when i am adding any view to Relative layout i am having problem adding it. Like i can not find any id to reference as a "align bottom" or "Layout Right of" property.. when i try to set these properties it shows me Drawables,Arrays,Strings,Layout - ids but

Re: [android-developers] Display.getRotation() incompatible with accelerometer data

2011-06-08 Thread emaildevbr . stress
Sent from my Verizon Wireless Phone -Original message- From: Dianne Hackborn To: android-developers@googlegroups.com Sent: Wed, Jun 8, 2011 00:11:51 GMT-03:00 Subject: Re: [android-developers] Display.getRotation() incompatible with accelerometer data Which device is this? On Tue, Ju

Re: [android-developers] Re: text color

2011-06-08 Thread Simon Platten
Select the textview, then click on the properties tab, scroll down to text coloryou have to create a colors.xml file in your resources and put all your color definitions in it. Regards,Sy On 8 Jun 2011 18:07, "James Ots" wrote: What part of colour setting are you having difficulty with? Ja

[android-developers] Re: text color

2011-06-08 Thread James Ots
What part of colour setting are you having difficulty with? James -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to androi

  1   2   >