[android-developers] Re: RDP on ANDROID

2009-09-10 Thread Yusuf Saib (T-Mobile USA)
1: Not officially, but X11 has been successfully run on Android 2 3: There are open-source VNC ports, in case that helps Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: How to display an arraylist

2009-09-10 Thread Yusuf Saib (T-Mobile USA)
Do you see anythings wrong ? No, but can you tell me where it crashes? I don't understand why you wrote list in list.setAdapter and why you wrote this.android.R.layout.list_item, array_list instead of R.layout.list_item. Sorry, my post had a typo. It should be this:

[android-developers] Re: Singleton Objects and Android

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
When you close your application in Android, it does not shut down the same way a desktop app does; Android may keep the state around unless it needs the memory. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: Android License compatibility with LGPLd code

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
I am not aware of any problems with developing an Android app that uses LGPL code. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-developers] Re: hi, i need help with a simple counter and timer app for use while refereeing fencing

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
p.s sorry if this is not where i should post this, please tell me where i might be able to do this if this is the case Rentacoder? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity,

[android-developers] Re: Activity Vs View

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
Generally speaking, it's better to design for simplicity and maintainability of code rather than optimize for speed from the outset, especially in the case (like this one) where either approach works. There is no Android rule-of-thumb that says don't use multiple activities, although I've seen a

[android-developers] Re: Android License compatibility with LGPLd code

2009-09-11 Thread Yusuf Saib (T-Mobile USA)
Development indodr...@gmail.com wrote: ok thanks. The same goes for Apache license too ? On Fri, Sep 11, 2009 at 10:50 PM, Yusuf Saib (T-Mobile USA) yusuf.s...@t-mobile.com wrote: I am not aware of any problems with developing an Android app that uses LGPL code. Yusuf Saib Android

[android-developers] Re: setText

2009-09-14 Thread Yusuf Saib (T-Mobile USA)
It does not appear to fit in its parent. If changing textSize to something smaller than 40sp makes it fit, then you will need to either shrink the text or increase the available space in the parent. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this

[android-developers] Re: HTC Magic as dev phone

2009-09-14 Thread Yusuf Saib (T-Mobile USA)
Bear in mind that if you develop and test your app on a device w/o a sliding kb, it may not run as expected on a device with one, and vice versa. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-developers] Re: Solution suggestions

2009-09-14 Thread Yusuf Saib (T-Mobile USA)
On Sep 14, 1:56 pm, Neilz neilhorn...@googlemail.com wrote: Hello. I'm wondering about the best way for android (on a mobile device) to handle the equivalent of a web-app. Let's say a client wants a version of their website (which contains server side capability - database, a framework like

[android-developers] Re: Solution suggestions

2009-09-14 Thread Yusuf Saib (T-Mobile USA)
(a) is faster to implement. CSS is one way to do it. (b) is only useful if there is no benefit to having the data backed up somewhere; it's not a common solution when you already have a website that provides a service. (c) is may be a nice UI, but requires the user to download it, which they may

[android-developers] Re: How secure is SharedPreferences?

2009-09-15 Thread Yusuf Saib (T-Mobile USA)
You say that like it's a bad thing. Re-discovery worked well enough for Columbus. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-developers] Re: Deep sleep behaviour

2009-09-15 Thread Yusuf Saib (T-Mobile USA)
Activity.onDestroy() is Android's way of saying I will kill you now. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On

[android-developers] Re: XML Menu

2009-09-15 Thread Yusuf Saib (T-Mobile USA)
Does the menu show up? Do you have a bug in your code or do you need to learn how to write menu code? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent

[android-developers] Re: Write text in horizontal

2009-09-15 Thread Yusuf Saib (T-Mobile USA)
?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+android:id/my_text_view

[android-developers] Re: Deep sleep behaviour

2009-09-15 Thread Yusuf Saib (T-Mobile USA)
Activity.onDestroy() Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 15, 6:36 am, Zhihong GUO gzhh...@gmail.com

[android-developers] Re: Parser XML return table

2009-09-16 Thread Yusuf Saib (T-Mobile USA)
What do you mean by return a table of strings? Could you give an example? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: Migration of iphone’s app lication to Android

2009-09-16 Thread Yusuf Saib (T-Mobile USA)
The TouchFighter2 source code includes this legaleze from Apple: In consideration of your agreement to abide by the following terms, and subject to these terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in this original Apple software (the Apple Software), to

[android-developers] Re: 3d Physics Engine?

2009-09-16 Thread Yusuf Saib (T-Mobile USA)
I would recommend a C + OpenGL open-source 3D engine. That should narrow it down! I say C because most developers use them for real-time games, which is tricky in Java. Here are some: http://en.wikipedia.org/wiki/Physics_engine#Real-time_physics_engines Yusuf Saib Android ·T· · ·Mobile· stick

[android-developers] Re: Displaying a panoramic image

2009-09-16 Thread Yusuf Saib (T-Mobile USA)
- is there any Android component for this around ? No[t to my knowledge]. - may I encounter performances problems doing image computation in pure Java when scrolling, etc..? It might be slow and/or occasionally pause for G, but not necessarily worse than the J2ME version. Yusuf Saib

[android-developers] Re: ANDROID SDK 1.6 DOES NOT SUPPORT ARABIC LOCALE

2009-09-17 Thread Yusuf Saib (T-Mobile USA)
You are right. Arabic letters are all rendered as uniform rectangles, which is even worse than the slightly-comical way in which the iPhone renders Arabic. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-developers] Re: sending sms

