Re: [android-developers] Re: Continuously running service.

2011-04-06 Thread Mahavir Jain
Yes.. I am thinking of that approach only.. Thanks to all. Mahavir On Tue, Apr 5, 2011 at 10:05 PM, Nick Kulikaev nkulik...@gmail.com wrote: Did you consider a bit different approach and use alarm manager to wake up your app after regular interval? If you only need to send device location

[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-06 Thread Shai
I'm really sorry for popping this again so quick without any new info, I really need more info on this. Shai Levy On Apr 5, 11:31 am, Shai levys...@gmail.com wrote: Same results with ApiDemos! I created a new sample project (ApiDemos) using ADT with API level 11 as the target and I tried the

[android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Mike Bear
Currently, I use this way, and it seems works. But there are shall be some better way, I think. public MyView(Context context, AttributeSet attrs) { super(context, attrs); //Get the value from Activity this.mInt = ((MyActivity)context).getMyInt()); } On Wed, Apr 6, 2011 at 1:48 PM,

[android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Zsolt Vasvari
Use custom attributes in the layout XML. You can declare them in attrs.xml. On Apr 6, 1:48 pm, android.xi...@gmail.com android.xi...@gmail.com wrote: Hello Guys, I defined a customer view, e.g. MyView, which need to be constructed with some own parameter, e.g. line number in the view, an

[android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Zsolt Vasvari
public MyView(Context context, AttributeSet attrs) { super(context, attrs); //Get the value from Activity this.mInt =   ((MyActivity)context).getMyInt()); } That's just terrible, sorry. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-06 Thread Zsolt Vasvari
Are you using the emulator or a real Xoom? I'd assume the emulator wouldn't support hardware acceleration. On Apr 6, 2:03 pm, Shai levys...@gmail.com wrote: I'm really sorry for popping this again so quick without any new info, I really need more info on this. Shai Levy On Apr 5, 11:31 am,

[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-06 Thread Zsolt Vasvari
Sorry, I just read your first post that you are, in fact, using the Xoom. Then I have no idea. On Apr 6, 2:03 pm, Shai levys...@gmail.com wrote: I'm really sorry for popping this again so quick without any new info, I really need more info on this. Shai Levy On Apr 5, 11:31 am, Shai

[android-developers] Re: Activity without GUI - Activity

2011-04-06 Thread dgtale
Hi Hernando, try using the Theme.NoDisplay: activity android:name=.. android:theme=@android:style/Theme.NoDisplay android:label=@string/app_name -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Laurent LARUNIE?

2011-04-06 Thread Zsolt Vasvari
Is it just me, but every time I post here, I get an empty e-mail from a Laurent LARUNIE? -- 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,

[android-developers] Re: how to rotate camera preview by 90 degrees clockwise for android 2.1 application ??

2011-04-06 Thread vijay singh
thanx Adam, I am relativly new to android... can you please help me in 2 things 1) how to run the media scanner after i click an image in my application...so that it could be shown in the Galary just after i click it from my application. 2) how to rotate the picture clicked by default camera app

[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-06 Thread Shai
Yes, I have on my desk 2 Xoom devices near me that are currently useless until I figure this out (I wish Google had some kind of official support) On Apr 6, 9:39 am, Zsolt Vasvari zvasv...@gmail.com wrote: Sorry, I just read your first post that you are, in fact, using the Xoom.  Then I have

[android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-06 Thread Zsolt Vasvari
If you think there is a bug, open one on http://b.android.com (but check if it hasn't been reported yet.) Put Xoom, Honeycomb and 3.0 in the title. You will NOT get a response, but you will get a pair of eyes to look at it in all likelihood. On Apr 6, 2:52 pm, Shai levys...@gmail.com wrote:

Re: [android-developers] Re: HoneyComb isHardwareAccelerated() always returns false

2011-04-06 Thread Dianne Hackborn
Hm, the background bitmap is shown basically based on whether View.isHardwareAccelerated() returns true. The only time they can be different is when the view hierarchy is running in a process which has turned off hardware acceleration, which basically only happens as a special case in the system

Re: [android-developers] Re: Activity without GUI - Activity

2011-04-06 Thread Dianne Hackborn
Right use Theme.NoDisplay AND You MUST call finish() by the time you return from onResume(). Different component types are not interchangeable. If something is launching an activity, you must implement an activity to receive that. You can however in that activity do something and then

Re: [android-developers] Re: Continuously running service.

2011-04-06 Thread Dianne Hackborn
If you want to have your service always running, you can use Service.startForeground(). This does require that you post a notification along with it, so the user is aware of your app running. On Tue, Apr 5, 2011 at 11:00 PM, Mahavir Jain vir.j...@gmail.com wrote: Yes.. I am thinking of that

[android-developers] change the name of the applications on that screen which appears on clicking Launcher Icon on Home Screen

2011-04-06 Thread Abhishek Kumar Gupta
How to change the name of the applications on that screen which appears on clicking *Launcher* Icon on Home Screen in Android according to the language selected in Settings(Settings-Language Keyboard) of Phone? In other words, if we make application Abhishek select French language in

[android-developers] Re: change the name of the applications on that screen which appears on clicking Launcher Icon on Home Screen

2011-04-06 Thread Zsolt Vasvari
http://developer.android.com/guide/topics/resources/localization.html On Apr 6, 3:33 pm, Abhishek Kumar Gupta akgaec2...@gmail.com wrote: How to change the name of the applications on that screen which appears on clicking *Launcher* Icon on Home Screen in Android according to the language

[android-developers] Intercept Emails

2011-04-06 Thread Daniel Felix
Hi All, I want to intercept the email from the build-in Android email client. I have no idea where is the URIs for this application. If some one have done something on it please send it to me. I need a basic code snippet for email receive notification. I am thankful to you for your all

[android-developers] Re: Android Contacts backup and sync application

2011-04-06 Thread Jens
Uh, there's a complete sort-of-working-if-you-disregard-the- embarrassingly-huge-glaring-holes-in-the-default-contacts-app-that- Google-will-never-fix example @ developer.android.com. http://developer.android.com/resources/samples/SampleSyncAdapter/index.html On 31 mar, 14:25, Udayan Warnekar

[android-developers] Memory managing my list adapter

2011-04-06 Thread Neilz
Hi all. I have a list adapter, code given below. I'm trying to clean up the app, recycle bitmaps etc, to lower the memory usage as I've been experiencing out of memory issues when creating bitmaps. I'm concerned that my list adapter is not as efficient as it could be, and just wanted some advice.

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Mike Bear
I defined the XML file and attributes, and can read the values from the attributes. But still there is another issue, How can I set the values in MyActivity? Thanks, Mike On Wed, Apr 6, 2011 at 2:37 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Use custom attributes in the layout XML. You

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Mike Bear
I don't like it, either. On Wed, Apr 6, 2011 at 2:37 PM, Zsolt Vasvari zvasv...@gmail.com wrote: public MyView(Context context, AttributeSet attrs) { super(context, attrs); //Get the value from Activity this.mInt = ((MyActivity)context).getMyInt()); } That's just terrible, sorry.

[android-developers] URI

2011-04-06 Thread rahul
What is URI? How to get the URI of the contact? Exapmle :phoneCallNumber(Sring URI) In this case URI is what? -- 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

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Kumar Bibek
Expose methods in your custom view that activities can call directly. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Apr 6, 2011 at 2:35 PM, Mike Bear android.xi...@gmail.com wrote: I defined the XML file and attributes, and can read the values from the attributes.

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Mike Bear
I want to set the value before the constructor MyView, so then the view instance is not ready yet. My plan is to set the value in attributes in MyActivity, and then in the constructor of MyView, the attributes will be used. The problem is how to set the value of custom attributes in MyActivity,

Re: [android-developers] Memory managing my list adapter

2011-04-06 Thread Kostya Vasilyev
06.04.2011 12:54, Neilz пишет: 1) As I scroll up and down the list, I notice that getView() gets called each time the item appears. Thus, it creates another ImageView which gets assigned another bitmap. Is there not a way to have this only called the once, so that the next time the list row is

Re: [android-developers] Laurent LARUNIE?

2011-04-06 Thread Marcin Orlowski
On 6 April 2011 08:43, Zsolt Vasvari zvasv...@gmail.com wrote: Is it just me, but every time I post here, I get an empty e-mail from a Laurent LARUNIE? I do not have it (nor he is filtered out) so you may be lucky one :) Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep

Re: [android-developers] Re: encrypt/decrypt the data from content provider

2011-04-06 Thread Marcin Orlowski
On 6 April 2011 07:16, rashmi rashmi@gmail.com wrote: I want to encrypt the data before insertion through content provider and decrypt while reading the data. So that encrypted data will be saved in database. Please provide me the information Here you go:

[android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Neilz
Sorry, forgot the code - here it is. Does this affect your answer at all? public class SearchResultsListAdapter extends ArrayAdapterMyObject { private ListMyObject items; private Context mContext; private int layoutResource; LayoutInflater vi; public

[android-developers] Re: Continuously running service.

2011-04-06 Thread Amit
Using startForeground() will be injustice to device just for the sake of sending location update. And with use of startForeground(), device may never go to sleep. So be cautious while keeping awake CPU for no reason. As mentioned earlier AlarmManger is of good use for this purpose. -Amit On Apr

Re: [android-developers] OpenGL ES for Android tutorial

2011-04-06 Thread Marcin Orlowski
On 5 April 2011 18:41, J javier.sed...@gmail.com wrote: Hi, anybody can sugest a tutorial for OpenGL ES on Android The official documentation is not very extensive... Read any OpenGL ES tutorial you find i.e. for iphone, i.e. this one will give you some basics in the clear way:

Re: [android-developers] Intercept Emails

2011-04-06 Thread Marcin Orlowski
On 6 April 2011 10:10, Daniel Felix zaandr...@gmail.com wrote: Hi All, I want to intercept the email from the build-in Android email client. I have no idea where is the URIs for this application. URI for what exactly? If some one have done something on it please send it to me. I need a

Re: [android-developers] URI

2011-04-06 Thread Marcin Orlowski
On 6 April 2011 11:06, rahul katoc...@gmail.com wrote: What is URI? How to get the URI of the contact? Exapmle :phoneCallNumber(Sring URI) In this case URI is what? What is google? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...

Re: [android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Kostya Vasilyev
It does - your code already reuses convertView, so it does not create a new ImageView every time: if (v == null) { v = vi.inflate(layoutResource, null); } The only issue then is that this can end up with lots of image objects in memory, which are

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Kumar Bibek
I don't think there is any point in setting the values before the constructor. I can't think of a situation where you would want to do that. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Apr 6, 2011 at 2:47 PM, Mike Bear android.xi...@gmail.com wrote: I want to

Re: [android-developers] Intercept Emails

2011-04-06 Thread Kostya Vasilyev
The built-in email client's content provider is protected by a signatureOrSystem permission. In other words, it can only be accessed by the application itself or by system code. -- Kostya 06.04.2011 13:37, Marcin Orlowski ?: On 6 April 2011 10:10, Daniel Felix zaandr...@gmail.com

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Mike Bear
The scenario is like the following: 1. MyView is one of the component in MyActivity. 2. MyActivity is created from other activity, with an intent containing all the information for the activity, including the parameter for MyView. 3. We shall pass the parameter to the constructor of MyView, for

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Kostya Vasilyev
06.04.2011 13:42, Kumar Bibek пишет: I don't think there is any point in setting the values before the constructor. I can't think of a situation where you would want to do that. Not to mention that an object does not exist before the constructor, so there can't be any values stored there.

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Kostya Vasilyev
Ah. Well, you could have a setSomething method in the view, and push the value from the activity's onCreate - as already suggested by Kumar. If MyView is only intended to be used by MyActivity, then your original code seems fine (getting the context, casting to MyActivity and getting the

[android-developers] Re: InputMethod overlayed the edit area in webview when the hardware accelerate is enabled!

2011-04-06 Thread wsgfz...@gmail.com
Added: i test it on xoom, 3.0.1. On Apr 6, 5:49 pm, Deng Liang wsgfz...@gmail.com wrote: The activity is set up like this ==     android:theme=@android:style/Theme.NoTitleBar     android:hardwareAccelerated=true    

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Mike Bear
In my scenario, MyView will be only used in MyActivity. In addition, it's also the simplest way. Thanks for your help On Wed, Apr 6, 2011 at 5:51 PM, Kostya Vasilyev kmans...@gmail.com wrote: Ah. Well, you could have a setSomething method in the view, and push the value from the activity's

[android-developers] Re: encrypt/decrypt the data from content provider

2011-04-06 Thread rashmi
I have written my content provider class and a wrapper class to access the content provider. It is similar to settings database content provider in froyo code. I am using the example in following link for encryption/decryption.

[android-developers] Re: Activity without GUI - Activity

2011-04-06 Thread Gorka Hernando
Hi, Thanks a lot for your time. It was really helpful On 6 abr, 09:13, Dianne Hackborn hack...@android.com wrote: Right use Theme.NoDisplay AND You MUST call finish() by the time you return from onResume(). Different component types are not interchangeable.  If something is launching an

[android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Neilz
Eventually it does run out of memory yes, if I force it... for example if I switch activities back and forward, so the list view keeps getting created, eventually I get the awful BM exceeds virtual memory or suchlike error. It's probably not likely to happen under normal use, but obviously I'd

[android-developers] Re: Intercept Emails

2011-04-06 Thread Daniel Felix
I have rooted phone. Could you send me some snippet for the email recieving. Regards, On Apr 6, 2:37 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 6 April 2011 10:10, Daniel Felix zaandr...@gmail.com wrote: Hi All,   I want to intercept the email from the build-in Android email

[android-developers] Re: Resources can't be loaded in a Open GL live wallpaper

2011-04-06 Thread MobileVisuals
It is working now. This code fix made it work. It is not possible to get the resources directly in the wallpaper service class, because that results in a nullpoint exception. The resources have to be fetched in the renderer class, to avoid the nullpoint exception. in wallpaper service class:

Re: [android-developers] Android WebView problem

2011-04-06 Thread 苗忠良
how to do b solution? 2011/2/1 Mark Murphy mmur...@commonsware.com On Mon, Jan 31, 2011 at 4:13 PM, WiViu Technologies wiviut...@gmail.com wrote: We are trying to develop an Android App which uses raw HTTP APIs for login to a website. We are then using WebView other HTTP APIs to

Re: [android-developers] Re: Continuously running service.

2011-04-06 Thread Mark Murphy
On Wed, Apr 6, 2011 at 5:35 AM, Amit agrawalamit2...@gmail.com wrote: And with use of startForeground(), device may never go to sleep. Huh? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You

[android-developers] External code files

2011-04-06 Thread New Developer
Within a single Activity.java file I can have button1.setOnClickListener( new mylistener1() ); button2.setOnClickListener( new mylistener2() ); button3.setOnClickListener( new mylistener3() ); and then private class mylistener1 implements OnClickListener { @Override public void

[android-developers] Fwd: Problem with activity group

2011-04-06 Thread Laxmi Verma
Hi, I am still facing this issue. Please can somebody help on this. The fragment is the feature of Android 3.0 and I am developing app for Android 2.1. So, I have to use ActivityGroup but facing problem in that. Thanks Regards Laxmi verma -- Forwarded message -- From: Laxmi

[android-developers] want to change the language in screen which appears on clicking Launcher Icon on the Home Screen

2011-04-06 Thread Abhishek Kumar Gupta
I have change the language in the Settings of the Phone(e.g. french), language change is reflected in every screen except that screen which contains(shows) all the installed applications(i.e. screen which appears on clicking Launcher Icon on the Home Screen) *but *when I closed the

[android-developers] HttpURLConnectionImpl$LocalCloseInputStream with HttpsURLConnection

2011-04-06 Thread Deepak Kumar
Hi All, I am using following code(Note that *HttpsURLConnection* is used):- Code:- ... con.setDefaultSSLSocketFactory(ctx.getSocketFactory()); url = new URL(urls); con = (HttpsURLConnection) url.openConnection();

Re: [android-developers] Fwd: Problem with activity group

2011-04-06 Thread Gergely Juhász
you can use the fragments with compatibility package. http://android-developers.blogspot.com/2011/03/fragments-for-all.html On 6 April 2011 14:08, Laxmi Verma laxmiverma.andr...@gmail.com wrote: Hi, I am still facing this issue.  Please can somebody help on this. The fragment is the feature

Re: [android-developers] External code files

2011-04-06 Thread Marcin Orlowski
On 6 April 2011 13:43, New Developer secur...@isscp.com wrote: Within a single Activity.java file I can have button1.setOnClickListener( new mylistener1() ); button2.setOnClickListener( new mylistener2() ); button3.setOnClickListener( new mylistener3() ); and then Use one listener

[android-developers] Re: Laurent LARUNIE?

2011-04-06 Thread Corey Ledin, LLC
I got two this morning On Apr 6, 2:43 am, Zsolt Vasvari zvasv...@gmail.com wrote: Is it just me, but every time I post here, I get an empty e-mail from a Laurent LARUNIE? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Chinese soft keyboard and unknown character set

2011-04-06 Thread viktor
Hi, I have got device with Chinese keyboard, when I type digits into EditText and compare it with digits from English keyboard I have different results. How to convert Chinese characters to normal charset? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Dianne Hackborn
The standard pattern in Android is for a view to have APIs for setting its attributes, which the activity calls when it wants. This pattern occurs all *over* the place -- see the innumerable sample code that does findViewById() in Activity.onCreate() to retrieve and set up views. This is how you

[android-developers] wifi problem

2011-04-06 Thread vani reddy
Hi, How much time does it take to connect from one wifi to another ,when one wifi goes out of range?Please reply client on head:-( -- Regards, Vani Reddy -- 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] Re: Continuously running service.

2011-04-06 Thread Dianne Hackborn
On Wed, Apr 6, 2011 at 2:35 AM, Amit agrawalamit2...@gmail.com wrote: Using startForeground() will be injustice to device just for the sake of sending location update. Well it all depends on what you are doing. For example, myTracks does just this because that is what makes sense for it.

[android-developers] subscription request

2011-04-06 Thread android user
Dear group mangers, I would like to join to the group of Android developers so i can read / post questions. Best Regards, John Martin. -- 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] Re: Intercept Emails

2011-04-06 Thread Dianne Hackborn
On Wed, Apr 6, 2011 at 3:41 AM, Daniel Felix zaandr...@gmail.com wrote: I have rooted phone. Could you send me some snippet for the email recieving. I doubt anybody is going to be able to send you a snippet of code. This is an extremely non-trivial thing to do, and will be deeply tied to

Re: [android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Dianne Hackborn
On Wed, Apr 6, 2011 at 3:33 AM, Neilz neilhorn...@gmail.com wrote: Eventually it does run out of memory yes, if I force it... for example if I switch activities back and forward, so the list view keeps getting created, eventually I get the awful BM exceeds virtual memory or suchlike error.

[android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread viktor
21212 -- Input from Chinese keyboard 21212 -- From English keyboard On 6 Кві, 16:22, viktor victor.scherb...@gmail.com wrote: Hi, I have got device with Chinese keyboard, when I type digits into EditText and compare it with digits from English keyboard I have different results. How to

[android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Neilz
Yes I think you're right. What's happening here is that activities are starting up over existing instances of the same activity. So for example, this app has four menu options, each of which start a new activity. If the user clicks menu option A, activity A starts. Then, if option B is clicked,

Re: [android-developers] Re: InputMethod overlayed the edit area in webview when the hardware accelerate is enabled!

2011-04-06 Thread Dianne Hackborn
Hm, this may be a bug with adjustPan when used with hardware acceleration, because its impl depends on playing games with drawing. I'll look in to what is going on there, but generally I would *strongly* suggest not using adjustPan. It is mostly there for compatibility with apps that can't

[android-developers] How much time it will take approximately ?

2011-04-06 Thread Abhilash baddam
Hi, can anyone is having idea that how much time it will take approximately to connect from one- WiFi to another WiFi. Suppose i was connected to one WiFi when it is out range then how much time the device will take to connect to another WiFi router which is in range...? -- You

[android-developers] Re: Response time for web app on android

2011-04-06 Thread cipher_neo
Hey, thanks for your reply. It is slow on the archos 101. I need it to be extremely responsive. The keypad is used to enter a users login pin and it just doesn't respond fast enough to a keypress. If you have a device, you can see what I mean by loading the app into a browser here:

[android-developers] NFC reader

2011-04-06 Thread android user
Hi, I want to connect an NFC Tag reader to Android SDK program so i can read write a Tag using Android SDK program. How to do this? John Martin. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Android App Tracker - market rank tool

2011-04-06 Thread Albert
Looks awesome! On Apr 6, 4:28 am, Corey Ledin, LLC coreyledin...@gmail.com wrote: We have really pushed to get the site in perfect working order and after today's hard work the site seems bug free and working better the expected pro app tracking available which updates by the hour plus new

Re: [android-developers] Laurent LARUNIE?

2011-04-06 Thread Marcin Orlowski
On 6 April 2011 08:43, Zsolt Vasvari zvasv...@gmail.com wrote: Is it just me, but every time I post here, I get an empty e-mail from a Laurent LARUNIE? I got this crap too now. Filter this moron out. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule

Re: [android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Kostya Vasilyev
Neil, Sorry I misunderstood what you meant by switching activities back and forth. You can use FLAG_ACTIVITY_REORDER_TO_FRONT in the Intent used to launch A from B. This ...will cause the launched activity to be brought to the front of its task's history stack if it is already running.

[android-developers] java.lang.NoSuchMethodException + Jackson Parser

2011-04-06 Thread Manish Garg
Hi All, I am using jackson parser to parse my response. I am getting java.lang.NoSuchMethodException exception. I am using ObjectMapper mapper = new ObjectMapper(); output = mapper.readValue(response, classType); code. I want to know where could

[android-developers] Re: Android App Tracker - market rank tool

2011-04-06 Thread Maps.Huge.Info (Maps API Guru)
...after today's hard work the site seems bug free... Much like a helicopter*, if software appears to be bug free you've missed something... (* If a helicopter appears to be in perfect working order, you've missed something.) -John Coryat -- You received this message because you are

Re: [android-developers] Promotional Graphic in PNG gets converted to _very lossy_ JPEG in Android Market?

2011-04-06 Thread Marcin Orlowski
On 5 April 2011 22:31, Marc Reichelt mcreich...@googlemail.com wrote: Web Market sucks in many ways, incl. language autodetect w/o no option to override it, said jpegs, promo images being required bigger than used and scalled with browser, not on server side, etc. But despite all this, this is

[android-developers] Re: Android App Tracker - market rank tool

2011-04-06 Thread Corey Ledin, LLC
key word seems :) let us know if you find something. On Apr 6, 10:32 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: ...after today's hard work the site seems bug free... Much like a helicopter*, if software appears to be bug free you've missed something... (* If a helicopter

Re: [android-developers] External code files

2011-04-06 Thread New Developer
Thanks then I can just use the single std onClick() Thanks didn't think of that On Apr 6, 2011, at 8:39 AM, Marcin Orlowski wrote: On 6 April 2011 13:43, New Developer secur...@isscp.com wrote: Within a single Activity.java file I can have button1.setOnClickListener( new

Re: [android-developers] Promotional Graphic in PNG gets converted to _very lossy_ JPEG in Android Market?

2011-04-06 Thread Kostya Vasilyev
Yep. One of my favorites is that it pre-scales those large icon images from 512x512 to 256x256, and then uses the browser to scale them further to 124x124, causing aliasing effects. They could have easily used 128x128 to avoid it. -- Kostya 06.04.2011 18:31, Marcin Orlowski ?: On 5

Re: [android-developers] External code files

2011-04-06 Thread Kostya Vasilyev
Besides implementing those callbacks in the activity, as explained by Marcin, a frequently occurring pattern is to use anonymous inner classes at the exact spot where they're needed. Most sample code does something like this: void onCreate(...) { btnCancel.setOnClickListener(new

[android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Emanuel Moecklin
There's one issue I still haven't solved to my satisfaction. As the layouting of views isn't tied to the activity's lifecycle there's no way to predict when onMeasure, onLayout are called (from an Activities point of view). If the parameters are needed in the onMeasure, onLayout methods then

Re: [android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Dianne Hackborn
Usually this kind of thing would be done with a tab control for the user to switch between the different views. It is difficult to get what you are doing to result in a reasonable experience with the back stack. For example, the calendar app has traditionally used this approach for switching

Re: [android-developers] NFC reader

2011-04-06 Thread TreKing
On Wed, Apr 6, 2011 at 8:53 AM, android user android.fa...@googlemail.comwrote: How to do this? Read the documentation? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago

[android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Neilz
Dianne - I know exactly where you're coming from - it just seemed very complex to do it that way... i.e. giving one Activity so much responsibility goes against everything you read about Java! The onCreate() method would have been endless... Kostya - I love the saying You learn a new thing every

[android-developers] Weird crash report on 2.3.3 Nexus One

2011-04-06 Thread webmonkey
A few users sent me an app crash report on build number GRI40 It crashes on the following: W/dalvikvm( 903): VFY: unable to resolve virtual method 291: Landroid/ graphics/Canvas;.drawText (Ljava/lang/String;IIFFLandroid/graphics/ Paint;)V java.lang.NoSuchMethodError:

[android-developers] Re: MotionEvent.getEdgeFlags() never reports non-zero value

2011-04-06 Thread Paul
Hi Dianne. My app defines the individual swipes of the user on the drawing canvas as 'gestures', in that each has a start on finger down, an end on finger up, and is in progress in between those two events. When the user is drawing close to the edge of the screen, and touches it, the break in

[android-developers] Re: java.lang.NoSuchMethodException + Jackson Parser

2011-04-06 Thread Manish Garg
Hi All, Here are the logs of my exception 04-06 16:42:55.562: ERROR/AndroidRuntime(542): Caused by: java.lang.NoSuchMethodException 04-06 16:42:55.562: ERROR/AndroidRuntime(542): at java.lang.Class.getDeclaredMethods(Native Method) 04-06 16:42:55.562: ERROR/AndroidRuntime(542): at

[android-developers] Deserialization issue in Jackson Parser + java.lang.NoSuchMethodException

2011-04-06 Thread Manish Garg
Hi All, Here are the logs of my exception. Please help me to solve this issue. Am I using wrong library of the jackson. Doesn't ObjectMapper provide deserialization. I am also not very sure what deserialization is. When it comes. This code was working fine but after some change at the server

Re: [android-developers] Re: java.lang.NoSuchMethodException + Jackson Parser

2011-04-06 Thread Kostya Vasilyev
06.04.2011 20:46, Manish Garg пишет: This code was working fine but after some change at the server side, I am getting this exception. Perhaps the server returns different class names in its response from before. Dump whatever data you're getting from the server, inspect it, and check to

[android-developers] Re: Using a 9 patch as a listSelector affects padding

2011-04-06 Thread jsera
Perfect! Setting the content explicitly worked. Thanks. On Apr 5, 6:09 pm, Dianne Hackborn hack...@android.com wrote: I believe ListView just uses whatever padding the selector drawable reports.  The first thing, then, is to verify there isn't a problem in your drawable.  Write a little code

[android-developers] Develop Software or Systems? Receive Guaranteed $10 or have $10 Donated to FIRST; Chance to Win an iPad 2

2011-04-06 Thread OnTargetEmbedded
VDC is conducting its annual survey of embedded engineers, and if you are involved in the engineering of mobile or embedded systems/ software, this is your chance to influence key embedded solution suppliers. The research covers embedded software, hardware, tools, and development practices. In

Re: [android-developers] Re: MotionEvent.getEdgeFlags() never reports non-zero value

2011-04-06 Thread Dianne Hackborn
The edge flags won't tell you this happened, they are just set when the down event is at the edge of the screen. You can do the same thing yourself just by looking at the coordinates of the event and seeing if it is at your edge. I don't think there is any information coming from the touch

Re: [android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Dianne Hackborn
It depends on what you want to do. Usually the bulk of the parameters are provided through the XML attributes, keeping them together with the rest of the UI definition. The activity gets involved where there are things it wants to provide that can only be determined at runtime, not from static

Re: [android-developers] Re: Memory managing my list adapter

2011-04-06 Thread Dianne Hackborn
Oh also if you start using fragments, your whole approach breaks down because there is no way for the view to know the fragment that is inflating it. In fact for fragments usually the interaction with the views happens right after they are inflated, before they have even been attached to the

[android-developers] Bluetooth Walkie Talkie

2011-04-06 Thread Aditya Singal
Hi, I am trying to implement a walkie talkie set between two android mobile phones using bluetooth connection. But I am not sure how to send audio data as a stream through bluetooth. So far I am trying to use media recorder to capture audio. mRecorder = new MediaRecorder();

Re: [android-developers] Re: How to pass configuration parameters to custom views during construction

2011-04-06 Thread Dianne Hackborn
Set them in the setting, keep that stored in a variable in the view, and use that value in onMeasure or wherever else you need it. That way the view can initialize it with a reasonable value in its constructor (or from the layout attributes) and the activity can override it. If a change in the

[android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread Hari Edo
The characters are made to be the same width as all other Chinese characters, so that text will align as expected. Even if I knew NOTHING about Unicode, or UTF-8 encoding, I might decide to type all of the digits on the Chinese soft keyboard, then cut and paste them into my Java code, making a

Re: [android-developers] How much time it will take approximately ?

2011-04-06 Thread Filip Havlicek
Depends on number of things I think, but I would guess it shouldn't be more than one minute. 2011/4/6 Abhilash baddam abhilash.androiddevelo...@gmail.com Hi, can anyone is having idea that how much time it will take approximately to connect from one- WiFi to another WiFi. Suppose i

[android-developers] Re: Get data from EditText

2011-04-06 Thread harsh chandel
String s=(Edittext) findviewbyid(R.id.edittext01).getstring.tosring(); On Apr 4, 12:36 pm, rishabh agrawal android.rish...@gmail.com wrote: How to get data from EditText how to stored in Buffer i.e Integer.. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Getting rid of white line in Tab Widget

2011-04-06 Thread harsh chandel
there is set background property in tabwigdet On Apr 4, 11:13 am, AlexBonel alexbo...@inbox.ru wrote: Didn't find any discussion of this problem in the group. How can I get rid of the white line under tab widgets in TabActivity? And if anybody knows I would be verry gratefull if you would also

[android-developers] Re: WebView as map

2011-04-06 Thread harsh chandel
use overlays in map in overlays you can use drawable images On Apr 4, 1:28 pm, hEngi unnam...@gmail.com wrote: Hi, I'm new in android. I'd like to use a picture as a map. The easiest way is WebView. There is zoom and i can pull the image etc. But i have a problem. I cannot use my picture

Re: [android-developers] Re: Chinese soft keyboard and unknown character set

2011-04-06 Thread Kostya Vasilyev
Are they actually different characters, or the good old ones, just drawn with a wider, Chinese font? 06.04.2011 21:59 пользователь Hari Edo hari@gmail.com написал: The characters are made to be the same width as all other Chinese characters, so that text will align as expected. Even if I

  1   2   3   >