[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"
 wrote:
> Hello,
>
> I am trying to figure out how to flush all the data that is stored in
> the RAM of an android device.
> Since the devices have different memory sizes I dont think its the
> best idea to just read a lot of small files from the disk in order to
> overwrite the RAM (which is kind of a manual way of flushing the RAM),
> because I am not sure if my RAM really got filled already.
>
> Does anyone know how to do this ?
> like System.flushMem ? :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 15, 1:01 pm, vj  wrote:
> I understand it is meant for filtering out "logcat" messages, but on
> what
> basis would a developer know when to use which type of API ?
>
> On Oct 15, 2:50 pm, vj  wrote:
>
>
>
> > What is the significance of having different "priority" levels in the
> > Log API ? I am referring to .e(), .d() etc. Also, considering the fact
> > that all the priorities are going to be logged in any case, on what
> > basis would a developer know when to use which type of API ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Oct 15, 11:04 am, n179911  wrote:
> Hi,
>
> In android build environment, what is the difference between 'mmm' and
> 'mm' command?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Oct 15, 11:22 am, vorcigernix  wrote:
> You don't have to, I was at work and didn't have specific link to
> document, which is>
>
> http://commonsware.com/Android/excerpt.pdf
>
> Hope it helps, it helped me lot.
>
> On Oct 15, 3:35 pm, Mikael Bertlin  wrote:
>
>
>
> > Hi Thanks for the reply, but:
>
> > 1.  Thats not the answer I was looking for :-P
> > 2. I'd really like to figure this out without buying a book 
>
> > On Oct 15, 9:06 am, vorcigernix  wrote:
>
> > > 1) Do not change default colors :)  As user, I am used to some color
> > > scheming, and all I need to know is that I am hovering or selecting
> > > something. It is not an aesthetic race..on appstore I saw application
> > > in which I was searching for ok button for 2 minutes. It wasn't
> > > there..author decided it is better to have "peel page" control.
>
> > > 2) If you really need to: there is great article about customizing
> > > listviews athttp://commonsware.com/
>
> > > On 14 říj, 23:51, Mikael Bertlin  wrote:
>
> > > > How do I change the original orange highlight color to something else?
> > > > That is, the color I get when I click in a ListView.
>
> > > > I've tried to set the android:textColorHighlight of the ListView
> > > > and/or the TextView for the rows, nothing work.
>
> > > > I've manage to remove it by setting android:listSelector="#"
> > > > of my ListView but I just want to change the color, but it seems
> > > > impossible.
>
> > > > How do I do that?
>
> > > > Thanks
> > > > /Micke- Hide quoted text -
>
> > > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Oct 15, 5:51 am, Long  wrote:
> Hi,
>   There is an activity which has an object. This activity(say A)
> starts another activity(say B).
>   Can B use some object in A?
>
> Cheers.
> Long
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> I have a class called A which has a CheckBoxPreference chkbox1;
> There is one more class B which is invoked by pressing a menu item
> falling under class A.
> Now, I want to use the CheckBoxPreference of class A in class B by
> using findPreference(key);
> If I use it this way, then the Preference returned from findPreference
> () is NULL.
> Please suggest a way to accomplish this task.
>
> Rgds
> Praveen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.



