[android-developers] Any alternative of iphone's searchable list in Android?

2010-05-06 Thread SheikhAman
hi. in iPhone, they have got an option of creating such a list which gives them ability to jump to a particular character. see the pic attached http://www.phonemag.com/blog/wp-content/uploads/2008/03/iphone_search_icon.jpg Do we have any such thing in Android? i can setTextFilterEnabled(true)

Re: [android-developers] About maintaining the state of the activity on orientation change

2010-05-06 Thread praveena ankitha
Hi, Using the folowing statements we can get the orientaion of a screen Display display = ((WindowManager) getSystemService(* WINDOW_SERVICE*)).getDefaultDisplay(); * int* orientation = display.getOrientation(); in this if orientation is equal

Re: [android-developers] how to handle the Dpad event in headview/footview of listview?

2010-05-06 Thread Second Dancer
That is the right way and still the smart way, unless you don't use listview On May 6, 2010 3:58 AM, Vincent Tsao caojunvinc...@gmail.com wrote: i have add a footview in listview with this code: mListView.addFooterView(mFootView); and also Register a callback to be invoked when this mFootView

Re: [android-developers] Re: TelephonyManager.getLine1Number() returning null?

2010-05-06 Thread Second Dancer
You can get an reflection call on the internal Api On May 6, 2010 5:48 AM, Vinay S s.vinay@gmail.com wrote: Hi, Are you sure, you are getting the context correctly..? Are you able to get other deatils, like Network type phone type, sim status etc? -Vinay On May 5, 9:32 pm, David Given

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

2010-05-06 Thread Edward Falk
Intriguing. I was wondering if maybe you could add a blurb to your web site explaining in simple terms how it works. E.g. when the API is called, it communicates with the Android Market to verify your key; once verified, the verification code is remembered so that no further calls to the market

[android-developers] Re: About maintaining the state of the activity on orientation change

2010-05-06 Thread Hugo Visser
If you want to save state, Android has a built in construct, from http://developer.android.com/intl/zh-TW/reference/android/app/Activity.html In addition, the method onSaveInstanceState(Bundle) is called before placing the activity in such a background state, allowing you to save away any dynamic

Re: [android-developers] Any alternative of iphone's searchable list in Android?

2010-05-06 Thread Romain Guy
The user can bring up the soft keyboard by long pressing the menu key. Also, the text filter can be set programmatically. On Wed, May 5, 2010 at 11:04 PM, SheikhAman shekh.a...@gmail.com wrote: hi. in iPhone, they have got an option of creating such a list which gives them ability to jump to a

[android-developers] Re: Sliding Drawer question

2010-05-06 Thread brucko
Never done this before, Tommy. Have a look at http://developer.android.com/reference/android/widget/ImageView.html#attr_android:scaleType -- 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] Re: onDraw being called - is that correct?

