[android-developers] Re:

2010-07-29 Thread jamesc
You should try running the app on a phone that supports speech to text. On Jul 30, 4:37 am, krish wrote: > Hi, > > I am new to Android. I am using the SDK 2.2 and when i execute the > speech demo app, i get the following error message "Recogniser not > found". > > I have read the previous posts o

[android-developers] Re: What is the best way to handle Images?

2010-07-29 Thread Ed
if you are hanging onto a copy of the images have a look at SoftReference e.g. SoftReference myImage; This will automatically handle releasing the Bitmap if it's not in use or is taking up too much room. If you have a set of images the best approach is a hash map where the url of the image is th

[android-developers] Re: benchmarking /stress testing android applications

2010-07-29 Thread metal mikey
But...should Earth be invaded by multi-tentacled beings Android phones might lose market share to phones running OSes that can handle more than 2 fingers. On an equally serious note, if your App were to, say, run a web server that multiple phones can connect to then you might want to look at commo

[android-developers] Re: What is the best way to handle Images?

2010-07-29 Thread Sohan badaya
Hi, If someone knows please help me. Thanks Sohan Badaya On Thu, Jul 29, 2010 at 8:12 PM, Sohan badaya wrote: > Hi All, > > I wrote a application that load images from facebook and i show in > lmageview, using this below code. > >InputStream object = myDataFromS

[android-developers] Re: Application looking stretched

2010-07-29 Thread Johan Abramsson
Thanks for correcting me. Typing too fast - sorry. /Johan On Jul 27, 1:17 pm, Kostya Vasilyev wrote: > Johan, > > I think you got it backwards. > > > > is the "good" value to use. > > If the app still looks ugly after this (and android:smallScreens and > friends are set as well), it means that

[android-developers] Multiple Back Button clicks needed to exit application