On Oct 13, 12:41 pm, Dan Sherman  wrote:
> Not sure as to an answer to your question (I'm not that familiar with the
> internals), however, as a work-around you could probably do something like:
>
> MyObject arr[] = new MyObject[list.size()];
> serialize(arr);
> send(arr);
>
> -
> recv(arr)
> list.addAll(arr);
>
> Obviously abbreviated, and doesn't quite answer the question, but there's
> definitely ways to get the data from A to B differently...
>
> - Dan
>
>
>
> On Tue, Oct 13, 2009 at 3:32 PM, dsukhram  wrote:
>
> > I can return an ArrayList of Strings just not an ArrayList of my Stop
> > object. And since this whole process works fine when I take android
> > out of the equation..this leads me to believe that serialization is
> > handled slightly differently in android.  Anybody?
>
> > On Oct 12, 6:28 pm, dsukhram  wrote:
> > > I am writing an android client app which sends a Hashtable to a remote
> > > servlet and recieves an ArrayList consisting of a custom Object which
> > > is serializable.  This ran fine when I was just receiving the
> > > ArrayList from a java console app. So I know my objects are being
> > > serialized and deserialized properly. But when I port the same client
> > > code over to android I get an error when trying to read the ArrayList
> > > of my objects that is sent back from the servlet.
>
> > > Is there any differences in the way Android does serialization? I
> > > can't seem to find any documentation that says it does. The error I
> > > receive is:
>
> > > java.lang.IndexOutOfBoundsException: Invalid location
>
> > >        at java.util.ArrayList.get(ArrayList.java:350)
>
> > >  My Android Client app is as
> > > follows=
>
> > > public class TTCPointService  {
> > >         private Logger logger;
> > >         private FileHandler handler;
>
> > >         public TTCPointService(){
>
> > >                 try
> > >                 {
> > >                         logger =
> > Logger.getLogger(TTCPointService.class.getName());
> > >                         handler = new FileHandler("ttcservice.log");
> > >                         handler.setFormatter(new SimpleFormatter());
> > >                         logger.addHandler(handler);
> > >                 }
> > >                 catch(IOException e)
> > >                 {
> > >                         logger.log(Level.SEVERE,e.toString());
> > >                 }
> > >         }
>
> > >         public ArrayList ConnectToServlet()
> > >         {
> > >                 ArrayList list = new ArrayList();
>
> > >         Hashtableobj = new Hashtable();
> > >         obj.put("lat", "12.00");
> > >         obj.put("log", "-23.00");
>
> > >         try
> > >         {
> > >                 URL servletURL = new URL("http://192.168.0.69:8080/
> > > GTFSProcessor/TTCPoints");
> > >                 HttpURLConnection servletConnection = (HttpURLConnection)
> > > servletURL.openConnection();
> > >                 servletConnection.setDoOutput(true);
> > >                 servletConnection.setDoInput(true);
> > >                 servletConnection.setUseCaches(false);
> > >                 servletConnection.setDefaultUseCaches(false);
>
> > >                 servletConnection.setRequestProperty("Content-
> > > type","application/x-java-serialized-object");
> > >                 servletConnection.setRequestMethod("POST");
> > >                 logger.log(Level.INFO,"Connecting to Servlet");
>
> > >                 //Send object to servlet
> > >                 OutputStream os = servletConnection.getOutputStream();
> > >                 ObjectOutputStream oos = new ObjectOutputStream(os);
> > >                 oos.writeObject(obj);
>
> > >                 oos.flush();
> > >                 oos.close();
> > >                 logger.log(Level.INFO,"Hashtable sent to Servlet");
>
> > >                 //Read from servlet
> > >                 InputStream is = servletConnection.getInputStream();
> > >                 ObjectInputStream ois = new ObjectInputStream(is);
>
> > >                 list = (ArrayList)ois.readObject();
> > >                 logger.log(Level.INFO,"Reading Object from Servlet");
>
> > >                 os.close();
>
> > >         }
> > >         catch(IOException e)
> > >         {
> > >           logger.log(Level.SEVERE,e.toString());
> > >         }
> > >         catch(ClassNotFoundException e)
> > >         {
> > >                 logger.log(Level.SEVERE,e.toString());
> > >         }
> > >         return(list);
> > >         }
>
> > > }
>
> > > =The code that raises the error
> > > is===
>
> 

[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 T-Mobile USA, Inc.


On Oct 11, 9:23 pm, Agus  wrote:
> How to get unique handset device id?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 the ListView to display each row with
the name only. There are tutorials that describe how to do this.



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 12, 4:43 am, ragavendran s  wrote:
> Can anybody tell pls.
> I m new to android.
>
> Here is my question:
>
> example:
> |4|2|raghav|4|Roshan|5|raghul|6|sachin
>
> Wat i need means i want to separate this by string tokenizer("|") and store
> it into separate valuesthe first number "4"indicates i need 4 list itms
> should display with name specified above the second indicates "2"are
> unique id for each member like"2"for raghav ,"4" for Roshan and "5"for
> raghul and "6" for Sachin
>
> How i can display certain listitem based upon number indicating in first
> (i.e)"4" above given example...
>
> when i display list it should consists only name not the unique idif i
> click the name the particular unique id should display..
>
> Pls its urgent
>
> Thanks in anvance
> Raghav.S
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Oct 12, 6:39 am, Jason Van Anden  wrote:
> How have non-multilingual indy devs gone about translating their apps for
> different languages?
>
> I don't mean how do you localize ... I mean, how did you get translation
> done (paid, bartered, online translator, ...)?
>
> Did you notice an impact on downloads?
>
> Jason Van Anden
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 download it again.


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 12, 8:25 am, Marco Nelissen  wrote:
> On Mon, Oct 12, 2009 at 3:34 AM, RS  wrote:
>
> > How to play video in a time reversed direction?
>
> You can't.
>
>
>
> > The requirement is to loop playing forward and backward repeatedly.
> > Thanks a lot!
> > R.S
> > ps: The video is shot on the same android device (g1/adp1)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.




On Oct 9, 4:50 am, Mark Murphy  wrote:
> manoj wrote:
> > is anybody dont know how to intercept out going calls.
>
> It is not possible from the SDK.
>
> > I mean when we dial a phone number instead of going to the android's
> > InCallScreen app, my own app should be launched.
>
> > how to do it?
>
> You can create your own firmware based onhttp://source.android.com,
> make whatever changes you desire, and put that firmware on your own phone.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.


On Oct 8, 4:18 pm, "tomei.ninge...@gmail.com"
 wrote:
> I have an app that keeps pulling data from the network. I noticed that
> my downloading speed seems to have slowed down if I let the phone's
> screen to black out.
>
> Is this true?
>
> Is there a way to tell Android "keep using full network speed even
> when screen is blacked out"?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.



On Oct 8, 11:36 am, orlandofc  wrote:
> Hola
> Existe algun plugin que se pueda instalar para tener completamiento de
> codigo en la parte de XML, resulta bastante dificil conocer de memoria
> todas las propiedades. Por favor seria de gran ayuda su respuesta!
>
> s...@lu2s
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, javafan  wrote:
> Hi,
>
> Is there a API for intercepting and blocking a call? What I want to do
> is to create app that autometically detect incoming call and based on
> the caller it either alert the user or don's alert the user. Like, if
> the number is stored in the phone book then alert the user other wise
> just send a message to the caller that the person is busy.
>
> Thanks,
> Praful Bhatnagar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.




On Oct 6, 6:07 am, Marc Reichelt  wrote:
> Hi there!
>
> I have been using the Android documentation for a few days now, and it
> is quite good and easy to read.
> Apart from that I noticed that I missed something, and now I found out
> what it is:
>     Examples and comments.
>
> If you look at the PHP documentation 
> (e.g.http://www.php.net/manual/en/function.substr.php
> for the PHP substr() function) you will see many syntax-highlighted
> examples and comments by users.
>
> Of course there are examples in the Android documentation, especially
> in the Dev Guide category - they just are not at the right place if
> one searches the reference for a specific method or functionality.
> What do you think about this?
>
> @Google Team: I believe this means more work, but I also believe that
> it would improve the reference by all means. Maybe there is a
> compromise: The offline reference just contains the examples and
> hyperlinks guide to the online documentation for those who are looking
> for user comments.
>
> Regards
>
> Marc Reichelt   ||  http://www.marcreichelt.de/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.


On Oct 5, 6:54 am, bklik  wrote:
> I'm getting a lot of requests by users of my flashlight application,
> that they want me to disable the HTC Hero's automatic dimming feature
> that works off the light sensor.
>
> How do you disable it through code?  Or, isn't there a way?
>
> Brenton
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Oct 1, 11:53 pm, gonzo  wrote:
> Hi,
>
> I'm just trying to set the content of a List View from a String[]
> array.
>
> and i tried using the ArrayAdapter to set the List Adapter. as...
>
> setListAdapter(new ArrayAdapter(this,R.layout.mycustomlayout,
> R.id.content_text_view, list);
> where list is my String[] array.
>
> mycustomlayout file is as follows
>
>  android:orientation="Vertical"
>           .
>
>  android:id="@+id/listtitle"
> ...
> />
>  android:id="@+id/list_intro"
> .
> />
>  android:id="@+id/content_text_view"
> ...
> />
>
> Do tell me what i'm doing wrong.
>
> I seem to be getting a nullpointerexception in the above mentioned
> line in my code.
>
> Thanks
>
> Shrikanth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.



On Oct 1, 12:24 pm, Richard Schilling 
wrote:
> I'm looking around and trying to find out where sleep behavior is
> documented - and I mean in the general sense.
>
> When the phone is left alone:
> * Sometimes the phone screen dims and doesn't shut off.
> * Sometimes the phone screen goes dark in five seconds
> * Sometimes the menu lock happens.
> * Sometimes the menu lock doesn't happen.
> * Sometimes the only way to darken the screen is to push the power
> button.
>
> What's not clear is what triggers these different states.   I'm
> looking for a complete list I can use in testing and application
> validation.
>
> Can anyone point me in the right direction?
>
> Thanks.
>
> Richard Schilling
> Mobile Operating Systems Engineer
> Root Wireless, Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Sep 29, 3:27 am, Cronix  wrote:
> Hi list,
> I would like to know if we can use the kernel.org kernels to update
> the android OS kernel for e.G. to 2.6.32-RC1 directly or if i need any
> custom android kernel patches to get the kernel running for android?
>
> Greeetings Cronix
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 of T-Mobile USA, Inc.


On Sep 18, 7:16 am, Wouter  wrote:
> I removed my seperatedlistadapter and now it worked.. :s But it was
> working before with my seperatedlistadapter :(
>
> On 18 sep, 14:47, Wouter  wrote:
>
>
>
> > Really dont find what the problem is, the weird is it worked and i
> > havent changed anything :(
>
> > On 18 sep, 12:02, Wouter  wrote:
>
> > > Hey,
>
> > > I have a weird problem. For days i have a working list with movie
> > > details i get from an xml rpc source. It loads the list very well and
> > > I tried it again today and when i scroll down, always at the same list
> > > item it gives me this error. I don't know what the problem is. It
> > > shows my list items very good and now not anymore. If you want i can
> > > give you my source code too! And it worked a few days ago and now
> > > suddenty not :(
>
> > > 09-18 11:50:00.940: ERROR/ArrayAdapter(1561): You must supply a
> > > resource ID for a TextView
> > > 09-18 11:50:00.950: DEBUG/AndroidRuntime(1561): Shutting down VM
> > > 09-18 11:50:00.950: WARN/dalvikvm(1561): threadid=3: thread exiting
> > > with uncaught exception (group=0x4001aa28)
> > > 09-18 11:50:00.950: ERROR/AndroidRuntime(1561): Uncaught handler:
> > > thread main exiting due to uncaught exception
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):
> > > java.lang.IllegalStateException: ArrayAdapter requires the resource ID
> > > to be a TextView
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:
> > > 347)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > com.android.moviemeter.SeparatedListAdapter.getView
> > > (SeparatedListAdapter.java:93)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.AbsListView.obtainView(AbsListView.java:1255)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.addViewBelow(ListView.java:2795)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.scrollListItemsBy(ListView.java:2725)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.arrowScrollImpl(ListView.java:2225)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.arrowScroll(ListView.java:2172)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.commonKey(ListView.java:1977)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.onKeyDown(ListView.java:1924)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.KeyEvent.dispatch(KeyEvent.java:893)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.View.dispatchKeyEvent(View.java:3647)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:744)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.ListView.dispatchKeyEvent(ListView.java:1909)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > com.android.internal.policy.impl.PhoneWindow
> > > $DecorView.superDispatchKeyEvent(PhoneWindow.java:1708)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent
> > > (PhoneWindow.java:1197)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.app.Activity.dispatchKeyEvent(Activity.java:1967)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent
> > > (PhoneWindow.java:1684)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:746)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.widget.TabHost.dispatchKeyEvent(TabHost.java:272)
> > > 09-18 11:50:00.990: ERROR/AndroidRuntime(1561):     at
> > > android.view.ViewGroup.dispatc

[android-developers] Re: lucene api

2009-09-18 Thread Yusuf Saib (T-Mobile USA)

So you can in theory use lucene for that. Just bundle it with your app
and call its API from your 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 USA, Inc.



On Sep 17, 9:41 pm, jaimin mehta  wrote:
> Thanx for the reply but i want to search in my xml file and it
> contains 90 chapters.when i type word or text to search i want to
> search in all the 90 chapters in my xml file and display chapters
> 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)" 
>
>
> Mobile.com> wrote:
> > 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 their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
>
> > On Sep 16, 11:45 pm, jaimin mehta  wrote:
>
> > > hi i am new to android .
> > > i have developed a application
> > > in that application i want a feature of global search in xml file
> > > now  i want to use Lucene api for global search
> > > can i use in android?
>
> > > if yes than plz tell me how can i implements that in my android code
>
> > > thanx
> > > jaimin.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Sep 16, 11:45 pm, jaimin mehta  wrote:
> hi i am new to android .
> i have developed a application
> in that application i want a feature of global search in xml file
> now  i want to use Lucene api for global search
> can i use in android?
>
> if yes than plz tell me how can i implements that in my android code
>
> thanx
> jaimin.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: sending sms

2009-09-17 Thread Yusuf Saib (T-Mobile USA)


http://www.google.com/search?client=safari&rls=en&q=android+send+sms&ie=UTF-8&oe=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 their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 16, 9:46 pm, Saikat  wrote:
> Please let me know how can I can send sms from my application. Which
> api I need to use.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 16, 6:45 pm, Raphael  wrote:
> I don't think there's any support for right-to-left in the system yet.
> R/
>
>
>
> On Wed, Sep 16, 2009 at 6:12 PM, Ahmad Al-Ibrahim  
> wrote:
>
> > Disappointed, I was so happy to see Arabic listed in the docs. Any
> > suggestion on how to get that done? or at least add Arabic fonts to be
> > able to read Arabic across multiple apps?
>
> > On Sep 17, 3:40 am, Xavier Ducrohet  wrote:
> >> This looks to be a doc bug actually.
>
> >> The locale list in the SDK system image has not changed since 1.5
>
> >> sorry about that.
>
> >> Xav
>
> >> On Wed, Sep 16, 2009 at 5:19 PM, almoumen  wrote:
>
> >> > Hi everyone
>
> >> > if you just have a look into the new locales that are added to the new
> >> > SDK 1.6, you will notice that among these locales is Arabic
>
> >> >http://developer.android.com/sdk/android-1.6.html
>
> >> > but unfortunately, when I tried to run the emulator,I didn't find any
> >> > locale supported Arabic.
>
> >> > Could you please give more clarifications about this issue ??
>
> >> --
> >> Xavier Ducrohet
> >> Android Developer Tools Engineer
> >> Google Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
·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.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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, 2:30 pm, Brian  wrote:
> Does anyone have any recommendations for a 3D physics engine?  I'm
> looking for something like Bullet Physics.  I've only run across
> suggestions for 2D engines. There is a jBullet engine, but it seems a
> bit out of date and I'm not sure if people are able to successfully
> use it on android hardware.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
use, reproduce, modify and redistribute the Apple Software, with or
without
modifications, in source and/or binary forms; provided that if you
redistribute
the Apple Software in its entirety and without modifications, you must
retain
this notice and the following text and disclaimers in all such
redistributions
of the Apple Software.
Neither the name, trademarks, service marks or logos of Apple Inc. may
be used
to endorse or promote products derived from the Apple Software without
specific
prior written permission from Apple.  Except as expressly stated in
this notice,
no other rights or licenses, express or implied, are granted by Apple
herein,
including but not limited to any patent rights that may be infringed
by your
derivative works or by other works in which the Apple Software may be
incorporated."

I interpret this as "modify and distribute as you see fit, but if you
change it, don't say it's from Apple." But don't rely on my opinion.

On the other hand, this code was written in Objective-C for the Cocoa
platform. The less I say about the iPhone toolchain the better. iPhone
apps are pleasant enough to use, let's just leave it at that.

You might consider starting with a 3D game that uses C and OpenGL.
That would much easier to port to the Android platform if you use the
NDK.



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.

P.S.: Seriously, what were they thinking when they made the iPhone
"Interface Builder". Malice?



On Sep 15, 8:57 pm, 100town  wrote:
> I am planning to do some exercise on Android 3D. To take a short cut
> to test opengl ES on Android, I am thinking about to migrate some
> famous iphone’s game to Android platform, for example: TouchFighter2
> etc.
>
> But I am wondering by doing so I may violate apple’s copyright. I read
> about apple’s license, but still don’t figure out if I am legal to do
> the migration.
>
> Anybody help me? Or anybody tell me who shall I contact with to
> discuss this issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.



On Sep 16, 5:04 am, sweet  wrote:
> Hello I'm new to android dev and I'd like to make a Parser xml which
> return a table of string, i've try to find a tuto in the net but
> without success. I know i should use SAX parser but i don't understand
> his working if anybody can explain to me it will be very nice or if
> anybody know a tutorial about this.
> Thanks a lot
> Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> how to get notification before the CPU get to deep sleep? I want to do some
> task before my application be killed by the system.
>
> 2009/9/9 Dianne Hackborn 
>
>
>
> > When no wake locks are held, the CPU will not run at all, and time has
> > effectively stopped for most scheduling (that is scheduling based on
> > SystemClock.uptimeMillis(), which is what most things like Handler and Java
> > timeouts use).
>
> > On Tue, Sep 8, 2009 at 10:19 PM, sukumar bhashyam <
> > bhashyam.suku...@gmail.com> wrote:
>
> >> Hello,
> >> I have some basic doubts with Deep Sleep on Android device. Deep sleep
> >> will turn the CPU to OFF. Suppose if I have a service which does some
> >> operations every 5 sec and I din't acquire any power manager locks in my
> >> service.
>
> >> When device goes to Deep sleep, will my service still running?.
>
> >> If CPU is turned off on Deep Sleep, when Device comes out of Deep Sleep,
> >> will my service continues(resumes) its operations which it was doing
> >> earlier?.
>
> >> Can anyone please help me out in understanding this.
>
> >> Thanks,
> >> Sukumar.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Write text in horizontal

2009-09-15 Thread Yusuf Saib (T-Mobile USA)


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>





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 14, 9:33 pm, Dilli  wrote:
> Hi
>
> How to set text view properties to display it horizontal to the screen
>
> ie. one line horizontal to the screen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 those of T-Mobile USA, Inc.


On Sep 15, 12:12 am, MarQuel Middleton  wrote:
> i have a xml menu set up and i cannot get the functions to work can
> some one help me please
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Sep 15, 6:36 am, Zhihong GUO  wrote:
> how to get notification before the CPU get to deep sleep? I want to do some
> task before my application be killed by the system.
>
> 2009/9/9 Dianne Hackborn 
>
>
>
> > When no wake locks are held, the CPU will not run at all, and time has
> > effectively stopped for most scheduling (that is scheduling based on
> > SystemClock.uptimeMillis(), which is what most things like Handler and Java
> > timeouts use).
>
> > On Tue, Sep 8, 2009 at 10:19 PM, sukumar bhashyam <
> > bhashyam.suku...@gmail.com> wrote:
>
> >> Hello,
> >> I have some basic doubts with Deep Sleep on Android device. Deep sleep
> >> will turn the CPU to OFF. Suppose if I have a service which does some
> >> operations every 5 sec and I din't acquire any power manager locks in my
> >> service.
>
> >> When device goes to Deep sleep, will my service still running?.
>
> >> If CPU is turned off on Deep Sleep, when Device comes out of Deep Sleep,
> >> will my service continues(resumes) its operations which it was doing
> >> earlier?.
>
> >> Can anyone please help me out in understanding this.
>
> >> Thanks,
> >> Sukumar.
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 USA, Inc.



On Sep 15, 9:11 am, Chris Stratton  wrote:
> On Sep 15, 10:38 am, Carmen Delessio  wrote:
>
> > I want
> > to get a handle on implementing security in an enviroment where:
>
> > 1. Developers can have a rooted phone
> > 2. Developers can decompile your code
>
> You have just re-discovered why security in a network environment
> starts with the premise that a server cannot trust a  client
> computer,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 or may not want to do, depending on how often they expect to
use your service.


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 14, 1:56 pm, Neilz  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 struts/spring, ajax calls etc)
> on a mobile device. How would you go about putting something similar
> onto an android mobile? What are the options, and the technologies you
> could use?
>
> Would you a) simply make a new front end sitting on the existing web
> servers, written using a simplified XML which android can display
> appropriately? So all you had to do was call the appropriate web
> address to view the android version of the website.
>
> Or b) would you write a new app entirely for the device, which had a
> version of the database loaded into it?
>
> Or c) would you write a new app for the device, which made calls
> across the web to the existing server side functionality. If you did
> this, what technologies would you use for the communication?
>
> I hope this isn't to vague. I would appreciated any pointers to the
> technologies I need to be looking at to achieve this. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Solution suggestions

