[android-developers] Default SMS Activity Result code coming as RESULT_CANCELED even SMS is received successfully

2010-07-20 Thread Amit
Hi All, I am invoking the default SMS activity by using the following code- intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:")); intent.putExtra("sms_body", "SMSText"); startActivityForResult(intent, 11); //Here 11 is my request code The SMS activity gets opened in emulator (5554), i type

[android-developers] Re: how to know when"activity is displayed"

2010-07-20 Thread jamesc
In addition to Al's suggestions, you might also want to look at Activity.onWindowFocusChanged. On Jul 19, 7:43 pm, Al wrote: > You can use the onStart/Resume/Pause/Stop to know when your app is > visible or in the background. > > > > hen wrote: > > Hi all, > > > Could I get information from Activ

[android-developers] Re: Authenticating an app

2010-07-20 Thread ko5tik
On Jul 19, 9:02 am, Ken wrote: > Hi, > > I wonder if it's possible to authenticate an app with a http server. > THe server API does not require user name or password, but I'd like to > expose the server API to a particular app only (so that it cannot be > abused by other program). Even if serve

[android-developers] Bizarre Conversion to Dalvik format error caused by Google Chrome APK file lock

2010-07-20 Thread Mark Carter
I have a small test Android Project used to test the MediaPlayer class. For this project, usually after a few builds, the compiler gives this exception: Conversion to Dalvik format failed with error 1 I've narrowed this down to Google Chrome locking the generated .apk file (in /bin). So, the bui

[android-developers] Re: Bizarre Conversion to Dalvik format error caused by Google Chrome APK file lock

2010-07-20 Thread Mark Carter
Ah - just realised this is because I've been emailing the APK as an attachment to a gmail message. For some reason, Chrome is not releasing the file lock after the message is sent. So the reason it wasn't a problem with my other projects was because I was not emailing those APKs :) Clearly a Chro

[android-developers] Re: ArrayAdapter craziness

2010-07-20 Thread metal mikey
Yeah, had similar problems in an ExpandableListAdapter when too much processing time was spent in overridden getChildView or getGroupView. So perhaps a solution to your problem is to minimise the amount of work being done in your getChildView function. On Jul 20, 4:01 pm, "nwmotog...@gmail.com" w

[android-developers] Re: Receiving UDP Broadcasts

2010-07-20 Thread Frank Neuhaus
On 19 Jul., 17:13, elpix1 wrote: > Hi . Hi, thanks a lot for your reply > We are also having the same problem. > Our application worked flawlessly with 1.5, 1.6 and 2.0, > but doesn't receive UDP broadcasts any more with > HTC HERO 2.1  and HTC EVO 2.1. > > Curiously it worked with Nexus One 2.

[android-developers] Uploading files on servlet

2010-07-20 Thread nomi
Hi, I have used apache file uploader to get request for uploading files on servlet. But my problem is, I want to upload files on that servlet using my android application and I am enable to do this. can anybody help me. Plz it's urgent. Thanks -- You received this message because you are subscr

[android-developers] GpsStatusListener: no satellites used in fix although status is GpsStatus.GPS_EVENT_FIRST_FIX

2010-07-20 Thread Mathias Lin
I added a gps status listener to my location manager in order see when I get the first fix. When I receive the GPS_EVENT_FIRST_FIX I then loop through all the satellites, but why is none of them used in the fix? (usedInFix()). My log says 'false' for all satellites? final class GpsStatusList

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

2010-07-20 Thread Bob Kerns
Ah, you mean "special" as in "an additional step", rather than "special case". Sorry -- yes, in that sense. And, of course, with PHP hardwired to do null padding, the other end must conform. On Jul 19, 9:26 am, "Raymond C. Rodgers" wrote: > Well, I'm not talking security wise, just compatibility

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

2010-07-20 Thread Bob Kerns
A good rule to follow is that you should never, ever, call the getBytes() method, nor any method or constructor in the SDK that has a variant that takes a character encoding. I've fixed an incredible number of bugs from this cause. You almost always want to supply "UTF-8" as that encoding, too. O