2010-07-29 Thread Priyank
Hi, In my current application design, I have an activity class application.java (which starts on launching the application), and it does not have a layout(UI screen). I call another class called servicebind.java from the onCreate method of my 1st class. here I bind to the local server (bindServer()

Re: [android-developers] R.java file of my project is deleted.......how to get it back

2010-07-29 Thread A N K ! T
actually problem was that i created a xml file and by mistake named it capital alphabets..and after creating it i clicked on "clean" than R.java deleted autometically... i tried everything but nothing good happend than i renamed my xml file in small ..it came by its own.. nyways thanks alot for re

[android-developers] OpenGL missing pixels?

2010-07-29 Thread SChaser
I am drawing lines in OpenGL on an app that will zoom way in and out on the surface. I would like the lines to always be visible. Currently, when the line widths are small, at certain angles, the lines don't render. Specifically, I have a case where diagonal lines show but a horizontal one does no

[android-developers] running executable.

2010-07-29 Thread guru
Hi All I have a executable which i want to run. How to make it run during bootup time i.e it should be running when mobile gets rebooted. how to make this executable to run in Android and where we specify this? Thanks Gururaja B O -- You received this message because you are subscribed to the

[android-developers] ListView/Scrollview inside Gallery ?

2010-07-29 Thread CMF
Hi, just a question about a listview/scrollview inside a Gallery view : If I put a listview or a scrollview inside one of a gallery's view, is there a way to arrange it so that touch up/down scrolls the list and touch left/right scrolls the gallery? Thank you very much. -- You received this me

[android-developers] Re: How to prevent Runtime exception from SlidingDrawer onMeasure???

2010-07-29 Thread pnk444
Any help. I don't what is wrong in that design. Please correct me. Thanks in advance. On Jul 28, 8:46 pm, pnk444 wrote: > Hi. >    I have specified both layout_width and layout_height as > "fill_parent" in my xml file. > > Thanks in advanc. > > On Jul 28, 1:57 pm, Kostya Vasilyev wrote:

[android-developers]

2010-07-29 Thread krish
Hi, I am new to Android. I am using the SDK 2.2 and when i execute the speech demo app, i get the following error message "Recogniser not found". I have read the previous posts on the same topic, but i could no resolve the same. Can you please provide me some inputs... Thanks -- You received t

[android-developers] Load lots of Image from Internet and get Out-Of-Memory

2010-07-29 Thread CMF
public Bitmap DecodeFile(String Url) { try { URL aURL = new URL(Url); URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream();

[android-developers] Load lots of Image from Internet and get Out-Of-Memory

2010-07-29 Thread CMF
public Bitmap DecodeFile(String Url) { try { URL aURL = new URL(Url); URLConnection conn = aURL.openConnection(); conn.connect(); InputStream is = conn.getInputStream();

Re: [android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread Dianne Hackborn
On Thu, Jul 29, 2010 at 5:44 PM, James Wang wrote: > I found call System.exit(0) at A's onPause also can solve this problem. > Don't do that. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide priv

Re: [android-developers] Froyo -- How to detect that my application has been killed?

2010-07-29 Thread Dianne Hackborn
Applications can't kill services with this. They can only kill background processes, which the OOM killer is free to kill at any time anyway. On Thu, Jul 29, 2010 at 6:37 PM, tomei.ninge...@gmail.com < tomei.ninge...@gmail.com> wrote: > On Froyo, we found that some new "Task Manager" apps are no

Re: [android-developers] Confirmation routine

2010-07-29 Thread Frank Weiss
I assume you want a blocking alert dialog like the MsgBox() function. This has been brought up before and basically "no can do" the way the Android UI thread works, AFAIK. The two "natural" android approaches: 1) An other activity that you start with startActivityForResult(), which can be themed a

[android-developers] Confirmation routine

2010-07-29 Thread john brown
Hello, What is the recommended best practice for a "confirm routine"? A toast object is something like a visual basic MsgBox() routine but I have not found any variations for a toast that returns a "yes" or "no". An example might be: **

[android-developers] Re: Text blinking effect TextView

2010-07-29 Thread Zsolt Vasvari
Probably not easily. If I were to do something like this, I'd start with the source code to ViewFlipper and modify it. On Jul 30, 12:21 am, Huynh Ngoc Vu Nguyen wrote: > Hi all, > > Please let me know! How to make text blinking effect in TextView? > I am using Android SDK 2.2. > > Thanks, > Best

[android-developers] Re: Heads up, hold off updating to Java 1.6.0_21 on your dev machine

2010-07-29 Thread JP
On Jul 29, 3:51 pm, William Ferguson wrote: > There is a simple workaround as noted in the bug description. Yeah that's stuff though that one would expect to work out of the box, like it has for eons, actually (thumbs up to Sun here). My tank of workarounds is full, I am short of tolerating mor

[android-developers] Re: Maps API - controlling size of streets, font?

2010-07-29 Thread JP
On Jul 29, 12:14 pm, TreKing wrote: > On Thu, Jul 29, 2010 at 10:22 AM, JP wrote: > >  Is there any way to control this? > > I doubt it. > Yeah that's what I thought but I wanted to ask anyway. With a cursory check it not only appears that the street and landmark font sizes are actually suitab

[android-developers] Re: Maps API - controlling size of streets, font?

2010-07-29 Thread JP
On Jul 29, 12:48 pm, "Maps.Huge.Info (Maps API Guru)" wrote: > If you're really relying on the maps as the main part of your app, you > might consider using the JavaScript v3 API and a webview. You can > control a lot of things with the v3 JavaScript API plus it's fast and > efficient. > > See t

Re: [android-developers] TabHost & Splash Screens

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 9:24 PM, Bill wrote: > I have a TabHost activity that starts my application. I tried adding a > splash screen and it successfully loads the first time the application > is launched. The splash activity goes away and the tab activity is > displayed. If you exit the applicati

[android-developers] ContentProvider failing on insert

2010-07-29 Thread martinmike2
Hello, what i cam trying to do is this: 1. Check for db on startup (no problem) 2. If no db, create one (no problem) 3. input some data into the db (problem) 4. save the db (not there yet) The exception is being thrown when i call cp.insert I have stepped through the code line by line and the

Re: [android-developers] Re: No plan to support Netbeans?

2010-07-29 Thread Xavier Ducrohet
Actually there's no hope ;) We have no plan to officially support other IDEs than Eclipse. As someone said, we'd rather focus on improving the Eclipse integration (while still providing command line support of course). On Thu, Jul 29, 2010 at 3:40 AM, Maps.Huge.Info (Maps API Guru) wrote: > As A

[android-developers] Froyo -- How to detect that my application has been killed?

2010-07-29 Thread tomei.ninge...@gmail.com
On Froyo, we found that some new "Task Manager" apps are now using the ActivityManager.killBackgroundProcesses() to kill apps. When this happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired. How can I find out that my application has been killed? I tried to start a service, and I do see th

Re: [android-developers] Android Socket Communication

2010-07-29 Thread David Turner
http://developer.android.com/guide/developing/tools/emulator.html#connecting On Mon, Jul 19, 2010 at 10:50 AM, Arjun wrote: > Please clarify me on the following issues. > > How to assign a IP address to the emulator ? I have two application > packages which communicate through sockets. Apk1 imp

[android-developers] TabHost & Splash Screens

2010-07-29 Thread Bill
I have a TabHost activity that starts my application. I tried adding a splash screen and it successfully loads the first time the application is launched. The splash activity goes away and the tab activity is displayed. If you exit the application and start it again, the splash activity is not disp

[android-developers] DatabaseObjectNotClosedException When Using ContentProvider

2010-07-29 Thread Prasanna Perera
Hello, I am getting an 'android.database.sqlite.DatabaseObjectNotClosedException'. I am using a ContentProvider that I wrote following the standard method to write such a provider which accesses a SQLite database. I do not 'close' the cursor or database object in the ContentProvider. Should I b

[android-developers] Re: Widget problems after application update.

2010-07-29 Thread Subba
In Nexus one Widget gets properly updated even after application update, issue fixed 2.2 version. In 2.1 devices widget still shows wrong title, even after modifying the layout in updated apk file. Is there any work around for 2.1 devices? Please suggest. On Jul 29, 4:24 pm, Subba wrote: > Kos

[android-developers] Re: Widget problems after application update.

2010-07-29 Thread Subba
In Nexus one widget issue is be fixed. However in HTC Hero 2.1 widget issue still there even after adding linear layout to the widget. Any other workarounds for 2.1 devices? Seems like OEM is catching widget layout resource Ids, it's not updating resources. On Jul 29, 4:24 pm, Subba wrote: > Kos

[android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread James Wang
I found call System.exit(0) at A's onPause also can solve this problem. -- 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 a

Re: [android-developers] How to get handle to ImageView in a ListItem

2010-07-29 Thread Mark Murphy
The View passed into onListItemClick() is the row. Call findViewById() on that View to retrieve your ImageView. On Thu, Jul 29, 2010 at 8:29 PM, Hari wrote: > Hi, > I have implemented a "EfficientAdapter". Each list item is a > LinearLayout of a combination of image and text views.  This > Effici

[android-developers] Multiple Sliding Drawers

2010-07-29 Thread Sebastian Mauer
Hi there, I am m currently trying to incorporate multiple Sliding Drawers into one of my Views. Unfortunately I haven't been able to position them next to each other at the bottom of the screen. As default they handles will overlap each other in the order they have been attached to the parent View

[android-developers] How to get handle to ImageView in a ListItem

2010-07-29 Thread Hari
Hi, I have implemented a "EfficientAdapter". Each list item is a LinearLayout of a combination of image and text views. This EfficientAdapter is attached to a Array. Code snippet is below: [code] public class ExampleList extends ListActivity { private class EfficientAdapter extends BaseAdapter

[android-developers] Re: Encrypt with Android using AES, decrypt with PHP...

2010-07-29 Thread sblantipodi
For everyone who are sending me mails about this topic. I answered in this thread http://www.anddev.org/topic16062.html on anddev forum with a complete solutions and a working code snippets, please don't send me private mails, forum "intent" is to help people not a person. So a public answer could

[android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread James Wang
Hi Dianne, Thanks for your response. I can understand two different classloader for different apks even who are in the same process. But check the codes below: this.setContentView(R.layout.main); CustomedView view = (CustomedView)findViewById(R.id.customedView); I think there is nothing wrong th

[android-developers] filenotfoundexception on http get and post. just device. emu works

2010-07-29 Thread richie rich
anyone ever seen a HTTP get or post fail on device...same URLs work f ine in browser on device. same code works fine on emulator -- 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@googleg

[android-developers] FileNotFound Exception on Device not Emulator using URLConnection

2010-07-29 Thread richie rich
I"m doing a basic HTTP Get. Works fine a bagillion times in the emulator. Fails with this on the Device. I can load the URL fine in the browser on the device. W/System.err( 4576): java.io.FileNotFoundException: http://gotfanz.com/v1/join W/System.err( 4576):at org.apache.harmony.luni.internal

[android-developers] Re: Windows unable to recognize the HTC evo device

2010-07-29 Thread Arjun
Thanks friend for the help !! -Arjun. On Jul 29, 3:23 pm, Kostya Vasilyev wrote: > You could try editing the driver's "inf" file and adding proper USB vendor > and device id's for this phone. > > Search list archives for 'windows device manager', this came up within the > last few days. > > -- >

[android-developers] Re: cannot install USB drivers for HTC Slide, Android 2.1, Windows Vista 32 bit

2010-07-29 Thread Arjun
Thanks Guys !! For showing the path of light. On Jul 23, 11:32 am, mtippin wrote: > THANK YOU! > > I've been scanning the App Inventor forums looking for this solution - > after a few days with no reply there I thought I'd look to the > Developer forum - and here it is! > > I added the two lines

[android-developers]

2010-07-29 Thread Paul Sheldon
-- 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+unsubscr...@googlegroups.com For more options, visit

[android-developers] Re: Widget problems after application update.

2010-07-29 Thread Subba
Kostya, updateMessageCount does based on count it basically hides the count container view, if count > 0 it displays the count. In the first post i mentioned updateMessageCount signature wrong. Here is the code. updateMessageCount( Context context, int count, RemoteViews views) {

[android-developers] Re: Help: service auto restarts on breakpoint when debugging a service

2010-07-29 Thread MB
How did you conclude that the service is auto-starting? Put some 'Log.d()'s in your code in onCreate to confirm auto-starts. I've noticed in the debugger that at times, you have to 'step/next' twice to get over a statement. On Jul 29, 1:59 pm, Ahmad wrote: > I have not received any answer on th

Re: [android-developers] Building Android Library Projects from the Command Line

2010-07-29 Thread Mark Murphy
Out of curiosity, why are you not using Ant? On Thu, Jul 29, 2010 at 6:56 PM, Carter wrote: > I'm updating my application to take advantage of Android library > projects.  While I can get everything to build fine within Eclipse, > I'm stuck trying to update my build.sh script to support library >

Re: [android-developers] Accessing resources from other packages

2010-07-29 Thread Mark Murphy
On Wed, Jul 28, 2010 at 6:02 AM, { Devdroid } wrote: >> If they are both yours, it >> would seem simpler just to have the Notification icon reside in each >> application. > > Simplier does not always mean better. No, but they both use razors supplied by Dr. Occam. -- Mark Murphy (a Commons Guy)

Re: [android-developers] Re: benchmarking /stress testing android applications

2010-07-29 Thread Kostya Vasilyev
And no users with this many fingers, I guess :-) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 2:54 пользователь "Jeroen Kransen" написал: The onTouchListener API supports up to 256 simultaneous finger movements on the screen, but so far, there are no phones supporting more tha

Re: [android-developers] Re: Widget problems after application update.

2010-07-29 Thread Kostya Vasilyev
What does updateMessageCount do? Post simplified source. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 2:48 пользователь "Subba" написал: Any help or suggestions? On Jul 28, 6:28 pm, Subba wrote: > Application haswidgetwhich basically shows the number of new message > count i

Re: [android-developers] Re: Widget problems after application update.

2010-07-29 Thread YuviDroid
Hi Subba, I noticed the same thing happening with my widgets. The problem seems to be that the OS doesn't re-load the various layouts after an update. By testing I see that up to android 2.1 this problem exists. On 2.2 the widget is completely reloaded when an update is installed. What I noticed

[android-developers] Building Android Library Projects from the Command Line

2010-07-29 Thread Carter
I'm updating my application to take advantage of Android library projects. While I can get everything to build fine within Eclipse, I'm stuck trying to update my build.sh script to support library projects. At the moment, I can't figure out what options to pass to appt to tell it to look at my li

[android-developers] Re: benchmarking /stress testing android applications

2010-07-29 Thread Jeroen Kransen
The onTouchListener API supports up to 256 simultaneous finger movements on the screen, but so far, there are no phones supporting more than 2 fingers... :-) On 29 jul, 22:40, Kostya Vasilyev wrote: > How many users? I thought it was always "one"? > > -- > Kostya Vasilyev --http://kmansoft.wordpr

[android-developers] Re: Heads up, hold off updating to Java 1.6.0_21 on your dev machine

2010-07-29 Thread William Ferguson
There is a simple workaround as noted in the bug description. Or, Manually configure any affected Java Program to launch with proper VM arguments. See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=319514#c22 On Jul 30, 12:06 am, JP wrote: > Looks like a recent change in Java 1.6.0_21 c

[android-developers] Re: Widget problems after application update.

2010-07-29 Thread Subba
Any help or suggestions? On Jul 28, 6:28 pm, Subba wrote: > Application haswidgetwhich basically shows the number of new message > count in thewidget.Widgethas title and Count.When application gets > updated,widgettitle gets replaced with message count, and some times > it shows problem loadingwi

Re: [android-developers] Accessing resources from other packages

2010-07-29 Thread Dianne Hackborn
On Wed, Jul 28, 2010 at 3:02 AM, { Devdroid } wrote: > Simplier does not always mean better. > What if you post a notification for your app, using an icon from another app, and then the user goes and uninstalls the other app? -- Dianne Hackborn Android framework engineer hack...@android.com No

Re: [android-developers] Re: Application works after reboot the phone

2010-07-29 Thread Dianne Hackborn
That is not a stack crawl. On Sun, Jul 25, 2010 at 8:50 PM, mike wrote: > this is the exact exception i'm getting > > java.lang.SecurityException: Permission Denial: reading > com.android.providers.downloads.DownloadProvider uri > content://downloads/download > from pid=249, uid=10003 requires >

Re: [android-developers] Re: Storing data on the SD card in Froyo - files deleted when upgrading

2010-07-29 Thread Dianne Hackborn
Sorry yes this is indeed a bug in Froyo. :( I have patch to fix this now in the Froyo tree: https://review.source.android.com/16151 I can't tell you when it will appear on various devices, but hopefully we can get it rolled out fairly quickly. (Note -- do expect to see devices updating to Froyo

Re: [android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Kostya Vasilyev
Not all services are local. I guess that's the main reason for async protocol, which assumes the most general case. But then again, only developers of Android know for sure :-) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 1:01 пользователь "Jeroen Kransen" написал: Thank you

Re: [android-developers] Windows unable to recognize the HTC evo device

2010-07-29 Thread Kostya Vasilyev
You could try editing the driver's "inf" file and adding proper USB vendor and device id's for this phone. Search list archives for 'windows device manager', this came up within the last few days. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 1:59 пользователь "Arjun" написал:

[android-developers] Re: Android Socket Communication

2010-07-29 Thread Arjun
Thanks Stephan for the information. On Jul 20, 9:37 am, stephan wrote: > First question: Generally you could distinguish the applications by > using different port numbers of each end of the communication. > BUT: Whouldn't it be better to use the Android inter-process > communication like Serial

[android-developers] Windows unable to recognize the HTC evo device

2010-07-29 Thread Arjun
Hello, Android phone: HTC Sprint EVO 4g Connected to PC by USB cable PC OS :Win XP Last update of android sdk : very recent (today). up to date updates On command line if I type adb devices: adb devices it shows "List of devices empty". Did the following resolutions but nothing worked. Cleared

[android-developers] Re: Possible to gather application logs at runtime?

2010-07-29 Thread j
Yes the circular buffer is only 64K and too small in my opinion (considering all apps write to the same buffer). On Jul 29, 2:32 pm, Mark Murphy wrote: > On Thu, Jul 29, 2010 at 2:27 PM, Jin Chiu wrote: > > Also, how big is the default logcat buffer, > > or how do I find out? > > I seem to recal

[android-developers] Unable to retrieve the GIVEN_NAME or FAMILY_NAME from database

2010-07-29 Thread j
While iterating through my contacts database, the firstName (GIVEN_NAME) always returns an integer (0, 1, 2, ... 7) while the lastName (FAMILY_NAME) always returns null. I am running on HTC Incredible. What am I doing wrong? Uri uri = Phone.CONTENT_URI; String[] projection = new

Re: [android-developers] Re: Possible to gather application logs at runtime?

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 2:27 PM, Jin Chiu wrote: > Also, how big is the default logcat buffer, > or how do I find out? I seem to recall it is a 64K circular buffer, but I'm far from certain about that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://c

Re: [android-developers] Re: Is it possible to have a single ui element instance across the application?

2010-07-29 Thread Mark Murphy
On Thu, Jul 29, 2010 at 9:27 AM, sagare wrote: >   I want this coz i am trying to create a ui element which has to > maintain state and there will be only one such ui element accross > activities any way? Use a service, database, or file for your state. -- Mark Murphy (a Commons Guy) http://com

[android-developers] Re: How to zoom in/zoom out to ImageView

2010-07-29 Thread jeffro
You could create your own view and override the draw method to perform the scaling for you: @Override public void draw(Canvas canvas) { super.draw(canvas); canvas.translate(dx, dy); //for dragging canvas.scale(scale, scale,screenDim/2

[android-developers] content provider failes on insert row

2010-07-29 Thread martinmike2
Hello, what i cam trying to do is this: 1. Check for db on startup (no problem) 2. If no db, create one (no problem) 3. input some data into the db (problem) 4. save the db (not there yet) The exception is being thrown when i call cp.insert I have stepped through the code line by line and the

[android-developers] Application crashes on Samgsung Moment

2010-07-29 Thread singhk
Hi All, Has anyone had any problems with their applications crashing on the Samsung Moment? I have a customer who is reporting that my application crashes on their Samsung Moment when installing and crashes when they try to run app. Even posted very negative comments and ratings because of issues

[android-developers]

2010-07-29 Thread krish
Hi, I am new to Android. I am using the SDK 2.2 and when i execute the speech demo app, i get the following error message "Recogniser not found". I have read the previous posts on the same topic, but i could no resolve the same. Can you please provide me some inputs... Thanks -- You received

[android-developers] Re: Hiding SMS notifications

2010-07-29 Thread Talha Shabib Ahmed
Hi there andrea, I am working on a very similar project where i have to filter messages, delete some of them and pass some normally to SMS app. I have no idea how to disable notifications for the messages i have to delete. I would really appreciate any help On Jul 26, 12:00 pm, Andrea Rota wrot

[android-developers] Re: Hiding SMS notifications

2010-07-29 Thread Talha Shabib Ahmed
Hi there Andrea. I am working on a very similar project where i intercept SMS, process it and either delete it or just pass it normaly to SMS app. I am also stuck at how to disable the notifications for the sms that i want to delete... I would really appreciate if you can help.. On Ju

[android-developers] How to delete the text messages based on the senders' number?

2010-07-29 Thread Leonardo
Hi, guys, I made a app to block some junk messages. That app would delete the messages from the senders specified in the ban list. That app works in a way, but has some defects, as follows, 1. Sometime it just doesn't work, missing the new message to delete. 2. Even if it works deleting the message

[android-developers] sun/security/x509/X500Name

2010-07-29 Thread Andrdev
hello guys, i just upgraded to Android 2.2 on windows xp and using eclipse IDE. I am using sun JDK 1.6. seeing this build package error - Errors occurred during the build. Errors running builder 'Android Package Builder' on project 'ts'. sun/security/x509/X500Name i saw some not

Re: [android-developers] R.java file of my project is deleted.......how to get it back

2010-07-29 Thread Asad Ali
On Thu, Jul 29, 2010 at 5:19 PM, A N K ! T wrote: > hey > R.java has deleted autometically...how to get it back > > -- > > A N K ! T.. > > simple compile the code it will create R.java for you (Goto Project -> > Clean Build ) Have a Good Time, Syed Asad Ali, > > -- > You receiv

[android-developers] Re: Hiding SMS notifications

2010-07-29 Thread Talha Shabib Ahmed
Hi there andrea, I am working on a very similar project where i have to filter messages, delete some of them and pass some normally to SMS app. I have no idea how to disable notifications for the messages i have to delete. I would really appreciate any help On Jul 26, 12:00 pm, Andrea Rota wrot

[android-developers] See when activity is fully rendered?

2010-07-29 Thread pimpim
Beginner question. I have an application which I'm doing some testing on. I need to measure how long it takes for an activity to fully render. Is there a way to do this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: What error message are you getting from your not-yet-whitelisted C2DM application?

2010-07-29 Thread Rodrigo
Same problem here. Jamie, did you solve your problem, or still getting 401 Unauthorized? On Jul 23, 6:24 am, Jamie wrote: > I thought I had this C2DM stuff figured out and have both my app/ > device registered and working nicely with my application server.  I'd > gotten to a point where my applic

[android-developers] How to capture event of the keyboard be pressed long time?

2010-07-29 Thread Pou
Excause me, I meet the question, i hope everybody help me to slove it. the question is about .. when i use the browser to read web page in the android, the page have a textbox and it's read-only. but you still can enter the textbox, and you can press the keyboard long time to change the word, you

[android-developers] Issues with Playing 2 videos using HTML5 Video Element in Android

2010-07-29 Thread Darshan
Hi All, Right now I am building a web page that plays videos using HTML5 element. Here is the sample page: HTML5 Android Error Video Sample //videoEndedListener

[android-developers] Nexus One as a developer phone availability

2010-07-29 Thread beny
Hi, does anybody has the Nexus One available in Android Market as developer phone or it's not there yet. I'm from Europe, and have there only ADP2. I tried to look there through US proxy and see ADP2 only. Should I hope to see Nexus there in a near future or should look for diferent phone. beny -

[android-developers] How get all the list of prebuilt/native applications list

2010-07-29 Thread rahul india
Hi All, I checking for the code which should provide all the prebuil/native applications lists so that i can give permission for only those applications to access my application.. is this possible?? Please share ur comments on this... Thax in advance Regards, Rahul. -- You received this messa

[android-developers] Win 32 exception during adb.exe invoke

2010-07-29 Thread matrixlnmi169
Hi , I am facing a strange problems . I had installed android SDK (android-sdk-windows-1.6_r1 on T40) and Eclipse Java EE IDE for Web Developers.Version: Helios Release Build id: 20100617-1415 I have also installed VS2008 in my system . When ever i start the eclipse and start doing developemen

[android-developers] help with debugging Samsung Moment

2010-07-29 Thread singhk
Hello All, Is anyone willing to download my APP on a Samsung Moment and help me find out whats causing a crash? I will provide a link for APP download directly from me. terms can be discussed privately. Thank you, singhk -- You received this message because you are subscribed to the Google Group

[android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Jeroen Kransen
Thank you so much, Kostya! Indeed it turns out to be an asynchronous call. It makes the design of the Activity slightly more verbose, but at least I got it working. Are there imperative reasons why the service is not returned synchronously? Is it very costly to (instantiate and) return a local Serv

[android-developers] Re: Help: service auto restarts on breakpoint when debugging a service

2010-07-29 Thread Ahmad
I have not received any answer on this. Is anyone from google/android reading this? I can't believe this to be an isolated issue. I am sure others have come to/ or will come to it. Any pointer to this will be appreciated. On Jul 22, 3:35 pm, Ahmad wrote: > I am trying to run the sample soft k

Re: [android-developers] Re: VideoView and SlidingDrawer problem

2010-07-29 Thread Victoria Busse
Thanks a lot, but unfortunately that didn't do the trick. Somehow VideoView wants to stay at front, I tried to set it to SendToBack() but that was undefined for VideoView. On Thu, Jul 29, 2010 at 9:30 AM, Sarwar Erfan wrote: > Hi, > Seems like z order issue. > > Try this: > > 1. Add these import

Re: [android-developers] benchmarking /stress testing android applications

2010-07-29 Thread Kostya Vasilyev
How many users? I thought it was always "one"? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 30.07.2010 0:24 пользователь "rahul jain" написал: Hi there ! What are the third party tools available for benchmarking mobile applications. I mean stress testing, measuring how many users it can

Re: [android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Kostya Vasilyev
If I remember right, starting a service is asynchronous vs. the call to bindService, and so are the callbacks in ServiceConnection. This means if you call the service on the next line after bindService, you'll get a null pointer exception. Also make sure your Service subclass doesn't fail to inst

[android-developers] benchmarking /stress testing android applications

2010-07-29 Thread rahul jain
Hi there ! What are the third party tools available for benchmarking mobile applications. I mean stress testing, measuring how many users it can handle or the complexity of my application. Thanks. Rahul -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Jeroen Kransen
This is the only serious logging I get in LogCat. Sometimes after that I get a timeout on the Service, so maybe it is running, I just don't get a reference to it. 07-29 22:17:15.485: WARN/WindowManager(166): Force clearing freeze: AppWindowToken{46ad1860 token=HistoryRecord{465c3f50 nl.kransen.con

[android-developers] Re: bindService() does not create local service, but returns true

2010-07-29 Thread Jeroen Kransen
Please help anybody. I create a local service in the simplest possible way, but when I bind to it, the reference remains null. Did I find a bug anywhere? I am developing from Eclipse with lib and target platform 2.1 update 1 (although other versions did not make a difference). My activity is like

[android-developers] Re: Maps API - controlling size of streets, font?

2010-07-29 Thread Maps.Huge.Info (Maps API Guru)
If you're really relying on the maps as the main part of your app, you might consider using the JavaScript v3 API and a webview. You can control a lot of things with the v3 JavaScript API plus it's fast and efficient. See this URL for an implementation example: http://code.google.com/apis/maps/ar

[android-developers] facebook sdk

2010-07-29 Thread Pedro Teixeira
Hello, I just saw the Facebook SDK was released for Android. Can someone help me on how to install it? I don't get the instructions on the github... "Pull the read-only repository from github e.g. "git clone git://github.com/facebook/facebook-android-sdk.git" (if you have trouble, you could al

Re: [android-developers] Emulate android preference category look and feel

2010-07-29 Thread TreKing
On Thu, Jul 29, 2010 at 12:19 PM, Premier wrote: > In my activity (no preferenceactivity) i want to use same style, how i can > do? > Hint: It's open source. - TreKing

Re: [android-developers] How to execute shell script file from android application

2010-07-29 Thread Dianne Hackborn
In addition to the permission restriction, no shell commands are part of the SDK, so anything using exec() is relying on private APIs and likely to break in the future or on different devices. On Wed, Jul 28, 2010 at 3:39 AM, Suchita Sharma wrote: > > Hi all, > > I am trying to execute a shell sc

Re: [android-developers] Re: Accessing @hide methods in the Android source code

2010-07-29 Thread Dianne Hackborn
On Thu, Jul 29, 2010 at 3:35 AM, Kwisatz wrote: > In comment 12 of that thread, a guy from Google itself suggests that > we must implement our own contacts editor. So, the easy and fastest > way of doing that is to replicate the Android Contacts application, > since it's open source and all. BUT,

Re: [android-developers] Receiving System Intents with Custom Broadcast Receiver

2010-07-29 Thread Dianne Hackborn
That broadcast tells you when the current input method component has changed (that is the user has switched from one input method to another). Interaction with the current input method is done through the view APIs. For the case of the IME being shown, you find out about this indirectly through y

Re: [android-developers] Create new process

2010-07-29 Thread Dianne Hackborn
Sorry this is not supported. On Thu, Jul 29, 2010 at 5:41 AM, David Given wrote: > On 29/07/10 12:37, Mark Murphy wrote: > [...] > > You're saying you want to use *several processes* for one app? Not > > one, not two, but many? > > That is correct. It's an environment for running alien applicati

Re: [android-developers] Maps API - controlling size of streets, font?

2010-07-29 Thread TreKing
On Thu, Jul 29, 2010 at 10:22 AM, JP wrote: > Is there any way to control this? > I doubt it. > Comparing a MapView-based app against Google's Maps app, the difference > is rather obvious, in particular when zooming out. > There's a lot that Google Map's app does that MapView does not but s

Re: [android-developers] use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-29 Thread Dianne Hackborn
Yes it does load them through different class loaders. This is working as intended. On Thu, Jul 29, 2010 at 7:57 AM, James Wang wrote: > We have two apks A and B which both import one platform library by use- > library in AndroidManifest. > And they have the same android:process so they run in

Re: [android-developers] finish() at onStop causes ANR

2010-07-29 Thread Dianne Hackborn
adb shell cat /data/anr/traces.txt That contains the stack crawls of the last ANR. On Thu, Jul 29, 2010 at 8:09 AM, James Wang wrote: > We have two apks A and B. > A starts B at onBackPressed. > > Doing as steps below can make ANR: > 1)starts emulator and A; > 2)put one finger on A and hold on

  1   2   >