Re: [android-developers] How to pass a String from an activity to a service

2010-08-30 Thread Mark Murphy
On Sat, Aug 28, 2010 at 3:53 AM, Ravi Grandhi wrote: > How to pass a String from  an activity to a service? Attach it as an extra to the Intent being used with either startService() or bindService(). The service can then access the extra via the Intent passed to onStart() or onBind(), respectivel

Re: [android-developers] do not work RECEIVE_BOOT_COMPLETED in emulator?

2010-08-30 Thread Mark Murphy
Remove the LAUNCHER category. On Fri, Aug 27, 2010 at 2:32 AM, semi wrote: > why don't work RECEIVE_BOOT_COMPLETED in emulator? > > > > // AndroidManifest.xml > > http://schemas.android.com/apk/res/android"; >      package="mint.TestService2" >      android:versionCode="1" >      android:version

Re: [android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 1:48 PM, Bret Foreman wrote: > What do you think about the difficulty of synchronizing the scrolling > of the ListViews? I think it will be difficult. I also think your solution will be memory-intensive for large numbers of columns. The "right" answer is for this to be im

[android-developers] Re: Developemtn on LG Ally?

2010-08-30 Thread JavaMan
Hey thanks for the info, I thought the Droid would be way too expensive, but actually, the regular Droid looks cheaper than the Ally. Thanks man!! On Aug 30, 1:19 pm, Kostya Vasilyev wrote: > I think you might be better off getting a Motorola Droid. It's only a > little more expensive on eBay tha

[android-developers] IllegalArgumentException calling Surface.unlockCanvasAndPost ?

2010-08-30 Thread Sandroids
Hi All, In my app, I have the following code (see below). In the market, under Errors, I see that the following exception was reported: java.lang.IllegalArgumentException at android.view.Surface.unlockCanvasAndPost(Native Method) at com.android.internal.view.BaseSurfaceHolder.unlockCanvasAndPost(B

[android-developers] Re: Killi Process with files on SD card

2010-08-30 Thread Ken Yang
Hi, Excuse.. I did it the same way... but it only works on 1.6、2.1 device.. it's doesn't work on 2.2 device, no matter on nexus one or 2.2 emulator... how can you do that on nexus one? this is my code public class serviceSDcard extends Service { private static Context contextSe

[android-developers] Communication between service and activity in Android

2010-08-30 Thread nik_mk
down vote favorite Hi, I create Service class in Android for getting updates od GPS coordinates in all my application. public class ServiceClass extends Service { @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onCreate() { super.onCreate();

[android-developers] getting email address of the account on the phone

2010-08-30 Thread bh23
I am writing an app and I want to send the user a welcome email when they install the app, in order to do this I could prompt them to enter their email address, but I would prefer to just detect the email of their account on the phone and send it without forcing them to type. Is this possible? --

[android-developers] Application that refershese imgView with image from internet

2010-08-30 Thread Antonio Dujmovic
Hi! I'm new to Android programming and I need to make an application that will download image from internet, and refres it every 2-3 seconds. I tried with Timer(); but no luck. So far I have managed to download and show image on button click. I need that on button click I refresh that image in a ti

[android-developers] Can I include Jar file build using SUN JDK in Android application

2010-08-30 Thread Kamal
Hi, I am new to Android. I have a JAR file built using SUN JDK. I want to use it in my Android application. I have added jar file in android application project as mentioned in http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary But the application closes when I tri

[android-developers] Serveral questions regarding bluetooth-stack (Handsfree UUIDs SPP Headset)

2010-08-30 Thread RL Budde
Hello Android-developers, I am quite new to Android development but have several questions about the bluetooth-implementation in Android. Goal: I would like to use an Android-equipped mobile phone as a Handsfree for another mobile phone using the Bluetooth HFP. I was able to use my laptop runnin

[android-developers] How to pause SAXParser

2010-08-30 Thread Aleksey
Hi I'm using SAXParser to parse large xml document from the net. And sometimes I need to pause SAXParser. I know how to stop parser by using SAXException, but how I can paused it? May be can I stop parser and then set up it to pass already parsed tags? Any suggestions, opinions? Thanks -- You r

[android-developers] What is Gdi and Why Should You Care?

2010-08-30 Thread l z
http://www.freedom.ws/www2 If GDI is something new to you, then you will find more information on it shortly. GDI is the company that has the exclusive rights to sell the .ws domains, which stands for website. This is what makes GDI unique. Exclusivity puts Global Domains International on a league

[android-developers] Can you change permissions when you update an app?

2010-08-30 Thread chromedude
I ask because I have an app that I want to launch with permissions that apply to it at that stage but I am planning to release an update that will need more permissions, but I do not want users to not install the original app because it does not make sense to have a certain permission for it. --

[android-developers] @hide on PackageManager.installPackage()?

2010-08-30 Thread Calvin White
Hello, I was wondering if the @hide tag on the documentation for PackageManager.installPackage() and PackageManager.deletePackage() is because these APIs are not meant to be used by general application developers or because they are likely to be changed or removed in the near future? I understand

[android-developers] How to create TextView without write the XML file

2010-08-30 Thread rb
As a newbie, I have been reading posts in learning how to do different functions. Using the Hello World example, I added a textview object to this application but the results come back as false on the screen. Here's my code: main.xml: http://schemas.android.com/apk/res/android";>

[android-developers] How to pass a String from an activity to a service

2010-08-30 Thread Ravi Grandhi
Hi, How to pass a String from an activity to a service? I am developing an application, a simple chat application. My issue is; i am taking Login and password from login page. After tapping the LoginButton my service will start. So, I want pass these two strings to the service.Anyone can g

[android-developers] What is the proper way to close an activity/application?

2010-08-30 Thread Yaniv Gal
I started to develope an application. When I wanted to close the application I clicked on the home screen, but the app is still playing in the background. Than I tried to click on the "back" key, but nothing happend, so I've created a key event listener for the 'back" key, and inside that method I

[android-developers] Re: Killi Process with files on SD card

2010-08-30 Thread Ken Yang
I find it works on 2.1 and 1.5 device(emualtor), but it doesn't work on my nexus one(2.2) or 2.2 emulator? why? On 7月15日, 上午12時23分, Streets Of Boston wrote: > It works fine for me on my motorola droid, nexus one and G1. > Did you properly register your broadcast receiver, both in code and in > t

[android-developers] Can't use ServerSocket

2010-08-30 Thread shuwo
I'm trying to listen on a port using ServerSocket on an Android device. I want to be able to connect to this port over WiFi using a computer on the same network. I get no exception when binding it to a port, however when I check netstat it says: Proto Recv-Q Send-Q Local Address Forei

[android-developers] Re: Android Street View availability check

2010-08-30 Thread alexx
I've no clue, but I really would like to know the answer. Regards, Alex On 31 jul, 19:36, K P wrote: > What is the best way to check if street view is available for a > GeoPoint location? > There seems to be no way of figuring this out, but the map google app > grays out the street view button

[android-developers] Needs help to understand how usb/android works

2010-08-30 Thread jake142
Hi, I need to build a java application that will run on an android tablet pc. The app should do the following: 1. Be able to display HTMLpages 2. Display XML files (sent from a different unit) with a stylesheet My problem is how to receive these xml files to my application. The sending system is

[android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Bret Foreman
What do you think about the difficulty of synchronizing the scrolling of the ListViews? On Aug 30, 10:21 am, Mark Murphy wrote: > I am uncertain that ListViews can go in a HorizontalScrollView, though > it is worth a try. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://githu

[android-developers] Re: Media Player

2010-08-30 Thread Jeremy Wadsack
If the URL is an mp3 stream (shoutcast streaming server), then my understanding (and experience) is that this was not supported before 2.2. In 2.2 the new Stagefright player now supports reading from shoutcast streams. [http://developer.android.com/sdk/android-2.2- highlights.htm] For support on o

[android-developers] How do I write Android.mk for an application using com.google.android.maps.jar

2010-08-30 Thread Binggrae
Hi I am developing an application using com.google.android.maps.jar It is OK to develop it with Eclipse SDK. but an build-error happens when building system.img with GMS licence (com.google.android.maps.jar is already installed at out/target/common/ obj/JAVA_LIBRARIES/com.google.android.maps.jar_i

[android-developers] do not work RECEIVE_BOOT_COMPLETED in emulator?

2010-08-30 Thread semi
why don't work RECEIVE_BOOT_COMPLETED in emulator? // AndroidManifest.xml http://schemas.android.com/apk/res/android"; package="mint.TestService2" android:versionCode="1" android:versionName="1.0">

[android-developers] Queries on developing an android SSL socket client program

2010-08-30 Thread Developer1_SK
All, I am new to android and I need to develop an Android application client that connects to my server through socket programming. The server is SSL secured with its own self signed certificate generated using Java Keytool. I did the following:- 1. I grabbed the PEM eoncoded public certificate of

[android-developers] How Write a background service to get latitude and longitude

2010-08-30 Thread Hotouch
Hello Android Community, I am new to android development and i have started working on an android application to perform following tasks... This application is to monitor the sales team of a company... write a service to run in background and get the current latitude and longitude of android dev

Re: [android-developers] Re: String being truncated when its long

2010-08-30 Thread Jeremy Wadsack
Explicitly stating the buffer size to use (8000) is recommended by the BufferedReader API. If you don't do this it will throw warnings in the log suggesting that you do. Of course you could use a different size buffer (e.g. if you know your content is much less than that size). For very large cont

[android-developers] Re: Need Help in Webview Highlight

2010-08-30 Thread Adriano
Hi, Did you find the solution ? Thanks Adriano On Apr 12, 1:17 am, brijesh masrani wrote: > Hello Everyone, > > I want to select text from Webview and than Highlight it. > >  I am able to get the selected text using *emulateshiftHeld() *method but If > i try to search it in file and than Under

[android-developers] Lg Ally USB Debugging Driver

2010-08-30 Thread spudnut
hello i have searched the internet for the debugging driver but as yet i have not found it and lg will not help because i would be making third party software thus voiding waranties and so on. if you know where this driver is please tell me thank you in advance! -- You received this message becau

[android-developers] On clear notification, stop sound file.

2010-08-30 Thread Faisal Basra
I have an app, which play a sound file when a notification is fired. I am wondering is there any way, I can stop the file being played by notification when user presses "clear notification button". Thanks in advance, for your support. -- You received this message because you are subscribed to t

[android-developers] Android RelativeLayout height not following GridView height

2010-08-30 Thread Kuntal Kanti Das
Hi, I am having problem with a GridView within a RelativeLayout, which is again within a ScrollView. The problem is that the height of the RelativeLayout is not following the height of the contents of the GridView. When there are more than one rows, the GridView is clipped and a scrollbar appears

[android-developers] Building android contact source code (eclair version) on eclipse.

2010-08-30 Thread Raghavendra Singh
Hi all I am having the contact source code which i want to build on eclipse & test on emulator,but the contact application uses some of the hidden APIs of base code which is not present in default android.jar because of that i am getting lot of error in my code. I am trying to generate my

[android-developers] Problem with CreateBitmap returning a bitmap with width and height of -1

2010-08-30 Thread Stump
Hello everyone! I'm trying to grab a subsection of a bitmap with CreateBitmap(orig, x,y,width,height) but always getting a width and height of -1 in Android 2.2. Anyone have any idea? I figured if it failed, I'd get null back, so I'm a bit confused. Right now I am doing it on a Motorola Droid whi

[android-developers] trackball selections on list view

2010-08-30 Thread Vladyslav Namashko
Hi all, Using list view with simple ArrayAdapter it's possible to select list items by trackball. What should I do to have the same possibility for list view view with my custom adapter (my adapter extends ArrayAdapter)? Regards. -- You received this message because you are subscribed to the Go

[android-developers] Re: User selectable text in WebView

2010-08-30 Thread Adriano
Hi Ryan, Did you find the solution ? Thanks Adriano On Aug 12, 8:10 am, Ryan Tan wrote: > Dear Sarwar, > > Thanks for your reply. > > The problem I have is I don't know when the text is selected and > copied into the clipboard after firing the KeyEvent. > > Thanks. > > On Aug 12, 4:12 pm, Sarw

[android-developers] I registered a broadcast to detect sd card status, but it only works on the device below 2.1(include 2.1)

2010-08-30 Thread Ken Yang
I registered a broadcast to detect sd card status, but it only works on the device below 2.1(include 2.1) it's doesn't work on nexus one or 2.2 emulator... android os will kill my process on nexus one and 2.2 emulator, but it won't do that on device below 2.1(include 2.1) is there anything wron

[android-developers] Sending SMS while phone is ringing

2010-08-30 Thread Jimband
Hi, I'm developing an application for Android 2.2 that should send an SMS immediately when the phone starts ringing (under UMTS/GSM). I'm using the android.telephony.SmsManager.sendTextMessage for sending the SMS. The app is working fine under the emulator, i.e. when I call the emulator phone

[android-developers] Google TV Developers

2010-08-30 Thread Chris Morris
Hey guys, I'm sure some of you have heard about Google TV - I myself am excited about the possibilities for Android apps in the living room. Being a developer myself, I tried to find a community centered around Google TV development and couldn't find one, so I started one. The site just launched,

[android-developers] App Chooser not being shown when google browser is the default

2010-08-30 Thread James McMurray
I've seen a few other similar threads, but none that both matched my problem and had answers, so sorry if this retreads familiar ground. I've got a browser and I'm trying to catch the same intents as the google browser. I've even gone so far as to copy and paste them directly from Froyo's browser.

[android-developers] Calling all developers who are passionate about health care

2010-08-30 Thread Veronica Ho
HealthTap, in collaboration with Health 2.0, is hosting the first Developer Challenge Hackathon called Hacking for Health on September 11, 2010. The Hackathon is where developers of all skill sets will get together, learn more about the new data sets that the US Government has made available recen

[android-developers] Re: How to dynamically modify xml file in android

2010-08-30 Thread DanH
The Android docs list javax.xml.transform.TransformerFactory as being available, though I've never tried it on Android. On Aug 30, 6:43 am, saikiran n wrote: > Hi , >  I want to modify an xml file which is in sdcard dynamically. > How can we acheive this in android. I have seen some java code as

[android-developers] Re: Testing several projects with a single test project

2010-08-30 Thread A. Elk
The Android instrumentation-based testing framework focuses on unit testing and component-level functional testing. It's not meant to be a full multi-application test system. You can't test an activity and the content provider it uses in the same test case, nor can you test what happens when the us

Re: [android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 12:44 PM, Bret Foreman wrote: > What if I set up LinearLayout arranged horizontally with a set of > ListViews? The left-most ListView would be a list of row labels. The > whole works would be in a HorizontalScrollView. The column headings > would be set with ListView.addHea

Re: [android-developers] Developemtn on LG Ally?

2010-08-30 Thread Kostya Vasilyev
I think you might be better off getting a Motorola Droid. It's only a little more expensive on eBay than the LG, but runs pretty much stock Android with fewer manufacturer-specific customizations. This means that whatever compatibility testing you do is going to be more meaningful with the Dr

Re: [android-developers] ListView ClassCastException

2010-08-30 Thread Michael MacDonald
On 08/30/10 06:59, Alok Kulkarni wrote: > Hi all,in my application I have a class as: > > 1. > public class TouchInterceptor extends ListView > > and my main activity class as: > > 1. > public class GUIEngine extends Activity > > > in this class i initialize my ListView variable as:

Re: [android-developers] Retrieve Contact Photo type

2010-08-30 Thread Pedro Elvas
Hi Carlo, Take a look in the source code of JPEGImageReaderSpi and PNGImageReaderSpi (j2se). These classes have a met

[android-developers] Developemtn on LG Ally?

2010-08-30 Thread JavaMan
Hey everyone, I want to get a Android phone for development. Unfortunately, the ADP2 is way out of my price range. Therefore, I'm looking at phones on ebay. I do not want service, so I don't care if it's unlocked or not. I was looking at an LG Ally on ebay. It is a Verizon version of the phone. Can

[android-developers] Re: Application installation

2010-08-30 Thread Surfer
But you noticed that every other package is listed in that file too, right? Every other package is listed there - yes, every package is marked with system=true - no No. In general, if you are "regular" developer (as most here is) you won't be able to make any system app on non rooted devices ju

Re: [android-developers] Setting focus programatically in ExpandableListView

2010-08-30 Thread TreKing
On Sat, Aug 28, 2010 at 9:21 AM, OldSkoolMark wrote: > My goal is to avoid having the user have to touch > individual ExpandableListView entries to select them and to provide a couple > of buttons to move the focus up and down inside the list. > Don't know about your problem, but why do you want

Re: [android-developers] Anyone updating their app recently notice unexpected drop in install percentage?

2010-08-30 Thread TreKing
On Mon, Aug 30, 2010 at 9:32 AM, pawpaw17 wrote: > Anyone notice something similar? I'm wondering if it is a problem with the > market stats? > This should be a sticky at this point: http://groups.google.com/group/android-discuss/browse_thread/thread/a80ba7870af28e90/35deddb143aa0d82 --

[android-developers] Re: Scrolling like a spreadsheet

2010-08-30 Thread Bret Foreman
What if I set up LinearLayout arranged horizontally with a set of ListViews? The left-most ListView would be a list of row labels. The whole works would be in a HorizontalScrollView. The column headings would be set with ListView.addHeader. Then the only difficult task would be synchronizing the sc

[android-developers] Re: Black spinner in progressbar

2010-08-30 Thread fr4gus
Thanks! :) On Aug 26, 12:28 pm, Gonçalo Ferreira wrote: > Check out here. > > http://developer.android.com/reference/android/R.attr.html#progressBa... > > Just change the style for one of those in that link. > The attributes with the suffix Inverse are black spinners, usually for > light backgrou

Re: [android-developers] Re: App inconsistencies

2010-08-30 Thread Kostya Vasilyev
Yes, Logcat appears to run independently of adb or your local debugging connection, and has logcat output from *all* applications that use Android log.* methods and the Android system itself. Note that if you start logcat from the console of your development machine ("adb logcat") it first sc

Re: [android-developers] Scrolling like a spreadsheet

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 12:03 PM, Bret Foreman wrote: > Are there settings in TableLayout that can turn on this scroll behavior? No. > Is there, perhaps, > a more advanced widget than TableLayout that can produce this type of > scrolling? Not in the SDK. > Are there some tricks I can do with

Re: [android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread TreKing
On Sun, Aug 29, 2010 at 8:24 PM, William Ferguson wrote: > What's the taskAffinity? > Whatever the default is - I've never touched this. I suspect that clearing the data is changing the behaviour because this > speed up / slows down one of the threads, thereby (generally) avoiding the > race co

[android-developers] Scrolling like a spreadsheet

2010-08-30 Thread Bret Foreman
I want to set up a table layout that scrolls like a spreadsheet. The top row of column headings should scroll horizontally but be pinned when scrolling vertically. The left-most column of row labels should scroll vertically but be pinned when scrolling horizontally. The number of rows and columns i

[android-developers] Re: Is there (or should there be), a generateId() method for dynamically generated Views?

2010-08-30 Thread Bret Foreman
Is there a way to make a ListView mutually exclusive like a RadioGroup so that selecting one item deselects the others? > > IMHO, if you are concerned about the number of radio buttons, you > should be using a ListView. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.co

[android-developers] Re: Anyone updating their app recently notice unexpected drop in install percentage?

2010-08-30 Thread Maps.Huge.Info (Maps API Guru)
Did you see this thread? http://groups.google.com/group/android-developers/browse_thread/thread/a5a7c4d6bed1af84/b0afd16bfb9962bb -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-de

[android-developers] Re: App inconsistencies

2010-08-30 Thread Maps.Huge.Info (Maps API Guru)
A good log app is called (strangely enough) "Sendlog" - it's fairly lightweight and just asks the user to enter an e-mail address. Select "detailed" logs for the best result. As for adding logging statements all over the place. That's a very good idea with one caveat. Add a logging variable like

[android-developers] Open-Source Repository

2010-08-30 Thread Shane Isbell
Guys, I'm re-opening the JVending project, which has been inactive (publicly) for a couple of years. There has been some chatter from individuals interested in an open-source repository for Android so I think it will be a good start. You can basically think of it as an Android delivery system wher

[android-developers] Re: Home button in Beagle board

2010-08-30 Thread Will
Install bar control and add a home button in the notification bar. http://www.4shared.com/file/6QzHkKk-/Bar_Control__110_.html On Aug 27, 4:15 am, SREEHARI wrote: > Hi All, > > I am testing some android apps in a beagle board with Android 2.1. But > I came to know that there is no home button in

Re: [android-developers] Retrieve Contact Photo type

2010-08-30 Thread Kostya Vasilyev
In case you don't find one, PNG files always start with: \211 P N G \r \n \032 \n http://www.libpng.org/pub/png/spec/1.2/PNG-Rationale.html#R.PNG-file-signature -- Kostya 30.08.2010 18:58, sazilla пишет: Hi guys, is there any way to retrieve the data type of a contact's photo? (e.g. "image/

Re: [android-developers] Re: App inconsistencies

2010-08-30 Thread Kostya Vasilyev
30.08.2010 18:44, tony obrien пишет: So LOGCAT operate on the device as well?? Do I need to ENABLE anything in my app? Does the LOGCAT have all of the device's activities in it, including those NOT from my app? Logcat doesn't have to be specifically enabled. It does show info from every appl

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-30 Thread Chris Stratton
I think its going to be very difficult to prevent applications without network or sms permissions from leaking any data they can obtain to the outside world by means of another application that does have those permissions. Its even possible for an application without network permissions to infrequ

[android-developers] Re: How to watermark the camera picture?

2010-08-30 Thread Rootko
Thanks for pointing me into the right direction, it worked :D Rudo On Aug 30, 11:16 am, Yahel wrote: > >to take a > > picture using the camera (already developed this) and then make it > > watermarked. > > Look into Canvas.drawBitmap with alpha channel. > > Good luck. > > Yahel -- You received

[android-developers] Retrieve Contact Photo type

2010-08-30 Thread sazilla
Hi guys, is there any way to retrieve the data type of a contact's photo? (e.g. "image/png" or "image/jpeg") Using the Contacts Provider I can read the photo byte array only. In this case can we get the image type from the image stream? Thanks in advance Carlo -- You received this message beca

Re: [android-developers] Is there (or should there be), a generateId() method for dynamically generated Views?

2010-08-30 Thread Kostya Vasilyev
It's also not quite correct that a radio button is only identified by its viewId. Using View.setTag (two versions), you can associate your own data item (s) with a view. However, I agree with Mark that using a ListView is quite likely to be a better solution. -- Kostya 30.08.2010 18:45,

[android-developers] ListView listener problems

2010-08-30 Thread tatebn
I'm using a ListAction and I'm having some trouble with my listeners. I'm using onListItemClick to catch any item clicks, which works fine unless I add an OnLongClickListener to the list items. In that case the long click works but the short click doesn't register. I've tried adding an OnClickLis

Re: [android-developers] Is there (or should there be), a generateId() method for dynamically generated Views?

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 10:18 AM, Anil wrote: > Is there (or should there be), a generateId() method for dynamically > generated Views? Addition seems to be sufficient. > Since we are notified only the id of the checked view, shouldn't there > be a way to uniquely generate the id? Say, a View.ge

[android-developers] Re: App inconsistencies

2010-08-30 Thread tony obrien
So LOGCAT operate on the device as well?? Do I need to ENABLE anything in my app? Does the LOGCAT have all of the device's activities in it, including those NOT from my app? Does the device automagically wrap the logcat (it can't grow forever) ? On Aug 30, 9:33 am, Kostya Vasilyev wrote: >   30

[android-developers] Anyone updating their app recently notice unexpected drop in install percentage?

2010-08-30 Thread pawpaw17
Guys, This happened once before in December 2009. When I released an update on Friday, my install percentage dropped about 6%. My install percentage usually goes up when I release an update. Anyone notice something similar? I'm wondering if it is a problem with the market stats? Thanks, pawpaw17

[android-developers] Froyo: MediaRecorder.setVideoFrameRate sets IDR ratio instead of frame rate

2010-08-30 Thread Alexandre Ferrieux
Hello, I'm using the H264 encoder on a Froyo HTC Desire. Parsing the generated 3GP stream allows to identify individual frames, and their timing. Now it turns out that: (1) MediaRecorder.setVideoFrameRate() doesn't affect the average frame rate, which is always close to 17fps, regardless of the

[android-developers] Is there (or should there be), a generateId() method for dynamically generated Views?

2010-08-30 Thread Anil
Is there (or should there be), a generateId() method for dynamically generated Views? Take the RadioGroup example in APIDemos|App|Views. Radio buttons are added dynamically. For each button, you have to call setId(). To be notified when a radio button is selected, you register a onCheckedChange lis

[android-developers] WebGL and O3D on DroidX

2010-08-30 Thread r2d2Proton
Does WebGL and/or O3D work on DroidX with Android 2.1? If not, what do I need to do to make this happen? Thanks. -- 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 u

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-30 Thread mort
On Aug 29, 9:11 pm, Dianne Hackborn wrote: > This is a flaw in their design (and in the design of current ad servers as > well).  By having you link their code into your app, you are required to > take responsibility for their permissions.  Yet it is their code, you don't > have control over it, s

Re: [android-developers] Changing from one dev machine to another, keystore question

2010-08-30 Thread { Devdroid }
On 27 August 2010 17:53, Chris Stewart wrote: > If I'm understanding your first sentence, I'm at work and cannot test it for > myself right now. > I'm not sure what you're saying beyond that point. I am talking about asymmetric key cryptography which is also used to sign apps. All you need is you

[android-developers] Re: App inconsistencies

2010-08-30 Thread tony obrien
I am familiar with using LOGCAT via my local TERMINAL Session.. But you are suggesting that LOGCAT runs on the "Device" and can be accessed? Do I need to "enable" Logging in my app? Will the LOGCAT show *all* activities from everything that's running (i.e. not just MY app) ? On Aug 30, 9:33 am

[android-developers] Problem with spinner in a list view

2010-08-30 Thread Shashidhar
Hi, I am using a custom list adapter with a spinner in each item. There is a strange problem with the value the spinner shows. For some of the items the spinner always shows the first value in the adapter set to the spinner but when I touch on spinner, on the pop up selection list it shows the ac

Re: [android-developers] Re: Application installation

2010-08-30 Thread { Devdroid }
On 30 August 2010 09:58, Surfer wrote: > As i mentioned above my app is a system app, it is registered under / > data/system/packages.xml with system="true". But you noticed that every other package is listed in that file too, right? > Doesn't this mean it's part of the system and it has corres

Re: [android-developers] App inconsistencies

2010-08-30 Thread Kostya Vasilyev
30.08.2010 16:48, tony obrien пишет: I am loathe to start adding all kinds of "log output" turning this into a bloatware science experiment (but will if forced.) Before you start doing that, I'd ask the user to download and install one of the many applications that can display logcat output, ru

[android-developers] App inconsistencies

2010-08-30 Thread tony obrien
Hi, I have an app that uses Runnables, GPS, Sensors, the AudioManager, MapView, Shared Preference storage; in effect ---all manner of the phone's capabilities. When I run this app on my Motorola DROID, it functions consistently --- all activities operate as expected -- all dialog popups POPUP w

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-30 Thread Pent
> There is a fundamental problem that at the point you ask the > permission, the user is wanting to accomplish some task at hand, and all you > are doing is bugging them. That's not always true. My app requires around 30 permissions, which obviously is off-putting to some/many people. The averag

Re: [android-developers] Re: Please help me on Android.

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 7:44 AM, Dev Android wrote: >> I have written an application and i want to measure the performance of >> each module. Can you please suggest me the good approach to do this. Use traceview: http://developer.android.com/guide/developing/tools/traceview.html >> Currently, i

Re: [android-developers] Re: Need Help.. File Explorer Working with Code

2010-08-30 Thread Mark Murphy
On Mon, Aug 30, 2010 at 7:54 AM, Navi wrote: > yes pvt means private and > other users may be any other than the owner of mobile. > folder lock is an application used to secure data, using which we can > password protect our data or we can lock a directory. >  i want to know the step by step worki

[android-developers] Re: upload image to php server problem

2010-08-30 Thread CMF
I can upload the image to the server now. But what if I need to pass a variable to the php and upload the image simultaneously ? On Aug 28, 2:38 am, Yahel wrote: > You need to tell us where the error is raised if any. > > In your php you might want to try to use the realpath function to get > the

[android-developers] Re: Need Help.. File Explorer Working with Code

2010-08-30 Thread Navi
Hi TreKing yes pvt means private and other users may be any other than the owner of mobile. folder lock is an application used to secure data, using which we can password protect our data or we can lock a directory. i want to know the step by step working of folder lock. if possible please do repl

[android-developers] Re: Please help me on Android.

2010-08-30 Thread Dev Android
On Mon, Aug 30, 2010 at 4:53 PM, Dev Android wrote: > > Hi, > > I have written an application and i want to measure the performance of each > module. Can you please suggest me the good approach to do this. Currently, > i'm following traditional approach by calculating system's current time. > > >

[android-developers] How to dynamically modify xml file in android

2010-08-30 Thread saikiran n
Hi , I want to modify an xml file which is in sdcard dynamically. How can we acheive this in android. I have seen some java code as follows try { File file = new File("connections.xml"); //Create instance of DocumentBuilderFactory DocumentBuilderFactory factory = Docum

Re: [android-developers] Custom Service Permission

2010-08-30 Thread Alvin Tsai
Hi KilicBeg, Have you managed to figure it out? I have the same problem. My problem simply is adding a custom permission like android.permission.CAMERA to allow user use some custom hardware feature. I've added one in platform.xml but failed in checkCallingPermission(String16(android.permission.M

[android-developers] Re: upload image to php server problem

2010-08-30 Thread CMF
Hi , I have fixed the problem by myselft, thanks. But I would like to know how to pass a variable from the android to the php? On Aug 28, 2:38 am, Yahel wrote: > You need to tell us where the error is raised if any. > > In your php you might want to try to use the realpath function to get > the t

[android-developers] Re: Piracy Breakdown by Country

2010-08-30 Thread Zsolt Vasvari
In my app, which has an about 3% piracy rate (Pirate == Person who uninstall is < 20 mins). None of whom are from Australia, even though I have about 10 Australian paid users. So by your stat, I'd expect to see 9 of those guys (gals) to be pirates. -- You received this message because you are s

[android-developers] onSingleTapConfirmed and different screen sizes

2010-08-30 Thread djauto23
I am developing a game in which there are a couple of on-screen buttons the user can press to do different things. These work by responding to onSingleTapConfirmed, and checking if the getX and getY of the event are within the coordinates of the buttons. However, the getX and getY coordinates are

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread Zsolt Vasvari
> I don't know. Every email I've gotten and all comments in the crash reports > indicate it's a consistent crash occurring 100% of the time (and in the > exact same location based on the ever-growing report count for the same > stack trace). > > Clearing the data (or uninstalling / re-installing wh

[android-developers] ListView ClassCastException

2010-08-30 Thread Alok Kulkarni
Hi all,in my application I have a class as: 1. public class TouchInterceptor extends ListView and my main activity class as: 1. public class GUIEngine extends Activity in this class i initialize my ListView variable as: 1. lView = (ListView) findViewById(R.id.mainList); now i wan

Re: [android-developers] Re: Problem in encoding image

2010-08-30 Thread Kostya Vasilyev
It's magic, man. Pure magic. :) Base 64 encoding converts every 3 bytes of input data to 4 bytes of output data. If input data size is not a multiple of 3, output is padded with "=" characters, which also means end of data. Your original buffer size, 1024, is not a multiple of 3, so each ou

[android-developers] Custom View orientation change

2010-08-30 Thread Vikram
I have a custom view A which extends RelativeLayout and internally uses 3 instances of custom view B: B1, B2 and B3, which can be 'flung' left or right to move to B4, B5 and B6. I want to resize the whole view based on the orientation. I have hardcoded the size of B based on the screen width of 32

[android-developers] Enabling wifi tethering mode

2010-08-30 Thread guru
Hi All, I am not seeing Wif tethering app in my phone. I enabled wifi in froyo build. But it is not showing tethering app ? What do i need to enable the app? Thanks Gururaja B O -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] How to you think about the future of PhoneGap

2010-08-30 Thread pyleaf
Hi, guys! Today, I discover PhoneGap.Unluckily, there is no enough docement about it. How to you think about the future of PhoneGap? Thank you! -- Believing is Everything. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gr

<    1   2   3   >