2009-09-14 Thread Yusuf Saib (T-Mobile USA)



On Sep 14, 1:56 pm, Neilz  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 struts/spring, ajax calls etc)
> on a mobile device. How would you go about putting something similar
> onto an android mobile? What are the options, and the technologies you
> could use?
>
> Would you a) simply make a new front end sitting on the existing web
> servers, written using a simplified XML which android can display
> appropriately? So all you had to do was call the appropriate web
> address to view the android version of the website.
>
> Or b) would you write a new app entirely for the device, which had a
> version of the database loaded into it?
>
> Or c) would you write a new app for the device, which made calls
> across the web to the existing server side functionality. If you did
> this, what technologies would you use for the communication?
>
> I hope this isn't to vague. I would appreciated any pointers to the
> technologies I need to be looking at to achieve this. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 12, 1:06 pm, Mark Murphy  wrote:
> dashman wrote:
> > i'd like to buy the HTC Magic for my dev phone - i don't want the
> > physical sliding keyboard.
>
> > with the HTC magic work as the dev phone.
>
> You can test SDK applications using an HTC Magic.
>
> > does HTC provide updated android updates for it.
>
> Please contact your mobile provider for details regarding device updates.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 13, 8:41 am, WoodManEXP  wrote:
> I do not know the answer to this but I might experiment with setting a
> width other than "wrap_content" just to see how it behaves. Maybe try
> setting width to something like 100dip as a starter and see if the
> same behavior occurs.
>
> On Sep 13, 3:47 am, Anastasiya Dremina 
> wrote:
>
>
>
> > Example
> > was 9|15
> > must be 10|15
> > 10|1 is shown
>
> > 2009/9/13 Anastasiya 
>
> > > Hi guys
>
> > > My problem
>
> > > I have  > >        android:layout_width="wrap_content"
> > > android:layout_height="wrap_content"
> > >        android:layout_alignParentRight="true"
> > > android:layout_alignParentTop="true"
> > >        android:textSize="40sp"  />
> > > I use setText method  in code. Sometimes all text is not displayed for
> > > a second (I have enough space.. And previous text can have width>
> > > current width).
>
> > > Does anyone know decision?- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-09-11 Thread Yusuf Saib (T-Mobile USA)

Just to be clear, I'm not speaking in an official capacity for anyone,
nor am I a lawyer. But AFAIK, one of Android's design parameters was
to free developers from worrying if their code's licenses would
conflict with Android. So to answer your question, I am not aware of
any problems with developing an Android app that uses Apache 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 USA, Inc.



On Sep 11, 11:14 am, Android Development  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
> > ·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 11, 8:49 am, Android Development  wrote:
> > > Hello,
> > > I have a query:
>
> > > Is LGPL'd code compatible with Android applications ? Or are there any
> > > gotchas  !
>
> > > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 number of people on this list get
that impression from the documentation you quote. Lots of Android apps
have many Activities and that's fine.