2009-09-17 Thread Yusuf Saib (T-Mobile USA)
http://www.google.com/search?client=safarirls=enq=android+send+smsie=UTF-8oe=UTF-8 yields http://mobiforge.com/developing/story/sms-messaging-android Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: lucene api

2009-09-17 Thread Yusuf Saib (T-Mobile USA)
What do you mean by global search? Do you want to search all your app's local files? Files on the SD card? The internet? Suspicious characters at the airport? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: lucene api

2009-09-18 Thread Yusuf Saib (T-Mobile USA)
which contain match word or text . so can i use lucene for that task to index my xml file? or any other sugestion? plz its urgent and i couldn't find any solution. thanks jaimin. On Sep 18, 2:18 am, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: What do you mean by global search

[android-developers] Re: You must supply a resource ID for a TextView

2009-09-18 Thread Yusuf Saib (T-Mobile USA)
Where in your code is SeparatedListAdapter.java:93? And can you post the resource xml as well? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those

[android-developers] Re: Android kernel

2009-09-29 Thread Yusuf Saib (T-Mobile USA)
Android 1.6 upgrades the Linux kernel from 2.6.27 to 2.6.29, FWIW. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-01 Thread Yusuf Saib (T-Mobile USA)
One place to start is to learn about the PowerManager: http://developer.android.com/reference/android/os/PowerManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: Trouble using ListView

2009-10-02 Thread Yusuf Saib (T-Mobile USA)
So probably one of those parameters is null. Which one is it? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On

[android-developers] Re: How Do You Disable Hero's Auto-Dimming Feature

2009-10-05 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/os/PowerManager.html#SCREEN_BRIGHT_WAKE_LOCK Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: What about examples and comments in the Android reference?

2009-10-06 Thread Yusuf Saib (T-Mobile USA)
Good point. FWIW, many people find the API demos useful: http://developer.android.com/guide/samples/ApiDemos/index.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: Intercepting call

2009-10-06 Thread Yusuf Saib (T-Mobile USA)
Sorry, that is not supported by the Android SDK. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 6, 12:20 am,

[android-developers] Re: Importante sobre XML en Android!

2009-10-08 Thread Yusuf Saib (T-Mobile USA)
No hay ningún plugin así. Tienes razón, sería muy útil. Yusuf Saib Android T · · · Mobile · peguen Los puntos de vista, opiniones y declaraciones de este correo electrónico son las del autor únicamente en su capacidad individual, y no representan necesariamente las de T-Mobile EE.UU., Inc.

[android-developers] Re: Is network slower when screen is blacked out?

2009-10-08 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/os/PowerManager.html#PARTIAL_WAKE_LOCK Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: regarding phone calling

2009-10-09 Thread Yusuf Saib (T-Mobile USA)
Or you could make your own custom activity that borrows code from the Android dialer source. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: play video backward

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
Unless you modify the video file by concatenating a reversed version with the original. There are open-source tools for transforming video files (such as ffmpeg); you could possibly run one on the phone after recording, or you upload it to a cloud (preferably while recording), transform and

