[android-developers] AIDL read exception while returning parameter

2011-05-05 Thread srihari babu
I am implementing AIDL interface for remore service. i am getting exception while reading exception from remore service over AIDL interface. Any suggestions are highly appreciated. Thanks, Srihari.R -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: problem with in-app billing

2011-05-05 Thread D S
Thanks Nikolay, That's what I was missing. I needed to put a signed app on the device (I assume that's what you meant by release version). Interesting that the test sku's work, but created sku's don't work without signed app.. Thanks, DS On May 2, 9:18 pm, Nikolay Elenkov

[android-developers] wried UI issue..

2011-05-05 Thread knocker
I am facing weird UI behavior issue. When I set *listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);* onListItemClick behave incorrectly... Let me know if I am missing anything here. When I comment following line listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); This UI works fine as

Re: [android-developers] AIDL read exception while returning parameter

2011-05-05 Thread Tahu
HI I would like to get some help in establishing a connection between Android PDA client and a desktop PC . I am not able to receive the message that i send from client ,no error messages but simply the message are not reaching the desktop PC . Could any one help .? I am able to successfully

[android-developers] Re: 1380 Paid Applications in One Free Torrent then How to SELL it?

2011-05-05 Thread mot12
This is a significant problem on Android. I am making money ok but I can only imagine how things would be if piracy wasn't so easy on this platform. - Constantly improve your app. If you have a cool app that people talk about, they don't want a version that's half a year old. - Sell things within

[android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread Kostya Vasilyev
Copying back to the list. This looks like an emulator issue. Can you access the site with the emulator's web browser? I would guess not. And looking at the last line in the log: Address family not supported by protocol I would guess that it's IPv6 related. PS - Don't use hardcoded strings

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Kostya Vasilyev
This looks fragile - it depends on the service to keep running forever, which is 1) a bad idea 2) may not last long, especially on Android 2.0 and later. It also does not help if the Launcher is kicked out of memory, which is a rare event, but does happen sometimes. My preferred solution is

Re: [android-developers] Re: Urdu Support in Android message

2011-05-05 Thread Naveed Ahmad
thanks for reply.. well if i made app for it.. i think it will work ..what you say about this? On Thu, May 5, 2011 at 6:54 AM, Zsolt Vasvari zvasv...@gmail.com wrote: - Get the source code to Android - Localize it - Submit localized data (text/images/etc.) to Google - Wait for it to appear

[android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread beginer
sorry but I don't understand what you said On May 5, 9:52 am, Kostya Vasilyev kmans...@gmail.com wrote: Copying back to the list. This looks like an emulator issue. Can you access the site with the emulator's web browser? I would guess not. And looking at the last line in the log: Address

[android-developers] Android Camera Streaming through RTP/RTSP?

2011-05-05 Thread saha devan
Hi all, How do i stream Android Camera Using RTP/RTSP? I googled it around and found that there are 2 ways: 1) http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system; - They havent mentioned about how to implement the server side? 2)

[android-developers] Fwd: Android Camera Streaming through RTP/RTSP?

2011-05-05 Thread saha devan
Hi all, How do i stream Android Camera Using RTP/RTSP? I googled it around and found that there are 2 ways: 1) http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system; - They havent mentioned about how to implement the server side? 2)

[android-developers] Android 2.3.4. on Nexus S Calendar stuck

2011-05-05 Thread Andre Schaefer
hello, my calendar cannot be replicated completely with Exchange. Obviously there is one entry stopping the replication. See log below. I have no problem with replication when using Nitrodesk. W/RecurrenceProcessor( 453): DateException with