2010-05-06 Thread Second Dancer
The calendar app has a costom view, here is another code snippet @Override protected void onDraw(Canvas canvas) { if (mRedrawRequired) { // if canvas is null, we get the canvas prepared for drawing, and // the background bitmap is needed because we do not need

Re: [android-developers] how to handle the Dpad event in headview/footview of listview?

2010-05-06 Thread Vincent Tsao
one more question, why mFootView.setOnClickListener not working? am i doing sth wrong? On Thu, May 6, 2010 at 2:13 PM, Second Dancer seconddan...@gmail.comwrote: That is the right way and still the smart way, unless you don't use listview On May 6, 2010 3:58 AM, Vincent Tsao

Re: [android-developers] how to measure video file size?

2010-05-06 Thread Second Dancer
See android.media.MediaStore class, this class provides you enough info for any kind of media on the device. If this infomation is not helpful, see MediaProvider -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Determine if my application is visible on screen

2010-05-06 Thread mort
onStop() and onPause() works great if your app only has one activity. But they're also invoked if you switch to any sub activity, even if it's done with startActivityForResult(). Only exception is when the sub activity uses a transparent theme. (Well, onPause() is invoked for sure, onStop() only

[android-developers] How to disable home and other buttons so as to persist an app?

2010-05-06 Thread Ashok Jeevan
Hi guys, I am building an app which uses a WebView. This app runs at startup. Is there a way to maintain the app running(persists) even if the user presses the 'Home' or 'Back' button? In other words,pressing the 'Home', 'Back' or the other buttons shouldn't close the activity. Ashok Jeevan

[android-developers] How to fix java.lang.IllegalThreadStateExeception: Thread already started.

2010-05-06 Thread MSChoi
I made an application which has a thread for a notification progressbar. First time I started the thread, it works fine. But Second time I tried to start the thread again, the application stop with the exception. How can I solve this problem? Please give me any clue. [==My thread code

Re: [android-developers] How to disable home and other buttons so as to persist an app?

2010-05-06 Thread Romain Guy
You can intercept the back key (although I highly recommend you don't do that) but you CANNOT block the Home key. This is a security of the OS to make sure the user can always exit any application. Note that pressing Home will not close the Activity. On Thu, May 6, 2010 at 12:07 AM, Ashok Jeevan

[android-developers] NeighboringCellInfo returns CID as -1

2010-05-06 Thread Vinay S
Hi, On Nexus One, when I try to get the NeighboringCellInfo, it returns me with 5 nodes. When I try to display the CID and LAC info, it is showing -1. Does any one have any idea about his.? Any kind of info will be helpful. Sample output received: 05 05 2010 23:06:32.739 Neighbouring Cell

[android-developers] Re: APK for AGSP application

2010-05-06 Thread Andreas
Hi, AGPS is used by the device to make better and faster fixes. That means that when you use google maps on a device with support for AGPS, it is used. Andreas On Mar 26, 4:30 pm, Kabita san.k...@gmail.com wrote: hi Andreas  , I am looking for any Andriod application available on net in form

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

2010-05-06 Thread westmeadboy
How about users who go from using a paid-app-country sim card to a non- paid-app-country sim card? In such a case, the app is no longer visible on the Market? I guess your answer to this would be its up to the developer to decide how to handle such a license check failure but in reality the user

[android-developers] Find the Current Address

2010-05-06 Thread ensisinfo24
Hi All, I want to find the current Address using current lattitude and current longitude or phone number in android application . Please give me some suggestions. Thanks in advance -- -- You received this message because you

[android-developers] Re: Playing live stream (RTP) in MediaPlayer

2010-05-06 Thread debelyoo
Hi dillirao, I don't receive onPrepared callback. After requesting the live stream through the SDP file (http:// server_ip/live.sdp) I receive the following callbacks: - onBufferingUpdate -- Buffering 100% - onErrorCallback -- Command PLAYER_INIT completed with an error or info PVMFErrCorrupt

[android-developers] Livewallpaper

2010-05-06 Thread risha
Hi! When the settings activity is made transparent, the livewallpaper should continue to animate. I have used android:theme=@android:style/ Theme.Translucent to make an activity transparent, but the livewallpaper in the background remains static. Could anyone please let me know how to make the

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

2010-05-06 Thread a1
On May 5, 8:09 pm, dadical keyes...@gmail.com wrote: Hey Tim. You're correct that validating purchase with the market is a key piece of our solution.  Figuring out how exactly to do that using Google's binary market protocol in an efficient way (try doing everything that AAL does in a 35

Re: [android-developers] Re: ADT Problem: Creating new Android Project

2010-05-06 Thread Harjeet Singh
I am currently on Windows 7 using Eclipse Galileo build for J2ee. I will try uninstalling and get back. - Harjeet. 2010/5/5 Kostya Vasilyev kmans...@gmail.com Harjeet, I guess trying to uninstall / reinstall everything (Java, Eclipse, Android...) is the usual black magic that might help :)

[android-developers] Android eclair: playing videos

2010-05-06 Thread petter
Hi I have compiled android eclair version 2.1 on my htc sapphire 32A and everything works great up to playing videos. When I ran playing a any video on device, android player starts and I see only black screen. Sound is working properly, but something happens when bites from video are copied to

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

2010-05-06 Thread Tomáš Hubálek
I believe that every DRM is something that IMHO Google HAVE to SOLVE. Every independent solution is just a hack that may stop working anytime Google wants. Sorry. Tom On Thu, May 6, 2010 at 9:22 AM, westmeadboy westmead...@yahoo.co.uk wrote: How about users who go from using a paid-app-country

[android-developers] Re: NeighboringCellInfo returns CID as -1

2010-05-06 Thread Vinay S
Hi All, Sorry about it.. It is returning -1 because it on UMTS. I was thinking it was on GSM. Thhanks Regards, Vinay -- On May 6, 12:16 pm, Vinay S s.vinay@gmail.com wrote: Hi, On Nexus One, when I try to get the NeighboringCellInfo, it returns me with 5 nodes. When I try to

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

2010-05-06 Thread a1
It uses this project: http://code.google.com/p/android-market-api/, you can do same, just note that in proto purchased field is missing, but you can simply extend App message in market.proto, purchased field has id 34. -- Regards, Bart Janusz (Beepstreet) On May 6, 8:22 am, Edward Falk

[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-06 Thread skink
On May 5, 2:37 pm, Alok Kulkarni kulsu...@gmail.com wrote: It would be great if you could help me giving an example of using the inflate method and the NinePatchDrawable constructor. Thanks, Alok. reading this: http://groups.google.com/group/android-developers/msg/db8d63fd8575129c it

[android-developers] UDP Broadcast Receiver, work on old Phone, but not on new

2010-05-06 Thread marcomoel...@googlemail.com
Hi, I have written an app what is receiving UDP broadcast messages (via WLAN). It is running on an HTC magic (1.6) without any problems. But on a HTC Desire (2.1.1) or Motorola Milestone (2.0.1) we receive nothing. We tryed to send the broadcast by the phone it self, this is working on all

[android-developers] TextView.setTextColor

2010-05-06 Thread mike
hi guys, i want to set the text color. color will differ according to the scenario because of that can't set the text color in the xml file. in android only few colors are available. if i want to set the colors like Pink,Orange it does not support. even if i set the int color code of those

[android-developers] Re: mounting and unmountind USB storage from Java App

2010-05-06 Thread FrankG
I can only assume, that this kind of apps are either modified by the vendor or the whole app is a vendor extension ? I think currently these things will be handled by each vendor in a different way,with different software and also with different APIs. Their is no trick, IMHO the android usb

[android-developers] Local Service not Registering

2010-05-06 Thread brucko
Essentially my problem is this, I open my Activity. It binds to a local service that appears to be connected. I get a force close when I press the back button IllegalArgumentException: Service not registered when unbind is called in my onPause method... public void onPause() {

Re: [android-developers] TextView.setTextColor

2010-05-06 Thread Second Dancer
The params in setTextColor is not the resource id in xml file, but the real ARGB value combination, so here you hava two choice. 1. setTextColor(context.getResources.getColor(int resId)); 2. setTextColor(int value), for example white 0x 2010/5/6 mike hasitharand...@gmail.com hi guys,

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-06 Thread Derek
still waiting in London. by the way, is it a dev phone, or a normal one? -- 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

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-06 Thread Nikolay Ananiev
Still waiting in Bulgaria... On Thu, May 6, 2010 at 12:14 PM, Derek xianguan...@gmail.com wrote: still waiting in London. by the way, is it a dev phone, or a normal one? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-05-06 Thread Lim Sim
Normal. Nexus One is not an official dev phone but it's more or less the defecto now. On 6 May 2010 10:14, Derek xianguan...@gmail.com wrote: still waiting in London. by the way, is it a dev phone, or a normal one? -- You received this message because you are subscribed to the Google

[android-developers] Re: How to draw smooth gradients?

2010-05-06 Thread fexpop
On 5 Mai, 16:44, blew pascal.jac...@gmail.com wrote: I think you can do this by drawing the gradients in a 8-8-8 bit color defined canvas this should apply the configuration to all elements in the canvas: Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); Canvas

[android-developers] Re: Looking for advice into best way to store images within app

2010-05-06 Thread JimmyHoffa
Thanks for reply. I should have stated that app will be offline and not relying on online storage so cloud is not really appropriate as the same screen will allow the user to grab a picture via the camera and then store the image. I think I'll have a play with both media storage and database,

[android-developers] Start another application from another package with an Intent

2010-05-06 Thread Anders Widen
I know how to update my own programs, and I know how to open programs using the a predefined Uri (for sms or email for example) I need to know how I can create an Intent to open MyTracks or any other application that I don't know what intents they listen to. I got this info from DDMS, but I

[android-developers] Re: How to fix java.lang.IllegalThreadStateExeception: Thread already started.

2010-05-06 Thread tobias429
Run into the same issue. What I'm doing is to not stop the thread and restart it, but kill and rebuild it. I.e. kill the thread via: boolean retry = true; while (retry) { try { myThread.join(); retry = false; } catch

[android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-06 Thread skink
On May 6, 5:52 am, skink psk...@gmail.com wrote: reading this:http://groups.google.com/group/android-developers/msg/db8d63fd8575129c it seems ninePatches are created statically by aapt tool and if you want to create ninepatchdrawable dynamically from any file you would calculate chunk by

[android-developers] Re: How to fix java.lang.IllegalThreadStateExeception: Thread already started.

2010-05-06 Thread MSChoi
I avoid the exception with using of narrow-down variable scope. Actually my friend suggest it me. previous code public class study004statuswithprogressbar extends Activity { @Override public boolean onKeyUp(int keyCode, KeyEvent event) { switch (event.getUnicodeChar() - '0') { case

[android-developers] Re: Linkify-ed TextView non-linked text disappears on touch

2010-05-06 Thread westmeadboy
Just tried this using the emulator (SDK 1.6), and the same problem occurs. So it could be some change that has been introduced from 1.6. Note: if no links are created in the text, then the problem does not occur. In other words, clicking on the TextView does not result in the text disappearing.

[android-developers] A couple of Rom questions for the experts

2010-05-06 Thread draf...@gmail.com
I have a couple of questions for the Rom developers/experts on here regarding things that can be done with Android ROM's. Is a parser Rom upgrade possible? So is it possible to change a small part of a ROM and then allow users to upgrade their ROM easily? So can I change a part of a ROM and then

[android-developers] Re: OpenGL ES and Projection Matrix using Ortho Projection

2010-05-06 Thread Alfonso
OK, I have cleaned this a little. Now I try to do the same but with this code: gl.glOrthof(-near_height * ratio, near_height * ratio, -near_height, near_height, zNear, zFar); . . . Matrix.orthoM(orthoProjectionMatrix, 0, -near_height * ratio, near_height * ratio, -near_height, near_height,

[android-developers] Re: OpenGL ES and Projection Matrix using Ortho Projection

2010-05-06 Thread Alfonso
A fix: float pos3DdelPuntoInteres [] = new float [] {0.0f,0.0f,4.0f, 1.0f}; I just forgot write here the last number, but it was present in my code. In other words, the problem persists. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Screen off suspends the Thread

2010-05-06 Thread Raj
Hi All, I have a created a thread in my application, and have a sleep for 5sec in the run() function. This sleep function returns properly after 5 secs only if the device screen is turned ON. In case the device screen goes to Hibernate, sleep function returns after around 2-3 minutes(instead of 5

[android-developers] Re: Linkify-ed TextView non-linked text disappears on touch

2010-05-06 Thread westmeadboy
Just found this thread which describes the problem: http://groups.google.com/group/android-developers/browse_thread/thread/ccb475c855e8785a/f1f80a34fe3ff179 To confirm, the text was not actually disappearing, but being set to black (and appearing to disappear where the background is also black).

[android-developers] HowTo: Supporting devices with different resolutions

2010-05-06 Thread Kostya Vasilyev
Hello all, I've written a simple HowTo on supporting devices with different resolutions. All the information is available elsewhere, still, I put it all together in one place for convenience. Posted here: http://kmansoft.wordpress.com/ Hope this might be useful. -- Kostya Vasilyev -

[android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Raj
Hi, I want to stop an Activity that is in some other application from my Applications service. Is there any mechanism to do so? Thanks, Raj -- 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] Wifi drop Issues on Motorola Droid

2010-05-06 Thread KK
I am trying to develop a streaming application and I am testing it on multiple devices. But I am seeing some problems on Motorola Droid with regards to wifi connection. The wifi connection drops occasionally and comes back in 30 seconds to 1 minute on the Droid. Sometimes while in the middle of

[android-developers] SyncAdapter 2.x question

2010-05-06 Thread ionel
Can we use sync adapters for email? -- 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] Re: How to draw smooth gradients?

2010-05-06 Thread blew
Can't really test your code now, but: Why don't you put your bitmap888 when constructing your canvas888. Canvas canvas888 = new Canvas(bitmap888); On May 6, 11:32 am, fexpop caspar...@googlemail.com wrote: On 5 Mai, 16:44, blew pascal.jac...@gmail.com wrote: I think you can do this by

[android-developers] Re: [android-porting] Re: Disable hardware codecs

2010-05-06 Thread Uander
Hey , it works now . Disabled h/w codecs as suggested . It played using s/w codecs now . Thanks for all of your support Deva , Ricardo . Thanks : Uander On Tue, May 4, 2010 at 7:20 PM, Deva R r.deva...@gmail.com wrote: Hi Uander, Hw codecs from TIOMX_Core library is still significant, and

[android-developers] Re: Getting information from webview

2010-05-06 Thread absn
Hi, I am developing a flickr application, in that for sign-in purpose I m creating a login link(url) and loading this url using webView.loadUrl(url); and it redirects us to the flickr sign-in page. this page contains two edittext one for yahoo id and other for password, when user submit this

[android-developers] Re: Getting information from webview

2010-05-06 Thread Anders Widen
This seams like a security issue, so I don't think it's made easy if it's possible at all. Ideas: There's something called formData that maybe can be used. You could also read the onScreen keyboard, but that requires a special permission. On 6 Maj, 14:37, absn amitbm...@gmail.com wrote: Hi, I

[android-developers] Re: How to fix java.lang.IllegalThreadStateExeception: Thread already started.

2010-05-06 Thread joebowbeer
In standard Java (not specific to Android), I would accomplish this by scheduling a repeating TimerTask on a Timer. Android provides a few other options, including postDelayed and AsyncTask. In this case, I would try to implement the progress indicator using Android's animation framework. Joe

[android-developers] Re: Screen off suspends the Thread

2010-05-06 Thread joebowbeer
This is by design. Time stops for sleeping threads when the handset is not awake. However, the AlarmManager never sleeps -- well, in most implementations:

Re: [android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Second Dancer
Just get the reference of the activity, can you achieve that? On May 6, 2010 11:52 AM, Raj lal.ra...@gmail.com wrote: Hi, I want to stop an Activity that is in some other application from my Applications service. Is there any mechanism to do so? Thanks, Raj -- You received this message because

Re: [android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Aditya
I don't think that it can be done! Aditya On Thu, May 6, 2010 at 6:30 PM, Second Dancer seconddan...@gmail.comwrote: Just get the reference of the activity, can you achieve that? On May 6, 2010 11:52 AM, Raj lal.ra...@gmail.com wrote: Hi, I want to stop an Activity that is in some other

Re: [android-developers] Stopping other Activity from my Service..

2010-05-06 Thread Kostya Vasilyev
If that were possible, it'd be a massive security hole. Raj lal.ra...@gmail.com писал(а) в своём письме Thu, 06 May 2010 15:52:17 +0400: Hi, I want to stop an Activity that is in some other application from my Applications service. Is there any mechanism to do so? Thanks, Raj --

[android-developers] Re: How to draw smooth gradients?

2010-05-06 Thread fexpop
On 6 Mai, 14:23, blew pascal.jac...@gmail.com wrote: Why don't you put your bitmap888 when constructing your canvas888. Canvas canvas888 = new Canvas(bitmap888); Ooops, that's because I wanted to edit the actual code I used for this message. I added the 888 for clarity, but forgot so in the

[android-developers] Re: how to get screen height minus the title bar and status bar.

2010-05-06 Thread wtray
Hi rajesh    I am new in android, i am getting the width and height for the screen using below code             WindowManager w = getWindowManager();             Display d = w.getDefaultDisplay();             int totalwidth_screen = d.getWidth();             int totalheight_screen =

Re: [android-developers] Re: Problem with StateListDrawables not found in 1.5 but there from 1.6 onwards

2010-05-06 Thread Alok Kulkarni
Oh ok.. Thanks for that.. ill try that and will let you know... Regards, Alok. On Thu, May 6, 2010 at 3:36 PM, skink psk...@gmail.com wrote: On May 6, 5:52 am, skink psk...@gmail.com wrote: reading this: http://groups.google.com/group/android-developers/msg/db8d63fd8575129c it seems

Re: [android-developers] How to custom option menu to arrange three menu items where 2 menu items are displayed at the top and the third below it.

2010-05-06 Thread D.Y
Anybody knows how to design custom option menu? Any clue will be grateful… Best Regards, D.Y _ 发件人: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] 代表 TreKing 发送时间: 2010年4月30日 21:50 收件人: android-developers@googlegroups.com 主题: Re:

[android-developers] Re: Wifi drop Issues on Motorola Droid

2010-05-06 Thread Zanshin
You're going to want to create a WifiManager.WifiLock http://developer.android.com/intl/de/reference/android/net/wifi/WifiManager.WifiLock.html This will likely solve most of your problem. The rest can be solved by my app. :P The drop issues specific to the Droid, but happens on all Android

[android-developers] Re: How to disable home and other buttons so as to persist an app?

2010-05-06 Thread Mike dg
What are you trying to do? You could see that tons of things could go wrong with an app that runs on boot and doesn't allow you to get away. -Mike dg On May 6, 3:07 am, Ashok Jeevan ashokjee...@gmail.com wrote: Hi guys, I am building an app which uses a WebView. This app runs at startup. Is

[android-developers] Re: Find the Current Address

2010-05-06 Thread Maps.Huge.Info (Maps API Guru)
What you're describing is reverse geocoding - search for that term. -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 unsubscribe from this group, send

Re: [android-developers] Accessing a Web Based Google Map from within an Android Application

2010-05-06 Thread TreKing
On Tue, May 4, 2010 at 6:05 AM, ali myrubbishm...@yahoo.co.uk wrote: a) I want to be able to: - access the location of user clicks - animateTo locations as I can currently do with a MapView and an inhouse Map and overlays etc. OK, that's the easy part, as you said, you can already do that

Re: [android-developers] Re: Uploading large files - using setChunkedStreamingMode

2010-05-06 Thread Carmen Delessio
keianhzo, Do you have an example of how you call this class? I think I understand, but wanted to doublecheck. I am using an HttpURLConnection with ChunkedStreaming mode to upload videos to Facebook. Using that mode successfully avoids running into memory issues, but I am not successful in getting

[android-developers] Re: Wifi drop Issues on Motorola Droid

2010-05-06 Thread Zanshin
Whoops. The drop issues aren't specific to the Droid, but happen on all Android devices AFAIK. On May 6, 6:56 am, Zanshin zanshin...@gmail.com wrote: You're going to want to create a WifiManager.WifiLockhttp://developer.android.com/intl/de/reference/android/net/wifi/WifiM... This will

[android-developers] MediaPlayer, AssetFileDescriptor and FileDescriptor doubt

2010-05-06 Thread Sebastián Treu
Hi, I was wondering why I needed to do this to play a single file in MediaPlayer: [code] FileDescriptor audioFd = null; AssetFileDescriptor assetFd = null; String fileName = audio/+lang+/+String.valueOf(code)+.mp3; System.out.println(AUDIO FILE NAME: +fileName); assetFd =

[android-developers] Re: MediaPlayer, AssetFileDescriptor and FileDescriptor doubt

2010-05-06 Thread Sebastián Treu
Could someone explain me to this please? Sry, *to* should not be there, requestioning: Could someone explain me this, please? regards, -- If you want freedom, compile the source. Sebastián Treu http://labombiya.com.ar -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Android : List View or Spinner - Need your help guys

2010-05-06 Thread Ramesh Sangili
Thanks so much On Tue, May 4, 2010 at 9:38 AM, TreKing treking...@gmail.com wrote: 2010/5/3 yidongsoft long...@gmail.com Customize a listview as: String[] lastName; String[] firstName; int[] ids; ... public object getItem(int position){ return ids[position]; } Please don't do this.

[android-developers] HTTP Bad Request when Posting File data to HTTPS from Phone But Not Emulator

2010-05-06 Thread Paul Tongyoo
Hi all-- I'm using HttpClient 3.x code to construct a MultipartEntity consisting of a few strings and binary data and posting this data to my webserver. What's odd is that when executing these posts from my local emulator, my webserver accepts the request fine and the data is posted. However,

Re: [android-developers] HTTP Bad Request when Posting File data to HTTPS from Phone But Not Emulator

2010-05-06 Thread Kevin Anthony
Do a tcp dump on the webserver when the requests come in from the emulator and phone. Then compair the headers. Just a quick thought, is the webserver behind a firewall? If the emulator is on a machine on the same network, that might be the cause Kevin A On May 6, 2010 12:23 PM, Paul Tongyoo

[android-developers] Re: Abridged summary of android-developers@googlegroups.com - 83 Messages in 43 Topics

2010-05-06 Thread Matt Kanninen
Always work on stabilizing the new features first. ;) On May 6, 9:40 am, Dave Arnold darn...@futurec.net wrote: Of course we can-do you want me to do that now or work on stabilizing the new features with QA? From: android-developers@googlegroups.com

[android-developers] Possible Solution found: JUnit testing: Question; How the 'unlock' screen be avoided/closed?

2010-05-06 Thread Streets Of Boston
I found a solution to this problem. It is a bit of a hack, but it seems to work. 1. I create a very simple activity (SDK 1.5) NoUnlockScreenActivity.java that does just this in its onCreate method: KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE);

[android-developers] Re: Problem with Saving and opening file on moto-droid

2010-05-06 Thread André
Thanks both of you for your answering. I'm waiting for a guy getting back to me with a stacktrace of the problem. I have declared the permission in the manifest file. Does it matter where I declare it in the file? The strange thing is that it works fine on some devices and not at all on others.

[android-developers] problem with getId() for non-unique id's

2010-05-06 Thread yaturner
I have an array of RelativeLayouts that all contain the same views, so thinking myself clever I used the same id's for each view, e.g. view1.setid( R.id.View1 ); view2.setId( R.id.View2 ); when I create the layouts in my Java code. To access them I first get the RelativeLayout and then use for(

[android-developers] Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required!

2010-05-06 Thread Abhi
Hi The above error occurs when I do the following. I have a text file with multiple lines of data. Within my application I come across the need to replace a line from the file with a new one. I am using BufferedReader with a fixed size (50k) to read the file into as below: FileReader input_redo

[android-developers] Re: How to upgrade my Android dev Phone 1 to 2.x release?

2010-05-06 Thread Anders
how? any good links to a how-to that works and is up to date? On Mar 27, 10:24 pm, russ.a.mor...@gmail.com wrote: Yes I believe you can. Sent from my BlackBerry® device from Digicel -Original Message- From: Joe droidvi...@gmail.com Date: Sat, 27 Mar 2010 13:19:01 To: Android

Re: [android-developers] Re: Problem with Saving and opening file on moto-droid

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 11:49 AM, André pha...@hotmail.com wrote: Does it matter where I declare it in the file? Well, yeah - you can't just put it anywhere. Maybe post that part of your manifest to double check. For example, mine looks like this: uses-permission

[android-developers] On click enlarge the image

2010-05-06 Thread pawan nimje
Hi All, I have a textview and an imagebutton. textview has the description about the image[which is there in imagebutton] Now on clickin the image button i want the imagebutton to occupy the whole screen and on clicking this i want the imagebutton back to normal position plz help ... -- You

Re: [android-developers] HTTP Bad Request when Posting File data to HTTPS from Phone But Not Emulator

2010-05-06 Thread Paul Tongyoo
Thanks Kevin, I'll give that a shot! On Thu, May 6, 2010 at 9:45 AM, Kevin Anthony kevin.s.anth...@gmail.comwrote: Do a tcp dump on the webserver when the requests come in from the emulator and phone. Then compair the headers. Just a quick thought, is the webserver behind a firewall? If the

[android-developers] AlertDialog and keyboard open configuration change

2010-05-06 Thread Julian Bunn
My app creates and shows an AlertDialog which accepts input from the user (the user needs to type some text into an EditInput). With the AlertDialog on screen, if the user opens up the keyboard on the device, then the app's OnCreate and OnResume methods are called and my AlertDialog promptly

[android-developers] Conditional compile and porting techniques.

2010-05-06 Thread Leigh McRae
Hello, I thought I would share what I came up with to manage my port from BlackBerry to Android. Perhaps it can save someone sometime. NetBeans has really good support to filter source trees and also has a target based preprocessor. These two features alone will solve all porting

[android-developers] Quick logcat question

2010-05-06 Thread redders
I fear the answer is no, but before I change the structure of all of my log messages: Is there any way to do this: $ adb logcat *:S com.myappname.*:V Or in words: I want to silence every tag that goes to logcat except the ones that begin with com.myappname. Currently my classes print into the

Re: [android-developers] Quick logcat question

2010-05-06 Thread Kostya Vasilyev
Pipe the output of logcat through grep - if you are on Linux. Or pipe through find if on Windows. Like this: adb logcat | find com.myappname -- Kostya redders redders6...@googlemail.com писал(а) в своём письме Thu, 06 May 2010 22:55:32 +0400: I fear the answer is no, but before I

Re: [android-developers] Quick logcat question

2010-05-06 Thread Galbayar D
Hi why you don't use grep? $ adb logcat|grep myappname On Fri, May 7, 2010 at 3:55 AM, redders redders6...@googlemail.com wrote: I fear the answer is no, but before I change the structure of all of my log messages: Is there any way to do this: $ adb logcat *:S com.myappname.*:V Or in

[android-developers] Re: Accessing a Web Based Google Map from within an Android Application

2010-05-06 Thread Maps.Huge.Info (Maps API Guru)
If you're trying to do this with a v2 map, you're probably going to have trouble on multiple levels... a v3 map works a lot better and doesn't require a key. a) I want to be able to: - access the location of user clicks - animateTo locations as I can currently do with a MapView and an

Re: [android-developers] On click enlarge the image

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 1:04 PM, pawan nimje pawanni...@gmail.com wrote: plz help ... With what? You didn't actually ask a question, indicate which part SPECIFICALLY you're having trouble with, or what you have already tried that isn't working. There are a myriad of different things you could

Re: [android-developers] AlertDialog and keyboard open configuration change

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 1:28 PM, Julian Bunn jjb...@gmail.com wrote: And, even if it was, it's not clear to me what I would need to do to avoid the AlertDialog from disappearing! How are you showing the dialog? If you're using Activity.showDialog(int), it will maintain the dialog's state and

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

2010-05-06 Thread strazzere
As you could also note - there is nothing in Android-Market-Api's license against this type of use. Whether he used their code or not - I'm not sure, but basing it off of the User Agent is sort of a big leap of conclusions. That user agent is pretty common on the android devices ;) It's not as

Re: [android-developers] Quick logcat question

2010-05-06 Thread Edward Hinchliffe
grep worked great, thanks both. I noticed $ adb logcat | grep com.myappname Picks up a couple of other internal android messages (intents etc) which might be useful, but you can also get rid of those like this: $ adb logcat | grep /com.myappname Awesome, thanks again :) 2010/5/6 Kostya Vasilyev

[android-developers] Re: Problem with Saving and opening file on moto-droid

2010-05-06 Thread André
Here is the manifest. Where the line of stars are is where I think I had the permission line first and I just moved it to the bottom. Is this correct? ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=#

Re: [android-developers] On click enlarge the image

2010-05-06 Thread pawan nimje
hey trekingapp, tell me how can i set x,y co-ordinate of any view [in my case imagebutton] from code i.e dynamically/programatically - the below code wont work because its part of a application activity:: -- public class About extends Activity { TextView tvDesc =

Re: [android-developers] Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required!

2010-05-06 Thread Al
This isn't an error, it's just a message to inform you it is better to specify the size of the buffer you need in the constructor. Abhi wrote: String line = , oldtext = ; while((line = reader.readLine()) != null) { oldtext += line + \r\n; }

Re: [android-developers] Re: Problem with Saving and opening file on moto-droid

2010-05-06 Thread TreKing
On Thu, May 6, 2010 at 2:26 PM, André pha...@hotmail.com wrote: Is this correct? Think so - that's how I have mine set up and it works just fine. - TreKing - Chicago transit tracking app for

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

2010-05-06 Thread a1
On May 6, 9:18 pm, strazzere str...@gmail.com wrote: As you could also note - there is nothing in Android-Market-Api's license against this type of use. Yes there is, google APIs services in point 5.3 states that you are not allowed to use undocumented APIs: 5.3 You agree not to access (or

  1   2   >