[android-developers] Re: How did you localize your app?

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
Machine translation quality varies from good to humorous. A few extra strings in your code, and the logic to handle them, shouldn't add much to the download. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: Can anybody tell pls.....

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
To split a string, use String.split(): http://developer.android.com/reference/java/lang/String.html#split(java.lang.String) For the ListView, use an ArrayAdapter that maps an array of items to be displayed in a a list. Each item can be of a class you define that contains the name and id. Tell

[android-developers] Re: How to get unique handset device id?

2009-10-12 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId() Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: Custom Object Serialization in Android?

2009-10-13 Thread Yusuf Saib (T-Mobile USA)
Java built-in serialization has many benefits, but for efficiency you may want to consider something else, such as protobuf. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: Finding Preference of a different Screen

2009-10-14 Thread Yusuf Saib (T-Mobile USA)
android.content.SharedPreferences? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 14, 5:15 am, Praveen

[android-developers] Re: Pass object from an activity to another?

2009-10-15 Thread Yusuf Saib (T-Mobile USA)
Before you call startActivity with an Intent, first put extra into into it with Intent.putExtras: http://developer.android.com/reference/android/content/Intent.html#putExtras(android.os.Bundle) Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are

[android-developers] Re: ListView, how do I change the orange highlight color?

2009-10-15 Thread Yusuf Saib (T-Mobile USA)
You can set it programmatically or in the XML. I generally prefer the latter: http://developer.android.com/reference/android/content/res/ColorStateList.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: What is the difference between 'mmm' and 'mm' command

2009-10-15 Thread Yusuf Saib (T-Mobile USA)
http://www.youtube.com/watch?v=JWj1Uu7LutE From envsetup.sh: -- mm: Builds all of the modules in the current directory. -- mmm: Builds all of the modules in the supplied directories. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are

[android-developers] Re: Logging in Android

2009-10-15 Thread Yusuf Saib (T-Mobile USA)
From http://developer.android.com/reference/android/util/Log.html#d(java.lang.String,%20java.lang.String): Verbose should never be compiled into an application except during development. Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept. Yusuf

[android-developers] Re: Flushing RAM of android device

2009-10-16 Thread Yusuf Saib (T-Mobile USA)
Power cycle? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 16, 1:28 am, joare...@googlemail.com

[android-developers] Re: Regarding the Java Version

2009-08-12 Thread Yusuf Saib (T-Mobile USA)
As you probably already know, you don't need to build the Android source to develop apps, you just need to install the prebuilt SDK. You should post Android platform building questions to the android- platform mailing list. And I should not answer them here either, but here goes anyway: You may

[android-developers] Re: Datepicker / Timepicker Widgets

2009-08-12 Thread Yusuf Saib (T-Mobile USA)
NumberPicker is internal: http://groups.google.com/group/android-developers/browse_thread/thread/65da9820998fddc9 So you will have to roll your own, but you can reuse internal code from the platform as needed. Just don't call internal APIs from your app. Yusuf Saib Android ·T· · ·Mobile·

[android-developers] Re: got a black screen after no operation on app for a while

2009-08-13 Thread Yusuf Saib (T-Mobile USA)
There are stupid questions, and there are stupid answers. Your question wasn't stupid, but forgive me if my answer is: Could it be the Android screensaver? You did mention that you left for a while. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this

[android-developers] Re: Getting Friends list from Facebook

2009-08-13 Thread Yusuf Saib (T-Mobile USA)
Facebook uses a REST API. So your app would use REST get the info thusly: http://wiki.developers.facebook.com/index.php/Friends.get Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity,

[android-developers] Re: How to make chat window for IM?

2009-08-13 Thread Yusuf Saib (T-Mobile USA)
Can you give more details on the problems you encountered with TextView or ListView? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: Has ADC submission site opened?

2009-08-13 Thread Yusuf Saib (T-Mobile USA)
No. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 10:02 am, Khurram Samad khurram.sa...@gmail.com wrote:

[android-developers] Re: ListActivity vs Activity what are the advantages?

