[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread keyboardr
Chalk one up to the Law of Leaky Abstractions? On Apr 30, 9:19 pm, Eric wrote: > On May 1, 12:01 am, Romain Guy wrote: > > > If you are doing *very* frequent updates (several times per second for > > instance, with let's say a progress bar or some sort of animation) you > > should indeed modify

[android-developers] Re: Enable imported account contacts programmatically

2011-04-30 Thread droidin.net
Anybody? Hints? Thoughts? On Apr 29, 9:46 am, "droidin.net" wrote: > I'm successfully importing external contacts into the newly created > account using this tutorialhttp://goo.gl/sLJeN. The account is setup > to re-sync programmatically and yet to be able to see the synced > contact, unless the

Re: [android-developers] ViewHolder paradigm vs. using View.setTag()

2011-04-30 Thread Romain Guy
You could, but setTag(int, Object) forces you to use unique ids throughout your app. On Sat, Apr 30, 2011 at 9:27 PM, Eric wrote: > In the Google I/O 2010 - The world of ListView talk shown here: > > http://www.youtube.com/watch?v=wDBM6wVEO70&t=17m38s > > a 'ViewHolder' paradigm is suggested to

[android-developers] ViewHolder paradigm vs. using View.setTag()

2011-04-30 Thread Eric
In the Google I/O 2010 - The world of ListView talk shown here: http://www.youtube.com/watch?v=wDBM6wVEO70&t=17m38s a 'ViewHolder' paradigm is suggested to cache views and avoid the findViewById lookup. Could the same thing be achieved by using the setTag(id, Object) method on View, and simply u

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
On May 1, 12:01 am, Romain Guy wrote: > If you are doing *very* frequent updates (several times per second for > instance, with let's say a progress bar or some sort of animation) you > should indeed modify the Views directly. OK. > Adaptor should have a > > > notifyDatasetChangedAtIndexes(in

Re: [android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Romain Guy
notifyDatasetChanged() is used to force ListView to invoke Adapter.getView() again, which may be expensive, depending on what you do in it. ListView does have many optimizations to make notifyDatasetChanged() calls as efficient as possible though. If you are doing *very* frequent updates (several

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
On Apr 30, 11:39 pm, Romain Guy wrote: > Figuring out which items are visible is pretty easy, you can use > ListView.getFirstVisiblePosition() to know what section of your adapter is > visible (getFirstVisiblePosition() + getChildCount() - 1 gives you the last > visible position.) Ok. So are y

Re: [android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Romain Guy
Figuring out which items are visible is pretty easy, you can use ListView.getFirstVisiblePosition() to know what section of your adapter is visible (getFirstVisiblePosition() + getChildCount() - 1 gives you the last visible position.) On Sat, Apr 30, 2011 at 8:35 PM, Eric wrote: > > > On Apr 30,

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
On Apr 30, 11:29 pm, Dianne Hackborn wrote: > I'm not sure what more to say except that this isn't how > notifyDataSetChanged() is supposed to be used.  It is for relatively > infrequent, significant changes to the underlying data.  The typical case is > when a new query has been done in a datab

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
On Apr 30, 11:05 pm, Streets Of Boston wrote: > A call to notifyDataSetChanged redraws all the children in the ListView and > is relatively expensive and you get the side effects you notice in your > example (touch issues). Nobody has yet explained to me how calling notifyDatasetChanged() relat

Re: [android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Dianne Hackborn
I'm not sure what more to say except that this isn't how notifyDataSetChanged() is supposed to be used. It is for relatively infrequent, significant changes to the underlying data. The typical case is when a new query has been done in a database and the adapter is being switched to show the data

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
On Apr 30, 11:05 pm, Streets Of Boston wrote: > Yes, you're right about that. Calling notifyDataSetChanged on the adapter is > the best way to go and you should use it in 99% of cases. However, in some > cases rules should be broken. :) > A call to notifyDataSetChanged redraws all the children i

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread lbendlin
i think this should say "redraws all the *visible* children in the listview" -- 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 emai

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Streets Of Boston
Yes, you're right about that. Calling notifyDataSetChanged on the adapter is the best way to go and you should use it in 99% of cases. However, in some cases rules should be broken. :) A call to notifyDataSetChanged redraws all the children in the ListView and is relatively expensive and you get

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
By the way, this Google I/O video on ListView seems to indicate it is perfectly acceptable, and in fact required, that you call notifyDatasetChanged() when anything in your dataset changes (either individual cell content, or data set size). Nothing in this video says you should be iterating throug

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Eric
On Apr 29, 10:33 pm, Dianne Hackborn wrote: > On Fri, Apr 29, 2011 at 8:43 PM, Eric wrote: > > Sorry, I meant to say I'm calling ArrayAdapter.notifyDataSetChanged(), > > not "ListAdapter.notifyDataSetChanged()". > > This API tells the list view that the entire data set has changed, so it > need

Re: [android-developers] How to get the text height

2011-04-30 Thread a a
thank you, i have solve it 2011/4/30 Kostya Vasilyev : > > http://developer.android.com/reference/android/graphics/Paint.html > > Take a pick: > > - getTextSize() > - getTextBounds() > - ascent() / descent() > - getFontMetrics() > > -- Kostya > > 30.04.2011 17:55, a a пишет: >> >> get the text rec

[android-developers] Re: Fragments for Google Maps add on?

2011-04-30 Thread Streets Of Boston
The new contents of FragmentActivity.java are in my earlier post. The AFragmentActivity.java is a copy of the original FragmentActivity.java with these additional changes: - public class AFragmentActivity extends Activity *implements FragmentActivity* - Then fix the compiler errors f

[android-developers] Re: Documentation for older Android SDK versions?

2011-04-30 Thread Nicholas Johnson
AFAIK, you can't, unless you saved the Android 2.2 SDK when you downloaded it (you might also find someone on the net who has it). However, of all my apps that I have, 3 are developed for Android 1.6 and one is developed for Android 1.5. I don't have too much of a problem reading the SDK. I wo

Re: [android-developers] Documentation for older Android SDK versions?

2011-04-30 Thread B Lyon
I think there's a little option on the page to filter by api level in the kind of upper right On Sat, Apr 30, 2011 at 6:38 PM, Stefan at WPF wrote: > Hello, > when browsing the Android SDK documentation, e.g. > http://developer.android.com/reference/android/preference/PreferenceActivity.html, > t

[android-developers] Documentation for older Android SDK versions?

2011-04-30 Thread Stefan at WPF
Hello, when browsing the Android SDK documentation, e.g. http://developer.android.com/reference/android/preference/PreferenceActivity.html, then this documentation is for the latest Android version (Android 3.0 r1 at the time of writing this). As I am developing for Android 2.2 it is very confusin

Re: [android-developers] Using Preferences From xml resource in BroadCast receiver

2011-04-30 Thread TreKing
On Sat, Apr 30, 2011 at 11:11 AM, Boozel wrote: > Hi can any one give me some code to use Preferences from my > settings.xml Preference file in a BroadcastRecevier? You can get preference settings from a Context, just like anywhere else in your code. ---

[android-developers] Re: Updated .apk wants uninstall first

2011-04-30 Thread Derek Winstead
I checked out this: http://developer.android.com/guide/publishing/app-signing.html#releasemode I created a keytool as the example shows. I have now Right Click Project -> Export and put in the new keystore and alias on the export. I need to first write down everything on my phones version. Then

[android-developers] Re: What I found using big images on an activity

2011-04-30 Thread Streets Of Boston
I figure that multiple smaller images work better than the '1 large image' example you have, since DalvikVM won't need to allocate one large contiguous chunk of memory. I won't worry about it too much. Don't start solving a problem that may not exists in your actual app :-) -- You received thi

[android-developers] Re: Updated .apk wants uninstall first

2011-04-30 Thread #13point7
It is fine to do that, but the Release version has a different signature. So if they have the Development apk installed, then they have no choice but to uninstall that to install the Market apk. This is only the case when going from Development -> Market...any subsequent updates will be fine and

[android-developers] Re: Updated .apk wants uninstall first

2011-04-30 Thread Derek Winstead
Ok, so when I right click my project and Run As -> Android Application it installs on the VM but also creates the .apk file in the bin folder and that is what I'm coping and sending to friends. Is this incorrect to do? I'm still a novice with Android. -- You received this message because you a

[android-developers] Re: Updated .apk wants uninstall first

2011-04-30 Thread JP
The development and release .apk files are signed with different certificates. In other words, when you hand out an .apk that was created when you ran an Eclipse build, you are distributing an .apk that's signed with a cert different than the .apk which you generate for release (which you run throu

Re: [android-developers] Updated .apk wants uninstall first

2011-04-30 Thread Derek Winstead
Where do I change the cert? That doesn't sound like something I've done (knowingly). When doing my development on the ADV with eclipse I make my changes and rerun the program. It reinstalls everything but I don't loose data. Only when I try to push it to a real phone does it want an uninstall.

Re: [android-developers] Updated .apk wants uninstall first

2011-04-30 Thread Dianne Hackborn
I assume you have changed the cert. If this is the cause, no there is nothing you can do about it. The cert is the identity of the author; two apps with different certs are fundamentally different apps and can't be installed on top of each other. On Sat, Apr 30, 2011 at 4:16 PM, Derek Winstead w

Re: [android-developers] How does the ActivityStack behave when it contains thousands of Activities?

2011-04-30 Thread Dianne Hackborn
It doesn't. Don't do that. Allowing the user to keep cycling through activities is fundamentally flawed. Having an application that has more than a handful of activities on the stack is not correct, both for the way the system works and the user experience it causes. On Sat, Apr 30, 2011 at 2:3

[android-developers] Updated .apk wants uninstall first

2011-04-30 Thread Derek Winstead
I have been developing an app I want to share with friends and family for beta testing before I publish it to the android market. Problem is, since I've already had them install a previous version of the app, that when I send them the new .apk to install the installer wants the already installed

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Dianne Hackborn
No do iconView.setVisibility(View.VISIBLE). Don't just make up numbers. On Sat, Apr 30, 2011 at 4:11 PM, Alaeddine Ghribi wrote: > Sorry but i'm not understanding your point. If i make iconView.VISIBLE i > have an error(sorry for my mis-understood).In the XML file i have to do like > android:vi

Re: [android-developers] When exactly do you need to handle DeadObjectException with services?

2011-04-30 Thread Dianne Hackborn
On Sat, Apr 30, 2011 at 4:05 PM, MarcoAndroid wrote: > 1) Does that mean that for all calls of the client to the service's > methods you need to try/catch the DeadObjectException? Even > getService() in onServiceConnected() can throw it? > You need to catch them wherever they can be thrown. You

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Sorry but i'm not understanding your point. If i make iconView.VISIBLE i have an error(sorry for my mis-understood).In the XML file i have to do like android:visibility="visible" and in the JAVA code i normally make iconView.setVisibility(1); ? As pointed in the doc: http://developer.android.com/re

[android-developers] When exactly do you need to handle DeadObjectException with services?

2011-04-30 Thread MarcoAndroid
Hi there, In the Additional Notes section here: http://www.devdiv.com/android/docs/guide/topics/fundamentals/bound-services.html#Binding it says: "You should always trap DeadObjectException exceptions, which are thrown when the connection has broken. This is the only exception thrown by remote met

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Kostya Vasilyev
As was already pointed out by Dianne, View.setVisibility() uses constants, like View.GONE and View.VISIBLE - not arbitrary values like 0 or 1. -- Kostya 30.04.2011 23:56, Alaeddine Ghribi пишет: iconView.setVisibility(1); -- Kostya Vasilyev -- http://kmansoft.wordpr

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Excatly that's the problem, i didn't notice it, i just copied it from my previous project :P ! However, i want to set the image to show after a period, i've maked this: public void onRegistrationDone(String localProfileUri, long expiryTime) { updateStatus("Registered to ser

[android-developers] Tab Content is Displayed Over Tab of Tabs Instead of Below

2011-04-30 Thread plutonianandroid
I am having a layout problem. My tab content is displayed directly over the tabs instead of underneath the tabs. http://schemas.android.com/apk/res/android"; android:layout_height="fill_parent" android:or

[android-developers] Re: AdSense in Admob banner?

2011-04-30 Thread groob
I know where's the problem - my network operator in Poland (Era, from T-Mobile) adds a service called 'Compressor mini' (which is in fact Opera Mini feature), that is to limit data transfer. Unfortunately it adds as well this toolbars. Don't even ask - I'm pissed as hell on them, especially they d

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Kostya Vasilyev
30.04.2011 23:04, Alaeddine Ghribi пишет: I have a problem, the image is not showing even when deleting "visibility" ? Have i a problem with the XML file ? Yes. The view that's above the ImageView is set to fill_parent height, so it takes the entire height of the screen, leaving no room for t

[android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
I have a problem, the image is not showing even when deleting "visibility" ? Have i a problem with the XML file ? Thank you. On 30 avr, 17:06, Dianne Hackborn wrote: > First thing is to actually use one of the correct constants in > View.setVisibility() -- such as View.VISIBLE. > > On Sat, Apr 30

Re: [android-developers] How does the ActivityStack behave when it contains thousands of Activities?

2011-04-30 Thread Kumar Bibek
You will perhaps run into stack overflows or oom. Android will try to kill some of your activities though when it finds necessary On May 1, 2011 12:01 AM, "Scythe" wrote: > In my app I have a about a dozen of different Activities. These > Activities are connected (can call each other with startAc

[android-developers] How does the ActivityStack behave when it contains thousands of Activities?

2011-04-30 Thread Scythe
In my app I have a about a dozen of different Activities. These Activities are connected (can call each other with startActivity()) in such a way, that the user can theoretically keep running in circles - always jumping to the next Activity, never going back. Also, I really need to maintain a prope

[android-developers] Re: System.exit

2011-04-30 Thread Bob Kerns
Perhaps you yourself are getting in the way when you offer offense in this way? I for one am glad that Dianne does not work at the sort of company you describe, and there's really no way to take your remarks addressing her job security but as a personal attack. I'm not sure why you're doing this

[android-developers] Re: System.exit

2011-04-30 Thread Bob Kerns
Perhaps you yourself are getting in the way when you offer offense in this way? I for one am glad that Dianne does not work at the sort of company you describe, and there's really no way to take your remarks addressing her job security but as a personal attack. I'm not sure why you're doing this

[android-developers] Re: System.exit

2011-04-30 Thread Bob Kerns
Perhaps you yourself are getting in the way when you offer offense in this way? I for one am glad that Dianne does not work at the sort of company you describe, and there's really no way to take your remarks addressing her job security but as a personal attack. I'm not sure why you're doing this

[android-developers] Re: How Do You Get Tabhost to Work With Views Instead of Activities !?

2011-04-30 Thread plutonianandroid
Wow so simple, thanks a lot Kostya, struggled with that for so long. On Apr 30, 2:01 pm, Kostya Vasilyev wrote: > I believe the message means this: > >         > should be changed to: > >         > In other words, referencing the id value defined by Android, rather than > assigning a new id val

[android-developers] Re: AdSense in Admob banner?

2011-04-30 Thread groob
Hello, Nikolay! Thanks for your answer. I think it is not the code I should blame here. When I'm launching on my device Admob's examples (BannerEssentials, Banner-Details) I get exactly the same result. Also bannrers in other applications I downloaded from the market look equal. This makes me mor

[android-developers] Handling ACTION_SCREEN in a widget

2011-04-30 Thread Pedro Duque
Hi, I'm doing a widget that needs to be update on screen_on or on user_present. As I'm not hable to register a BroadcastReceiver inside the widget I'm doing it in a Service that is triggered by the widget like this: Widget.java:     @Override     public void onEnabled(Context context) {         s

Re: [android-developers] How Do You Get Tabhost to Work With Views Instead of Activities !?

2011-04-30 Thread Kostya Vasilyev
I believe the message means this: In other words, referencing the id value defined by Android, rather than assigning a new id value in your application. Same with I get this error from LogCat and can't understand why, driving me crazy: 04-30 13:21:26.388: ERROR/AndroidRuntime(12408):

[android-developers] Re: testing NotificationManager and other system services

2011-04-30 Thread Bob Kerns
Better solution: All services should be defined via interface, with nary an implementation class to be seen. Specifying an implementation class, as the current spec does, does not add value -- it removes it. Workaround: Define your own interface class, and your own method that calls getSystemSe

[android-developers] How Do You Get Tabhost to Work With Views Instead of Activities !?

2011-04-30 Thread plutonianandroid
I get this error from LogCat and can't understand why, driving me crazy: 04-30 13:21:26.388: ERROR/AndroidRuntime(12408): Caused by: java.lang.RuntimeException: Your content must have a TabHost whose id attribute is 'android.R.id.tabhost' import android.app.TabActivity; import android.content.res.

[android-developers] Re: Security exception with launchMode="singleTask"

2011-04-30 Thread Akshay Goel
Thanks Dianne. I will have to remove singleTask then. On Apr 30, 6:49 pm, Dianne Hackborn wrote: > Sorry, this is probably a bug in 2.3 with trying to grant a URI permission > to an activity instance that is already running.  I'll look in to this.  In > the mean-time, the only solution may be to

Re: [android-developers] How to exclude test resources from generated APK?

2011-04-30 Thread Greg Brown
I actually don't want them in my .apk file at all. I have been trying to figure out how to filter them out but I haven't found a way to do so. Greg On Apr 30, 2011, at 10:50 AM, Dianne Hackborn wrote: > Do they actually need to be in your main .apk? Generally we like to keep all > test related

[android-developers] Using Preferences From xml resource in BroadCast receiver

2011-04-30 Thread Boozel
Hi can any one give me some code to use Preferences from my settings.xml Preference file in a BroadcastRecevier? Thank you -- 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] Re: Change UI when executing an instruction

2011-04-30 Thread Dianne Hackborn
First thing is to actually use one of the correct constants in View.setVisibility() -- such as View.VISIBLE. On Sat, Apr 30, 2011 at 11:35 AM, Alaeddine Ghribi < alaeddineghr...@gmail.com> wrote: > I've made this: > public void onRegistrationDone(String localProfileUri, long > expiryTime) { >

[android-developers] Re: How to get the text height

2011-04-30 Thread Paul Turchenko
decent()-acent() On Apr 30, 5:49 am, a a wrote: > paint.measureText("text")  return the width, how can i get the height > of the "text"? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

[android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
I've made this: public void onRegistrationDone(String localProfileUri, long expiryTime) { updateStatus("Registered to server."); Log.d("SUCCEED","Registration DONE"); ImageView iconView = (ImageView) findViewById(R.id.connecte

Re: [android-developers] Change UI when executing an instruction

2011-04-30 Thread Dianne Hackborn
setContentView() completely replaces your current UI with a new one. If you just want to make an image shown, you need to modify the current UI -- for example have an ImageView containing the image which you change between View.INVISIBLE and View.VISIBLE. On Apr 30, 2011 10:48 AM, "Alaeddine Ghri

Re: [android-developers] Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Very good idea. So i add the image in the XMl file and i set its visiblity to 0, then when i'm connected to the server i set its visibilty(in java code) to 1 . But, how can i set it in Java ? Thank you for you help. 2011/4/30 Marcin Orlowski > What about just having you all UI elements in one v

Re: [android-developers] Change UI when executing an instruction

2011-04-30 Thread Marcin Orlowski
What about just having you all UI elements in one view but simply hide/show some you want to be visible conditionaly by using setVisibility() on them? Looks like you do not need anything more complicated anyway. Regards, Marcin Orlowski *Tray Agenda * - keep you daily sc

Re: [android-developers] problem after generate a .apk file

2011-04-30 Thread Marcin Orlowski
On 30 April 2011 16:42, Igor Nesralla Ribeiro wrote: > Hi Marcin, > > > > Sorry...my English… > > Well….my real problem is : only my application tag in manifest disappeared > and i don’t know if when I change the app description in design view or when > I export to apk file… > Unless you manage

Re: [android-developers] Re: Query regarding getFlags() of Intent

2011-04-30 Thread Mark Murphy
On Sat, Apr 30, 2011 at 10:51 AM, Manohar Mahapatra wrote: > Thanks for the reply. You are right , I could have used onResume in > my secondary(not root activity) activities, but onResume will be called >  even when I navigate between the activities in my app once it is launched. > . I dont want t

Re: [android-developers] Re: Query regarding getFlags() of Intent

2011-04-30 Thread Manohar Mahapatra
Hi Mark, Thanks for the reply. You are right , I could have used onResume in my secondary(not root activity) activities, but onResume will be called even when I navigate between the activities in my app once it is launched. . I dont want to check the user token during this scenario as it would be

Re: [android-developers] How to exclude test resources from generated APK?

2011-04-30 Thread Dianne Hackborn
Do they actually need to be in your main .apk? Generally we like to keep all test related code (and resources) in a separate .apk that has the Instrumentation components. On Apr 30, 2011 9:48 AM, "Greg Brown" wrote: > Hi all, > > I'm using Eclipse to develop an Android application. I have a numbe

[android-developers] Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Hello, I want to change the UI(if possible just add an image to the UI) when i'm well connected to the server(i'm developping a SIP application) by adding an imaged "Connected" . In fact, i've made this but i have a FC: public void onRegistrationDone(String localProfileUri, long expiryTime) {

RE: [android-developers] problem after generate a .apk file

2011-04-30 Thread Igor Nesralla Ribeiro
Hi Marcin, Sorry...my English… Well….my real problem is : only my application tag in manifest disappeared and i don’t know if when I change the app description in design view or when I export to apk file… That’s it… Thanks Igor From: android-developers@googlegroups.com [mailto

[android-developers] Re: Developing on Inspire 4G

2011-04-30 Thread Kevin TeslaCoil Software
Actually on AT&T you can't use http or dropbox to install APKs because AT&T block sideloading. But enabling the phone's System Settings > Applications > Development > USB debugging and using eclipse or adb is easier anyway. (And like Mark said you may need the usb driver) -Kevin On Apr 30, 12:47

[android-developers] Re: Insights for using query() and MediaStore.Audio.Albums

2011-04-30 Thread Gabriel Simões
No ideas? Please, some help here would be really nice! tnx On Apr 28, 10:06 pm, Gabriel Simões wrote: > Hello, > I´ve been trying to figure a way out to search MediaStore.Audio.Albums > and MediaStore.Audio.Media to retrieve onlly albums from mp3 files. > I can list all albums and retrieve their

Re: [android-developers] Re: Query regarding getFlags() of Intent

2011-04-30 Thread Mark Murphy
On Sat, Apr 30, 2011 at 10:15 AM, Manohar Mahapatra wrote: > My application is a client based financial app and compulsorily it needs to > validate the user token from the server every time it comes to foreground. > This is a security mandate. Then validate the user token in every activity in onR

Re: [android-developers] Re: Query regarding getFlags() of Intent

2011-04-30 Thread Manohar Mahapatra
Hi Dianne, Thanks for the reply. I want to let you know the exact dilemma I am in. My application is a client based financial app and compulsorily it needs to validate the user token from the server every time it comes to foreground. This is a security mandate. Are you aware of any call back( (

Re: [android-developers] How to get the text height

2011-04-30 Thread Kostya Vasilyev
http://developer.android.com/reference/android/graphics/Paint.html Take a pick: - getTextSize() - getTextBounds() - ascent() / descent() - getFontMetrics() -- Kostya 30.04.2011 17:55, a a пишет: get the text rect, then return the rect height, this is text height. 2011/4/30 a a: wrong answe

[android-developers] Re: VP8 player by RTP on Android

2011-04-30 Thread Yoan
I didn't see this group, sorry Thanks for the link On 30 avr, 13:36, Marcin Orlowski wrote: > On 30 April 2011 12:40, Yoan wrote: > > > I found ffplay that can open VP8 videos, and can use RTP protocol. But > > now, I have to adapt ffplay (in C language) for Android. Do someone > > could help me

Re: [android-developers] Re: Query regarding getFlags() of Intent

2011-04-30 Thread Dianne Hackborn
Sorry, this information is not available if your task has has multiple activities in it. On Apr 30, 2011 3:18 AM, "Manohar Mahapatra" wrote: > Hi Dianne, > > I was aware of all these flags. My app has a requirement to know when my > root / secondary activities are brought to focus by long clicking

Re: [android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Dianne Hackborn
Re battery levels -- the batteries on these devices don't simply charge to 100%, they will charge up 100%, then drain down some amount (toward 90%), then charge up again. The Droid's hardware only reports battery level in 10% increments, so you wouldn't see the behavior there. Also some manufactu

Re: [android-developers] How to get the text height

2011-04-30 Thread a a
get the text rect, then return the rect height, this is text height. 2011/4/30 a a : > wrong answer, sorry... > > 2011/4/30 Marcin Orlowski : >> On 30 April 2011 12:49, a a wrote: >>> >>> paint.measureText("text")  return the width, how can i get the height >>> of the "text"? >> >> value you used

Re: [android-developers] How to get the text height

2011-04-30 Thread a a
wrong answer, sorry... 2011/4/30 Marcin Orlowski : > On 30 April 2011 12:49, a a wrote: >> >> paint.measureText("text")  return the width, how can i get the height >> of the "text"? > > value you used in setTextSize() * screendensity factor shall mostly give > what you want. > > Regards, > Marcin

Re: [android-developers] Re: Security exception with launchMode="singleTask"

2011-04-30 Thread Dianne Hackborn
Sorry, this is probably a bug in 2.3 with trying to grant a URI permission to an activity instance that is already running. I'll look in to this. In the mean-time, the only solution may be to not use singleTask for the activity being launched to a preview an attachment. This is actually the pref

[android-developers] How to exclude test resources from generated APK?

2011-04-30 Thread Greg Brown
Hi all, I'm using Eclipse to develop an Android application. I have a number of resource files in my project that are used for unit testing. When I generate an APK file for my app using "Android Tools > Export Unsigned Application Package", the generated file includes these data files. I have not

Re: [android-developers] How to get the text height

2011-04-30 Thread Marcin Orlowski
On 30 April 2011 12:49, a a wrote: > paint.measureText("text") return the width, how can i get the height > of the "text"? > value you used in setTextSize() * screendensity factor shall mostly give what you want. Regards, Marcin Orlowski *Tray Agenda * - keep you dai

Re: [android-developers] problem after generate a .apk file

2011-04-30 Thread Marcin Orlowski
On 30 April 2011 13:47, Igor Nesralla Ribeiro wrote: > Hi, > > I make a app on eclipse , win 7 after this I go on menu export and run > iti export apk file and its seems to be ok for mei published it on > the market...and finish( > > https://market.android.com/details?id=com.riosistem

[android-developers] problem in my project after export .apk file

2011-04-30 Thread Igor Nesralla Ribeiro
Hi, I make a app on eclipse , win 7 after this I go on menu export and run iti export apk file and its seems to be ok for mei published it on the market...and finish( https://market.android.com/details?id=com.riosistemas.butecos&feature=search _result )But the problem goes after t

Re: [android-developers] Send an email in Android selecting only email apps AND specifying attachment mime type

2011-04-30 Thread Mark Murphy
If you are willing to roll your own dialog, you could: Step #1: Create the message/rfc822 Intent, as if you were going to send that way, and use it with PackageManager and queryIntentActivities() to find out who handles it. Step #2: Create the image/png Intent, as if you were going to send that w

Re: [android-developers] Books

2011-04-30 Thread Mark Murphy
On Sat, Apr 30, 2011 at 7:34 AM, Knutsford Software wrote: > What books do you recommend for learning how to develop android apps - > I don't want to relearn Java but I gather you can write them in PHP You will find approximately zero books on writing Android apps in PHP. I say "approximately" be

[android-developers] problem after generate a .apk file

2011-04-30 Thread Igor Nesralla Ribeiro
Hi, I make a app on eclipse , win 7 after this I go on menu export and run iti export apk file and its seems to be ok for mei published it on the market...and finish( https://market.android.com/details?id=com.riosistemas.butecos&feature=search _result )But the problem goes after th

Re: [android-developers] Books

2011-04-30 Thread Marcin Orlowski
On 30 April 2011 13:34, Knutsford Software wrote: > What books do you recommend for learning how to develop android apps - > I don't want to relearn Java but I gather you can write them in PHP > I'd strongly suggest you learn Java. Regards, Marcin Orlowski *Tray Agenda

Re: [android-developers] VP8 player by RTP on Android

2011-04-30 Thread Marcin Orlowski
On 30 April 2011 12:40, Yoan wrote: > I found ffplay that can open VP8 videos, and can use RTP protocol. But > now, I have to adapt ffplay (in C language) for Android. Do someone > could help me to do that ? Maybe I have to use NDK ... > Yes, NDK is your way to go. For further questions on usin

[android-developers] Books

2011-04-30 Thread Knutsford Software
What books do you recommend for learning how to develop android apps - I don't want to relearn Java but I gather you can write them in PHP Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Send an email in Android selecting only email apps AND specifying attachment mime type

2011-04-30 Thread andrew
In my Android App I send email messages with images attached. Using the Intent system to send it, I can do one of the following two things: 1) Specify type as "message/rfc822" so that ONLY email applications are shown in the Chooser. Inconvenience: I cannot specify the mime type of the image I a

[android-developers] How to get the text height

2011-04-30 Thread a a
paint.measureText("text") return the width, how can i get the height of the "text"? -- 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, se

[android-developers] VP8 player by RTP on Android

2011-04-30 Thread Yoan
Hello evebody. First of all, excuse me for my English, but I'm not English-speaker. I'm working on a project, and I need to find or develop a VP8 player by RTP running on Android. That's means an Android application abble to read VP8 videos by network (RTP protocol). I found ffplay that can open

[android-developers] Re: VPN: L2TP: always timeout when Sending SCCRQ

2011-04-30 Thread Jiejing.Zhang
Hi All, After apply this patch https://lkml.org/lkml/2011/1/2/82 pure l2tp VPN is working. But I found L2TP+IPSec PSK, and L2TP+IPSec CRT profile is not working. I can't capture any package in tcpdump, I suspect some crypto related config. could you give me some suggestions ? Thanks. log is

[android-developers] Re: Security exception with launchMode="singleTask"

2011-04-30 Thread Akshay Goel
To add, the exception occurs on this line- mContext.getContentResolver().openInputStream(intent.getData()); where mContext is the activity context. -Akshay On Apr 30, 2:14 pm, Akshay Goel wrote: > Hello, > > I have declared the launch mode of my activity to be singleTask. If I > launch my appl

[android-developers] Security exception with launchMode="singleTask"

2011-04-30 Thread Akshay Goel
Hello, I have declared the launch mode of my activity to be singleTask. If I launch my application, press the home button, go to an email client (gmail in this case) & preview an attachment using my application, I am experiencing a security exception on Android versions 2.3 & later, which says tha

[android-developers] Thread escape group

2011-04-30 Thread a a
I'm modifying the app Gallery3D on android. Meet an issue about thread. There have a DataSouce class which child class object hold the datasouce. MediaFeed is implement the Runnable, and also have a datasouce object. Now, a create a new thread in the datasouce which i wan't to get other data lik

[android-developers] Re: Update Contacts

2011-04-30 Thread Ali Chousein
Hhhmmm, maybe you should try newUpdate(ContactsContract.Data.CONTENT_URI) instead of newUpdate(ContactsContract.Contacts.CONTENT_URI) I hope it helps :-) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] VPN: L2TP: always timeout when Sending SCCRQ

2011-04-30 Thread Jiejing.Zhang
Hi All, Hi Chia-CHi Yeh, I cc you since I found your kernel commit which is enable VPN stuff. I'm doing enable VPN function in an android froyo/gingerbread porting. After apply android pppol2tp, pppopptp related patch in android/common.git, I can success enable PPTP protocol, but I meet problem w

[android-developers] Re: Rotating a fragment

2011-04-30 Thread Zsolt Vasvari
Why would you need to handle the rotation changed event in the first place? I have a complex state data as well in some of my activities, but I have no problems saving it using the normal callbacks. On Apr 29, 2:54 am, Erik wrote: > I have an Activity with different layouts for portrait and land

Re: [android-developers] Removing a specific over lay item

2011-04-30 Thread Marcin Orlowski
On 29 April 2011 20:46, TreKing wrote: > Please i need help its urgent any help > > WHAT KIND OF RESPONSE DO YOU EXPECT IN 4 MINUTES? > Urgent? :) Regards, Marcin Orlowski *Tray Agenda * - keep you daily schedule handy... *Date In Tray*

[android-developers] Re: Flaky Touch Screen on Nexus One

2011-04-30 Thread Doug
On Apr 29, 1:20 pm, lbendlin wrote: > If the touchscreen on the Nexus One acts up there's a simple short term > remedy. Put the device into standby and wake it up again. That seems to > recalibrate the screen. My N1 has regular touch screen problems that are resolved by turning the device off and

  1   2   >