[android-developers] Re: what is problem with my library project

2010-07-20 Thread String
On Jul 20, 3:37 am, cindy wrote: > The exception show in DDMS is : java.lang.verificatin error. In my experience, verification errors are problems with Android version; you're trying to use a feature introduced in a later SDK version than the device is running. An example would be running an app

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

2010-07-20 Thread Bob Kerns
Sorry for the delay in responding -- I haven't been able to keep up with the volume lately -- and I'm amazed at how well you do. On Jul 6, 12:47 pm, Dianne Hackborn wrote: > On Mon, Jul 5, 2010 at 11:56 PM, Bob Kerns wrote: > > Actually, they CAN return different Application objects, and are >

[android-developers] Re: Intercepting incoming call

2010-07-20 Thread mike
hi Kartic, did u found a way to do this?? regards, Mike -- 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-develop

[android-developers] Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread Alex Xin
Hi, I have a free app that has 64% of ratings at 5 starts, but still has 9% of ratings at only 1 start, some of them even said that my app is an "useless garbage", so I think maybe I need to leave a reply to those users to explain something or answer their questions. So are there any ways that we

[android-developers] make app as default app

2010-07-20 Thread Sandeep
Hi All, I am developing a dialer application. programatically its possible to make my application/ Activity as a default apps/ Activity ? or can i hide the default incoming caller screen ? Regards Sandeep -- You received this message because you are subscribed to the Google Groups "Android Deve

[android-developers] Re: Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread String
The only way to do it is to install your app on a device and leave a comment of your own in the Market listing on that device. This is OK (but obviously not great) for free apps like yours, but doesn't generally work for paid apps (because Google won't let you buy a copy of your own app). The lack

[android-developers] What to do when - java.io.FileNotFoundException: No content provider??

2010-07-20 Thread kivy
Hi everyone, when I try to attach a file to an email, I get a java.io.FileNotFoundException: No content provider logcat output. If anyone could tell me what I am doing wrong or what I should do instead, that would be great.Thank you. This is how I add the files to the email..: Intent sendIntent

[android-developers] Using "+" from the soft Keyboard to increase the value in an EditTex

2010-07-20 Thread wedyan
Hi, I have an application in which I'm using an EditText to enter numbers. Howwever, I need to inlucde another option where the user can use the "+" and "-" to increase/decrease the value entered in the EditText. Is that possible? Thanks -- You received this message because you are subscribed to

[android-developers] Twitter / Facebook source code

2010-07-20 Thread oriharel
Where can I find the source code of Twitter / Facebook? -- 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-developer

[android-developers] Positioning an animation at an arbitrary location on screen

2010-07-20 Thread Lee
I'm trying to make it so that an AnimationDrawable is drawn at the point on the screen where the user taps. Is there an easier way to accomplish this than redeclaring the layout parameters for the RelativeLayout? Thanks Lee -- You received this message because you are subscribed to the Google G

[android-developers] Google Maps & apps with mapview have different current positions

2010-07-20 Thread Mathias Lin
I have a mapview where I want to track the user's current location. GPS as well as 'use wireless networks' is activated in my phone settings. Nevertheless, since I'm indoor I don't get a GPS fix, therefore the location is determined via network; wifi spot is available. I have the Google Maps ap

[android-developers] Android Market paid app download errors

2010-07-20 Thread Sam
Hi The Android market has been giving errors (than usual) since the weekend to customers trying to download my paid apps. This is leading to a large number of cancellations and complaints. One customer is complaining in particular they get a Google market "server error" when they try to cancel th

[android-developers] Android Market paid app download errors

2010-07-20 Thread Sam
Hi The Android market has been giving errors (more than usual) since the weekend to customers trying to download my paid apps. This is leading to many cancellations and complaints. One customer is complaining in particular they get a Google market "server error" when they try to cancel their ord