2009-08-14 Thread Yusuf Saib (T-Mobile USA)
ListActivity is a convenience class for people who need an Activity that specifically just has a ListView as its content. If that's all you need, ListActivity saves you the trouble of implementing it yourself. If you need more flexibility, then Activity is the general class. Yusuf Saib Android

[android-developers] Re: How put bold to android:textStyle of a TextView from RemoteViews ?

2009-08-18 Thread Yusuf Saib (T-Mobile USA)
Get the TextView object with findViewById() and then call TextViewsetTypeFace(). Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-developers] Re: Can I Hide native phone app GUI when incoming call comes

2009-08-18 Thread Yusuf Saib (T-Mobile USA)
Sorry, that is not possible with the SDK. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 18, 11:29 am,

[android-developers] Re: Garbage Collection

2009-08-18 Thread Yusuf Saib (T-Mobile USA)
No, you do not have to make calls to it. You are correct, the JVM does that on its own. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: Resolution

2009-08-19 Thread Yusuf Saib (T-Mobile USA)
FWIW, to run the emulator with different size screens, type in the command line emulator -skinwidthxheight. You can go up until a little north of 800x600 before it goes pop. http://www.android.encke.net/android-emulator-tutorial.html#Keyboard-Control Yusuf Saib Android ·T· · ·Mobile· stick

[android-developers] Re: IllegalArgumentException occur: parameter must be a descendant of this view in ViewGroup.java:2454

2009-08-19 Thread Yusuf Saib (T-Mobile USA)
Or you could git donut. ___ .- -. .' . ; `. /: . ' : \ | ` .-. . ' | | : ( ) ; ` | | : `-' : | \ .` ;

[android-developers] Re: How to avoid Touch Event

2009-08-19 Thread Yusuf Saib (T-Mobile USA)
Have you tried overriding OnTouch()? Another way may be to embed the aphephobic view in another view that overrides OnTouch rather than passing it down to its child. http://2.bp.blogspot.com/_jFEYq3Edff8/SFr1srC_VSI/AnU/oucw8hzS8BA/s400/FarSideNoTouch%2B001(2).jpg Yusuf Saib Android ·T·

[android-developers] Re: VNC App

2009-08-19 Thread Yusuf Saib (T-Mobile USA)
Running a VNC server means you have to be able to capture the screen, which is possible only if the phone is rooted (meaning running with Linux root access because the framebuffer does not user-level read permission). Most phones are not rooted. You would also need to be able to insert UI events

[android-developers] Re: Architecture dilema

2009-08-20 Thread Yusuf Saib (T-Mobile USA)
Generally speaking, using views instead of activities saves memory but requires more development time. I recommend you first make three activities and a menu, and then optimize for memory/speed/etc as needed. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in

[android-developers] Re: Site idea: istheadcsubmissionsiteopenyet.com

2009-08-20 Thread Yusuf Saib (T-Mobile USA)
META HTTP-EQUIV=refresh CONTENT=10;URL=http://notyet.com/; Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 20,

[android-developers] Re: How to make chat window for IM?

2009-08-21 Thread Yusuf Saib (T-Mobile USA)
its show me last 10 lines form 91 to 100. How I can do it? its right approach to make chat window? any useful link or tutorial? Hopes you understand my problem. Thanks, Gulfam Hassan On Aug 13, 11:34 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: Can you give more

[android-developers] Re: Listen a key

2009-08-21 Thread Yusuf Saib (T-Mobile USA)
Activity.onKeyDown() http://developer.android.com/guide/topics/ui/ui-events.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile

[android-developers] Re: system privileges on emulator

2009-08-21 Thread Yusuf Saib (T-Mobile USA)
You would have to root your emulator. I'm not sure if that is easy to do. But since the app you're debugging requires root privileges, it would only run on rooted phones. Is that what you want? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-developers] Re: List of running process.

2009-08-24 Thread Yusuf Saib (T-Mobile USA)
ActivityManager: http://developer.android.com/reference/android/app/ActivityManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: Connecting multiple phones