Re: [android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread Kostya Vasilyev
Can you access the site with the emulator's web browser? 05.05.2011 12:17, beginer пишет: sorry but I don't understand what you said On May 5, 9:52 am, Kostya Vasilyevkmans...@gmail.com wrote: Copying back to the list. This looks like an emulator issue. Can you access the site with

[android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread beginer
Yes On May 5, 10:35 am, Kostya Vasilyev kmans...@gmail.com wrote: Can you access the site with the  emulator's web browser? 05.05.2011 12:17, beginer пишет: sorry but I don't understand what you said On May 5, 9:52 am, Kostya Vasilyevkmans...@gmail.com  wrote:  Copying back to

[android-developers] Camera standby when screen is off?

2011-05-05 Thread Ricardo Silva
Hello, If an application is using the camera and the screen goes off, the camera (hardware/software) continues to work or is disabled? I want to know to avoid draining the battery. Thanks Ricardo Silva -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
Does what you suggested mean that all the brunt work is performed by the service, and that this merely passes a RemoteViews to the appwidget for displaying etc? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: problem with Linkify.addLinks(

2011-05-05 Thread Kostya Vasilyev
Weird. I wonder if there is some unprintable character somewhere, or perhaps a national (accented character) somewhere in your URL. Change the Intent construction like this: Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(la_dire)); And double check the URL to make sure it

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Kostya Vasilyev
Not specifically. It's not about where you push the RemoteViews from, it's about what's in it. What I do in my code is make sure that each and every RemoteViews object is complete, i.e. has calls to show data (setTextViewText, etc.) as well as set any pending intents. Whenever something

Aw: Re: [android-developers] Determine if device has only SoftMenu Keys ?

2011-05-05 Thread Andy
If you have a Game / App that uses a Full Screen you might want to make sure that Tablets that only have softkeys are not running in a Dead End, because afaik softkeys are not visible on certain views. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: 1380 Paid Applications in One Free Torrent then How to SELL it?

2011-05-05 Thread Marcin Orlowski
On 5 May 2011 09:34, mot12 martin.hu...@gmail.com wrote: - Limit the lifetime of your app so the app requires updates every few months (this is a tricky one, you are likely to lose a lot of users if you don't alert them well in in advance that an update is required). My experience with this

[android-developers] [android-developer] exception catch sequence

2011-05-05 Thread a a
Dear all devs, try{ File newfile = new File(prefix); FileInputStream fileInput = new FileInputStream(newfile); BufferedInputStream buf = new BufferedInputStream(fileInput); final DataInputStream dataInput = new DataInputStream(buf); .. . }

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
I think I understand you... but I'm not sure that I do completely. Having not used services for updating (or for managing updates) let me first ask what you mean by pushing updates so I don't misunderstand. Does that mean that in a service I instantiate an appWidgetManager, and then call its

Re: [android-developers] Resume for the post of Android Application Developer

2011-05-05 Thread lbendlin
keep in mind that you may be using phrases that are outside the OP's cultural context (as in mutual misunderstanding) -- 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

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Kostya Vasilyev
05.05.2011 14:22, Niall ?: I think I understand you... but I'm not sure that I do completely. Having not used services for updating (or for managing updates) let me first ask what you mean by pushing updates so I don't misunderstand. By pushing an update I mean: 1 - Instantiating

Re: Aw: Re: [android-developers] Determine if device has only SoftMenu Keys ?

2011-05-05 Thread lbendlin
From an earlier post here I remember that it is not possible to distinguish between hardware and software keys with the same function (including IME) -- 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: exception catch sequence

2011-05-05 Thread Smiley
Make sure you close every object that you don't need (and has a close method). Do that in the finally block. :-) On May 5, 1:20 pm, a a harvey.a...@gmail.com wrote: Dear all devs, try{             File newfile = new File(prefix);             FileInputStream fileInput = new

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
Thanks for taking the time to explain. I think I understand it much better now. And I think it also makes sense, which is nice too :) I may come back here if I have more questions, but I think not. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Strangely !! The RAM usage of my APK over 20MB

2011-05-05 Thread lbendlin
which objects would consume that RAM? Large images? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] issue with setting wallpaper using wallpaperManager.setBitmap

2011-05-05 Thread mack2978
Hi All, I am trying to set the image as wallpaper from code and it is working fine. But when i looked the setted wallpaper, it seems to be streched, any idea, why it has streched? below is my code: package com.example.HelloGridView; import java.io.IOException; import

[android-developers] Re: Strangely !! The RAM usage of my APK over 20MB

2011-05-05 Thread Adam Ratana
Use DDMS and profile your allocations in eclipse. Are you creating new instances in an ondraw method, etc. see the developer docs on performance. On May 4, 10:33 am, Leon Worker leon@gmail.com wrote: Dear Senior Developers :    I'm a junior Android developer. And i caorn't understand where

Re: [android-developers] Re: Strangely !! The RAM usage of my APK over 20MB

2011-05-05 Thread Gergely Juhász
You could try to use some memory analyzer tool. I use MAT for my project: http://www.eclipse.org/mat/ Search for google how can you use it with android but here is a good start: http://biowallet.blogspot.com/2009/04/analyze-android-15-memory-dump.html On 5 May 2011 14:07, Adam Ratana

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
Just another quick question. I want to keep track of update-to-update changes. So I have a ListListint variable containting my data (which I've parsed from the net). At the end of updating I copy this value to another variable. I need to keep track of these variables. Does it make more sense

[android-developers] Re: Custom SeekBar View with x thumbs design

2011-05-05 Thread lmp
I've uploaded my shot at a working implementation at: https://github.com/Larpon/RangeSeekBar If anyone is interested. As always you are welcome to contribute to the project or ask questions. Cheers -- lmp On Apr 14, 1:26 pm, lmp leverpos...@gmail.com wrote: Hi group, I'm trying to make a

[android-developers] Problem compling BD only in Desire HD

2011-05-05 Thread iñaki
Hi, I have a weird error only in HTC Desire HD... When I start activity, It open a DB with a query The first time that user open activity system returns: android.database.sqlite.SQLiteException: no such table: MyTable: , while compiling: SELECT * FROM MyTable With other kinds of phones doesn´t

[android-developers] Re: Logcat View fails with Could not create the view: For input string: our

2011-05-05 Thread Robert Rowntree
same issue on 3.7 M6 on windows vista using a logcat filter containing : resolved by following instructions in previous post this bug makes the filter pretty useless for implementing string patterns -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: SAX PARSER

2011-05-05 Thread MEDO
thank you for your post On 5 مايو, 06:35, Robert Massaioli robertmassai...@gmail.com wrote: For the record I think you would be better off with the Simple XML Library:http://massaioli.homelinux.com/wordpress/2011/04/21/simple-xml-in-and... -- You received this message because you are

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Kostya Vasilyev
AppWidgetProvider objects are transient, can be destroyed very quickly after they're needed (for onUpdate, etc.). Because of this, storing data there is pretty much useless. Using the service is better, but services can be stopped (by the system or by the user). I recommend making a static

[android-developers] Re: SAX PARSER

2011-05-05 Thread Streets Of Boston
Yep, good choice. Also Piccolo XML pull/sax parser is a very lean and fast parser: http://sourceforge.net/projects/piccolo/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: Re: [android-developers] Determine if device has only SoftMenu Keys ?

2011-05-05 Thread TreKing
On Thu, May 5, 2011 at 4:51 AM, Andy m...@tekx.de wrote: If you have a Game / App that uses a Full Screen you might want to make sure that Tablets that only have softkeys are not running in a Dead End, because afaik softkeys are not visible on certain views. If I understand you correctly,

Re: Re: [android-developers] Determine if device has only SoftMenu Keys ?

2011-05-05 Thread Marcin Orlowski
On 5 May 2011 15:55, TreKing treking...@gmail.com wrote: On Thu, May 5, 2011 at 4:51 AM, Andy m...@tekx.de wrote: If you have a Game / App that uses a Full Screen you might want to make sure that Tablets that only have softkeys are not running in a Dead End, because afaik softkeys are not

[android-developers] ANR in com.android.camera

2011-05-05 Thread Pandi
Hi, I am getting ANR from camera if I press start/stop recording continuously . How do I analyze this? Which thread is creating problem? ANR Trace: - pid 3567 at 2011-05-05 13:02:57 - Cmd line: com.android.camera DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0) main

[android-developers] Re: 1380 Paid Applications in One Free Torrent then How to SELL it?

2011-05-05 Thread nemik
Please try to imagine the percentage of people you know around you that would be capable of: * enabling debug to install apps remotely * getting the necessary BitTorrent programs * using them to download this file * extract that apps and install them to the phone I can't imagine that is even

[android-developers] Re: Event based communication between two apps.

2011-05-05 Thread Jacob
sorry; It seems I cannot dislcose that according to my manager. But I do understand if the question can't be answered without more internal details. Objective is to stay commnucated and know the other app is alive and if one is down, inform the user of the status and do some minor data work. On

[android-developers] Re: 1380 Paid Applications in One Free Torrent then How to SELL it?

2011-05-05 Thread Streets Of Boston
I 100% agree with nemic. You can put tons and tons of effort in fighting piracy and maybe get a small return on it. It's better to spend this energy and effort in improving/augmenting your app for your paying customers. -- You received this message because you are subscribed to the Google

[android-developers] Re: Event based communication between two apps.

2011-05-05 Thread Streets Of Boston
Maybe you can answer this: You can only have one app (screen/activity) active at any given time. If one app is in the foreground (i.e. it is active), the other app is in the background at best (maybe even been killed). What does 'down' mean in your situation? Is one app an activity (it has a

[android-developers] How to Implement onChildClick Listener

2011-05-05 Thread Me
I am following the example code given on android developer site for develop Expandable List View link as http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

[android-developers] Re: Eclipse/ADT not rebuilding correctly

2011-05-05 Thread Jake Basile
This problem has not gone away, and is getting worse. I need to fully restart eclipse so often now to get it to use my new code that I do it about 15 times a day. Incredibly frustrating, and a waste of my time. -- You received this message because you are subscribed to the Google Groups

[android-developers] obtaining true dimensions of a View larger than the screen

2011-05-05 Thread kellogs
Hello, trying to implement a dynamic scrolview wrapping mechanism here. But no matter what method I try from the View class they all return me the view's part of height that is currently visible on screen. So if there are 360 pixels available for a textview that has lots of text and is currently

[android-developers] Market: Significiant installations drop

2011-05-05 Thread Marcin Orlowski
Hi, Since nobody complains about such posts here - it's just me or you see same significiant drop of active installation today (like 1/5 of volume)? Mostly on all apps. Is it sign of new Market fearture coming? ;/ Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
Suppose I have a status notification TextView on my appwidget. During my big update function (that returns the single RemoteViews object) would be be OK to call a method that'd update the value of the text? Like: void updateStatus( String str ) { // update the status text R.id.statusUpdate

Re: [android-developers] Re: Event based communication between two apps.

2011-05-05 Thread TreKing
On Thu, May 5, 2011 at 10:17 AM, Jacob jacobroutolo...@gmail.com wrote: Both apps are just services and have a broadcast recevier each. Is there some reason that you can explain as to why they're two separate apps? I mean if they're this dependent, separate apps don't make sense (to me).

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Kostya Vasilyev
It would be Ok, as long as: - updateAppWidgetLayout constructs a single RemoteViews; - this RemoteViews is passed into updateStatus; - updateStatus calls remoteViews.setTextViewText. You can call setTextViewText multiple times on a *single* RemoteViews, but that's kind of pointless, because

Re: [android-developers] Market: Significiant installations drop

2011-05-05 Thread TreKing
On Thu, May 5, 2011 at 10:36 AM, Marcin Orlowski webnet.andr...@gmail.comwrote: Since nobody complains about such posts here - it's just me or you see same significiant drop of active installation today (like 1/5 of volume)? Mostly on all apps. Is it sign of new Market fearture coming? ;/

[android-developers] Re: Event based communication between two apps.

2011-05-05 Thread Jacob
ah.! good question. I should have mentioned that. Both apps are just services and have a broadcast recevier each. They have one minor ui for the user to start/register them; once started, no more ui. only some notifications/informations to the user. User can uninstall both the apps when they

[android-developers] How does the default News widget animate it's content

2011-05-05 Thread Joseph Earl
From my experience with Widgets the following apply: - You cannot apply Animations to RemoteViews - You cannot use custom classes in RemoteViews, and so there is no way to provide a custom view with animation built in - You can use a Layout Animation, but this only plays when the widget is

Re: [android-developers] How does the default News widget animate it's content

2011-05-05 Thread Kostya Vasilyev
Could be a ViewFlipper. I see it's annotated with @RemoteView in 2.2 sources. And further, setFlipInterval is annotated with @android.view.RemotableViewMethod. -- Kostya 05.05.2011 20:05, Joseph Earl пишет: From my experience with Widgets the following apply: - You cannot apply

Re: [android-developers] Market: Significiant installations drop

2011-05-05 Thread Marcin Orlowski
On 5 May 2011 17:56, TreKing treking...@gmail.com wrote: On Thu, May 5, 2011 at 10:36 AM, Marcin Orlowski webnet.andr...@gmail.com wrote: Since nobody complains about such posts here - it's just me or you see same significiant drop of active installation today (like 1/5 of volume)? Mostly

[android-developers] Re: How does the default News widget animate it's content

2011-05-05 Thread Joseph Earl
That it is probably it. Does anyone have suggestions for catching the exception that will be generated if I try this on 2.1 or lower device (with Reflection) so I could swap out the flipper for something that works on these devices. On May 5, 5:11 pm, Kostya Vasilyev kmans...@gmail.com wrote:

Re: [android-developers] obtaining true dimensions of a View larger than the screen

2011-05-05 Thread Dianne Hackborn
The only thing View knows is these methods it calls on itself to have subclasses tell it how to show the scroll bars: http://developer.android.com/reference/android/view/View.html#computeHorizontalScrollExtent() Beyond that, you will need to look at a specific class that is doing scrolling. On

Re: [android-developers] Event based communication between two apps.

2011-05-05 Thread Dianne Hackborn
The normal way you do this on Android is by providing an IBinder object across the processes and using IBinder.linkToDeath. That said, as others have commented, stay connected with each other and know when an app stops working are *really* nebulous concepts on Android, and if you are thinking in

Re: [android-developers] Re: android nfc tech API help

2011-05-05 Thread priti -
From android point of view it doesnt matter what the command data is, its all byte[] to the transcieve. I try to get a isodep first. if that fails i try to get a NfcB tag. In my cardB case, I tried to connect * transcieve using ISODep and get back 6700 If I try to get a NfcB tag, the connect

[android-developers] Re: issue with setting wallpaper using wallpaperManager.setBitmap

2011-05-05 Thread mack2978
Anybody pls answer this? On May 5, 4:29 pm, mack2978 smashmah...@gmail.com wrote: Hi All, I am trying to set the image as wallpaper from code and it is working fine. But when i looked the setted wallpaper, it seems to be streched, any idea, why it has streched? below is my code: package

[android-developers] Re: store image from my application to some internal device storage

2011-05-05 Thread mack2978
Thanks Dianne On May 4, 8:19 pm, Dianne Hackborn hack...@android.com wrote: There is not a shared directory for all apps on internal storage.  The shared directory for all apps is the directory you get for external storage from Environment.  (Which these days may not be external any more, but

[android-developers] Android app crashes when invoking getSystemService(LOCATION_SERVICE)

2011-05-05 Thread Prayag Pathak
Hi guys, I am trying to get the latitude and longitude of the current location. Let me clarify, I dont want to implement a listener that will create an event when the location will be changed. I am trying to create an app that will record the current location on a button click event. Following is

Re: [android-developers] Android app crashes when invoking getSystemService(LOCATION_SERVICE)

2011-05-05 Thread Mark Murphy
On Thu, May 5, 2011 at 2:20 PM, Prayag Pathak prayag.d.pat...@gmail.com wrote: I am trying to get the latitude and longitude of the current location. Let me clarify, I dont want to implement a listener that will create an event when the location will be changed. You act as though you have a

[android-developers] Re: HorizontalScrollView automatically scrolling

2011-05-05 Thread MB
After digging a little further: The scrolling is caused by HorizontalScrollView.onSizeChanged. The HSV gets the currently focused item and makes sure that it is visible in the scroll in the new size, with the following code (from the HSV source): View currentFocused = findFocus(); if (null

Re: [android-developers] Which Reference System is used by the Google Maps Api

2011-05-05 Thread Julian
Anyone? 2009/11/25 Mathias mathias.menningh...@googlemail.com Hi, which Spatial Reference System is used by the Google Maps API and in which Reference System are the GPS coordinates to be received by a LocationProvider? I only can assume that the Location Services use WGS84, or EPSG:4326.

[android-developers] Re: Android app crashes when invoking getSystemService(LOCATION_SERVICE)

2011-05-05 Thread Prayag Pathak
Great! You are correct, Mark. I used LogCat The NullPointerException is getting generated on line 34 which has getLastKnowLocation() method. Now I updated the code and even then the same error comes : LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);

[android-developers] Re: Android app crashes when invoking getSystemService(LOCATION_SERVICE)

2011-05-05 Thread Prayag Pathak
Hi Mark, Thanks for the answer. But still its not working. I included the code segment that updates the code. But still not working. Following is the code : LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener ll = new

[android-developers] Oauth and google apis

2011-05-05 Thread patjackson52
I'm working on using google docs list api and spreadsheet api in android. I'm having trouble getting Oauth to work and there does not appear to be any libraries or sample code on the web. The only example I have found is a picasa api example on the google data api site and I wad unable to get

Re: [android-developers] Re: Android app crashes when invoking getSystemService(LOCATION_SERVICE)

2011-05-05 Thread Mark Murphy
requestLocationUpdates() is asynchronous. It may take seconds or more for the location to be determined, depending on the location provider being used and the user's circumstances (e.g., is the user getting a GPS signal?). You cannot simply call getLastKnownLocation() immediately after calling

Re: [android-developers] Re: 1380 Paid Applications in One Free Torrent then How to SELL it?

2011-05-05 Thread Chris Stewart
I 100% agree with nemic. You can put tons and tons of effort in fighting piracy and maybe get a small return on it. It's better to spend this energy and effort in improving/augmenting your app for your paying customers. +1. My recent apps have been all over the piracy sites but instead of

[android-developers] Re: SDCard installs - auto or preferExternal?

2011-05-05 Thread jtoolsdev
The manifest display in Eclipse defaults to auto. On a recent release I set it to preferExternal and there seemed to be some reports of difficulty. Problem is the docs say the same thing for both settings and that the user can move the installation. I don't have a device that is 2.2 or better

RE: [android-developers] Re: Android app crashes when invoking getSystemService(LOCATION_SERVICE)

2011-05-05 Thread Tommy
You are getting the null pointer b/c getLastKnownLocation has nothing to give... In this case you would need to call up the GPS listener... When it gets the current fix it will pop off its subroutine.. Inside there you can get the lat/lon do what you need to do with your button click then kill the

[android-developers] Is there a way to include permissions only during Testing?

2011-05-05 Thread Greg Giacovelli
Hi, I have a test project that mocks out a bunch of locations and sends them through my application project. I don't want my application to include the ACCESS_MOCK_LOCATION permission so I wanted to include it in the Test project. This seems to not give me the expected result as I always get a

[android-developers] getFirstVisiblePosition() not returning the correct value

2011-05-05 Thread Eric
1. I took the advice of others on this list and changed my drawing code so that if the number of items in the ListView has not changed, instead of calling ArrayAdapter.notifyDataSetChanged(), I instead iterate over the ListView visible children and attempt to update them manually.

[android-developers] Re: getFirstVisiblePosition() not returning the correct value

2011-05-05 Thread Eric
It seems to me I need to assume getFirstVisiblePosition() can get out of sync with the data set, and in order to update my data manually (without calling ArrayAdapter.notifyDataSetChanged) is that I need to iterate over the data set items, not the indexes defined by getFirstVisiblePosition() and

[android-developers] Re: obtaining true dimensions of a View larger than the screen

2011-05-05 Thread kellogs
Good hint. I was able to do int h1 = computeVerticalScrollExtent(); int h3 = computeVerticalScrollRange(); if (h1 == h3) { //switch to linearlayout wrapper } inside a ScrollView wrapper. The above methods return the same thing on a LinearLayout though (and probably also on regular Views),

[android-developers] Re: obtaining true dimensions of a View larger than the screen

2011-05-05 Thread kellogs
Good hint. I was able to do int h1 = computeVerticalScrollExtent(); int h3 = computeVerticalScrollRange(); if (h1 == h3) { //switch to linearlayout wrapper } inside a ScrollView wrapper. The above methods return the same thing on a LinearLayout though (and probably also on regular Views),

[android-developers] xliff:g and Multiple substitutions specified in non-positional format error.

2011-05-05 Thread Ryszard Wiśniewski
I've found if you tag substitutions in string resource with xliff:g, aapt won't throw above error. First, I thought aapt automatically position substitutions using xliff:g ids, e.g.: res/values/strings.xml: string name=fooxliff:g id=bar%d/xliff:g xliff:g id=baz%d/xliff:g/string

[android-developers] Question about Android 2.2/2.3 and Hardware accelerated graphics

2011-05-05 Thread Videoguy
Hi Does Android 2.2/2.3 use hardware accelerated graphics primitives for different view operations (draw, animations etc)? Lets say the platform it runs on has GPU with OpenGL driver for it. Do graphics operations use it automatically? Or Does the developer have to use GLSurfaceView and other

[android-developers] Re: getFirstVisiblePosition() not returning the correct value

2011-05-05 Thread Eric
I figured it out. The long/short of it is that notifyDataSetChanged() does NOT cause ListView.getFirstVisiblePosition() to get updated immediately -- it gets updated on NEXT redraw of the ListView. I had some code that was causing my display method to be called twice in the same event loop. In

[android-developers] check before publish with LVL, the Application Licensing

2011-05-05 Thread veetowner
We have finished implementation with LVL, and about ready to publish. Previously, we developed the app with separated publish account so that the whole team can get access to test environment. Now, we have done that, we created a build with package name and key with our official publish account

[android-developers] Re: getFirstVisiblePosition() not returning the correct value

2011-05-05 Thread Streets Of Boston
Good find! About the multiple calls to notifyDataSetChanged() in the same 'event loop' cycle: I don't think it will cause multiple redraws, much like multiple calls to a view's 'invalidate()' method in the same event-loop cycle that won't cause multiple redraws either. -- You received this

[android-developers] Re: Sending APDU Command from Nexus S

2011-05-05 Thread fordeveloper
Hi, Am facing the exact same issue, and the logcat shows that the native function seems to be losing the connection to the card on the transcieve(). I increased the timeout and that didn't solve the issue either. Please let me know if you find a solution :-) Thanks, Priti On May 3, 11:50 pm,

[android-developers] Button in a ListView cell

2011-05-05 Thread Eric
I have seen dozens of posts about people trying to put a clickable Button in a ListView cell, along with other text, and apparently nobody has been able to get it to work. Here is what I need to do: 1. Have a couple of TextViews in a ListView cell, with a clickable Button on the right-side of

[android-developers] Re: Button in a ListView cell

2011-05-05 Thread Eric
and also: 6. The trackball D-pad will ideally allow me to navigate not only to every cell in the ListView, but also navigate over the clickable Button and give it trackball focus such that I can run the Button action from the Trackball. -- You received this message because you are subscribed to

[android-developers] adding style in xml breaks onClick events.

2011-05-05 Thread denov
when i add the style attribute for the my relativeLayout below it breaks the onClick events in my activity. --- style name=list_item_bl parent=text_large_bl item name=android:paddingRight4sp/item item name=android:paddingLeft4sp/item item

Re: [android-developers] Button in a ListView cell

2011-05-05 Thread B Lyon
So you were able to get everything to work without the trackball case? On Thu, May 5, 2011 at 6:37 PM, Eric e...@alum.mit.edu wrote: I have seen dozens of posts about people trying to put a clickable Button in a ListView cell, along with other text, and apparently nobody has been able to get

[android-developers] Mouse Pointer

2011-05-05 Thread TheBear
Anyone know how to create a mouse pointer for the finger ?? I have a framelayout which displays an ImageView This must be the background image Then on top I am trying to draw lines I'm trying to have a mouse pointer (looks more like a target sites) so that you can fix the start of the line

[android-developers] Re: Button in a ListView cell

2011-05-05 Thread Eric
On May 5, 7:11 pm, B Lyon bradfl...@gmail.com wrote: So you were able to get everything to work without the trackball case? It depends on what you mean by 'work'. I was able to hack things to work. The ListView steals focus from the inner-widgets if you set an OnItemClickListener. So I had

[android-developers] Android Market: issue uploading image assets

2011-05-05 Thread ferran fabregas
Hi! When I try to upload the app high resolution icon image o app screen capture to android market, browser give me next error: Unable to parse response. If you have a browser extension or add-on installedwhich changes the JSON response, please disable and refresh this page. I've tried with

[android-developers] Re: How to know if is the first execution after device reboot.

2011-05-05 Thread ferran
Thanks! I've done it with a reciver attending ACTION_SHUTDOWN signal, and using shared preferences to save the state. Sorry, i'm newbie and I'm learning... On May 4, 11:47 pm, Justin Anderson magouyaw...@gmail.com wrote: * Hi! I want to know if there are any method to know if is the first

Re: [android-developers] [android-developer] exception catch sequence

2011-05-05 Thread Shruthi Varma
Use alll, what's the problem in that. An object.close() doesn't give you exception if you have initialized that object. But still I think these 3 might be important as it deals with the inputstream. fileInput.close() buf.close() dataInput.close() InputStreams must be closed after its contents

[android-developers] help in android call logs

2011-05-05 Thread आशुतोष हिन्दुस्तानी
hi all, please tell me how can i get call history in android app -- Thanks Ashutosh Mohle Software Engineer CS-KNIT-2010 Praying for the peace and love for all -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How to show the soft keyboard on native activity

2011-05-05 Thread Miles
When I try to use ANativeActivity_showSoftInput(), it doesn't bring up the soft keyboard. I have tried using ANativeActivity_showSoftInput(engine-app- activity, ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED) and ANativeActivity_showSoftInput(engine-app-activity, ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT)

[android-developers] getting text from edittext in listview.

2011-05-05 Thread Joana Neves
hi! I need to display a listView with rows containning a TextView and a EditText.. The number of rows is variable. Below such listView is a button. All i want is to click on that button and get all text from edittexts above. At this point, i am having trouble fixing the text from not visible rows.

[android-developers] Loading arcGIS map in Tabview

2011-05-05 Thread mLjH
Hi, I'm new to developing Android applications and I'm trying to use arcGIS maps for my application. I've been able to load the map in normal layouts such as Linearlayout and Relativelayout. But when I tried loading the map from a Tabview, the map just doesn't load at all. Looking at the log

[android-developers] how to test activity in portrait orientation - honeycomb

2011-05-05 Thread jjoe64
Hello. I would like to unit test my app in portrait orientation. (For honeycomb the default orientation is landscape.) First I set the orientation to portrait by calling the method getActivity().setRequestedOrientation(...) So far so good. Now I simulate a click on a button and then a new

[android-developers] Update to 2.3.4 with Nexus S GRI54

2011-05-05 Thread NaStYle
Hi all, I am using Nexus S with Build Number GRI54, Baseband version I9023XXKB3. And I received the update notification ... I hold the power button and volume up button at the same time, and screen show that update had an error status 7. Is GRI54 cannot be updated to 2.3.4? Regards -- You

  1   2   >