[android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
Hi, I have a background thread which queries for 1000 records at a time. After querying , when i call cursor.moveToFirst(), the UI gets blocked until the operation is completed.This is very disturbing experience for user , especially if there are 1 plus records.I use Thread.sleep in between aft

[android-developers] Create WRT widgets with MS Visual Studio Plug-in

2010-07-20 Thread James Baker
All Web developers who have chosen Microsoft Visual Studio 2008 as their development platform can now plug in features that dramatically simplify the process of creating applications with WRT!! The Nokia WRT Plug-in for Visual Studio provides features that enables the creation, editing, testing,

Re: [android-developers] Re: Application is not installed on your phone

2010-07-20 Thread Mark Murphy
On Tue, Jul 20, 2010 at 12:43 AM, JOBZ wrote: >     Actually my problem is, I created an application and its working > properly in emulator and phone ,but sometimes when i taping on the > application short cut to open the application again an error message > showing "Application is not installed o

[android-developers] Re: can a Service call startService() on itself?

2010-07-20 Thread goosedroid
I spent some time looking with Google Code Search, but I have not been able to find instances where this was done. Would there be any differences between these two attempts: Intent intent = new Intent(getApplicationContext(), MyService.class); startService(intent) or Intent intent = new Intent(

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Mark Murphy
On Tue, Jul 20, 2010 at 7:14 AM, Alok Kulkarni wrote: > I have a background thread which queries for 1000 records at a time. After > querying , when i call cursor.moveToFirst(), the UI gets blocked until the > operation is completed. When you call query() or rawQuery(), the query is not actually

Re: [android-developers] make app as default app

2010-07-20 Thread Mark Murphy
On Tue, Jul 20, 2010 at 5:28 AM, Sandeep wrote: > I am developing a dialer application. > programatically its possible to make my application/ Activity as a > default apps/ Activity ? > or can i hide the default incoming caller screen ? There is no supported API for this, and if there were, it wo

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread anil kukreti
Ya Mark is right ! You need to use *multithreading* for making a reponsive UI. Thread.sleep inside spawned thread will give a chance to main UI thread to response to User events. -- Forwarded message -- From: Alok Kulkarni Date: Tue, Jul 20, 2010 at 4:44 PM Subject: [android-de

[android-developers] Re: Downloading files with HTTPGet fails on Evo

2010-07-20 Thread Eric Crump
I figured it out. For those experiancing the same issue, you have to set the header for the HttpGet before sending the request. This solved my issue. httpget.setHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20") On Jul 19, 10:26 p

[android-developers] Re: Has anyone get App Inventor accounts?

2010-07-20 Thread nation-x
nada here On Jul 20, 2:52 am, Eelco wrote: > Same here, I registered, but no reply -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, se

[android-developers] Re: ArrayAdapter craziness

2010-07-20 Thread nation-x
Can you post your getView code? Are you using a holder? Shawn On Jul 20, 2:01 am, "nwmotog...@gmail.com" wrote: > I am using a custom array adapter in my ListView.  It works fine when > I am scrolling through a list of items slowly but when I attempt to > scroll quickly the activity get's closed

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
Hi Mark, As i said , i am doing the operation in a "background thread". I also know that cursor.moveToFirst() causes the data to be accessed at that point. Here is the code public void getAllSongIdsOffset(int offset, int limit) { int nTrackId; try { SQLiteDatabas

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Mark Murphy
With respect to your " If i dont do a Thread.sleep... the UI gets completely blocked until all the records are fetched.", the problem would appear to be in whatever your Handler is doing, or possibly just due to all the garbage collection you are doing. None of the code you show here, other than th

[android-developers] Re: What to do when - java.io.FileNotFoundException: No content provider??

2010-07-20 Thread DanH
Well, I can tell you it's looking for the file /sdcard/Video0006.mp4 and not finding it. On Jul 20, 4:34 am, kivy wrote: > Hi everyone, > > when I try to attach a file to an email, I get a > java.io.FileNotFoundException: No content provider logcat output. If > anyone could tell me what I am doin

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
Hi Mark, Thanks for your reply. What i did was i removed the System.gc() as well as the handler call. Considering the code from above snippet. Log.i("VALUE->", "Before movetoFirst" + System.currentTimeMillis()); mCursor.moveToFirst(); Log.i("VALUE->", "After movetoFirst" +

[android-developers] dissmis a Progressdialog after recieving a message broadcast

2010-07-20 Thread Mohammad Siddiqui
Hi everyone I my appication ,i a have activity(suppose A) in which on button click we send sms and the waiting for the response of the sms(which a sms response coming from a specified number ) in between i show a progress dialog which is started from the Activity A my problem is that how to di

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Mark Murphy
On Tue, Jul 20, 2010 at 8:24 AM, Alok Kulkarni wrote: > Thanks for your reply. What i did was i removed the System.gc() as well as > the handler call. > Considering the code  from above snippet. > > Log.i("VALUE->", "Before movetoFirst" + > System.currentTimeMillis()); > mCursor.move

[android-developers] How to configure Exchange Account??

2010-07-20 Thread bharath
Hi.. When I click on Calendar icon in the emulator, it is showing to add an Exchange Account. I tried creating account with correct user name, password and Server. but its showing "Unable to open connection to server.", when I checked the checkbox "Accept all SSL certificates" its showing "Usernam

Re: [android-developers] Re: What to do when - java.io.FileNotFoundException: No content provider??

2010-07-20 Thread Victoria Busse
I was trying to use sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(uri))); but then I get an eclipse error saying that I should change String vuri = Uri.parse(videocursor.getString(0)); into an uri because of a type mismatch, when I do that eclipse says I should change it back into

[android-developers] Re: Has anyone get App Inventor accounts?

2010-07-20 Thread gcstang
Same no response On Jul 20, 6:45 am, nation-x wrote: > nada here > > On Jul 20, 2:52 am, Eelco wrote: > > > Same here, I registered, but no reply -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Re: Word-wrap EditText issue

2010-07-20 Thread Bryan
Beside finding the source of the issue, I also found the solution. If 'android:inputType' used, then 'textMultiLine' must be used to enable multiLine support. Also, using 'inputType' supercedes the code 'android:singleLine="false"'. If using 'inputType', to reiterate, 'textMultiLine' must be use

Re: [android-developers] Re: Screen Rotation

2010-07-20 Thread TreKing
On Sat, Jul 17, 2010 at 9:40 AM, nation-x wrote: > there is an example of one way to save an array object to a file and to > read it back in. > Note that the OP's problem was trying to retain data on screen rotation, not persist across application restarts. In general, saving data to a file and

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
Yess :( Anyone can try it out.. One more thing.. I have iniialised the DB ie called the getWritiabledDatabase at the start of app from the Application class.Is the accessing the DB from a new thread causing the UI to hang if supposedly the Application context means the UI context getting blocked a

[android-developers] Using a Handler in this code?

2010-07-20 Thread Aidan C
Hey guys, I've got 2 classes `GLLayer` and `GLCamTest`. I'm attempting to run a method located in `GLCamTest`... public Bitmap extractimage(int pos){ LocationData tweets; tweets = new LocationData(this); SQLiteDatabase db = tweets.getWritabl

[android-developers] requestRouteToHost always returns false on AVD

2010-07-20 Thread Tina
Hi, all! I need to check web site availability and use requestRouteToHost for that purpose. On real device everything works fine, but on emulator requestRouteToHost always return "false". What's wrong? Code is: public static boolean isHostAvailable(Context context, String urlString) throws Unkno

[android-developers] intent.action_send and intent chooser

2010-07-20 Thread tnull
When creating an intent with action send to send some data, is there a way to filter the results that are included in the activity chooser that is created using Intent.createChooser? I have not seen a way to do this other than setting the mime type, but it is not flexible enough. For example, ther

Re: [android-developers] intent.action_send and intent chooser

2010-07-20 Thread Mark Murphy
On Tue, Jul 20, 2010 at 10:20 AM, tnull wrote: > For example, there is a situation when I want e-mail apps to be the > only results in the activity chooser dialog. What are "e-mail apps"? > Setting the type to "text/ > html" successfully filters this down to email apps Only on your test environ

Re: [android-developers] cursor.moveToFirst() blocking UI

2010-07-20 Thread Alok Kulkarni
Problem Solved.. The problem was that i was querying on the tracks database for 1000 songs.. At the same time, scrolling the list would make a call to the same tracks table. This is synchronous in Android using the same DB object. So the solution was to create a seperate DB object as getReadableDat

[android-developers] how to show the CPU usage on the real devices?

2010-07-20 Thread coolbanana
Hi, is it possible to set the "Development Setting" on the real devices, as on the emulators? in fact, i want to see/konw the cpu usage, while my App runs. Thanks C.B. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] Re: Using a Handler in this code?

2010-07-20 Thread Matty
I'm not sure why you can't just use a thread (no handler)? If you do need a handler, you can just create a new runnable, and post it to the handler with something like: new Handler().post(new Runnable(){ public void run(){ image = new GLCamTest().extractimage(q); } }); (Obviously, the code ab

[android-developers] Re: Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread Pent
Yes I'm starting to detest those market comments because it's extremely detrimental to my blood pressure not being able to answer them. Pent -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel

Re: [android-developers] Google Maps & apps with mapview have different current positions Options

2010-07-20 Thread Mathias Lin
I think I found an answer, although not a solution. It seems that the problem is in the data quality of the different map provider that are used for Google Maps and MapView in SDK, which differ. The map tiles coordinates don't seem to be very accurate, just like in the public google maps web a

[android-developers] App Not Showing Up for Some Devices (1.5?)

2010-07-20 Thread Scott Kennedy
I have an application in the Market called Coverage Mapper. In my Market account, it's setup as follows: Free Copy Protection off Available in Australia, Canada, Czech Republic, United Kingdom, United States The relevant parts of my manfiest can be found at http://pastebin.ca/1904517 Two people

[android-developers] get ZipCode

2010-07-20 Thread charles berman
is there an easy way to determine the phones current zipcode using the location provider? -- 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 grou

[android-developers] Re: intent.action_send and intent chooser

2010-07-20 Thread tnull
With e-mail apps, I just meant I was looking to filter the results to e-mail clients, not necessarily anything that can handle "text/html", which I realized wouldn't work when bluetooth popped up. Thank you for the tip on creating my own dialog using PackageManager, I will look into that. On Jul

Re: [android-developers] Re: Using a Handler in this code?

2010-07-20 Thread anil kukreti
Hi Below is the example for a Login Class that will solve your issue. You need to understand it for implementing multithreading in your code. Reply back to me success_a...@yahoo.co.in if you find any problem to understand it though I 've put appropriate comments. package com.torrins; import andr

[android-developers] Android SSL server socket problem

2010-07-20 Thread stephan
Hi I'm running a webserver on the android. Now it's time to get HTTPS running. I've created a BKS keystor and placed it under res/raw. Now I want to create an SSL socket using this certificate. But it failes when it comes to get the keymanagers from the KeyManagerFactory. I only get an empty list

Re: [android-developers] App Not Showing Up for Some Devices (1.5?)

2010-07-20 Thread Kostya Vasilyev
Scott, Does your app differentiate between 2g and 3g modes? Same operator might have a mix of the two depending on location. If it does, I'd like to give it a try here East of Moscow, Russia. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.07.2010 19:20 пользователь "Scott Kennedy" напи

[android-developers] Re: get ZipCode

2010-07-20 Thread Maps.Huge.Info (Maps API Guru)
There is no "easy way" to get the actual Zip Code of the user. You could use the reverse geocoder function to do this but it doesn't always return the Zip Code, nor is it always accurate. Either way, you'll have to have location services and internet access active in order to do it. One way you co

Re: [android-developers] Re: Are there any ways that allows a developer to leave a reply to the comments in the market?

2010-07-20 Thread Kostya Vasilyev
Especially when you get contradicting comments on the day some new device becomes available. 'Doesn't work on .. - 1 star followed by 'Works on .. - 5 stars' from a different user a while later. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 20.07.2010 19:10 пользователь "Pent" написал

[android-developers] Re: how to show the CPU usage on the real devices?

2010-07-20 Thread Maps.Huge.Info (Maps API Guru)
Do you want this number available to the app itself? One easy way to show CPU usage is to connect the device to your computer, then run adb shell then run top. That works pretty good. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Re: What to do when - java.io.FileNotFoundException: No content provider??

2010-07-20 Thread DanH
Uri.parse() returns a Uri. I'm guessing you misinterpreted the second message. On Jul 20, 7:39 am, Victoria Busse wrote: > I was trying to use sendIntent.putExtra(Intent.EXTRA_STREAM, > Uri.fromFile(new File(uri))); > > but then I get an eclipse error saying that I should change String vuri = >

[android-developers] Re: Android SSL server socket problem

2010-07-20 Thread stephan
P.S.: This how I created the keystore data file: openssl genrsa -des3 -out priv.key 2048 openssl req -new -x509 -key privkey.pem -out ca.crt -days 1001 copy ca.crt+priv.key host.pem keytool.exe -import -v -trustcacerts -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProv

[android-developers] Re: Any way to make activity lauch timeout longer?

2010-07-20 Thread stephan
Actually you don't need to speed it up. you could put the stuff that takes so long in a different thread ans let your UI activity stay inactive (not do anything, simply return the onCreate/onResume method. When the background task has finished you con continue. But normally you will have to switch

[android-developers] Re: api levels device lookup chart?

2010-07-20 Thread andrew android
Thanks so much! On Jul 19, 8:30 pm, Jenus Dong wrote: > http://en.wikipedia.org/wiki/List_of_Android_devices > > Is it latest right? > > On Tue, Jul 20, 2010 at 2:30 AM, andrew android wrote: > > > > > Does anyone know of a site where I could find all android devices > > listed with their current

[android-developers] Re: Lifetime of an app's Context object

2010-07-20 Thread stephan
I whould definitely expect that. Anyway you need a reference to the Context object if you like access it. As long as that reference exists the context exist. Stephan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, se

[android-developers] Re: Socket in AsyncTask - application crashesso the UI won't be blocked

2010-07-20 Thread stephan
Yep. It seams quite obvious. Thoug we do not know what happens in "statusTxt.setText("")" you are probably calling any UI object (changing a Dialog message or what so ever). That's not nice. *grin* maybe you should use runOnUiThread(new Runnable() { @Override

[android-developers] Re: Android Socket Communication

2010-07-20 Thread stephan
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 Serializable objects and intents? Second question: Implemet a service in one of the app

Re: [android-developers] Re: TCP connections from android device as client

2010-07-20 Thread Kostya Vasilyev
Sanju & Sam, This is certainly possible. I think you should check your router configuration - maybe a firewall is blocking the connection. Also double-check your IP addresses with respect to the router's local network setup (IP/mask). -- Kostya 20.07.2010 3:01, Sam Miller пишет: I am hav

[android-developers] Re: How to unzip multiple files zipped in a zip file with individual name automatically?

2010-07-20 Thread Mystique
Thanks :-) On Jul 17, 10:49 pm, nation-x wrote: > Here you go. :) > > static Handler myHandler; > ProgressDialog myProgress; > > public void unzipFile(File zipfile) { >         myProgress = ProgressDialog.show(getContext(), "Extract Zip", >                         "Extracting Files...", true, fal

[android-developers] Re: How to override the key behaviour of the virtual keyboard in Android

2010-07-20 Thread greg
Have you tried capturing the ENTER key event and using that to trigger your application's custom behavior? See http://developer.android.com/resources/tutorials/views/hello-formstuff.html that includes the following example code: final EditText edittext = (EditText) findViewById(R.id.edittext); ed

Re: [android-developers] Google Maps & apps with mapview have different current positions Options

2010-07-20 Thread Frank Weiss
The problem doesn't seem to have anything to do with GPS, correct? I tried your coordinates, 22.9638357,113.3156041, on desktop google maps and from within a MapView. I get the same unequal results that you did. I also tried msn.com (in satellite view - theirs are older!) and that agrees with the

[android-developers] Re: App Not Showing Up for Some Devices (1.5?)

2010-07-20 Thread Ken H
What version of Android are they using? Users with v1.5 won't see apps with minSdkVersion="4" in the manifest, for example. That way they don't download apps that will not work on their device. Ken -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Trying to retrieve IMEI but Eclipse says "method getSystemService(String) is undefined"

2010-07-20 Thread Mystique
Wonder why do I get this error? String srvcName = Context.TELEPHONY_SERVICE; TelephonyManager telephonyManager = (TelephonyManager)getSystemService(srvcName); String deviceId = telephonyManager.getDeviceId(); -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Email API

2010-07-20 Thread av
Is there an API to access the built in email application? I would like to reply automatically with a custom email message on emails that have a specific subject I saw a package called com.android.email but seems like it is not documented anywhere can I use this package or is there a documented al

Re: [android-developers] Launch intent in background then bring to foreground?

2010-07-20 Thread TreKing
On Mon, Jul 19, 2010 at 12:05 AM, gmrunltd wrote: > Hi, is there any way to launch an activity w/ Intents (in this case > theBrowser) > in the background, and then bring it to the foreground using a service or > activity? > What's the point of launching in the background if you're going to brin

[android-developers] Delete SD card contents

2010-07-20 Thread David Toledo
Hi All How to delete sd card contents? Thanks David -- 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+u

Re: [android-developers] problem in using getcurrentfocus().... guide me...

2010-07-20 Thread TreKing
On Mon, Jul 19, 2010 at 4:47 AM, A N K ! T wrote: > while am trying to fetch current focus object i.e View by usinggetcurrent > focus method ...but view object not getting any value it is > showing null value > Step 1: Read the documentation: Activity.getCurrentFocus

Re: [android-developers] Transferring control from Non UI thread to Ui Thread

2010-07-20 Thread TreKing
On Mon, Jul 19, 2010 at 5:02 AM, Ajmer singh wrote: > Basically i want to start a new activity from a background service,Is that > possible ? Of course it is. startActivity(). Done. - TreKing

[android-developers] Re: Delete SD card contents

2010-07-20 Thread David Toledo
The answer is the following File file = new File(selectedFilePath); boolean deleted = file.delete(); Thanks David 2010/7/20 David Toledo > Hi All > How to delete sd card contents? > > Thanks > David > > > -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] ADB, HTC Hero and 2.1 Update

2010-07-20 Thread Kiril Nedialkov
Hi all, Since the update of HTC Hero to 2.1 I cant see the my phone with "adb devices". Im getting "? no permissions" lsusb: Bus 001 Device 002: ID 0bb4:0c99 High Tech Computer Corp. more /etc/udev/rules.d/11-android.rules : SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" I tried 'su

[android-developers] Help With AlarmManager Please?

2010-07-20 Thread Tommy
Hi everyone, I am currently setting an alarm to fire off a background service every 2 minutes in order to check my server for certain updates. Now if I start the app and my screen is on and not locked the phone plays the sound I need it to play and opens the activity. Thats great. But the way I ne

[android-developers] How to detect triple tap on View?

2010-07-20 Thread Rohit Ghatol
Hi All, I haven't spend much time on Gesture Detector or anything of that sort. My requirement is very simple, Given a View (any view), how do I detect triple tap on that? Of course a timer and a counter can help me, but I am looking for something more sophisticated that that. For people, you ar

Re: [android-developers] Center MapView on new added GeoPoint in ItemizedOverlay

2010-07-20 Thread TreKing
On Mon, Jul 19, 2010 at 7:57 AM, LaVision wrote: > I'd like the MapView to "go" to that new location instead of displaying > the last (too far) one. > Please take two seconds to check the documentation for the API you're using before posting. It's this simple.

[android-developers] Object Relational Mapping --- Tiny ORM on GitWeb

2010-07-20 Thread Michael Angerman
Is this project Tiny ORM written by Shawn O. Pearce going to be equivalent to Hibernate in Java ActiveRecord in Ruby Doctrine in PHP http://android.git.kernel.org/?p=tools/gwtorm.git;a=summary Does any one know if Google is working on an ORM for Android... What are the similarities and differen

RE: [android-developers] Help With AlarmManager Please?

2010-07-20 Thread Tommy
AH-HA after a little more digging and research into alarm manager I found out I wasn't setting the wakelock! -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Tommy Sent: Tuesday, July 20, 2010 1:55 PM To: Android Develo

[android-developers] Re: make app as default app

2010-07-20 Thread MB
Users have an option to change the default browser, default video player. They should have an option to change the default dialer/incoming call handler. It looks more like a missing feature than a security hole. On Jul 20, 4:28 am, Mark Murphy wrote: > On Tue, Jul 20, 2010 at 5:28 AM, Sandeep wr

[android-developers] DOM2String

2010-07-20 Thread Wojciech Topolski
Hi Is anyone knew how convert DOM object to String in Android 1.5? I can build own recursive function, but I prefer some JAR library or trick in Android. I will be glad if you could help me. Best regards. -- === Wojciech Topolski wojciech.topol...@gmail.com =

Re: [android-developers] Help With AlarmManager Please?

2010-07-20 Thread Kostya Vasilyev
Tommy, You are not going to hold the wakelock the entire time the phone is asleep, are you? That would drain the battery pretty fast. Your alarm already wakes the application up, hopefully you can hold the wake lock just for the duration of whatever periodic task the app needs to perform.

[android-developers] Re: ADB, HTC Hero and 2.1 Update

2010-07-20 Thread Maps.Huge.Info (Maps API Guru)
I hate to state the obvious, but have you made sure the "USB debugging" option is still selected? -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-developers@googlegroups.com To unsu

Re: [android-developers] Re: make app as default app

2010-07-20 Thread Mark Murphy
On Tue, Jul 20, 2010 at 3:26 PM, MB wrote: > Users have an option to change the default browser, default video > player. > They should have an option to change the default dialer/incoming call > handler. > It looks more like a missing feature than a security hole. Ah, you are missing a key point:

[android-developers] Re: Has anyone get App Inventor accounts?

2010-07-20 Thread uberspeed
Nothing here yet either. On Jul 20, 8:43 am, gcstang wrote: > Same no response > > On Jul 20, 6:45 am, nation-x wrote: > > > > > nada here > > > On Jul 20, 2:52 am, Eelco wrote: > > > > Same here, I registered, but no reply -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Has anyone get App Inventor accounts?

2010-07-20 Thread Wayne Wenthin
I'm pretty sure based on the questions they asked and the last time this came up that you MUST be an educational institution to get an account. That being said, Nope nothing here.Maybe I should use my .edu address? On Tue, Jul 20, 2010 at 12:44 PM, uberspeed wrote: > Nothing here yet eithe

Re: [android-developers] Re: Has anyone get App Inventor accounts?

2010-07-20 Thread Chris Stewart
I registered right away and haven't gotten a response as of yet. Chris Stewart cstewart...@gmail.com On Tue, Jul 20, 2010 at 3:44 PM, uberspeed wrote: > Nothing here yet either. > > On Jul 20, 8:43 am, gcstang wrote: > > Same no response > > > > On Jul 20, 6:45 am, nation-x wrote: > > > > >

RE: [android-developers] Help With AlarmManager Please?

2010-07-20 Thread Tommy
Yeah I figured out how to hold the wake only if I need to notify the user. It seems everything worked w/o a wake lock except updated my listview and playing the sound. So once if I have to go into the activity I start the wakelock otherwise nothing happens. Thanks for the reply! -Original M

Re: [android-developers] make application should support all versions and screens

2010-07-20 Thread TreKing
On Mon, Jul 19, 2010 at 9:12 AM, aswani kumar tholeti wrote: > is it good way to develop application and is it support 1.5 and 1.5+ > user able find my application there market.please share your any ideas to > me > I understand English is probably not your first language, but your post is not ve

[android-developers] Re: how to show the CPU usage on the real devices?

2010-07-20 Thread sws-vinpa
That is how I go about doing it as well: # busybox top Cheers, sws-vinpa. On Jul 20, 11:54 am, "Maps.Huge.Info (Maps API Guru)" wrote: > Do you want this number available to the app itself? > > One easy way to show CPU usage is to connect the device to your > computer, then run adb shell then

  1   2   >