2009-08-24 Thread Yusuf Saib (T-Mobile USA)
There are two ways to do this: 1) have the phones running your app sign in to a central server with their location, and the server informs the phones of each other. Then they can contact each other however you like. One problem is that 50m is a small radius for the phone's ability to detect its

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-25 Thread Yusuf Saib (T-Mobile USA)
The Android OS takes a long time to boot, particularly on a device which is much slower than a desktop. Apps don't take so long. Android was designed to do other things well; boot time doesn't appear to be a priority. There is plenty of info on how to boot Linux fast, both on devices

[android-developers] Re: How to make device to sleep?

2009-08-26 Thread Yusuf Saib (T-Mobile USA)
AlarmManager: http://d.android.com/reference/android/app/AlarmManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: java question

2009-08-26 Thread Yusuf Saib (T-Mobile USA)
I think this is a valid Android question, as Android might handle this differently than standard JavaSE. Specifically, JavaSE lets you do this and (to the best of my knowledge) Android does not. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email

[android-developers] Re: Connecting multiple phones

2009-08-26 Thread Yusuf Saib (T-Mobile USA)
source but is not yet approved. https://review.source.android.com/#change,9714 On Aug 24, 1:31 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: There are two ways to do this: 1) have the phones running your app sign in to a central server with their location, and the server

[android-developers] Re: Porting to J2ME

2009-08-26 Thread Yusuf Saib (T-Mobile USA)
Not that I know of. There is code.google.com/p/android4me but it's on hold. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA,

[android-developers] Re: how do I get in touch

2009-08-27 Thread Yusuf Saib (T-Mobile USA)
Option 1: http://www.dreamdawn.com/sh/contact.php Option 2: If you have a problem, if no one else can help, and if you can find them, maybe you can hire... The A-Team. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author

[android-developers] Re: Monitoring cpu charge/usage : is it possible?

2009-08-27 Thread Yusuf Saib (T-Mobile USA)
capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 10:22 am, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: http://developer.android.com/reference/android/app/ActivityManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions

[android-developers] Re: How to do we take a Screenshot using ADB Comand Line

2009-08-27 Thread Yusuf Saib (T-Mobile USA)
DDMS sends a string that essentially says give me a screenshot to the device, which sends back image data, all through a socket. You could in theory take the DDMS code and repurpose it to your needs. You might start by taking a look at system/core/adb/framebuffer_service.c and who calls it. Bear

[android-developers] Re: How to listen to Back key

2009-08-27 Thread Yusuf Saib (T-Mobile USA)
From http://android-developers.blogspot.com/search/label/Input%20methods: Even though the input method window doesn't have explicit focus, it receives hard key events first and can choose to consume them or forward them along to the application. For instance, you may want to consume the

[android-developers] Re: Monitoring cpu charge/usage : is it possible?

2009-08-27 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/app/ActivityManager.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: can you tell if you're in the debugger?

2009-08-27 Thread Yusuf Saib (T-Mobile USA)
The Debugger is everywhere, it is all around us. Even now, in this very room. You can see it when you look out your window, or when you turn on your television. You can feel it when you go to work, or when go to church or when you pay your taxes. It is the world that has been pulled over your

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Yusuf Saib (T-Mobile USA)
You can't figure out which item is selected from the adapter. It is the ListView or ListActivity (depending on which you used) that will tell you which is selected. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely

[android-developers] Re: Suggestions on how to stop threads with long operations?

2009-08-31 Thread Yusuf Saib (T-Mobile USA)
You might run this thread in a service, and have another thread stop the service as needed. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: CPU bandwidth control for threads/apps

2009-09-01 Thread Yusuf Saib (T-Mobile USA)
You understood it correctly. That level of granularity is not available. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc.

[android-developers] Re: Graphics

2009-09-01 Thread Yusuf Saib (T-Mobile USA)
Hello, there are several ways to do graphics in Android, but for starters I suggest you look at the Canvas class. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-developers] Re: Who makes embedded hardware Android devices?

2009-09-02 Thread Yusuf Saib (T-Mobile USA)
Here's an open-source hardware one: http://www.gizmoforyou.com/news.php?item.54.4 It can also be configured for telephony. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: XML-RPC

2009-09-02 Thread Yusuf Saib (T-Mobile USA)
Hm, there are three ways that I can think of: 1) write code that does this one field at a time (I assume this is what you hope to avoid) 2) just keep it in the hash 3) leverage Java introspection to do #1 automatically Faced with this in the past, I've opted for #2 for simplicity's sake, but #3

