[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-18 Thread Nathan
After thinking I made a major breakthrough by stopping that thread, I still find that Activity Instances stack up. I'll still need to analyze all the inner classes. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: setContentView of a Custom View

2010-06-18 Thread Matt M
//Paint.java/ public class Paint extends PaintActivity implements ColorPickerDialog.OnColorChangedListener { private Paint mPaint; private PaintView view; private int wid; private int wsize; private int pref; private int

[android-developers] Re: I've found a way to stop piracy of my apps

2010-06-18 Thread Al Sutton
Dave, Would you be interested in working with us at AndAppStore to offer an alternative purchase location? From your code I can see that we could create a LicenseManagerImpl which interfaces into our purchase checking system to cover the license management aspect, and we accept payments via

[android-developers] How to save an object in onSaveInstanceState?

2010-06-18 Thread draf...@gmail.com
I have created a small XML parsing application for Android that displays information in a listview and then allows a user to click on the list view and a dialog with further info will pop up. The problem is that when the screen orientation is changed when a dialog screen is open I get a null

[android-developers] help on singleinstance launchmode behavior

2010-06-18 Thread Vibhor Mahajan
Hello, My application has two activities i.e. A B. Activity A has singleinstance launchmode set and activity B has standard launch mode set. Android manifest file is as follows: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dummy.lifecycle

[android-developers] Re: SQLiteCursor on that has not been deactivated or closed

2010-06-18 Thread Moss
I always do like this: MediaDbAdapter mDbHelper = null; Cursor c = null; try { // Do you DB stuff } catch( Exception e) { // Something went wrong } // Close and cleanup if ( c != null ) { // You do not need to deactivate the cursor c.close(); } if(mDbHelper != null mDbHelper.isOpen())

RE: [android-developers] Avoid non-static inner classes in an activity?

2010-06-18 Thread Ted Neward
An inner class holds a reference to the object instance that created it; thus, in the following: public class Outer { public class Inner { } Inner i = new Inner(); } Outer o = new Outer; Outer.Inner oi = o.i; o = null; // o is still alive because oi references it oii has a hidden

RE: [android-developers] Thread Problem

2010-06-18 Thread Ted Neward
From within the thread, throw new ThreadDeath(); (which is what stop() does). Or anything else that causes it to exit out of the Runnable.run() method. Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com -Original Message- From:

[android-developers] [Please Help ] Unknown error with AAPT tool while Build Project

2010-06-18 Thread NishantKumar
Hi, I am in need of help to complete my application. I am trying to execute a project that uses and android library. Basically I am trying to execute the android facebook sdk to run the sample code provided at http://github.com/facebook/facebook-android-sdk 1. I have downloaded the sdk and

[android-developers] Access of database

2010-06-18 Thread avaya mojo
HI all I am new to android platform. I am testing one android phone application. I want to see the database entries for that. What is the command for that? Please help Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] Avoid non-static inner classes in an activity?

2010-06-18 Thread Mark Murphy
On Thu, Jun 17, 2010 at 11:43 PM, Nathan critter...@crittermap.com wrote: Are anonymous inner classes okay? Yes, so long as they are only referenced by the Activity (or things related to the Activity). Having an anonymous inner class used for a click listener, for example, is OK, because the

Re: [android-developers] How to save an object in onSaveInstanceState?

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 4:31 AM, draf...@gmail.com draf...@gmail.com wrote: However the error still remains, I think I have to save the selected setting from what was selected from the ListView? But how do I save a setting object in onSavedInstance? Most likely, you don't. Instead, use

[android-developers] How to access a AIDL service from different packages?

2010-06-18 Thread Krishna Shetty
I have created a service which exposes few AIDL defined interfaces. I want to access this Service from an application with different package. I have no clue how to achieve this. I want to see an example on this. Unfortunately all examples I see has client application in the Service package it

Re: [android-developers] How to access a AIDL service from different packages?

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 7:37 AM, Krishna Shetty krishna.shett...@gmail.com wrote: I have created a service which exposes few AIDL defined interfaces. I want to access this Service from an application with different package. I have no clue how to achieve this. I want to see an example on this.

[android-developers] Re: ProgressBar.setProgressDrawable bug

2010-06-18 Thread droidsan
I meant something like the following: In progress_horizontal replace ClipDrawable with id 'progress' by a ScaleDrawable: item android:id=@+id/progress scale android:scaleGravity=left android:scaleWidth=100% shape corners android:radius=5dip /

[android-developers] How to open FB-reader from my application

2010-06-18 Thread Muthu Kumar K.
Hi, I want to open FBreader application from my application. How can i do that? Kindly give your thoughts Thanks, Muthu Kumra K. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to open FB-reader from my application

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 8:15 AM, Muthu Kumar K. muthum...@gmail.com wrote: I want to open FBreader application from my application. How can i do that? Kindly give your thoughts Ask the authors how they would like to integrate with applications like yours:

[android-developers] ListView questions

2010-06-18 Thread Alex Xin
Hi, folks I have a ListView that contains a custom view looks like this: ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal

[android-developers] Admob ads linking to scam sites, possible additional app-security problems

2010-06-18 Thread Simon Broenner
Hello everyone! I'd like to divert your attention from actual development issues for a moment, in order to make you aware of a troubling development that affects everyone who uses Admob advertisements in their programs, and everyone who uses these programs. I'm an active member on a German

[android-developers] How to open virtual keyboard automatically

2010-06-18 Thread Ricardo
Hi all, My project has a requirement to open the virtual keyboard automatically after show any activity/screen that has a form. So I put this configuration in the AndroidManifest.xml in all activities that I need: [android:windowSoftInputMode=stateVisible] It worked very well in devices

Re: [android-developers] [Please Help ] Unknown error with AAPT tool while Build Project

2010-06-18 Thread Sohan badaya
Hi Nishant, From last 2 weeks i am also trying to get data from facebook. But still facing lot of difficulties. In my case i am using some FBRocket code. It shows login page and after successful login page it fulfill one request(like friends name, or set status) ; but if i make second request it

[android-developers] Re: SQLiteCursor on that has not been deactivated or closed

2010-06-18 Thread gcstang
Even with that I still get this error: INFO/dalvikvm(23250): Uncaught exception thrown by finalizer (will be discarded): INFO/dalvikvm(23250): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.sqlitecur...@44887dc8 on media that has not been deactivated or closed

Re: [android-developers] Emulator and cellular access

2010-06-18 Thread David Turner
No, there isn't. And doing this is a bit more complex than you probably imagine :-) On Thu, Jun 17, 2010 at 9:23 PM, Demetris demet...@ece.neu.edu wrote: Hi all, I think the Android emulator has the capability to emulate incoming phone calls but I am wondering if there is a capability to

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-18 Thread Streets Of Boston
Stopping a thread does not necessarily garbage collect them... Put your references to your background threads/async-tasks inside an object that you pass back with onRetainNonConfigurationInstance and call getLastNonConfigurationInstance in your onCreate(). If the android getLastNonConfiguration

[android-developers] Making TextViews Spannable causes ListView performance to tank

2010-06-18 Thread Connick
Hi all, I've got a list few which I've optimized in every possible way. Performance matches the exchange email client so I'm happy in that respect. It's very fluid regardless of the number of records. The problem is the moment I introduce some conditional formatting of TextViews (think bold for

Re: [android-developers] Admob ads linking to scam sites, possible additional app-security problems

2010-06-18 Thread Raymond Rodgers
On 06/18/2010 08:53 AM, Simon Broenner wrote: Hello everyone! I'd like to divert your attention from actual development issues for a moment, in order to make you aware of a troubling development that affects everyone who uses Admob advertisements in their programs, and everyone who uses

[android-developers] Re: how to launch applications installed in a phone?

2010-06-18 Thread guich
Just found that, using the Dev Tools / Package Browser i can find the installed apps and their classes. guich -- 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

[android-developers] Re: Admob ads linking to scam sites, possible additional app-security problems

2010-06-18 Thread Maps.Huge.Info (Maps API Guru)
My first experience with AdMob were similar. I had just received a Google ION (HTC Magic) and downloaded my first app (Weatherbug). I saw an ad for some sort of quiz and clicked it for fun. It ended up trying to get me to sign up for some sort of unending charge to the phone, which of course never

Re: [android-developers] how to launch applications installed in a phone?

2010-06-18 Thread Alex Xin
Hi, Here's an example, hope this will be useful for you: Intent i = getPackageManager().getLaunchIntentForPackage(ai.packageName); startActivity(i); where ai is an instance of ApplicationInfo object, you can use following call to get all ApplicationInfo instances: Context.listAllApplication();

[android-developers] Resolved: Making TextViews Spannable causes ListView performance to tank

2010-06-18 Thread Stacy
After pulling my hair out for hours ...it turns out performance only degrades when the debugger is running! I'm guessing the debugger has always dragged down performance for obvious reasons and my text processing in this case pushed it over the edge where the debuggers effect became noticeable?

[android-developers] Re: Thread Problem

2010-06-18 Thread Moto
You can just call Thread.interrupt() make sure on any Thread.sleep() calls you catch the interruped exception. public void run () { while (!this.interrupted() ) { doSomeWork(); } } -Moto! On Jun 17, 6:40 am, brijesh masrani.brij...@gmail.com wrote: Hello, I want to stop

[android-developers] [openGL] how to rotate quad around its center?

2010-06-18 Thread Paolo
Hi guys! I'm a newbie in OpenGL. :D I'm trying to rotate a quad around its center. This is my scenario: I've a quad, drawn with TRIANGLE_STRIP, at specified coordinates. Now I want to rotate of 45 degrees around its center, without move it from its position, not around the origin of the aces. I

[android-developers] Is there a dev tools for real device?

2010-06-18 Thread guich
Hi, Is it possible to install the dev tools that appear in the Android Emulator in a real device? If not, is there a program that shows the available packages and intents like in this great program? thanks guich -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] [openGL] how to rotate quad around its center?

2010-06-18 Thread Leigh McRae
Translate the quad to the origin, rotate, translate back. Leigh On 6/18/2010 11:12 AM, Paolo wrote: Hi guys! I'm a newbie in OpenGL. :D I'm trying to rotate a quad around its center. This is my scenario: I've a quad, drawn with TRIANGLE_STRIP, at specified coordinates. Now I want to rotate of

[android-developers] Re: socket communication between emulator as server and pc as client

2010-06-18 Thread mah
After the emulator is started, and before you start your PC application, use this command: adb forward tcp:12345 tcp:12345 Which will forward TCP packets from the PC's IP space into the emulator on port 12345. Then, on the PC, open a connection to localhost (127.0.0.1) on port 12345, and

[android-developers] Re: [openGL] how to rotate quad around its center?

2010-06-18 Thread Paolo
Hi leigh! I've tried, but it doesn't work... the quad goes in a wrong position : ( My quad has these coordinates //vertex bottom left vertex[0] = 9.5f; vertex[1] = 10f; vertex[2] = 0.0f; //top left

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-18 Thread Frank Weiss
Here's what I came up with (untested). It also solves the problem of having to setup the calculation for each point to be tested. class BoundsFilter { int centerLatE6; int centerLngE6; int latRadiusE6; int lngRadiusE6; public BoundsFilter(MapView map) { centerLatE6 =

Re: [android-developers] Re: [openGL] how to rotate quad around its center?

2010-06-18 Thread Leigh McRae
OpenGL applies it's transforms in reverse so maybe swap the two translates. Sounds lame but this is the sort of thing you get right once and don't look at again for sometime.Also make sure your matrix mode is GL_MODELVIEW. Leigh On 6/18/2010 11:58 AM, Paolo wrote: Hi leigh! I've tried,

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-18 Thread Nathan
On Jun 18, 3:58 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jun 17, 2010 at 11:43 PM, Nathan critter...@crittermap.com wrote: Are anonymous inner classes okay? Yes, so long as they are only referenced by the Activity (or things related to the Activity). That's been my

Re: [android-developers] how to filter the objects (addresses) to display only the onscreen objects on map

2010-06-18 Thread Hasn AlTaiar
Thanks Frank, and Thanks Raymond, Really great help and support. greatly appreciate it.. Cheers Hasn On Sat, Jun 19, 2010 at 2:15 AM, Frank Weiss fewe...@gmail.com wrote: Here's what I came up with (untested). It also solves the problem of having to setup the calculation for each point

[android-developers] Re: How to access a AIDL service from different packages?

2010-06-18 Thread Joe Onorato
You will also have to include the .aidl as source in your other project. The two different apks don't link against each other or anything like that. Otherwise, the generated java class won't be available. -joe On Jun 18, 7:44 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 18,

[android-developers] Re: [openGL] how to rotate quad around its center?

2010-06-18 Thread Paolo
Thanks for your answer. my matrix is GL_MODELVIEW. I have noticed that once I have traslated and rotated the quad, also the aces x,y,z seem to be rotated of 45 degree. If it is right, it's normal that when i applied the second traslalte the quad goes in another position. is it normal? is there

Re: [android-developers] Re: [openGL] how to rotate quad around its center?

2010-06-18 Thread Leigh McRae
I am not exactly sure what you're saying actually. At any rate, I noticed that you're translating along the z-axis. If you're rotating around the z-axis you don't need to translate along z. Also it could be that you're translating the quad offscreen since you haven't mirrored the z

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-18 Thread Nathan
On Jun 18, 6:56 am, Streets Of Boston flyingdutc...@gmail.com wrote: Stopping a thread does not necessarily garbage collect them... Put your references to your background threads/async-tasks inside an object that you pass back with onRetainNonConfigurationInstance and call

[android-developers] Re: [openGL] how to rotate quad around its center?

2010-06-18 Thread Paolo
I have to traslate into the z-axis a bit, otherwise I wouldn't see anything on the screen. Anyway, I'm doing this step by step as you said to me ;) At first i traslate the quad to the origin and in fact i see it there. Then I rotate of 45 degree around the z-axis and I see it rotated right. At

[android-developers] Re: Avoid non-static inner classes in an activity?

2010-06-18 Thread Nathan
So far I'm still getting multiple activity instances. I've succeeded in saving some expensive objects by nulling out references in onDestroy So I haven't stopped a leak but I'm slowing it down. Nathan -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: how to rotate quad around its center?

2010-06-18 Thread Paolo
Look at this image to understand what i'm saying http://www710.univ-lyon1.fr/~jciehl/Public/OpenGL_PG/figures/chap3-11.gif On 18 Giu, 19:42, Paolo brand...@gmail.com wrote: I have to traslate into the z-axis a bit, otherwise I wouldn't see anything on the screen. Anyway, I'm doing this step

[android-developers] Re: I've found a way to stop piracy of my apps

2010-06-18 Thread keyeslabs
I would be interested in discussing this, Al. Assuming that our use cases align and that your APIs provide necessary functionality, it should work quite nicely. As for the code base, I split LicenseManager and LicenseManagerImpl primarily to facilitate obfuscation (I don't obfuscate

Re: [android-developers] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-18 Thread Robert Macaulay
Well, the 10 ms check didn't help. dumpsys alarm just shows that it used to run, but nothing currently scheduled. I have no exceptions logged, and the reschedule is in a finally block. I'm going to try a setRepeating now to see if it manages to survive. -- You received this message because

Re: [android-developers] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 2:54 PM, Robert Macaulay robert.macau...@gmail.com wrote: Well, the 10 ms check didn't help. dumpsys alarm just shows that it used to run, but nothing currently scheduled. I have no exceptions logged, and the reschedule is in a finally block. What is the approximate

Re: [android-developers] Admob ads linking to scam sites, possible additional app-security problems

2010-06-18 Thread Brad Gies
If you have a list of apps that do this, I believe that you can block certain ads from appearing in your app from the Admob website in the account administration. I'll have to check again.. can't remember for sure. On 18/06/2010 5:53 AM, Simon Broenner wrote: Hello everyone! I'd like to

[android-developers] support for fingerprint device

2010-06-18 Thread abbe
Does android has support for fingerprint devices? if not, how should I go about developing a driver for the device and put it in mobile device running android. thansk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Determine notification bar height from a service

2010-06-18 Thread Vitaliy
Hi, The application I'm working on is a service which runs in the background. The problem is that I need to determine the height of the notification bar for some functionality of the service. I found a number of solutions for this, for regular activities - a view inside an activity can determine

Re: [android-developers] Re: How to add application settings in android device

2010-06-18 Thread Jesús Díaz
Hi It is possible using the PreferenceScreen class ( http://developer.android.com/reference/android/preference/PreferenceScreen.html ). This is a good tutorial: http://www.kaloer.com/android-preferences Good luck, Jesús Díaz Artiaga Telefónica I+D On 15 June 2010 13:37, FrankG

Re: [android-developers] Ad-Hoc Networking

2010-06-18 Thread Matthew Powers
look at the wlan.ini On Tue, Jun 15, 2010 at 11:55 AM, BITS bitsandroidt...@gmail.com wrote: With Android 2.2 they allowed for the user feature of making your phone a wireless hotspot. Looking through the API I was not able to find a way to configure the hotspot or even turn it on. There

[android-developers] HttpURLConnection and data roaming

2010-06-18 Thread Cydrike
Hello everyone, I've got an application which is making a web request every 10s using HttpURLConnection. When the application starts in 3G, it works great. Then I activate Wifi and after that, all my requests fail during exactly 10 minutes with the fallowing exception : Socket is not connected.

Re: [android-developers] TCP IP connection via Mobile Network

2010-06-18 Thread Matthew Powers
I would worry about your IP address changing as you move in and out of different networks, your IP address is not constant On Thu, Jun 10, 2010 at 2:40 PM, WuffIT Tech wuffi...@gmail.com wrote: Hi, I am new to this forum and I would like to throw out this question and hopefully someone can

[android-developers] Associate Browser to File Type

2010-06-18 Thread tekmunki
I'm attempting to write a simple app that associates a file type to the browser; this is assuming the browser will open the file locally... If this doesn't work, the local file - editor will be fine. I have an option of auto-mailing .ELC files from a custom app, they are basically html

[android-developers] ItemizedOverlay using both onTap methods

2010-06-18 Thread tfriest
I have a MapView where I would like to be able to tap the map to create a new item at that location if there is no item there, or display the info about the item if there is. I tried overriding both the onTap(int) and onTap(GeoPoint, MapView) methods but apparently if the second method is

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2010-06-18 Thread Sivambiga
Thanks for ur code :) Nice Work droidful wrote: package com.droidful.flinggallery; import android.app.Activity; import android.os.Bundle; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.view.MotionEvent; import

[android-developers] VM aborted and Framework disconnected

2010-06-18 Thread sweetdevil
Hi: I have implement a an AP to test device. The AP is an Alarm, it wakes up every 30 secons and wake up the whole system though wakelock. After a period about 3 hours, log out the error message. WARN/dalvikvm(1063): Last 10 entries in JNI global reference table: 01-06 07:45:07.734:

[android-developers] Re: How global is the app market?

2010-06-18 Thread lishali
Yes On Jun 10, 6:05 pm, 楊健 youken1...@gmail.com wrote: Is it really? I think the mmarket is the only one official market of China! You can put your paid version app on mmarket now. -Original Message- From: android-developers@googlegroups.com

[android-developers] why do I get null pointer with findWiewById ?

2010-06-18 Thread florence jeulin
Hi all, I'm working on an application where I want to add adWhirl to manage adds. The app is working fine until I tryed to use adWhirl. I have try to get the view created with setContentView(R.layout.main) by calling LinearLayout layout = (LinearLayout)findViewById(R.layout.main); and the

[android-developers] connectionless WAP Push (SMS Push)

2010-06-18 Thread Joo
I am trying to implement SMS Push function on my application. The SMS Push message's data type is EMN(E-Mail Notification) or SL(Service Loading). I heard that there is a concerning point. When Android platform retrieved SMS Push message from server, the SMS Push message will be broad casted to

[android-developers] How to override methods for existing framework classes

2010-06-18 Thread bohemianx
We are looking to provide our own class object to override some certain method inside of the framework classes, ex: startScan() in class WifiManager. Is it any way to override it with a .jar release package instead of modifying the framework/base/* codes inside of the Android platform source?

[android-developers] Re: Game Stuttering

2010-06-18 Thread lishali
I'm developing some games too, but when I want to find some articles about the code optimisation, I find nothing. I'm very interesting about how you can make your games has no GC when it's running. Thank you very much! On Jun 15, 5:28 pm, Neilz neilhorn...@gmail.com wrote: Hi Charlie. Funny, I

[android-developers] Re: Connect two android phones over 3g/edge

2010-06-18 Thread Cairo
I've tried this previously for iPhones and usually the network blocks outgoing ports, so you can only connect them via a server. On Jun 11, 4:50 pm, WuffIT Tech wuffi...@gmail.com wrote: I am new to this forum and I would like to throw out this question and hopefully someone can point me in the

Re: [android-developers] SQLite db limitations for Android app

2010-06-18 Thread Matthew Powers
Store it on the SDcard On Wed, Jun 9, 2010 at 3:10 PM, iThinkSimple ithinksimpl...@gmail.comwrote: Our Android application will read data from our own SQLite db which is around 3GB in size. What is the maximum storage limit for db that is specific to a single app? (The specs say that the

Re: [android-developers] How to override methods for existing framework classes

2010-06-18 Thread Mark Murphy
On Tue, Jun 15, 2010 at 5:51 AM, bohemianx bohemi...@gmail.com wrote: We are looking to provide our own class object to override some certain method inside of the framework classes, ex: startScan() in class WifiManager. Is it any way to override it with a .jar release package instead of

Re: [android-developers] why do I get null pointer with findWiewById ?

2010-06-18 Thread Mark Murphy
On Tue, Jun 15, 2010 at 4:32 AM, florence jeulin flo.jeu...@gmail.com wrote: I'm working on an application where I want to add adWhirl to manage adds. The app is working fine until I tryed to use adWhirl. I have try to get the view created with setContentView(R.layout.main) by calling

Re: [android-developers] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-18 Thread Robert Macaulay
On Fri, Jun 18, 2010 at 1:57 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jun 18, 2010 at 2:54 PM, Robert Macaulay robert.macau...@gmail.com wrote: Well, the 10 ms check didn't help. dumpsys alarm just shows that it used to run, but nothing currently scheduled. I have no

Re: [android-developers] Re: Game Stuttering

2010-06-18 Thread Dan Sherman
Avoid allocations. Allocations = garbage collection. On Tue, Jun 15, 2010 at 5:43 AM, lishali lishali12...@gmail.com wrote: I'm developing some games too, but when I want to find some articles about the code optimisation, I find nothing. I'm very interesting about how you can make your games

Re: [android-developers] AlarmManager ceasing to function. Dropping single shot alarms.

2010-06-18 Thread Mark Murphy
On Fri, Jun 18, 2010 at 3:35 PM, Robert Macaulay robert.macau...@gmail.com wrote: For example, if I schedule an alarm for now+120,000 with a 10,000 delay and the phone sleeps for 149,000 and wakes up, what will happen? Dunno. I've only used AlarmManager for _WAKEUP alarms. That's part of the

Re: [android-developers] Determine notification bar height from a service

2010-06-18 Thread Dianne Hackborn
There is deliberately no API to do this. You can either let your content be resized to account for it in a full-screen window, or let a dialog be positioned by the window manager to account for it. The status bar is not guaranteed to appear at a certain location of the screen, at only one

Re: [android-developers] Is there a dev tools for real device?

2010-06-18 Thread Dianne Hackborn
You should be able to just use adb to install it (if you don't have the .apk, you can use adb pull to pull it off the emulator for example). Some parts of it may not be functional if it can't get permissions on a production device. On Fri, Jun 18, 2010 at 8:31 AM, guich guiha...@gmail.com wrote:

Re: [android-developers] Re: [openGL] how to rotate quad around its center?

2010-06-18 Thread Leigh McRae
I would suggest reading the chapter on viewing from the Red Book. Here is a version online. http://www.glprogramming.com/red/ The problem is that your translations are out of order. Try this order. gl.glTranslatef( 10.0f, 10.5f, -0.0f ); //back to previous position gl.glRotatef( 45.0f,

[android-developers] Android Tutorials

2010-06-18 Thread Modi Sawan Ramswarup bhai
This is very interesting android application development This is tutorials in this websites. http://blogingtutorials.blogspot.com -- 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: Still trying to get my head around permissions - can anybody help?

2010-06-18 Thread Scytmo
On Jun 15, 5:11 pm, Richard C. Cox conard...@gmail.com wrote: I'm not sure if I completely grasp the Android permissions model.  I recently started working on a simple widget to put the phone to sleep.  Of course, it always gets a security exception because an ordinary user app isn't allowed

[android-developers] Re: Emulator kills sounds on Mac OS X

2010-06-18 Thread gpasq
One workaround is to start the emulator with -noaudio. On Jun 13, 3:39 am, sebsto sebastien.storm...@gmail.com wrote: Hello, I am using Android SDK on Mac OS X with an external sound card (Edirol) When I do start the Android Emulator, it stops all sound output on the Mac.  iTunes does not

[android-developers] Zixng web intent

2010-06-18 Thread Ralph_P
I try to invoke the barcode scanner intent from the web by creating a hyperlink http://zxing.appspot.com/scan. My application fail to recognize the Barcode scanner application and it keep saying A web page that you are trying to view would like to scan barcode with your camer. To do this you need

[android-developers] Virtual keyboard covering EditText

2010-06-18 Thread rtroxell
When positioning an EditText at the bottom of the screen with LinearLayout, the virtual keyboard is appearing over the EditText... as if the activity window is not being panned enough. The amount of covering appears to be related to the target device's resolution. With HVGA, the keyboard will

Re: [android-developers] Re: Droid Incredible Not Returning Valid DeviceID?

2010-06-18 Thread Matthew Powers
I am getting that problem on a droid and using the MAC address instead On Tue, Jun 15, 2010 at 2:32 PM, Josh F. joshful...@gmail.com wrote: I'm surprised nobody else is getting this problem. Maybe I'm the only one using the Device ID or the only one alerting users if it can't find it... On

[android-developers] Need Help on SQLITE ATTACH DATABASE COMMAND

2010-06-18 Thread Javastate
can someone provide a example about how to use db.execSQL() to write a attach database command. My add needs to copy some tables form old database into new one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Setting single line text in button

2010-06-18 Thread Dhawal
Hi, I am creating a button widget with icon and text. Single word text is getting divided into two lines. There is enough room on the screen for the button widget to grow. But it still wraps the text to next line. How do I force it to be single line ? This is how I setup th button widget. Button

[android-developers] How to open pdp context(2G, 3G) in the libraries layer without using httpclient

2010-06-18 Thread mark
Dear all I usually make functions used in libraries layer in android. These day, I need to make new function using http protocol. So I found httpclient in Java layer. But I want to know how to open pdp context(2G, 3G) in libraries layer without using httpclient in java layer. Tthanks in advance

[android-developers] World cities database

2010-06-18 Thread Hey its Ashish
Hi, I am working on application which required to display the data in following from: List of Region-List of Countries(As per selection)--List of Cities(As per selection) I had tried hard to find some web services which facilitate the same but no success, please help me to find it.

[android-developers] Is it possible to wake the device with : PowerManager.WakeLock.acquire()

2010-06-18 Thread reda
Hi, I have a timer that schedule a task to run every 5 minutes. This task send a request to a server, so I need to be sure that CPU is on so that wifi or 3g can be used. So the first thing I do in my run() method is : PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);

[android-developers] Re: Kill an app / package in API 8 (Froyo)

2010-06-18 Thread Happy C.
Hi Dianne, Sorry to bother you. Does the Force stop in the setting of android 2.2 also use KillBackgroundProcess or use the system level API (developer can't use directly) to make it? I have tried the KillBackgroundProcess and adding the related permission, but it can't stop the running app

[android-developers] Re: remap accelerometer coordinate system

2010-06-18 Thread repDetect()
On May 30, 12:47 pm, DH dh1...@gmail.com wrote: Hi,   the remapCoordinateSystem method remaps the axis for sensor readings, but I want to remap the coordinate system to any angle... I didn't try this yet but basically one can get any transformation using matrix multiplication,

[android-developers] Getting Hprof dump from application code

2010-06-18 Thread Natraj
In my application , i have an option to capture the hprof dump. I used android.os.Debug.dumpHprofData (String fileName) Initially i though the hprof data generated by the method above is for the entire device , which is not so . The hprof data generated is only for my process. Now i am trying

[android-developers] Problem with SSL/TLS on Android

2010-06-18 Thread Michał Karnicki
Hi guys, First I had a problem of The public key in the certificate cannot be used for ENCRYPT_MODE mentioned in an unanswered mail here http://osdir.com/ml/Android-Developers/2010-04/msg03214.html . Now when I know the problem's fixed on Froyo (

[android-developers] Get holiday list based on the locale.

2010-06-18 Thread Bhavana Bhat
Hi Is there any API in Android Calendar/DateUtils which provides a list of holidays based on the locale? If no currently, is there any plan to support this in future? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Has anyone gotten the EAS synth plugin to work in a DAW?

2010-06-18 Thread WhitneyApps
Hi, all! I've been trying to figure out how to make the SONiVOX EAS plugin to work in Cakewalk SONAR in order to do some JET authoring. JET in Android looks very interesting, but authoring really requires the EAS synth plugin. The web is full of questions (and a bug filed) but no answers that I

[android-developers] versionName in layout xml

2010-06-18 Thread rrd
I would like to show the versionName to the user in a textview TextView android:id=@+id/verzion android:text=@android:versionName android:layout_width=wrap_content android:layout_height=wrap_content /TextView Is it possible to modify the value of android:text to

[android-developers] NetDragon... Where do your apps go?

2010-06-18 Thread Brian
So I was recently requested by a representative from NetDragon about localizing my application to the Chinese market. For those of you who have gotten this kind of an email, you know exactly what I'm talking about. Anyway, I did some research on Google and found that most people who have submitted

[android-developers] Native codes do not respect Overriding

2010-06-18 Thread Mehdy
In an struggle to fix something in drawing of Webkit engine I ended up with this code to change the canvas to my canvas on the draw method: class MyWebView extends WebView { public MyWebView(Context context) { super(context); // TODO Auto-generated

[android-developers] Transparency with 2 .jpg files

2010-06-18 Thread lue
Hi, I'd like to have transparent images in my android-game but since we use lots of images, png24 filesizes are just too large. So I'm trying to achieve the same effect with two jpg files, one the actual image and the other the alpha-information. Here's how I did it so far: public void

[android-developers] O2 APN settings

2010-06-18 Thread Ringo
Greetings Please excuse the novice questions. I have just received my Android Dev Phone 1 and have inserted a data communication enabled (UK) O2 SIM card. However, I'm having difficulties connecting to google maps and receiving a GPS signal. I can receive a GPS signal fine with this SIM on my

[android-developers] GPS fix status detection

2010-06-18 Thread Jens MF
Hi: Is there a standard solution to determine if the GPS is having a fix? Actually I tried to get the status out of the callback method public void onStatusChanged(String provider, int status, Bundle extras) { ... }. But it doesn't get called and the API is quite restraining on exactly when it's

[android-developers] Finish an activity not started from the service

2010-06-18 Thread Manju
Hi, I've a service which listens to user request for ending one activity and starting another activity. For Ex: Say there are activities1,2 , 3. Now if there is already activity1 started by someother activity then based on the user request i need to stop activity1 and start activity2 or

  1   2   >