So in your case I would recommend that at least for the screens that
share nothing in common, use different activities.



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 11, 1:49 pm, Gopal Biyani  wrote:
> Hello Guys,
> I have confusions over View and Activity which one we should use. In my
> application there are lots of different screens with lots of different
> functionalities. In some of the screen they share common task bar and in
> another screen they have different task bar and nothing in common.
>
> At present, I have only single activity and what I am doing, I just adding
> and removing view from the main layout to show different screens.
>
> Reason for doing this is according to document Designing for Performance, it
> says to
> Launch an empty activity                                           3,000,000
> Inflate 1 LinearLayout containing 6 TextView Objects      135,000
>
> Then, I was going through the open project Shelves, in which Romain Guy used
> more then one activity,so, it just confused me.
>
> Any suggestions will be highly appreciable.
>
> Thanks
>
> Regards
> Gopal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, and do not necessarily
represent those of T-Mobile USA, Inc.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 USA, Inc.



On Sep 11, 8:49 am, Android Development  wrote:
> Hello,
> I have a query:
>
> Is LGPL'd code compatible with Android applications ? Or are there any
> gotchas  !
>
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 10, 10:04 pm, Dianne Hackborn  wrote:
> Please read the documentation on process lifecycle:
>
> http://developer.android.com/guide/topics/fundamentals.html#proclife
>
>
>
>
>
> On Thu, Sep 10, 2009 at 10:01 PM, Atif Gulzar  wrote:
> > Hi all,
>
> > I have some singleton objects in my android project. But these singleton
> > object are not initialized to null once I close my application on emulator
> > and run it again. But if I close the emulator and run my application again
> > these singleton objects are initialize to null. Please help. Thanks
>
> > the structure of my singleton objects is something like this
>
> > public final class TJCConfig
> > {
> >     private static TJCConfig config = null;   //this is the line creating
> > problem
>
> >     private TJCConfig()
> >         {
> >            // some initializationn here
> >         }
>
> >     public static TJCConfig getTJCConfigInstance()
> >         {
> >             if( config == null )
> >                 config = new TJCConfig();
> >             return config;
> >         }
>
> > ...
>
> > }
>
> > --
> > Best Regards,
> > Atif Gulzar
>
> > I  Unicode, ɹɐzlnƃ ɟıʇɐ
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:

listAdapter = new ArrayAdapter(
this,
R.layout.your_list_row,
R.id.row_text,
your_array_list_of_strings);
listView.setAdapter(listAdapter); // or, if you're
using a ListActivity instead of a ListView, just say this.setAdapter
(listAdapter);

For the layout your_list_row.xml, put this:


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>






There are a number of tutorials for using ArrrayAdapter, they may also
help.



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.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.




On Sep 10, 3:06 am, AMD  wrote:
> Hello guys,
> We are group of four working on a project, in which we are hoping to
> port RDP on android. Now we are trying redraw the remote desktop on
> android phone. Early we were thinking in a way that, X11 is supported
> on ANDROID. But later on we found that there is no desktop environment
> for ANDROID , they are just JAVA APIs. Now we want to know how we can
> draw the desktop, with the info we get from remote computer through
> RDP. We want to use GDI acceleration extension of RDP for redrawing
> the desktop in our manner for good efficiency and fast working.
> We want to know
>
> 1. Is X11 is supported on ANDROID
> 2. Is any RDP equivalent library present in ANDROID stack
> 3. Is it possible to redraw the remote desktop using current android
> sdk
>
> Any other suggestions will be very helpful for us.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Can Android 1.5 render Hebrew script?

2009-09-09 Thread Yusuf Saib (T-Mobile USA)
לא, זה לא יכול להראות בכתב עברית.

On Sep 9, 6:46 am, JacktheMan18  wrote:
> Great potential development opportunity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, HandsomeboyIT  wrote:
> I want to communicate with the ADB Deamon service on device for get
> some special data without using ADB server on development machine
> (suggest that my application running on device and do not know about
> ABD tools, except deamon). Can anyone show me how to do this ??? How
> to start the deamon service ? what is its provided function/command ???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.


On Sep 9, 4:45 am, Mandy  wrote:
> Can android be extended to include Google Finance(The same way, Google
> MAPS is extended) ?
> Can i get my portfolio updates on my android enabled smartphone ??
>
> Any pointers will be really helpful..
> I am a beginner to android but have a decent exposure to OOP
> programming ..
>
> Thanks in advance
> -M.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
represent those of T-Mobile USA, Inc.



On Sep 9, 9:31 am, Dianne Hackborn  wrote:
> On Wed, Sep 9, 2009 at 2:41 AM, Lance Nanek  wrote:
> > Be careful. Some of the Chinese phones have a UI that looks like
> > Android, but not the actual OS:
>
> >http://www.engadget.com/2009/04/25/keepin-it-real-fake-part-ccii-meti...
>
> You should be fine as long as you verify that the device has market on it
> (which means it compatible with the standard platform, and is actually a
> device your app may ultimately be installed on by a user).  That said, as
> far as I know, there are no Chinese phones at this point that have Market on
> them, even amongst the ones that are running a (modified) version of the
> platform.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 ArrayAdapter(this,
android.R.layout.list_item, array_list));

Does that answer your question or did you have something else in mind?




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.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
represent those of T-Mobile USA, Inc.