[android-developers] Re: how and where to save SecretKey for encryption and decryption

2009-09-02 Thread Yusuf Saib (T-Mobile USA)
It just depends on how much the images are worth and how much the decryption costs the unauthorized party. If the images are not worth much (hypothetically speaking, of course), then decompiling the application isn't worth it. If on the other hand, the images will land you in jail (again,

[android-developers] Re: Can I leave some info after my app is uninstalled?

2009-09-03 Thread Yusuf Saib (T-Mobile USA)
Other places to leave data are in shared databases or on web servers. But it's usually impolite to leave data behind on the phone after uninstall. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-developers] Re: can anyone get the layout tab to work in eclipse for layout xml files?

2009-09-03 Thread Yusuf Saib (T-Mobile USA)
The layout tab works for me sometimes. And then sometimes it doesn't. Restarting Eclipse helps, sometimes. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

Re: 回复: [android-developers] how to make a littl e time stop between two works

2009-09-04 Thread Yusuf Saib (T-Mobile USA)
That works, but if you need to do something else while waiting (instead of just sleeping), then use the AlarmManager. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: Please help _Confused_Server Side For android mobile application

2009-09-04 Thread Yusuf Saib (T-Mobile USA)
There are many many ways to do this, so it partially depends on your capabilities. PHP is fine, but if you prefer Java then JBOSS is one way; there are a number of Java-based solutions including JavaEE and Google App Engine. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions

[android-developers] Re: Android emulator window small size

2009-09-05 Thread Yusuf Saib (T-Mobile USA)
Did you click Apply? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 4, 8:06 pm, tim itssa...@gmail.com wrote:

[android-developers] Re: Sample mobile application query

2009-09-08 Thread Yusuf Saib (T-Mobile USA)
Which mobile banking application? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 7, 11:16 pm, Sudeep Jha

[android-developers] Re: arcade style virtual joystick

2009-09-08 Thread Yusuf Saib (T-Mobile USA)
I'm not aware of a joystick widget, but developing one (warning: famous last words) should be easy. Just process the touch events' x and y relative to the center of the widget and convert that into joystick input. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and

[android-developers] Re: How can i get the mobile information??

2009-09-08 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/os/Build.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 8,

[android-developers] Re: Key listener

2009-09-08 Thread Yusuf Saib (T-Mobile USA)
http://developer.android.com/reference/android/view/View.html#onKeyDown(int,%20android.view.KeyEvent) http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_BACK Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of

[android-developers] Re: DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-08 Thread Yusuf Saib (T-Mobile USA)
You could always roll you own skinnable version, borrowing from the original source code. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of

[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-08 Thread Yusuf Saib (T-Mobile USA)
To develop an app, you do (eventually) need a phone to test it on. Any Android phone should allow you to install apps you write. Bear in mind that there are differences between phone models, so that for example if you get a phone with a physical keyboard, other people may want to run it on phones

[android-developers] Re: key lisener

2009-09-09 Thread Yusuf Saib (T-Mobile USA)
Here is an example: http://whyandroid.com/android/227-tipster-building-a-tip-calculator-for-the-android-os.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-developers] Re: How to display an arraylist

2009-09-09 Thread Yusuf Saib (T-Mobile USA)
I'm not sure how you want to display a list of lists. For that you might want some kind of tree widget, not a list view. But if you want to display a list of string, use setAdapter(): list.setAdapter(new ArrayAdapterString(this, android.R.layout.list_item, array_list)); Does that answer

[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-09 Thread Yusuf Saib (T-Mobile USA)
I know of at least one exception to the nothing-from-China rule: HTC is in Taiwan, Republic of China! :) Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-developers] Re: Can android extend Google Finance ?

2009-09-09 Thread Yusuf Saib (T-Mobile USA)
Yes, it can be done; but someone would have to write an app to access the GF API: http://code.google.com/apis/finance/ Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not

[android-developers] Re: How can I start the ADB Deamon programatically ???

2009-09-09 Thread Yusuf Saib (T-Mobile USA)
I don't believe that's supported in the SDK. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 8, 11:29 pm,

  1   2   >