On Sep 9, 7:50 am, dilli rao  wrote:
> By implementing    onKeyDown   you can control key events
>
> may be this will help you
>
> @Override
> public boolean onKeyDown(int keyCode, KeyEvent event) {
> // TODO Auto-generated method stub
> //return super.onKeyDown(keyCode, event);
> Log.i(getClass().getSimpleName(),"  onKeyDown(int keyCode, KeyEvent event)
> called ** ");
> if(keyCode == KeyEvent.KEYCODE_BACK)
> {
> Log.i(getClass().getSimpleName()," back key pressed   ");
>
> }
> return true;
> }
>
> Thank you,
>
> Dilli Rao
>
> On Tue, Sep 8, 2009 at 3:36 PM, sasi kumar wrote:
>
>
>
> > use key lisener..
>
> > On Tue, Sep 8, 2009 at 3:34 PM, sasi kumar 
> > wrote:
>
> >> can any one give example for key lisener
>
> >> --
> >> Thanks & Regards
> >> Sasi Kumar.S
>
> > --
> > Thanks & Regards
> > Sasi Kumar.S
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 that don't.



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, 6:42 pm, Mawg  wrote:
> It's $400 and out of stock.  There are Chinese Android 'phones on eBay
> for less than $100 - can I just use one of them for development?
>
> The answer is probably yes, so I guess that what I am asking is if the
> official HDK makes life (significantly) easier for me.
>
> Thanks in advance for any help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.



On Sep 8, 11:28 am, "Armond Avanes"  wrote:
> Hi Guys,
>
> Is it just me or Android theme-ing system does not allow to set a theme for
> DatePicker and TimePicker? Searching "themes.xml" and "styles.xml" in
> Android source code (v1.5), I couldn't find anything related to these two
> components!
>
> Aren't they really skinable?
>
> Cheersss,
> Armond
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 8, 2:52 am, Sasi Kumar  wrote:
> I want to know about the key listener concept.
>
> I want the value of Back button in android.
>
> plz Give some sample code for this..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, 1:48 am, eidolon  wrote:
> Hi all, I want to get the mobile device information,such as hardware
> type, os version. How can I get these by android api??
>
> Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 7, 11:33 pm, Luciano Broussal 
wrote:
> Hi all,
>
> Any idea if such widget already exists ? or the best way to implement
> it?
>
> Thanks
>
> Croco
>
> On Aug 3, 9:01 pm, Croco  wrote:
>
>
>
> > Hi All,
>
> > I'm wondering if someone know a snippet of code that would implement a
> > joystick behavior.
>
> > I did a 4 orientation button widget but it's really not user friendly
> > for my game :(
>
> > Thanks by advance.
>
> > Croco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> Hi,
>         Can you please tell me about the security management in mobile
> banking application?
> --
> Warm Regards,
> Sudeep
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> Hello,
>
> I added -scale 0.2 to the Default emulator option under eclipse and
> launched the emulator. After that I got a really small window. I then
> removed the -scale 0.2 but the emulator window remains small.
>
> I can start the emulator from command line and i get the normal size,
> but not with eclipse.
>
> Any help would be appreciated.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 3, 11:38 pm, Mohith K M  wrote:
> Thanks alot!
>
> On Sep 4, 8:36 am, dilli rao  wrote:
>
>
>
> > Hi Mohith K M*
> > *
> > *
> > *you  may use php for your request page design at server side and for
> > interaction with mysql and do the large processing at server side and send
> > back the results to the client (ANDROID)
>
> > use post or get request methods while sending the request to the server and
> > process the response from the server
>
> > right now i am doing in the same way ( it works fine for me)
>
> > Thank you
>
> > Dilli
>
> > On Fri, Sep 4, 2009 at 1:02 AM, Mohith K M  wrote:
>
> > > I am beginner (Both Android and Server side programming),
>
> > > Am having doubt about Server side for my Android mob application
>
> > > My requirements are
> > > 1. Receive request from android mob application
> > > 2.Run algorithm on Huge Database Depending on some variable "xxx"
> > > inside query request from mob app
> > > 3. Send back the result produced to Android mob application.
>
> > > What type of Server should i run?
> > > Database-mysql??How can i combine algorithm and database
> > > how can i parse the request from mobile application and run
> > > appropriate algorithm
>
> > > Will JBOSS satisfy my need?
> > > or please Tell me which one i should use..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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 necessarily
represent those of T-Mobile USA, Inc.




On Sep 4, 12:40 am, dongkt dongkt  wrote:
> Thread.sleep(1000)
>
> 在 2009-9-4 1:40 PM,"tstanly"  说:
>
> hi all,
>
> I have two work now,named wok1 and work2,
> and work2 will to do after work1 finish,
>
> now I want to make a time period stop between work1 and work2,
> that is,when work1 finish, and pause one miniute then start work2,
>
> how can I do for that?
>
> thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
represent those of T-Mobile USA, Inc.



On Sep 3, 9:29 am, sdphil  wrote:
> and are there any tools out there that does a good job of this?  i
> would love to off-load some of the xml layout stuff to a non-
> programmer but not require them to install all the devtools.
>
> On Sep 3, 9:24 am, sdphil  wrote:
>
>
>
> > I am using eclipse 3.5 with the ADT plugin.
>
> > when I view layout xml files, i get two tabs in the view - the source
> > code view and a graphical view.
>
> > the graphical view almost never works for any of my layouts.  it
> > usually shows "NullPointerException: null" at the top and nothing
> > else.
>
> > when it does work, it often does not match what i get in the simulator
> > or device.
>
> > it seems like this thing simply is not ready for prime time; although
> > the idea is very cool.  has anyone else had much success with it?
>
> > tia.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Sep 3, 6:26 am, Chris Stratton  wrote:
> On Sep 3, 5:36 am, 楊健  wrote:
>
> > Hey everybody!
> > Is there any method to leave some info after my app is uninstalled?For
> > example:file,database,setting etc.
>
> I would think something written to the sdcard with unrestrictive
> permissions would stick around... you should probably make the file/
> folder name obvious enough that the user can figure out who it
> belonged to and remove it if they don't want it kept.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, hypothetically speaking), then the app should not
be capable of decrypting the images without the user-provided
password.



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 2, 1:42 pm, gymshoe  wrote:
> Isn't java byte code remarkeably easy to reverse engineer into source
> code using one of many free java decompilers?
>
> From my understanding, even using an obfuscator on the byte code (if
> that is possible with android implementation) isn't terrible effective
> at preventing decompilers from doing a good job of reconstructing your
> code.
>
> I am also trying to work out a method of securely encrypting private
> information (not critical, like account information or passwords) but
> short of forcing the user to enter a password/pin (which I don't
> want), I can't see how it would be easy to prevent a decompiler from
> easily determining your encryption strategy (algorithm &
> secret_key).
>
> Any ideas?
> thanks,
> Jim
>
> On Aug 27, 2:29 am, zeeshan  wrote:
>
>
>
> > i am just protecting some images (about 500) i downloaded on sdcard.
> > on the first run it downloads and write each by CipherOutputStream and
> > for the next time it decrypt those images by CipherInputStream.
> > a static key works at the moment
>
> > On Aug 26, 3:07 pm, Haravikk  wrote:
>
> > > The more important question I think is why are you doing this, what
> > > information are you trying toprotect?
> > > It seems like you're adding encryption for the sake of it, but in fact
> > > your solution won't be much more secure against someone determined to
> > > get at the file's contents. If the key is static, then it is easier to
> > > break, but if it changes then it would need to be stored, making it
> > > easier to access.
>
> > > One alternative is to generate the secret-key using a sufficiently
> > > hard to guess algorithm, using some information about the device, so
> > > that the key used is very different for every user, reducing the
> > > change of simple comparisons being able to break your encryption.
> > > However, someone clever could still probably figure out how your
> > > encryption works by examining the Java byte-code, as while it's tough
> > > to get your head around it's not impossible to understand.
>
> > > Perhaps in your case the effort required to break the encryption might
> > > be more than it's worth to get into the file, but if you let us know
> > > what kind of information you're hoping to store, then perhaps we can
> > > give you some better solutions? If it's something "dangerous", like
> > > payment details or something, then you need the most rock-solid
> > > solution possible, but if it's something minor then encryption may be
> > > a waste of time entirely.
>
> > > On Aug 26, 2:46 pm, zeeshan  wrote:
>
> > > > key never change once its been created.
>
> > > > as i know SecretKey generates by a funtion as above, how can i set it
> > > > as constant
> > > > can you plz provide example?
>
> > > > On Aug 26, 1:39 pm, Sujay Krishna Suresh 
> > > > wrote:
>
> > > > > On Wed, Aug 26, 2009 at 5:41 PM, zeeshan  wrote:
>
> > > > > > key doesn't change.
> > > > > > can i store keyString  in preferences to retrieve for decryption
>
> > > > > yes that'd be better than storin it in a file. But better to jus have 
> > > > > a
> > > > > constant field in ur class that cointains ur key.
>
> > > > > > SecretKey key = KeyGenerator.getInstance("DES").generateKey();
> > > > > >            byte[] keybytes = key.getEncoded();
> > > > > >            String keyString = new String(keybytes);
>
> > > > > If u r gonna execute these set of statements then wont the key 
> > > > > change??
>
> > > > > > or plz provide any example for the best practice
>
> > > > > > On Aug 26, 12:28 pm, Sujay Krishna Suresh 
> > > > > > wrote:
> > > > > > > If it is only used by ur application, jus use a String instance 
> > > > > > > to hold
> > > > > > the
> > > > > > > key. y store in a file??
> > > > > > > ll the key change dynamically???
>
> > > > > > > On Wed, Aug 26, 2009 at 4:55 PM, zeeshan  
> > > > > > > wrote:
>
> > > > > > > > encryption and decryption is the app's internal functionality. 
> > > > > > > > user
> > > > > > > > has nothing to do with this
> > > > > > > > i encrypt the file on 1st run and on 2nd run i check if file is 
> > > > > > > > there
> > > > > > > > then decrypt and show.
> > > > > > > > so only thing i understand is to store the key somewhere in the 
> > > > > > > > app so
> > > > > > > > i can access it for decryption.
> > > > > > > > just wondering 

[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 would be kewler.


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.

caveat: Android introspection may lead to Skynet http://xkcd.com/534/




On Sep 2, 7:21 am, Wouter  wrote:
> How can i parse this reponse? Please help..
>
> On Sep 1, 4:58 pm, Wouter  wrote:
>
>
>
> > Hey Mark,
>
> > Thank you this worked great!
>
> > Now I have another issue..
> > I make another request:
>
> > HashMap response =  (HashMap)
> > client.call("film.retrieveDetails",sessionKey, 500);
>
> > I only can save the response as an HashMap (androidxmlrpc client..)
>
> > to get movie details and i get this response ==>
>
> > {dates_video=[Ljava.lang.Object;@4373f820, plot=Een eeuwenoude ring,
> > die jaren zoek is geweest, wordt gevonden en komt bij toeval terecht
> > bij de kleine Hobbit Frodo. Als de tovenaar Gandalf erachter komt dat
> > deze ring eigenlijk de Ene Ring is waar de slechte Sauron naar op zoek
> > is, gaat Frodo samen met Gandalf, een Dwerg, een Elf, twee Mensen en
> > drie andere Hobbits op een groots avontuur om deze te vernietigen.,
> > imdb=0120737, directors_text=geregisseerd door Peter Jackson,
> > directors=[Ljava.lang.Object;@43746c50, dates_cinema=
> > [Ljava.lang.Object;@4379f870, thumbnail=http://www.moviemeter.nl/
> > images/covers/thumbs/0/500.jpg, alternative_titles=
> > [Ljava.lang.Object;@437aa250, actors_text=met Elijah Wood, Ian
> > McKellen en Viggo Mortensen, url=http://www.moviemeter.nl/film/500/,
> > genres=[Ljava.lang.Object;@4374f620, countries=
> > [Ljava.lang.Object;@43752f68, duration=178, countries_text=Nieuw-
> > Zeeland / Verenigde Staten, title=Lord of the Rings: The Fellowship of
> > the Ring, The, votes_count=6530, genres_text=Avontuur / Fantasy,
> > average=4.19, year=2001, actors=[Ljava.lang.Object;@4375b868,
> > filmId=500, mini_series=0, durations=[Ljava.lang.Object;@4373f978}
>
> > I can get the content like plot and directors_text like you said but
> > for example dates_video has an Object. How can i get the content of
> > this object and save all the data in seperate classes like this:
>
> > public class FilmDetail {
>
> >         public String url;
> >     public String thumbnail;
> >     public String title;
> >     public Title[] alternative_titles;
> >     public String year;
> >     public String imdb;
> >     public String plot;
> >     public String duration;
> >     public Duration[] durations;
> >     public Actor[] actors;
> >     public String actors_text;
> >     public Director[] directors;
> >     public String directors_text;
> >     public Country[] countries;
> >     public String countries_text;
> >     public String[] genres;
> >     public String genres_text;
> >     public Date[] dates_cinema;
> >     public Date[] dates_video;
> >     public String average;
> >     public String votes_count;
> >     public int filmId;
>
> > Thank you,
>
> > Wouter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 necessarily
represent those of T-Mobile USA, Inc.




On Sep 2, 10:21 am, Chris Stratton  wrote:
> Always Innovating's ARM touchscreen tablet/netbook might be of
> interest.
> If I understand, it is to some degree like a beagle board in a box
> with wifi and a touchscreen,
> and there's been some work towards running android on the beagle board
> (TI omap EVB)
>
> On Sep 1, 11:11 am, Jeff Puckett  wrote:
>
>
>
> > I'm playing around with an idea in the back of my head, was wondering
> > if there were any Android devices that had touchscreen and wifi - no
> > other requirements necessary.  The GiiNii Movit Mini is as close to
> > what I'm looking for as I can find.  Are there hardware vendors that
> > make custom Android products such as this?  Inexpensive, ARM or MIPS,
> > run Android, touchscreen, wifi, that's it.  Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
represent those of T-Mobile USA, Inc.


On Sep 1, 5:30 am, Naresh  wrote:
> Hai Friends i am new to android
> i want to do some programs using graphics
> can anyone send me sample programs about graphics package
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.




On Sep 1, 10:26 am, salza  wrote:
> well, but with that method I can not say "give a minimum of 50 MHz to
> thread A"
> prioritized threads are always dependant from the other threads that
> have priorizations - i can not grant a minimum of bandwidth to a
> thread.
>
> or have I not understood it correctly?
>
> On Sep 1, 1:38 pm, CraigsRace  wrote:
>
>
>
> > android.os.Process.setThreadPriority
> > (android.os.Process.THREAD_PRIORITY_...);
>
> > On Sep 1, 8:10 pm, salza  wrote:
>
> > > Well, does maybe someone have an alternative idea how I could solve
> > > that in another way?
>
> > > On Aug 28, 9:08 am, salza  wrote:
>
> > > > Does Android provide a facility to ensure certain applications and/or
> > > > threads receive a minimum of CPU bandwidth (and other apps/threads are
> > > > prevented from consuming all the CPU bandwidth)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.


On Aug 31, 5:14 am, jsdf  wrote:
> Does anyone out there have thoughts on this?
> Thanks,
> jsdf
>
> On Aug 28, 5:56 pm, jsdf  wrote:
>
>
>
> > Hi Android experts,
> > I have a tricky question that I would like some advice on.
>
> > I have a thread that does a large amount of network and database
> > work.  E.g.:
>
> > new Thread(new Runnable() {
> >   public void run() {
> >     String largeData = getLargeDataFromServer();
> >     Object largeObject = xmlParser.parseFromXml(largeData);
> >     saveLargeObjectToDatabase();
> >     putLargeDataToSecondServer();
> >   }
>
> > }).start();
>
> > The problem I have is that I need to stop this thread at any point.
> > It does not need to stop absolutely immediately, but given limited
> > network and memory on the phone, the sooner I can stop it the better.
>
> > I currently am testing and stopping with a method similar to this:
>
> > new Thread(new Runnable() {
> >   public void run() {
> >     if (shouldStop) return;
> >     String largeData = getLargeDataFromServer();
> >     if (shouldStop) return;
> >     Object largeObject = xmlParser.parseFromXml(largeData);
> >     if (shouldStop) return;
> >     saveLargeObjectToDatabase();
> >     if (shouldStop) return;
> >     putLargeDataToSecondServer();
> >   }
>
> > }).start();
>
> > This makes me very uncomfortable, and litters my code with these
> > shouldStop statements.  Furthermore, if the system is in any of the
> > four long functions, that function has to complete before the test can
> > actually happen.
>
> > I notice that there is a Thread.stop(), but the comments warn against
> > using it.
>
> > Does anyone have suggestions on how to reconfigure the thread so I can
> > stop relatively quickly and regardless of whether execution is in one
> > of its subfunctions?
>
> > Thanks so much in advance,
> > jsdf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 28, 7:23 am, Martin Obreshkov  wrote:
> Thanks a lot it's really very simple and clear using ContextMenu
>
>
>
>
>
> On Fri, Aug 28, 2009 at 3:45 PM, Sasi Kumar wrote:
>
> > join the below group to discuss more
>
> >http://groups.google.com/group/mobile-application-developers
>
> > use like this
>
> >                lv=(ListView)findViewById(R.id.ListView01);
> >                lv.setChoiceMode(lv.CHOICE_MODE_SINGLE);
> >        lv.setAdapter(new ArrayAdapter(this,
> >                android.R.layout.simple_list_item_1 , airport_list));
> >        lv.setTextFilterEnabled(true);
> >        lv.setOnItemClickListener(new OnItemClickListener() {
> >            public void onItemClick(AdapterView parent, View v, int
> > position, long id) {
> >                System.out.println("selected item position is =
> > "+position );
> >                System.out.println("selected item is
> > ="+lv.getItemAtPosition(position));
> >                if(list_selected == "arrival")
> >                        arrival_list_selected=(String) lv.getItemAtPosition
> > (position);
> >                else if(list_selected == "depature")
> >                        depature_list_selected=(String) lv.getItemAtPosition
> > (position);
> >                if(airport_selectedby.equals("flightschedule"))
> >                        flight_schedule();
> >                else if(airport_selectedby.equals("flightstatus"))
> >                flight_status();
> >            }
> >        });
>
> > here lv is a listview.
>
> > On Aug 28, 5:35 pm, ragavendran s  wrote:
> >> i m a beginner for Android development
>
> >>   How i get the Selected item from the list Adapter.
>
> >>   for example i m having the code:
>
> >>   Code:
>
> >>  final Spinner spinner = (Spinner) findViewById(R.id.testSpinner);
> >>     ArrayAdapter adapter = new ArrayAdapter(this,
> >>     android.R.layout.simple_spinner_item, Months);
>
> >> adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_it
> >>  em);
> >>     spinner.setAdapter(adapter);
>
> >>        /---some code/
>
> >>   static final String[] Months = new String[]{
> >>     "January","February","March","April","May","June","July","August",
> >>     "September","October","November","December"
> >>     };
>
> >>   public void changeOption(Spinner spinner){
> >>     if (spinner.isEnabled()){
> >>     spinner.setEnabled(false);
>
> >>     }
> >>     else{
> >>     spinner.setEnabled(true);
> >>     }
> >>     }
>
> >> Question:
>
> >> In this above code if i selected March from the Dropdown Adapter means then
> >> how can i retrieve the Manth March to show in a textview.
>
> >> Please tell me the ANswer...
>
> >> with Regard,
> >> Raghav.S
>
> --
> When I raise my flashing sword, and my hand takes hold on judgment, I
> will take vengeance upon mine enemies, and I will repay those who haze
> me. Oh, Lord, raise me to Thy right hand and count me among Thy
> saints.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 eyes to blind you from the truth.

android.os.redpill();



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 27, 12:42 pm, fadden  wrote:
> On Aug 25, 9:38 pm, sdphil  wrote:
>
> > if (debuggerIsAttached()) {
> >     // do something} else {
>
> In android.os.Debug:
>
>     /**
>      * Determine if a debugger is currently attached.
>      */
>     public static boolean isDebuggerConnected() {
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.



On Aug 27, 7:45 am, DaminouU  wrote:
> Ok but I want to get these values in my application, and maybe use
> them.
>
> So is it possible to recover these values from a running Android
> application?
>
> On Aug 27, 3:58 pm, "Balwinder Kaur (T-Mobile USA)" 
>
>
> mobile.com> wrote:
> > adb shell top
>
> > Balwinder Kaur
> > Open Source Development Center
> > ·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 27, 5:45 am, DaminouU  wrote:
>
> > > Hello,
>
> > > Is it possible to find some information about CPU?
>
> > > Actually I would like to find the CPU usage. (50% for example)
>
> > > Just to know if the program is very light or if it is a heavy app'
>
> > > Thanks,
>
> > > D.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 directional keys to navigate within your UI for candidate
selection during composition. Or you may want to trap the back key to
dismiss any popups originating from the input method window. To
intercept hard keys, override InputMethodService.onKeyDown() and
InputMethodService.onKeyUp(). Remember to call super.onKey* if you
don't want to consume a certain key yourself."

The key you're looking for is 
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 the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 27, 9:24 am, cindy  wrote:
> In current activity, when user click the back key, I don't what it
> back to the last activity.
> Can I add a listener to listen to back key in current activity? When
> user click "back" key, it actually back to the activity I want it to
> go.
>
> Thanks!
>
> Cindy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 in mind that you can't screencapture on the
device unless you're running as root. DDMS gets around this by sending
the string to a root process.



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 27, 5:48 am, Prakash Vel  wrote:
> Read through Couple of articles , Most of them point to the DDMS
> through that we could take the Screenshot.
>
> However i am trying to capture the Emulator  screen from the Command
> Line.
> Not Sure how to tweak the framebuffer /Surface flinger to do the job.
>
> or is there any app that we could run in the background and get the
> job done.
>
> help will be much appreciated.
>
> Thanks and Regards
> Prakash Vel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-08-27 Thread Yusuf Saib (T-Mobile USA)

Just to be clear, this does not necessarily give you all the CPU-
related data you're looking for, but it's all you can get
programmatically.



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 27, 10:22 am, "Yusuf Saib (T-Mobile USA)"  wrote:
> 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.
>
> On Aug 27, 7:45 am, DaminouU  wrote:
>
>
>
> > Ok but I want to get these values in my application, and maybe use
> > them.
>
> > So is it possible to recover these values from a running Android
> > application?
>
> > On Aug 27, 3:58 pm, "Balwinder Kaur (T-Mobile USA)" 
> > mobile.com> wrote:
> > > adb shell top
>
> > > Balwinder Kaur
> > > Open Source Development Center
> > > ·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 27, 5:45 am, DaminouU  wrote:
>
> > > > Hello,
>
> > > > Is it possible to find some information about CPU?
>
> > > > Actually I would like to find the CPU usage. (50% for example)
>
> > > > Just to know if the program is very light or if it is a heavy app'
>
> > > > Thanks,
>
> > > > D.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Aug 26, 4:50 pm, "jesuschrist1...@gmail.com"
 wrote:
> with Chris Pruett to help me learn more about game developmentcan
> you have him contact me asap!!!thanks!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, Inc.



On Aug 26, 1:06 pm, Vaz  wrote:
> Are there any fast tracks to porting Android to J2ME?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Connecting multiple phones

2009-08-26 Thread Yusuf Saib (T-Mobile USA)

Bonjour supports two-way data between any devices or PCs, it doesn't
care. Android does not support creating a WiFi network, AFAIK; I don't
believe root access changes that, except if you implement it yourself
in the platform.


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.
nd jira. All devel




On Aug 26, 12:03 pm, Jamie  wrote:
> Does bonjour actually support sending data between two devices or just
> a device and a PC?  There is no way to implement a P2P protocol
> because the wi-fi doesn't support connecting to another devices via wi-
> fi, is this correct?  What are the options to a device with root
> access, are they different than listed?
>
> Also, a patch has been introduced to android source but is not yet
> approved.
>
> https://review.source.android.com/#change,9714
>
> On Aug 24, 1:31 pm, "Yusuf Saib (T-Mobile USA)" 
>
>
> 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 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 location.
> > 2) use zeroconf, also known as Bonjour, over WiFi. This is not built
> > into Android, so you'd have to find a Java port, such 
> > ashttp://jmdns.sourceforge.net/whichis used in at least one other
> > Android project:http://dacp.jsharkey.org/
>
> > 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 23, 6:37 am, julia_robinson  wrote:
>
> > > Hello . I am looking forward to developing an application which needs
> > > a cellphone to connect with about 20 cellphones in its vicinity (say
> > > about 50 metres) .
>
> > > 1. Which technology allows this ?
> > > 2. Does Android support it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 25, 10:45 pm, efan  wrote:
> use java.lang.Process
>
> Maybe it's better to ask pure Java questions in sun Java forum?
>
> Good luck!
>
> On Aug 23, 10:03 am, srinivasarao  wrote:
>
>
>
> > hi Sir,
> >           Take Class name as input (command line) and loads that class
> > Dynamically and calls the main method in that class..how will we do
> > that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.



On Aug 25, 9:07 pm, GodsMoon  wrote:
> I would like to know how to put the device to sleep and how to wake it
> up as well.
> Anybody?
>
> On Jul 20, 9:45 pm, Sansiro  wrote:
>
>
>
> > Now  I use the code follow:
>
> > IPowerManager.Stub.asInterface(ServiceManager.getService
> > (Context.POWER_SERVICE)).goToSleep(6)
>
> > But it still does not work.
>
> > On Jul 21, 9:07 am, Sansiro  wrote:
>
> > > I know that there is a PowerManager class and a goToSleep method in
> > > SDK
> > > But the code follow does not work.Anybody can tell me why?
>
> > > PowerManager pm=(PowerManager)ServiceManager.getService
> > > (Context.POWER_SERVICE);
> > > pm.goToSleep(6);
>
> > > BRs!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 (http://moblin.org/projects/fast-boot and
http://www.mvista.com/sol_detail_mobile.php) and in general (http://
lwn.net/Articles/299483/). It depends on your priorities. Of course if
you could optimize Android's boot time AND get Google to accept the
patch, all the better.



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 25, 2:27 pm, "mstu...@googlemail.com" 
wrote:
> Thanks Chris!
>
> Some questions regarding your response:
>
> Do you know the reason why Android is so slow on start-up? Do you
> think it's possible to speed up Android by preventing certain
> applications loading by default and applying some of the fast booting
> improvements in order to drastically decrease boot-up time? I just
> found an article saying boot-up time is normally >10 sec.
>
> Is it actually the booting process of the kernel, start-up of the
> dalvik vm or application start-up which takes so long?
>
> Matthias
>
> On Aug 25, 9:09 pm, Chris Stratton  wrote:
>
>
>
> > On Aug 25, 4:39 am, "mstu...@googlemail.com" 
> > wrote:
>
> > > at the moment I am thinking about a new app and need some information
> > > to decide whether to develop on Android or an alternative OS.
>
> > > I am particularly interested in "time to first screen", "boot-up
> > > time", "time to first Audio" and "app-start" (can be any from the
> > > android market or even one of the pre-installed ones) time? Does
> > > anyone know a source or perhaps measured those numbers?
>
> > If you literally want to be booting the operating system often, I
> > don't think you want android but some more simplistic embedded linux
> > with some of the recent generic-linux fast booting improvements
> > applied.  Android is pretty slow to start up after a power cycle or
> > true reset, but the devices it is running on don't usually get turned
> > off very often, they just move between sleep and wake states.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 location.
2) use zeroconf, also known as Bonjour, over WiFi. This is not built
into Android, so you'd have to find a Java port, such as
http://jmdns.sourceforge.net/ which is used in at least one other
Android project: http://dacp.jsharkey.org/



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 23, 6:37 am, julia_robinson  wrote:
> Hello . I am looking forward to developing an application which needs
> a cellphone to connect with about 20 cellphones in its vicinity (say
> about 50 metres) .
>
> 1. Which technology allows this ?
> 2. Does Android support it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.



On Aug 24, 1:18 am, Ramesh Anandhan  wrote:
> Yes, I am able to get the list process running in the background. I had used
> ActivityManager class.
>
> Regards,
> Ramesh A
>
>
>
> On Wed, Aug 19, 2009 at 8:42 PM, Jack Ha  wrote:
>
> > Are you trying to do this programmatically?
>
> > --
> > Jack Ha
> > Open Source Development Center
> > ・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 19, 5:31 am, Ramesh Anandhan  wrote:
> > > Hi,
>
> > >      I am trying to get the list of process running in the background. If
> > > any one have done this already, Please help me.
>
> > > regards,
> > > Ramesh A
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Aug 21, 4:02 am, Asad Zia  wrote:
> Hi,
>
> There seems to be two levels of uses-permission, user level and system
> level. When I declare to use  INTERNET or BATTERY_STATS, in my
> AndroidManifest.xml file it works without problem. However when I try
> to use INSTALL_PACKAGES, BIND_APPWIDGET  it does not work. According
> to a [android-beginner msg11514],
>
> “Whoever signs the system is also going to need to sign any app that
> wants system privileges.”
>
> I need to know how do I get System Privileges while debugging my
> application on emulator.
>
> Thanks,
> Asad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 USA, Inc.




On Aug 21, 1:24 pm, JavaCodeur  wrote:
> Please who can me help to listen the keybord particulary  : * or # or
> other
>
> what interface I must implements ?
>
> I have some interface : KeyLisner or OnKeyListener or other!
>
> Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-08-21 Thread Yusuf Saib (T-Mobile USA)

What happened when you tried ListView with transcript mode?


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, 11:57 pm, Gulfam  wrote:
> Hi Yusuf Saib,
>
> Sorry for late response because i was on leave.
>
>    Using TextView for chat window i have get the idea form 
> APIDemos->Text->LogTextBox.
>
> I have modifiy that code just like this replace add button with
> EditText and put it at the bottom of screen with send button same like
> default messaging application (compose new message screen). After
> typing chat message i am getting the text from EditText and apending
> it to TextView its working fine but the problem is this when text
> length or lines reaches at the bottom of screen text in TextView is
> not scrolling  upwards its behavior is same like LogTextBox but i need
> to scroll it upward automatically.For example TextView can show 1 to
> 10 lines at a time but when i add 11th line i need TextView scroll one
> line upward and show me 2 to 11 lines and so on its scrolling upwards
> line by line. How it is possible?
>
> I am saving this text in string array line by line against a userId in
> hash table.Now i moved from chatwindow to contacts list and again
> comeback on chatwindow.For example i have added 100 lines before
> moving to contacts list and when i comeback on chatwindow I need 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)" 
>
>
> Mobile.com> wrote:
> > 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 T-Mobile USA, Inc.
>
> > On Aug 13, 2:50 am, Gulfam  wrote:
>
> > > Hi,
>
> > >   I have tried way recommended by Jeff but i think its not perfect
> > > solution
> > >  any one can help more regarding this.
> > > Jeff V V Thanks for your response.
>
> > > Regards
> > > Gulfam Hassan
>
> > > On Aug 13, 11:36 am, Jeff Sharkey  wrote:
>
> > > > If you'll be working with long conversations, you should look at using
> > > > a ListView to keep scrolling efficient.  Also, ListView offers
> > > > android:transcriptMode, which will can help automatically scroll back
> > > > to the bottom when new messages arrive.
>
> > > > j
>
> > > > On Wed, Aug 12, 2009 at 7:28 AM, Gulfam wrote:
>
> > > > > Hi every body,
>
> > > > >    I am working on IM and i want to make Chat Window but i don't know
> > > > > how to start it. Currently I am using EditText field, a text view and
> > > > > a button, after entering text in EditText field on pressing send
> > > > > button i am getting text from EditText filed and appending it to
> > > > > TextView its looking good but there are some problems, and i don't
> > > > > know its right approach or not ? Any one can refer me any tutorial or
> > > > > any useful link regarding this or any other help ?.
>
> > > > > Thanks  in advance.
>
> > > > > Gulfam Hassan
>
> > > > --
> > > > Jeff Sharkey
> > > > jshar...@android.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-08-20 Thread Yusuf Saib (T-Mobile USA)

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, 12:14 pm, Sebastian  wrote:
> Someone should build this site...http://istheadcsubmissionsiteopenyet.com/
>
> All it needs to do, if you're too lazy to do some hand-coded HTML, is
> redirect it tohttp://code.google.com/android/adc/
>
> I'd pay the $10 for the domain, and build the site myself, if I
> weren't too busy coding my ADC submission (http://www.swift-app.com,
> btw, if you want to take a look) so I'm being generous and sharing
> this idea hoping someone will implement it. I think the entire
> community would benefit from it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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, 7:30 am, "Dmitry.Skiba"  wrote:
> You can also use full screen non-transparent dialogs. They look like
> activities, but are simpler to handle. For example for "Settings"
> screen of a game I would (and in fact, do) go with dialogs.
>
> Dmitry
>
> On 20 авг, 13:40, loctarar  wrote:
>
>
>
> > Hello!
>
> > This may sound a little silly. Let's say I want to build a game with a
> > menu, an options screen, a form screen (for the user to insert some
> > data) and the game screen. The usual approach would be to have an
> > activity for each case (correct me if I'm wrong). What if I do another
> > thing... and code four views for each case and swap them using
> > setContentView() in the same activity? Suppose that I'll override the
> > onSaveInstanceState() to save the state of the views in all the four
> > cases.
>
> > What is the disadvantage in this approach besides having a huge
> > activity that I'm sure it gets closed every time the system is low in
> > memory?
>
> > I haven't tested it yet, but I didn't find anything in the docs that
> > could stop this approach to work. The reasons for avoiding the "usual"
> > implementation is that I need to convert an application from J2ME and
> > having multiple activities raises some difficulties in the porting
> > process.
>
> > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 (like buttons and screen touch)
programmatically, which is also not supported in the SDK, and most
likely needs root access 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 of T-Mobile USA, Inc.




On Aug 19, 9:41 am, Mark Murphy  wrote:
> Porco-esphino wrote:
> > Anyway, I was after an app to control my phone using the computer. I
> > figure it must be doable especially for some debugging purposes but
> > cant find out how :(
>
> At best, you might be able to do this with firmware modifications.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Looking for Android opportunities?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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· · ·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 19, 2:40 am, Zhangli  wrote:
> Hi, all:
>
> I am trying to use "setClickable(false)" + "setLongClickable(false)" +
> "setFocusableInTouchMode(false)" to disable Touch Event for every
> views but failed. When mouse clicks, OnTouchEvent() of some view will
> still be called.
> What I want is only to disable Touch event because my application need
> not Touch and Touch event will disturb the running of app. Is there
> any way to disable Touch ?
>
> Thank you !
> ZL
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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.

  ___
   .-"   "-.
 .'   . ;   `.
/: . ' :  \
   |   `  .-. . '  |
   |  :  (   ) ; ` |
   |   :  `-'   :  |
\   .` ;  :   /
 `.   . '   .'
   `-.___.-'




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 19, 6:06 am, Moxor  wrote:
> Thanks. I'll have to wait then :(
>
> On 4 ago, 17:52, Romain Guy  wrote:
>
>
>
> > Known bug it's been fixed in Donut
>
> > On Tue, Aug 4, 2009 at 1:48 PM, Moxor wrote:
>
> > > Hi,
> > > Did you manage to solve it? I have a similar problem.
> > > Every time I change the focus to a button, and then touch another
> > > button (I call setContentView()), the application crash with this
> > > Logcat:
>
> > > 08-04 17:12:00.251: ERROR/AndroidRuntime(880): Uncaught handler:
> > > thread main exiting due to uncaught exception
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):
> > > java.lang.IllegalArgumentException: parameter must be a descendant of
> > > this view
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:
> > > 2454)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:
> > > 2391)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1301)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.view.ViewRoot.draw(ViewRoot.java:1107)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.os.Handler.dispatchMessage(Handler.java:99)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.os.Looper.loop(Looper.java:123)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > android.app.ActivityThread.main(ActivityThread.java:3948)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > java.lang.reflect.Method.invokeNative(Native Method)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > java.lang.reflect.Method.invoke(Method.java:521)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> > > (ZygoteInit.java:782)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> > > 08-04 17:12:00.292: ERROR/AndroidRuntime(880):     at
> > > dalvik.system.NativeStart.main(Native Method)
>
> > > This happens outside my code, once the onClick event is finished.
>
> > > Thanks in advance.
> > > Max
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 -skinx". 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 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 19, 9:40 am, Dianne Hackborn  wrote:
> Though note that the QVGA skins are not at all representative of
> environments apps will find themselves running in any time soon, since the
> 1.5 emulator doesn't fully implement density scaling that would typically go
> along with such a screen (which would be a similar physical size to the
> HVGA, so lower density).
>
>
>
>
>
> On Wed, Aug 19, 2009 at 7:02 AM, lilbyrdie  wrote:
>
> > In addition what what Mark said, you can use the emulator to test with
> > the QVGA skins, too (320x240 and 240x320).
>
> > Those resolutions should help quickly reveal any obvious layout
> > problems.
>
> > On Aug 19, 6:06 am, Sukitha Udugamasooriya  wrote:
> > > Hi
>
> > > I have created an application and I want to make sure it works in
> > > different resolution.
>
> > >  i have used LinearLayout and some ListViews and buttons.
>
> > > I need to know will it be an issue if the apk is put to two different
> > > phones which has different resolution.
>
> > > thank u
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.



On Aug 18, 2:36 pm, human android  wrote:
> Do I have to make explicit calls to do garbage collection?
> runtime.gcSoftReferences()
> runtime.runFinalizationSync()
>
> Doesn't javas automatic garbage collection take care of it on its own?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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_Learner  wrote:
> Hi,
>
> I am developing a phone application with my own GUI , I want to
> receive incoming call event.
> I am able to receive it using Broadcast receiver ,
>
> But after receiving in My Broadcast receiver. Native phone application
> GUI comes to foreground and my application GUI goes to background.
> I do not want native GUI to be displayed on screen , How can i disable
> native phone application GUI.
>
> Is there any way to disable broadcast intent or any other suggestion
> for displaying my application GUI instead of native phone app gui.
>
> Looking forward to your 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, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to registre an application for the ADC2

2009-08-18 Thread Yusuf Saib (T-Mobile USA)

AFAIK, you need to wait until they update the site.



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, 6:39 am, jlg  wrote:
> Can you explain to me how to registred a project for the ADC2.
> Can i publish now or i need to waiting update the ADC official site?
>
> Thanks
>
> JL
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 USA, Inc.



On Aug 18, 9:16 am, Alix  wrote:
> Hello,
>
> I have a widget with a TextView. I can change text and color of this
> TextView like this :
>
> remoteViews.setTextViewText(R.id.txt, "Sample");
> remoteViews.setTextColor(R.id.txt, Color.RED);
>
> But I need to put this TextView "bold" conditionnaly... How can I do
> that ?
>
> Thanks in advance...
>
> Alix
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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
·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 14, 10:39 am, Moto  wrote:
> Hi,
> I was reading on ListActivity and Activity and wanted to know which is
> better?  I only need to display one listview.  Would I see great
> improvements?  Does ListActivity handle screen rotation better or it's
> the same?
>
> Thanks!
> Moto!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> Hey
> Any update ont he ADC submission !
>
> On Aug 12, 10:52 am, cindy  wrote:
>
>
>
> > ADC'ssubmission site will open in August? Opened?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 T-Mobile USA, Inc.



On Aug 13, 2:50 am, Gulfam  wrote:
> Hi,
>
>   I have tried way recommended by Jeff but i think its not perfect
> solution
>  any one can help more regarding this.
> Jeff V V Thanks for your response.
>
> Regards
> Gulfam Hassan
>
> On Aug 13, 11:36 am, Jeff Sharkey  wrote:
>
>
>
> > If you'll be working with long conversations, you should look at using
> > a ListView to keep scrolling efficient.  Also, ListView offers
> > android:transcriptMode, which will can help automatically scroll back
> > to the bottom when new messages arrive.
>
> > j
>
> > On Wed, Aug 12, 2009 at 7:28 AM, Gulfam wrote:
>
> > > Hi every body,
>
> > >    I am working on IM and i want to make Chat Window but i don't know
> > > how to start it. Currently I am using EditText field, a text view and
> > > a button, after entering text in EditText field on pressing send
> > > button i am getting text from EditText filed and appending it to
> > > TextView its looking good but there are some problems, and i don't
> > > know its right approach or not ? Any one can refer me any tutorial or
> > > any useful link regarding this or any other help ?.
>
> > > Thanks  in advance.
>
> > > Gulfam Hassan
>
> > --
> > Jeff Sharkey
> > jshar...@android.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, and do not necessarily
represent those of T-Mobile USA, Inc.




On Aug 13, 7:00 am, Y2U  wrote:
> Hey Guys,
>
> hope you are doin well, can any one guide me how to get Friends List
> from Facebook using Code.
>
> Thanks in advance,
>
> Regards,
> Y2U
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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, 1:36 am, "eric.D"  wrote:
> Hi guys
>  in my app,  I came into  an Activity  from the pre  Activity's UI
> (such as:click a TextView which has added OnClickListener), like this
> way, after several times, I came into a deeper Activity. I left it for
> a while (such as left away) , when I came back ,I returned the
> Activity before the last Activity.  then I got a black screen .
> How to fix this problem?
> Thanks All
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >