[android-developers] Android AMF client library : Android RTMP client library

2010-04-26 Thread Jayant
Android AMF client library
Aftek has extensive experience in developing enterprise Flex
applications. We have used BlazeDS extensively and we believe that it
would nice to provide all the benefits provided by AMF for Android
applications as well. We have developed an Android AMF client library
which would enable Android application developers use the same
extensively. The Android AMF client library supports remoting and
secured remoting. This will allow all android applications to use the
existing backend like .NET, Java, or PHP. The implementation is
asynchronous in nature providing success and failure callbacks. This
allows application to perform other tasks without blocking the
application.

We are currently performing some performance benchmarking and plan to
release our library very soon. We would also be incorporating the
messaging feature as well.

Android RTMP client library

Aftek has extensive experience in developing voip and audio/video and
media applications. Media applications has a huge market and there
would be quite a few people eager to develop the medial applications
on Android. We believe that it would nice to provide all the benefits
provided by RTMP for Android applications as well. We are developing
an Android RTMP client library which would enable Android application
developers use the same extensively. Our Android RTMP client library
would support some add-ons that would help developers to deliver
robust media solutions.

-- 
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] Adding static background to kube

2010-04-26 Thread CMF
Hi all, I would like to ask how to add a static background to the kube
from the ApiDemo
I have created a sqaure behind the Kube, but it will rotate as the
kube does
How to make the background static?

-- 
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] Re: Saving ArrayList to .txt file

2010-04-26 Thread Tommy
Well at this point I have tried to write just a simple HELLO to the text
file. Again it goes over the code no problem but when I search the /data
directory there are no files or folders.

String filename = Testing.txt;
//stationname.getText().toString() + System.currentTimeMillis();


FileOutputStream fos =
openFileOutput(testing.txt,Context.MODE_PRIVATE);
OutputStreamWriter osw = new OutputStreamWriter(fos);
osw.write(Hello);
osw.flush();
osw.close();

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
Sent: Monday, April 26, 2010 12:33 AM
To: Android Developers
Subject: [android-developers] Re: Saving ArrayList to .txt file

What do you mean by there's nothing oevr there? Objects written down
on a file would not be in a readable format. So you can't just use a
text reader to read the contents.

And if you mean that the file is empty, then the process of
serialization is what you should check first. Try with a normal Java
program and let us know if you have any problems.

Thanks and Regards,
Kumar Bibek

On Apr 26, 8:35 am, Tommy droi...@gmail.com wrote:
 Hi,

 I am trying to save an array list to a .txt file below is the code I
 am using, which runs without error but when I try to go to Astro file
 manager and browse the data folder there is nothing there.

 String filename = stationname.getText().toString() +
 System.currentTimeMillis();

         FileOutputStream fos =
openFileOutput(filename,Context.MODE_PRIVATE);
         ObjectOutputStream out = new ObjectOutputStream(fos);
         out.writeObject(report); //Report is the ArrayList that holds each
of
 my station Reports.
         out.close();

 Any advice would be greatly appreciated.

 Thanks for your time,

 Tommy

 --
 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
athttp://groups.google.com/group/android-developers?hl=en

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

-- 
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] Event triggers when I click around marker

2010-04-26 Thread Nithin
Hi,

I displayed map and on top of map, I displayed a number of overlay
Items(Markers). Clicking on overlay Items or markers will do some
action. But the problem is when I click around the marker, means
outside the marker, at that time also, the event triggers. I want to
restrict that exactly when I am clicking on the marker, event has to
take place. I am doing the event in opTap() method.

How can I restrict the event triggering to exactly when I click on the
marker.

Nithin

-- 
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] register android.intent.action.SEND in Service

2010-04-26 Thread andy
Hi,

I want to receive Intent android.intent.action.SEND in a Service. Is it
possilbe to register for this Intent via registerReceiver() and get the
Intent in Broadcast receiver in the Service?

Or is there any restrictions that android.intent.action.SEND can only be
registered via Manifest.xml of an Activity and not in a Service?

Regards,
Andy

-- 
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: Game stutters when drawing outside screen

2010-04-26 Thread ko5tik
I would say that you do not need to redraw that image part
every frame - nothing happens there,  and as there are no overlapping
window on
android there is no need to repair 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] How to custom option menu style?

2010-04-26 Thread D.Y
Dear All,

 I want arrange three menu items as the following layout, would you
please tell me how to custom option menu style as mentioned?

 

 Thanks in advance.

 



!   ICON ! ICON !

! !   !

!   TEXT ! TEXT !

! !   !



!!

!  ICON !

!  TEXT !

!!   



 

Best Regards,

D.Y

 

-- 
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] ListView inside a listview?

2010-04-26 Thread javame_android
Hi,

I am loading a listview dynamically. It is kind of a thread view in a
social networking application. Now there can be reply of reply. So, I
want to show reply of reply all together. So, for this purpose can we
load listview inside a listview. And how can this be done.

If anyone have any idea then please let me know.

Hope to get a reply soon.



Thanks  Regards
Sunil

-- 
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 custom option menu style?

2010-04-26 Thread javame_android
Hi,

I don't think it is actually possible. If I understand your question
properly then you want option menu where 2 menu option are displayed
at the top and the one below it.

But as far as I know option menu has default nature of keeping all 3
in one row and if it has more than 3 then it will be 2 rows of 2
option menu in each row.

http://developer.android.com/intl/fr/guide/topics/ui/menus.html

Please go through the above URL for a better understanding.

If this is not what you want to do then please let us know what
exactly you will like to do.

Hope this helps you out.


Regards
Sunil

-- 
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 ANT compilation

2010-04-26 Thread FrankG
Hello Veradis,

You can do this easily .. but with make.

Look at the ndk examples ..if you use the android build system and
make
you can do so.

Ant would be more natural for many of us but the whole android
platform
uses make .

Good luck !

  Frank



On 26 Apr., 06:48, veradis tech veradism...@gmail.com wrote:
 Thanks Bob Kerns.
 My aim is to make the code available for all. I will move the source to SVN,
 and anyone can download/update it and compile it using ANT. I don't want to
 use eclipse for this

 Erfahren Sie mehr »

 Thanks
 Veradis



 On Sat, Apr 24, 2010 at 9:12 PM, Bob Kerns r...@acm.org wrote:
  Your build.xml doesn't look anything at all like what's generated by
  the 'android' tool. It looks like you've undergone a major manual
  effort, instead.

  Why not just use the android tool to set up your project?

 http://developer.android.com/intl/de/guide/developing/other-ide.html

  You can create a blank project, and edit the build.xml and such if you
  want.

  As far as I know, the android tool is the only thing that knows what
  the requirements are for the various android ant tasks. I suspect one
  requirement is that sdk.dir be set to point to the sdk.

  On Apr 24, 12:57 am, veradis veradism...@gmail.com wrote:
   Hi,

    I want to compile my Android APP using ANT in windows. I placed
   build.xml in project root and included necessary jars in project lib
   folder. I had made proper configurations for ant also, but its not
   working. Please help me on this.

   Error
   

   C:\Documents and Settings\nav\workspace\YumFlixMobileant
   Buildfile: C:\Documents and Settings\nav\workspace\YumFlixMobile
   \build.xml

   clean:

   resource-src:

   BUILD FAILED
   C:\Documents and Settings\nav\workspace\YumFlixMobile\build.xml:33:
   java.lang.Nu
   llPointerException
           at
   com.googlecode.androidant.AndroidTools.locateTool(AndroidTools.java:8
   1)
           at
   com.googlecode.androidant.AndroidTools.startTool(AndroidTools.java:74
   )
           at
   com.googlecode.androidant.AndroidTools.startTool(AndroidTools.java:62
   )
           at
   com.googlecode.androidant.WindowsAndroidTools.aapt(WindowsAndroidTool
   s.java:36)
           at aapt.main(aapt.java:7)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
           at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at
   org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
           at
   org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:15
   2)
           at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
           at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:
   221)
           at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:
   135)
           at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
           at
   org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
           at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at
   org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
   a:106)
           at org.apache.tools.ant.Task.perform(Task.java:348)
           at
   org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
           at
   org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
           at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at
   org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
   a:106)
           at org.apache.tools.ant.Task.perform(Task.java:348)
           at
   org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
   a:398)
           at
   org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
   java:39)
           at
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
   sorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at
   org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
   a:106)
           at org.apache.tools.ant.Task.perform(Task.java:348)
           at org.apache.tools.ant.Target.execute(Target.java:390)
           at 

Re: [android-developers] Re: accessing and changing Sync setting for android 1.5, 1.6 and more

2010-04-26 Thread remy berrebi
i tryed your code, but it doesn't work on 1.6 :-(

E/AndroidRuntime(  429): java.lang.IllegalArgumentException: Unknown URL
content://sync/settings
E/AndroidRuntime(  429):at
android.content.ContentResolver.insert(ContentResolver.java:476)


On Fri, Apr 23, 2010 at 11:38, cpphool cpph...@gmail.com wrote:

 I have added one modification and snippet works on htc magic (1.5)

  final Uri CONTENT_URI = Uri.parse(content://sync/settings);
  ContentValues values = new ContentValues();
  values.put(name, sync_provider_contacts);
  values.put(value, true); // -- here - string true instead of
 boolean
  getContentResolver().insert(CONTENT_URI, values);

 On 21 Kwi, 15:12, remy berrebi zehunte...@gmail.com wrote:
  good news about android 2.x but actually, i want to make my application
  available for all major android version, like 1.6 and if possible 1.5
 
  i'm still searching information.
  actually i'm trying to understand reflect mechanism, to see if i can call
  HIDE method and class and act on sync setting.
  but for now nothing work :-(
 
 
 
  On Tue, Apr 20, 2010 at 16:25, cpphool cpph...@gmail.com wrote:
   [android 2.x]
 
   as far as i know, Android 2.x introduces completely new sync mechanism
   (allowing use to use multi accounts). In order to check whether global
   auto-sync is on, you can use:
 
ContentResolver.getMasterSyncAutomatically();
 
   and to switch it on:
 
ContentResolver.setMasterSyncAutomatically(true);
 
   [android 1.x]
 
   Did you find something about 1.6? and are you able to change auto-sync
   settings in 1.5?
 
   I tried with this snippet:
 
final Uri CONTENT_URI = Uri.parse(content://sync/settings);
ContentValues values = new ContentValues();
values.put(name, sync_provider_contacts);
values.put(value, true);
getContentResolver().insert(CONTENT_URI, values);
 
   The value changes to 1 instead of true and it doesn't affect sync
   settings.
 
   On 16 Kwi, 17:53, zehunter zehunte...@gmail.com wrote:
hi,
 
i'm not able to find any example or documentation or tutorial about
how to enable or disable sync (background data and auto sync)
programmaticaly, even if i can found many widget that can do that
without root access or such.
 
is it something secret? :-)
can any one may be good enough to help me and explain how this work
and how to implement that into my code?
 
i found some trick with URI and content://sync/setting but it seems
 to
be not possible with android 1.6 at least :-( any idea why? and what
replaced this?
 
thanks a thousand time for all people that will answer to me.
best 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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
For more options, visit this group athttp://
   groups.google.com/group/android-developers?hl=en
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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 inside a listview?

2010-04-26 Thread Kumar Bibek
As far as I know, this will be a terrible idea. Use the
ExpandableListView instead. Search for some examples. I am not sure if
this would suffice your needs, but ListView inside a ListView would
certainly look ugly.

Thanks and Regards,
Kumar Bibek

On Apr 26, 11:59 am, javame_android su...@softwebsolutions.com
wrote:
 Hi,

 I am loading a listview dynamically. It is kind of a thread view in a
 social networking application. Now there can be reply of reply. So, I
 want to show reply of reply all together. So, for this purpose can we
 load listview inside a listview. And how can this be done.

 If anyone have any idea then please let me know.

 Hope to get a reply soon.

 Thanks  Regards
 Sunil

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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: Event triggers when I click around marker

2010-04-26 Thread Kumar Bibek
Check if your overlays don't have a padding, which is invisible. If
you are using an image or something, and you have set a padding, then
the view actually is bigger than what appears to you.

Thanks and Regards,
Kumar Bibek

On Apr 26, 11:40 am, Nithin nithin.war...@gmail.com wrote:
 Hi,

 I displayed map and on top of map, I displayed a number of overlay
 Items(Markers). Clicking on overlay Items or markers will do some
 action. But the problem is when I click around the marker, means
 outside the marker, at that time also, the event triggers. I want to
 restrict that exactly when I am clicking on the marker, event has to
 take place. I am doing the event in opTap() method.

 How can I restrict the event triggering to exactly when I click on the
 marker.

 Nithin

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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 maximum memory capacity

2010-04-26 Thread karteek
Thanks for your reply.
You mean to say that we can't save the database of more than 16M is it
so.
a basic app takes already several MBs after you've only just started it.
Sorry i didn't understand above statement.Can u expand statement

On Apr 26, 9:33 am, Anurag Singh anusingh...@gmail.com wrote:
 The maximum heap memory an process (app) gets in Android is 16M. That's not
 that much,
 a basic app takes already several MBs after you've only just started it.

 - Anurag Singh



 On Mon, Apr 26, 2010 at 9:34 AM, Karteek N kartee...@gmail.com wrote:
  Hi all,
  If i have implemented a database in an application.
  So what ever the tables i create in that database will be saved in
  /data/data/packagename/databasess
  My question is how many tables i can create or how much data can i insert.
  How to know capacity of the database.In which factors will it depends.
  Please help

  Regards,
  Karteek

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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: Saving ArrayList to .txt file

2010-04-26 Thread Kumar Bibek
This piece of code works for me.

You shoudl search for your file in /data/data/your package name/files

Thanks and Regards
Kumar Bibek

String filename = test+ System.currentTimeMillis()+.txt;
ArrayListString report = new ArrayListString();
report.add(Hello);
report.add(How are you);

FileOutputStream fos;
try {
fos = 
openFileOutput(filename,Context.MODE_PRIVATE);
ObjectOutputStream out = new ObjectOutputStream(fos);
out.writeObject(report);
out.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

On Apr 26, 11:40 am, Tommy droi...@gmail.com wrote:
 Well at this point I have tried to write just a simple HELLO to the text
 file. Again it goes over the code no problem but when I search the /data
 directory there are no files or folders.

 String filename = Testing.txt;
         //stationname.getText().toString() + System.currentTimeMillis();

         FileOutputStream fos =
 openFileOutput(testing.txt,Context.MODE_PRIVATE);
         OutputStreamWriter osw = new OutputStreamWriter(fos);
         osw.write(Hello);
         osw.flush();
         osw.close();

 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
 Sent: Monday, April 26, 2010 12:33 AM
 To: Android Developers
 Subject: [android-developers] Re: Saving ArrayList to .txt file

 What do you mean by there's nothing oevr there? Objects written down
 on a file would not be in a readable format. So you can't just use a
 text reader to read the contents.

 And if you mean that the file is empty, then the process of
 serialization is what you should check first. Try with a normal Java
 program and let us know if you have any problems.

 Thanks and Regards,
 Kumar Bibek

 On Apr 26, 8:35 am, Tommy droi...@gmail.com wrote:
  Hi,

  I am trying to save an array list to a .txt file below is the code I
  am using, which runs without error but when I try to go to Astro file
  manager and browse the data folder there is nothing there.

  String filename = stationname.getText().toString() +
  System.currentTimeMillis();

          FileOutputStream fos =
 openFileOutput(filename,Context.MODE_PRIVATE);
          ObjectOutputStream out = new ObjectOutputStream(fos);
          out.writeObject(report); //Report is the ArrayList that holds each
 of
  my station Reports.
          out.close();

  Any advice would be greatly appreciated.

  Thanks for your time,

  Tommy

  --
  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
 athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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: Event triggers when I click around marker

2010-04-26 Thread Nithin

Thanks Kumar... thats a very useful tip..

Nithin

On Apr 26, 12:26 pm, Kumar Bibek coomar@gmail.com wrote:
 Check if your overlays don't have a padding, which is invisible. If
 you are using an image or something, and you have set a padding, then
 the view actually is bigger than what appears to you.

 Thanks and Regards,
 Kumar Bibek

 On Apr 26, 11:40 am, Nithin nithin.war...@gmail.com wrote:



  Hi,

  I displayed map and on top of map, I displayed a number of overlay
  Items(Markers). Clicking on overlay Items or markers will do some
  action. But the problem is when I click around the marker, means
  outside the marker, at that time also, the event triggers. I want to
  restrict that exactly when I am clicking on the marker, event has to
  take place. I am doing the event in opTap() method.

  How can I restrict the event triggering to exactly when I click on the
  marker.

  Nithin

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Re: What is the maximum memory capacity

2010-04-26 Thread Anurag Singh
Nope, I want to say 16 MB restriction for Heap. You can save more in your
database but you are not going to
load whole database at run time. You have to manage your database
efficiently.

- Anurag Singh

On Mon, Apr 26, 2010 at 12:58 PM, karteek kartee...@gmail.com wrote:

 Thanks for your reply.
 You mean to say that we can't save the database of more than 16M is it
 so.
 a basic app takes already several MBs after you've only just started it.
 Sorry i didn't understand above statement.Can u expand statement

 On Apr 26, 9:33 am, Anurag Singh anusingh...@gmail.com wrote:
  The maximum heap memory an process (app) gets in Android is 16M. That's
 not
  that much,
  a basic app takes already several MBs after you've only just started it.
 
  - Anurag Singh
 
 
 
  On Mon, Apr 26, 2010 at 9:34 AM, Karteek N kartee...@gmail.com wrote:
   Hi all,
   If i have implemented a database in an application.
   So what ever the tables i create in that database will be saved in
   /data/data/packagename/databasess
   My question is how many tables i can create or how much data can i
 insert.
   How to know capacity of the database.In which factors will it depends.
   Please help
 
   Regards,
   Karteek
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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 maximum memory capacity

2010-04-26 Thread Kumar Bibek
The BD can be more than that, and is only limited by your phone
memory, or the sd card space if you are storing your DB there. 16MB is
the RAM available for each app. If you run out of this, you will get
an OutOfMemory Error.

Thanks and Regards
Kumar Bibek

On Apr 26, 12:28 pm, karteek kartee...@gmail.com wrote:
 Thanks for your reply.
 You mean to say that we can't save the database of more than 16M is it
 so.a basic app takes already several MBs after you've only just started it.

 Sorry i didn't understand above statement.Can u expand statement

 On Apr 26, 9:33 am, Anurag Singh anusingh...@gmail.com wrote:



  The maximum heap memory an process (app) gets in Android is 16M. That's not
  that much,
  a basic app takes already several MBs after you've only just started it.

  - Anurag Singh

  On Mon, Apr 26, 2010 at 9:34 AM, Karteek N kartee...@gmail.com wrote:
   Hi all,
   If i have implemented a database in an application.
   So what ever the tables i create in that database will be saved in
   /data/data/packagename/databasess
   My question is how many tables i can create or how much data can i insert.
   How to know capacity of the database.In which factors will it depends.
   Please help

   Regards,
   Karteek

   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Is it possible to send sms using adb tool

2010-04-26 Thread Karteek N
Hi all,
Can we send sms using adb tool.
If possible can u provide any document or link

Regards,
Karteek

-- 
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 it possible to send sms using adb tool

2010-04-26 Thread Kumar Bibek
Yes sure,

If you are using eclipse, open the Emulator Options from the DDMS
perspective.
There you have an option of calling/sending sms.

If you want to do it by command line, check this link.
http://developer.android.com/guide/developing/tools/emulator.html#sms

Thanks and Regards,
Kumar Bibek

On Apr 26, 12:36 pm, Karteek N kartee...@gmail.com wrote:
 Hi all,
 Can we send sms using adb tool.
 If possible can u provide any document or link

 Regards,
 Karteek

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] How can i delete the sms from the inbox

2010-04-26 Thread Manoj
Hi folk,
I am trying to delete sms from the inbox,
I am using the following statement

getContentResolver().delete(Uri.parse(content://sms/inbox), _id=2,
null));


but its not working.

Does anybody has any suggestion for doing this.

Manoj

-- 
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] OOM exception with custom imageadapter

2010-04-26 Thread Lars
Hi

I have a gallery in wich I show a row of images, the images can both
be from the Camera gallery or from the internet as a web url. My
getView() method makes an exception when I put to many images from the
gallery inside it. Should i down sample the images before attaching
them to the view? and how is that done ? heres my getView method:

public View getView(int position, View convertView, ViewGroup parent)
{


Controller co = Controller.GetInstance();

ImageView imageView = new ImageView(context);

 
if(co.server.currRecord.image.get(position).containsKey(data))
{
// we have a content URI and assign it to the gallery
 
imageView.setImageURI((Uri)co.server.currRecord.image.get(position).get(data));
}
else
{
//we have a web url and need our ImageOperation method to
fetch and decode the drawable.
 
imageView.setImageDrawable(FileConvert.ImageOperations(context,
Controller.GetInstance().server.currRecord.image.get(position).get(url).toString()));
}

imageView.setScaleType(ImageView.ScaleType.FIT_XY);
imageView.setLayoutParams(new Gallery.LayoutParams(150, 120));
imageView.setBackgroundResource(itemBackground);

return imageView;
}

 - Lars

-- 
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] View not refreshing

2010-04-26 Thread angushir...@googlemail.com
Hi all,
I've extended the View class to create a custom View that draws a
shape in the onDraw method. The dimensions of the shape are derived
from calling getMeasuredWidth() and getMeasuredHeight(). This works
fine when I create one and add it to an alert dialog using
builder.setView(). However, if I create an arraylist of customviews
and add one at random to the alert, the actual shape is not drawn. In
the logs, the getMeasuredWidth() and getMeasuredHeight() show as 0
initially, but after adding them to the alert they become 236 and 345,
which is fine. However, the shape does not appear. I've tried all the
suggested methods such as invalidate() but to no avail. Any
suggestions?

Regards

Angus

-- 
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] OOM exception with custom imageadapter

2010-04-26 Thread Romain Guy
Hi,

As written, your getView() method *never* reuses the convertView
parameter. This means you are creating new Views and new Bitmaps every
time the method is called, which happen very often while
scrolling/flinging a grid.

You first need to start using the convertView when possible (if
convertView != null, cast it to an ImageView and set your drawable on
it.) Note that setting the scale type, layout params and background
resource should be done only when convertView == null. This will save
you a lot of time.

Finally, you should create a cache for your bitmaps to avoid reloading
them all the time.

I encourage you to read the source code of the following application
to see how to implement an efficient list of images:
http://code.google.com/p/shelves/

Also refer to my Google I/O 2009 talk about UI optimization:
http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html
In this talk I describe how to implement getView() efficiently and
talk about image caches briefly at the end.

On Mon, Apr 26, 2010 at 12:50 AM, Lars axberg.l...@gmail.com wrote:
 Hi

 I have a gallery in wich I show a row of images, the images can both
 be from the Camera gallery or from the internet as a web url. My
 getView() method makes an exception when I put to many images from the
 gallery inside it. Should i down sample the images before attaching
 them to the view? and how is that done ? heres my getView method:

 public View getView(int position, View convertView, ViewGroup parent)
    {


        Controller co = Controller.GetInstance();

        ImageView imageView = new ImageView(context);


 if(co.server.currRecord.image.get(position).containsKey(data))
        {
                // we have a content URI and assign it to the gallery

 imageView.setImageURI((Uri)co.server.currRecord.image.get(position).get(data));
        }
        else
        {
                //we have a web url and need our ImageOperation method to
 fetch and decode the drawable.

 imageView.setImageDrawable(FileConvert.ImageOperations(context,
 Controller.GetInstance().server.currRecord.image.get(position).get(url).toString()));
        }

        imageView.setScaleType(ImageView.ScaleType.FIT_XY);
        imageView.setLayoutParams(new Gallery.LayoutParams(150, 120));
        imageView.setBackgroundResource(itemBackground);

        return imageView;
    }

  - Lars

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




-- 
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: register android.intent.action.SEND in Service

2010-04-26 Thread andy
Can anyone clarifiy please

On Mon, Apr 26, 2010 at 12:12 PM, andy developcod...@gmail.com wrote:

 Hi,

 I want to receive Intent android.intent.action.SEND in a Service. Is it
 possilbe to register for this Intent via registerReceiver() and get the
 Intent in Broadcast receiver in the Service?

 Or is there any restrictions that android.intent.action.SEND can only be
 registered via Manifest.xml of an Activity and not in a Service?

 Regards,
 Andy


-- 
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: Callback when SoftKeyboard goes away

2010-04-26 Thread jamesc
I'm not aware of one, no.  You could have a look on stackoverflow.com
and search whether someone has asked a similar question.  Actually, I
believe that there is a IRC 'question time' where  Googlers can answer
questions at a specific time/day of the week (Thursdays?), so perhaps
that could be an option?  I'd be interested in what they said.

I recall that there was another thread somewhere (I can't find it now)
that had a reply from Dianne Hackborne stating that it was debatable
whether the issues with full-size/adjustResize not calling
onSizeChanged() was actually a defect (as there was an argument that
that behaviour should not happen when the window is full screen).


On Apr 25, 4:19 am, mkellner m.kin...@gmail.com wrote:
 So truly, there is no solution?

 In a fullscreen application, there is no way to know when the
 softkeyboard is dismissed by the back-key?

 -mk

 On Apr 24, 1:42 am, jamesc jame...@gmail.com wrote:



  Ah!  Yes.  It does matter that your using fullscreen (again, another
  issues I had; I ended up not going fullscreen):

 http://code.google.com/p/android/issues/detail?id=5497

  On Apr 24, 9:37 am, mkellner m.kin...@gmail.com wrote:

The layout that your views are in should get a call to onSizeChanged()
with the new sizes.

   I agree. They should. But they don't in my case.

   I did as you suggested. I put my SurfaceView into a ScrollView.

   The ScrollView's onSizeChanged() doesn't get called when the
   softkeyboard is shown or hidden. No onMeasure() is called either.

   Does it matter that I'm going fullscreen?

           style name=Theme.NoBackground parent=@android:style/
   Theme.NoTitleBar.Fullscreen
                   item name=android:windowBackground@null/item
           /style

   -mk

   On Apr 23, 12:03 am, jamesc jame...@gmail.com wrote:

The layout that your views are in should get a call to onSizeChanged()
with the new sizes.

I had exactly the same issue a few months ago.  My solution was to
place my View implementation in a ScrollView and override
ScrollView.onSizeChanged() to do stuff that I needed when the IME was
shown/hidden.

On Apr 23, 7:50 am, mkellner m.kin...@gmail.com wrote:

 Alas, onSizeChanged() doesn't get called when the IME is invoked or
 dismissed.

 My manifest contains:
                                   
 android:windowSoftInputMode=adjustResize
 as suggested.

 My main window is a SurfaceView.
 I also have an EditText view.
 When I need to open the keyboard, I make the EditText visible and
 toggleSoftInput.

 The keyboard appears, but no onSizeChanged() is called for either the
 EditText view or the SurfaceView.

 Any suggestions?

 -mk

 On Apr 22, 10:26 pm, jamesc jame...@gmail.com wrote:

  onSizeChanged() - the system resizes the window when the IME is 
  shown/
  hidden. Take a look here:

 http://groups.google.com/group/android-developers/browse_thread/threa...

  On Apr 22, 3:40 am, mkellner m.kin...@gmail.com wrote:

   Hello,

   I am trying to find a way to get a notification that the soft 
   keyboard
   has been dismissed by the user pressing the Back key.

   showSoftInput() with a ResultReceiver will tell you if/when the
   keyboard appears, but not if it goes away.

   addTextChangedListener() doesn't get called because text hasn't
   changed.

   onEditorAction() doesn't get called, because the Action button 
   wasn't
   pressed.

   dispatchKeyEvent() doesn't get called with KEYCODE_BACK.

   onConfigurationChanged() doesn't get called even with this in the
   manifest:
                     
   android:configChanges=keyboardHidden|orientation|
   locale|screenLayout|fontScale

   Any suggestions?

   Thanks!
   -mk

   --
   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 
   athttp://groups.google.com/group/android-developers?hl=en

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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] How can save an online image in my res folder in android?

2010-04-26 Thread Maxood
Is it possible to save an online image to my res folder in android?
Please provide the relevant code.

-- 
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: Game stutters when drawing outside screen

2010-04-26 Thread Peter
Thanks for the suggestion.
I probably shoud have mentioned this in my original post. Objects
sometimes leave the screen, therefore they are party drawed outside
the screen until they are removed. On 320x480 screens this isn't
visible, but on bigger screens it is. Drawing the image every frame
solves this problem.


On Apr 26, 8:53 am, ko5tik kpriblo...@yahoo.com wrote:
 I would say that you do not need to redraw that image part
 every frame - nothing happens there,  and as there are no overlapping
 window on
 android there is no need to repair 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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's Thread ID

2010-04-26 Thread MobDev
ok,
I have done that but the result now is that I always get the same
Thread ID, I guess that's the main UI Thread..
I do have different threads, for example for http connections (or
actually Runnable's), and now I'd like to get their Thread ID as well,
any idea how ?
So I'd like to get the Thread ID's of non-activity objects, so those
shouldn't run on the main-ui thread...

On 22 mrt, 16:09, Streets Of Boston flyingdutc...@gmail.com wrote:
 All callbacks into an Activity happen on the same thread, the main UI
 thread.
 Just call, in onCreate, the method 'Thread.currentThread().getId()'

 On Mar 22, 10:04 am, MobDev developm...@mobilaria.com wrote:

  Hi,
  I'd like to retrieve the Thread Priority of one or more Activity's...
  To do so I have found the Process.getThreadPriority() method, but as
  an argument you have to supply the Thread's ID... That's not that bad
  because in the end I also needed to have that, only I can't seem to
  find a method for that...
  I have seen a Thread.getID method or something like that, but how can
  this be applied to an Activity, for example the main Activity of an
  Android app ?
  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


Re: [android-developers] Re: Sending email with attachment

2010-04-26 Thread andy
Hi,

I want to receive Intent android.intent.action.SEND in a Service. Is it
possilbe to register for this Intent via registerReceiver() and get the
Intent in Broadcast receiver in the Service?

Or is there any restrictions that android.intent.action.SEND can only be
registered via Manifest.xml of an Activity and not in a Service?

On Fri, Apr 16, 2010 at 9:03 PM, powder jonas.hey...@gmail.com wrote:


 Sorry for not responding earlier. This worked for me:

public static void sendFile(Context context) {
String emailPreference =

 PreferenceManager.getDefaultSharedPreferences(context).getString(emailPreference,
 );
String subjectPreference =

 PreferenceManager.getDefaultSharedPreferences(context).getString(subjectPreference,
 );
String bodyPreference =

 PreferenceManager.getDefaultSharedPreferences(context).getString(bodyPreference,
 );
if(subjectPreference.length() == 0) {
subjectPreference = (String)
 context.getText(R.string.csv_subject);
}
String csvFile = getFilename();
File file = new File(csvFile);
if(file.exists()) {
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_EMAIL, new String[]
 {emailPreference});
sendIntent.putExtra(Intent.EXTRA_SUBJECT,
 subjectPreference);
sendIntent.putExtra(Intent.EXTRA_TEXT,
 bodyPreference);
sendIntent.setType(text/csv);
sendIntent.putExtra(Intent.EXTRA_STREAM,
 Uri.fromFile(new
 File(csvFile)));

  context.startActivity(Intent.createChooser(sendIntent,
 context.getText(R.string.csv_send)));
} else {
Util.displayToast(context, R.string.no_csv_file);
}
}

 On Apr 14, 10:18 am, Scout Ma scoutma2...@gmail.com wrote:
  Thanks for your help.
  I want to write an application which will send email with an
  attachment through GMail on Android.
  But I don't have much time to study the basic of JavaMail.
  So, I wonder is there any sample for me to get in quickly.
 
  2010/4/14 Kumar Bibek coomar@gmail.com
  
  So, you want to learn how to create an email app? It depends actually
  on the protocol that you want to work with. For POP and IMAP, there
  are libraries which you have to use. Check out Java Mail API 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Game stutters when drawing outside screen

2010-04-26 Thread abisai rangel
Some nice software Jobs here Looking!
Websitehttp://bizoppoffer.com/x/0/1325/6428/

On Sun, Apr 25, 2010 at 11:03 AM, Peter peteroerlem...@gmail.com wrote:

 Hello,

 I have a game built for 480x320 screen resolution. When playing the
 game on a phone with a higher screen resolution (480 x 800 or 480 x
 856) the game automatically stretches to fit the screen which works
 great. Because of different screen dimensions there is a piece of the
 screen on the right side (game is in landscape mode) that is black,
 not used by the game. I want to fill this up with an image, so the
 whole screen is filled. I only draw that image on screens bigger than
 480x320. This all works fine, the image is displayed exactly the way I
 want to. The only problem is that the game runs less smooth then it
 used to run. There are small stutters noticeable. When I just draw a
 rectangle instead of an image the same problem occurs.
 Does anyone have an idea why this is happening? Any help would be
 appreciated!

 Thanks,
 Peter

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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 delete the sms from the inbox

2010-04-26 Thread Kumar Bibek
The SMS content provider is  not yet public. Your code might not work
on later versions even if you manage to make it working.

And of course, without any documentations, you can only keep on trying
to make it working. Pull out the sms DB from the emulator, and may be
you can find some hints...

Thanks and Regards,
Kumar Bibek

On Apr 26, 12:45 pm, Manoj linkex.ma...@gmail.com wrote:
 Hi folk,
 I am trying to delete sms from the inbox,
 I am using the following statement

 getContentResolver().delete(Uri.parse(content://sms/inbox), _id=2,
 null));

 but its not working.

 Does anybody has any suggestion for doing this.

 Manoj

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] How to show Low Battery Alert, when the battery power reduces to 15%.

2010-04-26 Thread subrat kumar panda
Hi all,
How to show Low Battery Alert , when the battery power reduces to 15%.
anybody knows the solution regarding the problem
please help me.

i am not getting any desired document or any code.

Thanking you in advance,

Best Regards
Subrat Kumar Panda
India

-- 
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: Progress bar is run after task completing

2010-04-26 Thread pramod.deore
Thanks treKing and Anurag now it's works.

-- 
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] Extracting colors from Themes?

2010-04-26 Thread Mariano Kamp
Hi,

I want to use colors from a Theme to apply it to HTML my app is rendering. I
am wondering if I can do that?

I am looking to use colors like they are specified in themes.xml:

item
name=colorForeground@android:color/bright_foreground_dark/item
..
item name=colorBackground@android:color/background_dark/item
..
item
name=textColorPrimary@android:color/primary_text_dark/item
..

So it looks to me those are declared in the same way.

When trying to access those values this way:

TypedValue tv = new TypedValue();
getTheme().resolveAttribute(android.R.attr.colorBackground, tv,
true);

System.out.println(tv.string= + tv.string);
System.out.println(tv.coerced= + tv.coerceToString());

int colorResourceId = getResources().getColor(tv.resourceId);
System.out.println(colorResourceId= + colorResourceId);

tv = new TypedValue();
getTheme().resolveAttribute(android.R.attr.textColorPrimary, tv,
true);

System.out.println(tv.string= + tv.string);
System.out.println(tv.coerced= + tv.coerceToString());

colorResourceId = getResources().getColor(tv.resourceId);
System.out.println(colorResourceId= + colorResourceId);

I get this as a result:

I/System.out( 1578): tv.string=null
I/System.out( 1578): tv.coerced=#
I/System.out( 1578): colorResourceId=-1

I/System.out( 1578): tv.string=res/color/primary_text_light.xml
I/System.out( 1578): tv.coerced=res/color/primary_text_light.xml
I/System.out( 1578): colorResourceId=-16777216

The results are different. The first one actually gives me the color
#fff which would work for me, the second one only gives me an xml.

Do I need to jump through a few more hoops here to resolve the actual color?
Does my original intention work at all? Maybe it won't work, because colors
could be arbitrary drawables?

I didn't find any relevant documentation, but if you know any, just point me
there please.

Btw. I also tried obtainStyledAttributes(), but this had basically the same
issues.

Cheers,
Mariano

-- 
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] Re: Device Seeding Program for Top Android Market Developers

2010-04-26 Thread Lim Sim
Ah.  I see.

Maybe we're not getting our phones cause Vodafone has got it.

http://www.engadget.com/2010/04/26/nexus-one-launches-on-vodafone-uk-this-friday-april-30/

http://www.engadget.com/2010/04/26/nexus-one-launches-on-vodafone-uk-this-friday-april-30/

On 26 April 2010 06:19, String sterling.ud...@googlemail.com wrote:


 On Apr 25, 10:58 pm, Lim Sim lim@gmail.com wrote:

  Cool!  I've been seeing Radar Now around.  Going to download it and give
 it
  a spin.  Looks cool.  Should have got it when we had the volcanic ash
 last
  week.

 I'm making a guess from these 2 statements, but... Be aware that Radar
 Now! is US-only.


  On 25 April 2010 22:51, Maps.Huge.Info (Maps API Guru) cor...@gmail.com
 wrote:
 
  Radar Now! - 250,000+ downloads, 4.32 average rating, #13 in News 
  Weather

 John, just FYI, posting a ranking like this is pretty well
 meaningless. The order of apps in the Market varies by country,
 handset, carrier, and probably some other factors that Google has
 never made clear. For example, I have an app which is #8 in Reference
 here in the UK on my G1, but shows up as #5 on a Droid in the USA.

 String

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Lim Sim
t: +44 790 4181648
f: http://www.flickr.com/photos/limsim

-- 
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 show Low Battery Alert, when the battery power reduces to 15%.

2010-04-26 Thread Timo Prill

register a broadcastreceiver from a service or activity like this:

registerReceiver(myBatteryBroadcastReceiver, new 
IntentFilter(Intent.ACTION_BATTERY_CHANGED));


then in the receiver call:

intent.getIntExtra(level,0);

this will get you the current battery-charge

Am 26.04.2010 11:49, schrieb subrat kumar panda:

Hi all,
How to show Low Battery Alert , when the battery power reduces to 15%.
anybody knows the solution regarding the problem
please help me.

i am not getting any desired document or any code.

Thanking you in advance,

Best Regards
Subrat Kumar Panda
India

   


--
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] WRITE_SECURE_SETTING : real permission or not?

2010-04-26 Thread zehunter
hi everyone,

i'm searching during all week end and didn't find an answer to my
question : why WRITE_SECURE_SETTING permission exist if you can ask
and obtain this permission?

as more as i can see, to have this permission you need to be part of
the system (argh!) or to have your apk signed with the same that the
system (argh again) ... so why this permission exist if in fact to
have the possibility to write secure setting is linked to something
else than this permission?

more of that, is it possible for a simple dev guy to be able to sign
his apk with framework certificate or something like that?

if it's a permission to ask, why, when you ask it, you can't have it?
it's like a bone in front a a dog, on the other side of a closed
window :-(

i like security on android : you ask permission, a disclaimer appear
to the end user when he install your apk, and see what you want to
do ... why this setting is so secure and not allow disclaimer as other
permission?

many question, i hope some google dev guys and girls can help me to
understand that...

thanks in advance,

regards,

ps: i'm on android 1.6

-- 
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: Device Seeding Program for Top Android Market Developers

2010-04-26 Thread Kubecz3k
Interesting, but I guess the reason is not important right now.
For now, the point is - when shipping will start for real.

On Apr 26, 12:25 pm, Lim Sim lim@gmail.com wrote:
 Ah.  I see.

 Maybe we're not getting our phones cause Vodafone has got it.

 http://www.engadget.com/2010/04/26/nexus-one-launches-on-vodafone-uk-...

 http://www.engadget.com/2010/04/26/nexus-one-launches-on-vodafone-uk-...

 On 26 April 2010 06:19, String sterling.ud...@googlemail.com wrote:





  On Apr 25, 10:58 pm, Lim Sim lim@gmail.com wrote:

   Cool!  I've been seeing Radar Now around.  Going to download it and give
  it
   a spin.  Looks cool.  Should have got it when we had the volcanic ash
  last
   week.

  I'm making a guess from these 2 statements, but... Be aware that Radar
  Now! is US-only.

   On 25 April 2010 22:51, Maps.Huge.Info (Maps API Guru) cor...@gmail.com
  wrote:

   Radar Now! - 250,000+ downloads, 4.32 average rating, #13 in News 
   Weather

  John, just FYI, posting a ranking like this is pretty well
  meaningless. The order of apps in the Market varies by country,
  handset, carrier, and probably some other factors that Google has
  never made clear. For example, I have an app which is #8 in Reference
  here in the UK on my G1, but shows up as #5 on a Droid in the USA.

  String

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Lim Sim
 t: +44 790 4181648
 f:http://www.flickr.com/photos/limsim

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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: About EditText inputType

2010-04-26 Thread E
Thank you for your suggestion.

But I found other solution after search, search and search... (seems
in this group?)

That's

EditText android:id=@+id/age
   android:inputType=number|phone
   android:digits=1234567890
   android:maxLength=2
/

And I've also write a if statement to check if it's an empty box.

Still thanks a lot! =]

On Apr 26, 1:37 pm, Kumar Bibek coomar@gmail.com wrote:
 Type Number is for phone number, it is not specifically for age. Even
 if you had one for the age, what would happen if a user enters a value
 of 300. Still then, you would have checked this value through code,
 right?

 So, May be use a spinner or something, or before saving the contents
 of the EditText, check it's value and prompt the user if it's wrong.

 Thanks and Regards,
 Kumar Bibek

 On Apr 23, 8:18 am, E chui.hin...@gmail.com wrote:





  Hi! I've searched for long-long time and I can't find the answer.

  EditText android:id=@+id/age
                 android:inputType=number|phone/

  This will pop-up a soft keyboard with big buttons and some signs(- .
  N , * # / ), right?

  But the propose for this EditText is entering an age number.

  Can I restrict the inputType to number AND use a phone keyboard
  WITHOUT entering these signs?

  Thank you for guiding a newcomer.

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

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

-- 
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] Re: Device Seeding Program for Top Android Market Developers

2010-04-26 Thread Lim Sim
Just having some fun while we wait.  Maybe...we can get a phone from
Vodafone and ask Google for a refund?  haha.

On 26 April 2010 11:33, Kubecz3k kubec...@gmail.com wrote:

 Interesting, but I guess the reason is not important right now.
 For now, the point is - when shipping will start for real.

 On Apr 26, 12:25 pm, Lim Sim lim@gmail.com wrote:
  Ah.  I see.
 
  Maybe we're not getting our phones cause Vodafone has got it.
 
  http://www.engadget.com/2010/04/26/nexus-one-launches-on-vodafone-uk-...
 
  http://www.engadget.com/2010/04/26/nexus-one-launches-on-vodafone-uk-..
 .
 
  On 26 April 2010 06:19, String sterling.ud...@googlemail.com wrote:
 
 
 
 
 
   On Apr 25, 10:58 pm, Lim Sim lim@gmail.com wrote:
 
Cool!  I've been seeing Radar Now around.  Going to download it and
 give
   it
a spin.  Looks cool.  Should have got it when we had the volcanic ash
   last
week.
 
   I'm making a guess from these 2 statements, but... Be aware that Radar
   Now! is US-only.
 
On 25 April 2010 22:51, Maps.Huge.Info (Maps API Guru) 
 cor...@gmail.com
   wrote:
 
Radar Now! - 250,000+ downloads, 4.32 average rating, #13 in News 
Weather
 
   John, just FYI, posting a ranking like this is pretty well
   meaningless. The order of apps in the Market varies by country,
   handset, carrier, and probably some other factors that Google has
   never made clear. For example, I have an app which is #8 in Reference
   here in the UK on my G1, but shows up as #5 on a Droid in the USA.
 
   String
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Lim Sim
  t: +44 790 4181648
  f:http://www.flickr.com/photos/limsim
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Lim Sim
t: +44 790 4181648
f: http://www.flickr.com/photos/limsim

-- 
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] About EditText inputType

2010-04-26 Thread Anurag Singh
Use

android:digits
android:numeric

- Anurag Singh

On Fri, Apr 23, 2010 at 8:48 AM, E chui.hin...@gmail.com wrote:

 Hi! I've searched for long-long time and I can't find the answer.

 EditText android:id=@+id/age
   android:inputType=number|phone/

 This will pop-up a soft keyboard with big buttons and some signs(- .
 N , * # / ), right?

 But the propose for this EditText is entering an age number.

 Can I restrict the inputType to number AND use a phone keyboard
 WITHOUT entering these signs?

 Thank you for guiding a newcomer.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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 save an online image in my res folder in android?

2010-04-26 Thread Kumar Bibek
Not possible. You will have to save those either to the sdcard or the
data/data/package folder.

Thanks and Regards,
Kumar Bibek

On Apr 26, 1:04 pm, Maxood maqs...@salsoft.net wrote:
 Is it possible to save an online image to my res folder in android?
 Please provide the relevant code.

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Market

2010-04-26 Thread Ajay
Hi,
   I wanted to check the availability of another app in Market from my
app. Based on this I will have to give a message saying Coming
soon... or show the other app in Market. I am using the following
intent

new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?
id=com.example.android.));

Now, how can I catch the result which would say if the Market was able
to find this package or not?

Thank you,
Ajay

-- 
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] [from J2me to Android] Mobile printer using bluetooth

2010-04-26 Thread ricardocunha
Hi, I´m a developer trying to change from J2me to Android.it´s
possible in j2me to use a mobile printer like zebra, Extech,Brother
models. The communication about mobile phone and printer is over
bluetooth. Anyone use a mobile printer with Android phone?

Sorry about my English.

-- 
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] Market

2010-04-26 Thread Mark Murphy
Ajay wrote:
 Hi,
I wanted to check the availability of another app in Market from my
 app. Based on this I will have to give a message saying Coming
 soon... or show the other app in Market. I am using the following
 intent
 
 new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?
 id=com.example.android.));
 
 Now, how can I catch the result which would say if the Market was able
 to find this package or not?

I do not believe that is possible, sorry. I'm not even quite sure why it
would be necessary.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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: Starting default calendar and contacts application

2010-04-26 Thread AJ
On Apr 26, 8:44 am, Kumar Bibek coomar@gmail.com wrote:
 Contacts, well, It's open for any one to use.


What to use. In android SDK 2.1 Contact has lot of Intents missing
while launching Contact application.

Thanks,
AJ

-- 
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] how to connect android phone to pc using adb

2010-04-26 Thread saikiran n
Hi all,
 I am aunable to connect my phone to pc.
I connected it with usb cable to my pc and i opend command prompt where my
android sdk is there
Now i typed
./adb kill-server
./adb start-server
then i typed
./adb shell
it displays me error that device not found
I kept my mobile in usb debug mode through as follows
Setting-Application-Development-USB debug mode
My phone version is 1.5 samsung galaxy-spica
Any help
Regards,
saikiran

-- 
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 connect android phone to pc using adb

2010-04-26 Thread AJ
check whether you have installed driver for galaxy-spica properly?

Thanks,
AJ

On Apr 26, 3:19 pm, saikiran n saikiran@gmail.com wrote:
 Hi all,
  I am aunable to connect my phone to pc.
 I connected it with usb cable to my pc and i opend command prompt where my
 android sdk is there
 Now i typed
 ./adb kill-server
 ./adb start-server
 then i typed
 ./adb shell
 it displays me error that device not found
 I kept my mobile in usb debug mode through as follows
 Setting-Application-Development-USB debug mode
 My phone version is 1.5 samsung galaxy-spica
 Any help
 Regards,
 saikiran

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Re: how to connect android phone to pc using adb

2010-04-26 Thread Rogério de Souza Moraes
What is your S.O.? Linux, windows or MAC?

if it is linux, try to enter in root shell (sudo -s), before do:
./adb kill-server
./adb start-server

Regards,

Rogerio

2010/4/26 AJ ajeet.invinci...@gmail.com

 check whether you have installed driver for galaxy-spica properly?

 Thanks,
 AJ

 On Apr 26, 3:19 pm, saikiran n saikiran@gmail.com wrote:
  Hi all,
   I am aunable to connect my phone to pc.
  I connected it with usb cable to my pc and i opend command prompt where
 my
  android sdk is there
  Now i typed
  ./adb kill-server
  ./adb start-server
  then i typed
  ./adb shell
  it displays me error that device not found
  I kept my mobile in usb debug mode through as follows
  Setting-Application-Development-USB debug mode
  My phone version is 1.5 samsung galaxy-spica
  Any help
  Regards,
  saikiran
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Re: the problem about click item in listview

2010-04-26 Thread Reiny Song
Dear Jose,

Hello, thank you for your recommand

Actually, there are some controls in my adapter (one checkbox, one
imagebutton and three textviews ).

But, after turning checkbox and imagebutton focusability  off, I still can
not select the items by my mouse left click.

Dear Pawel,

thank you for your code,

after adding the code (onitemclicklistener) into my activity, the listview
does not have any response (no matter by mouse left click or by mouse scroll
wheel)

But, when I select item by mouse scroll wheel, the onitemselectedlistener
shows the item is selected.


However,

I still tried other ways,

when I put a onTouchListener in my getView method in adapter, the followings
are sample code,

public MyAdapter()
{
  //do something
}

public getView(int position, View convertView, ViewGroup parent )
{
   View returnView = super.getView(position,convertView,parent);
   returnView.set
   returnView.setOnTouchListener (new OnTouchListener(
{
 returnView.setSelected(true);
}
   ));
}

then...

after click(by mouse left click) the item in listview,  the item looks
like the selected item

but the color of the words in textview become greyish black, and the
item background color is still black.

It is different from the item are selected by mouse scroll wheel. (the item
background color become orange)

I still can not find the answer.

2010/4/26 Jose Gomez j...@josecgomez.com

 By any chance does your list item adapter have a control in it that can be
 focused? If so that is your problem (checkbox, edit text, button) if any of
 these are in your listItem you have to turn their focusability off in order
 for the click and hold to register with the list.

 Sincerely
 Jose C Gomez

 http://www.josecgomez.com



 On Sun, Apr 25, 2010 at 7:44 AM, Paweł Zięba pawzi...@gmail.com wrote:

 ListView is subclass of AdapterView.

 In your case try this code, paste it into onCreate method

 layout_list.setOnItemClickListener(new OnItemClickListener() {
 @Override
public void onItemClick(AdapterView? parent, View v, int
 position, long id) {
Toast.makeText(MainView.this, Id:  + id + , pos: 
 + position, Toast.LENGTH_SHORT).show();
}
 });

 layout_list.setOnItemLongClickListener(new OnItemClickListener() {
 @Override
public void onItemClick(AdapterView? parent, View v, int
 position, long id) {
Toast.makeText(MainView.this, Id:  + id + , pos: 
 + position, Toast.LENGTH_SHORT).show();
}
 });

 where MainView is your activity



 On 25 Kwi, 13:49, Reiny Song reiny.s...@gmail.com wrote:
  thank you~
 
  But I do not know how to try your recommend.
 
  the sample code are following:
 
  ListView   layout_list =
 (ListView)inflate.inflate(R.layout.main_list,null);
  MyAdapter adapter  = new MyAdapter(.)
  layout_list.setAdapter(listAdapter);
 
  I can not get the AdapterView from my listview,
 
  could you please give me some direction.
 
  2010/4/25 Paweł Zięba pawzi...@gmail.com
 
 
 
 
 
   Try methods from AdapterView instead of View:
 
   final AdapterView.OnItemClickListenergetOnItemClickListener()
   final AdapterView.OnItemLongClickListener
   getOnItemLongClickListener()
   final AdapterView.OnItemSelectedListener
   getOnItemSelectedListener()
 
   On 25 Kwi, 13:08, Reiny Song reiny.s...@gmail.com wrote:
hello,
 
I try it, but there is no any response in listview.
 
When I clicked the item in listview by mouse,
 
the OnTouchListener, OnItemSelectedListener and OnTouchListener  of
 the
listview do not response to me.
 
But when I selected the item in listview by scroll wheel,
 
the OnItemSelectedListener showed the item was selected.
 
It confuses me a lots@@
 
2010/4/25 murali raju manutd...@gmail.com
 
 did u try onItemClickListener
 
 On Sun, Apr 25, 2010 at 10:19 AM, Reiny Song 
 reiny.s...@gmail.com
   wrote:
 
 I should provide more detail about what I did,
 
 my listview contains the MyAdapter( extends simpleAdapter )
 
 I tried something (the followings are), but nothing helped me.
 
 1. I set the listview setClickable,
 setFocusableInTouchMode, setLongClickable  = true
 
 2. set the convertView in getView at MyAdapter
 
 setClickable, setFocusable ,setFocusableInTouchMode and
 setLongClickable = true
 
 But, when I click the item in listview, the item is still not
   selected.
 (but... the item can be selected by scroll wheel...)
 
 2010/4/25 Reiny reiny.s...@gmail.com
 
 Dear all,
 
 I have a problem about the the listview.
 
 My activity runs in simulator, and I use mouse to control it.
 
 When I select the item in listview by turning scroll wheel, the
 background of item becomes orange.
 
 But, when I click the item in listview, the item does not
 response
 to my action.
 
 anyone knows the reason? thank you~
 
  --
 You received this message because you are 

[android-developers] R.java

2010-04-26 Thread Ajay
Hi,
   I have to make two packages with almost same code, except for a few
changes. I thought I could give different package names for each of
the two versions. But, wherever I refer to the generated resource file
R.java, the package to which this file belongs is also changed. Is
there anyway to control the package name to which the R.java file
belongs?

Thank you,
AJ

-- 
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: About EditText inputType

2010-04-26 Thread Vinay S
Is there anything similar for EditTextPreference ?

I am trying to validate an input in Settings.xml file.

Regards,
Vinay

On Apr 26, 4:02 pm, Anurag Singh anusingh...@gmail.com wrote:
 Use

 android:digits
 android:numeric

 - Anurag Singh



 On Fri, Apr 23, 2010 at 8:48 AM, E chui.hin...@gmail.com wrote:
  Hi! I've searched for long-long time and I can't find the answer.

  EditText android:id=@+id/age
                android:inputType=number|phone/

  This will pop-up a soft keyboard with big buttons and some signs(- .
  N , * # / ), right?

  But the propose for this EditText is entering an age number.

  Can I restrict the inputType to number AND use a phone keyboard
  WITHOUT entering these signs?

  Thank you for guiding a newcomer.

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Re: Saving ArrayList to .txt file

2010-04-26 Thread Tommy
When I try to open the /data folder in what Astro File Manager shows as the
top directory (/) there is only one folder called data. Once I open that
there is nothing else in there. Do I need to add any permissions to the
mainifest file?

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
Sent: Monday, April 26, 2010 3:33 AM
To: Android Developers
Subject: [android-developers] Re: Saving ArrayList to .txt file

This piece of code works for me.

You shoudl search for your file in /data/data/your package name/files

Thanks and Regards
Kumar Bibek

String filename = test+ System.currentTimeMillis()+.txt;
ArrayListString report = new ArrayListString();
report.add(Hello);
report.add(How are you);

FileOutputStream fos;
try {
fos =
openFileOutput(filename,Context.MODE_PRIVATE);
ObjectOutputStream out = new
ObjectOutputStream(fos);
out.writeObject(report);
out.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

On Apr 26, 11:40 am, Tommy droi...@gmail.com wrote:
 Well at this point I have tried to write just a simple HELLO to the text
 file. Again it goes over the code no problem but when I search the /data
 directory there are no files or folders.

 String filename = Testing.txt;
         //stationname.getText().toString() + System.currentTimeMillis();

         FileOutputStream fos =
 openFileOutput(testing.txt,Context.MODE_PRIVATE);
         OutputStreamWriter osw = new OutputStreamWriter(fos);
         osw.write(Hello);
         osw.flush();
         osw.close();

 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
 Sent: Monday, April 26, 2010 12:33 AM
 To: Android Developers
 Subject: [android-developers] Re: Saving ArrayList to .txt file

 What do you mean by there's nothing oevr there? Objects written down
 on a file would not be in a readable format. So you can't just use a
 text reader to read the contents.

 And if you mean that the file is empty, then the process of
 serialization is what you should check first. Try with a normal Java
 program and let us know if you have any problems.

 Thanks and Regards,
 Kumar Bibek

 On Apr 26, 8:35 am, Tommy droi...@gmail.com wrote:
  Hi,

  I am trying to save an array list to a .txt file below is the code I
  am using, which runs without error but when I try to go to Astro file
  manager and browse the data folder there is nothing there.

  String filename = stationname.getText().toString() +
  System.currentTimeMillis();

          FileOutputStream fos =
 openFileOutput(filename,Context.MODE_PRIVATE);
          ObjectOutputStream out = new ObjectOutputStream(fos);
          out.writeObject(report); //Report is the ArrayList that holds
each
 of
  my station Reports.
          out.close();

  Any advice would be greatly appreciated.

  Thanks for your time,

  Tommy

  --
  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
 athttp://groups.google.com/group/android-developers?hl=en

 --
 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
athttp://groups.google.com/group/android-developers?hl=en

 --
 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
athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Re: Getting one form data on anather forn

2010-04-26 Thread Mohammad Siddiqui
Thanks

On 4/23/10, arshad arshadwk...@gmail.com wrote:

 Use Bundle and pass it subsequent activity using intent

 Eg for A has filled some values...put all values in Bundle before
 invoking ACTIVITYB form

 public class AACTIVITYextends Activity {

/* (non-Javadoc)
 * @see android.app.Activity#onCreate(android.os.Bundle)
 */

Bundle mExtra = new Bundle();

 void startformB(){


 mExtra.putString(KEY,ARSHAD);

 when invoking activity...

 Intent i = new Intent(AACTIVITY.this,BACTIVITY.class);
 //this is where data is passed to other activity
 i.putExtras(mExtra);
 startActivity(i);
 }

 }

 In ACTIVITY B get all values passed from form A.


 public class BACTIVITYextends Activity {

/* (non-Javadoc)
 * @see android.app.Activity#onCreate(android.os.Bundle)
 */

Bundle mExtras = new Bundle();

@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.myview);


///NOTE: this is where you will get all FORM A data
   //use this bundle to populate FORM B data and than
 invoke FORM C
mExtras.putAll(getIntent().getExtras());

}
 }

 The same thing you can do when invoking the third form.



 On Apr 23, 11:51 am, Mohammad Siddiqui siddiqui.m...@gmail.com
 wrote:
  This is Android application
 
  On 4/22/10, Mike dg vinb...@gmail.com wrote:
 
 
 
 
 
 
 
   Is this a web app or an Android app?
 
   -Mike dg
 
   On Apr 22, 8:29 am, Mohammad Siddiqui siddiqui.m...@gmail.com wrote:
Hi everyone,
 
i have therre consecutive form ,after filling the form one i press
 the
next button on the first form to go
to the second form then prees the next button to go to the third
form.from third form i have a button to
post the data on a specific url.the problem is that how can get the
first and second form data on the
last form
 
--
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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
For more options, visit this group athttp://
   groups.google.com/group/android-developers?hl=en
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: hw home screen works.?

2010-04-26 Thread satish bhoyar
hi can anyone help me pls..


On Sun, Apr 25, 2010 at 1:56 PM, satish bhoyar getsatonl...@gmail.comwrote:

 hi all,

 I need a help regarding HomeScreen. I was thinking hw the size of the
 Workspace is defined. LIke hw it streaches it self. is it a 9.png image or
 some thing else.
 please let me knw .
 if anyone have this information.

 thanks
 satish


-- 
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: Saving ArrayList to .txt file

2010-04-26 Thread Streets Of Boston
Maybe that's a permission issue. Astro File manager is not allowed to
look at your app's local data (data/files in its sandbox).

However, why don't you just read the contents of the text-file you
wrote? If that's successful, writing to the text-file was successful
too.

On Apr 26, 9:11 am, Tommy droi...@gmail.com wrote:
 When I try to open the /data folder in what Astro File Manager shows as the
 top directory (/) there is only one folder called data. Once I open that
 there is nothing else in there. Do I need to add any permissions to the
 mainifest file?



 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
 Sent: Monday, April 26, 2010 3:33 AM
 To: Android Developers
 Subject: [android-developers] Re: Saving ArrayList to .txt file

 This piece of code works for me.

 You shoudl search for your file in /data/data/your package name/files

 Thanks and Regards
 Kumar Bibek

 String filename = test+ System.currentTimeMillis()+.txt;
         ArrayListString report = new ArrayListString();
         report.add(Hello);
         report.add(How are you);

                 FileOutputStream fos;
                                 try {
                                         fos =
 openFileOutput(filename,Context.MODE_PRIVATE);
                         ObjectOutputStream out = new
 ObjectOutputStream(fos);
                         out.writeObject(report);
                         out.close();
                                 } catch (FileNotFoundException e) {
                                         // TODO Auto-generated catch block
                                         e.printStackTrace();
                                 } catch (IOException e) {
                                         // TODO Auto-generated catch block
                                         e.printStackTrace();
                                 }

 On Apr 26, 11:40 am, Tommy droi...@gmail.com wrote:
  Well at this point I have tried to write just a simple HELLO to the text
  file. Again it goes over the code no problem but when I search the /data
  directory there are no files or folders.

  String filename = Testing.txt;
          //stationname.getText().toString() + System.currentTimeMillis();

          FileOutputStream fos =
  openFileOutput(testing.txt,Context.MODE_PRIVATE);
          OutputStreamWriter osw = new OutputStreamWriter(fos);
          osw.write(Hello);
          osw.flush();
          osw.close();

  -Original Message-
  From: android-developers@googlegroups.com

  [mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
  Sent: Monday, April 26, 2010 12:33 AM
  To: Android Developers
  Subject: [android-developers] Re: Saving ArrayList to .txt file

  What do you mean by there's nothing oevr there? Objects written down
  on a file would not be in a readable format. So you can't just use a
  text reader to read the contents.

  And if you mean that the file is empty, then the process of
  serialization is what you should check first. Try with a normal Java
  program and let us know if you have any problems.

  Thanks and Regards,
  Kumar Bibek

  On Apr 26, 8:35 am, Tommy droi...@gmail.com wrote:
   Hi,

   I am trying to save an array list to a .txt file below is the code I
   am using, which runs without error but when I try to go to Astro file
   manager and browse the data folder there is nothing there.

   String filename = stationname.getText().toString() +
   System.currentTimeMillis();

           FileOutputStream fos =
  openFileOutput(filename,Context.MODE_PRIVATE);
           ObjectOutputStream out = new ObjectOutputStream(fos);
           out.writeObject(report); //Report is the ArrayList that holds
 each
  of
   my station Reports.
           out.close();

   Any advice would be greatly appreciated.

   Thanks for your time,

   Tommy

   --
   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
  athttp://groups.google.com/group/android-developers?hl=en

  --
  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
 athttp://groups.google.com/group/android-developers?hl=en

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

[android-developers] Network Problems when using AVP with Google API

2010-04-26 Thread Christopher
I am working on a Windows XP Machine. When running AVDs out of
Eclipse, I am getting No Network Connection when I am plugged into
my company's network and using an AVD that was built with the Google
APIs by Google Inc., Android API 7, revision 1.

If I use this same AVD (Google API) and connect to the internet
through a Verizon Wireless card, the AVD gets an Internet Connection.

If I use an AVD built with SDK Platform Android 2.1, API 7, revision
1, and connect through my company's network, the AVD gets an Internet
Connection.

Any ideas what might be blocking the internet connection on Google
API by Google  Inc., Android API 7, revsion 1 when I am on the
company network? I am guessing it is something in my company's
network, but why only with the AVD created with the Google 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


Re: [android-developers] Re: Starting default calendar and contacts application

2010-04-26 Thread Anurag Singh
Thanks Ajeet, have you set permission to write contact in your manifest.xml?

- Auurag Singh

On Mon, Apr 26, 2010 at 12:07 AM, AJ ajeet.invinci...@gmail.com wrote:

 Hi Anurag,

 You can start the contact activity in the following way:-

 Intent i = new Intent(Intent.ACTION_INSERT,People.CONTENT_URI);
 i.putExtra(ContactsContract.Intents.Insert.NAME, AJ);
 startActivity(i);

 But I am facing some problem in passing the Extra data to the
 activity. It looks that Contact in SDK 2.1 has some limitation.

 I posted my problem in the following  thread. But nobody answered.:-

 http://groups.google.com/group/android-developers/browse_thread/thread/37e59bcd5f3b4e5a#


 Thanks,
 AJ

 On Apr 25, 9:28 pm, Anurag Singh anusingh...@gmail.com wrote:
  But, there must be some standard way to do this.
 
  Trek suggest, Start an activity with it's intent set to a standard email
 URI
  - Android will find the best match of the apps that can handle that type
 of
  intent.
 
  What is the standard email URI? how it could be standard if it's not part
 of
  SDK.
 
  - Anurag Singh
 
 
 
   No mail clients are part of the Android SDK.
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://twitter.com/commonsguy
 
   Android 2.x Programming Books:http://commonsware.com/books
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Market

2010-04-26 Thread Sean Hodges
If you don't mind a potential delay after publishing the other app,
then you could query Cyrket for its package name. For instance:
http://www.cyrket.com/p/android/com.blau.android.richer/; You will
get a 200 (success) response if the app is available on the market, or
a 404 (page not found) if not. Careful not to pound the Cyket server
with requests though, or you're likely to get blocked.

I think a more sensible solution would be to handle this yourself,
publish the app with the event triggering a simple Coming soon
dialog, then publish another version with the Intent added as soon as
the other app is on the market.



On Mon, Apr 26, 2010 at 12:26 PM, Ajay aja...@gmail.com wrote:
 Hi,
   I wanted to check the availability of another app in Market from my
 app. Based on this I will have to give a message saying Coming
 soon... or show the other app in Market. I am using the following
 intent

 new Intent(Intent.ACTION_VIEW, Uri.parse(market://details?
 id=com.example.android.));

 Now, how can I catch the result which would say if the Market was able
 to find this package or not?

 Thank you,
 Ajay

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

-- 
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: Lots of lost sales due to Credit Card authorization.

2010-04-26 Thread Streets Of Boston
You may experiencing a bug, since e-mails should be sent out to
customers to update their incorrect payment details.

At least it work sometimes, since i do see customers trying to update
their payment info when authorization failed.

You lost 120 sales... only 120... I lost wy more than that. :)
But, then again, i'm happy that these checks are done, since i don't
want to pay a ton of chargebacks to fix invalid and un-authorized
transactions.

On Apr 26, 12:19 am, Paul idi...@gmail.com wrote:
 I've lost about 120 sales from the Android Market due to people not
 ever entering valid credit card information in Google Checkout. Not
 sure if they ever got the email from google telling them to do it.

 I also have to handle a lot of customer support for these issues.
 People think the app is going to download and it doesn't. Android
 Market doesn't tell them that their card didn't authorize. So they
 contact me. At least once a day I have to email someone and tell them
 to go into checkout.google.com and make sure their payment methods are
 correct.

 There has to be a better way. I think if Android Market/Google
 Checkout told the user immediately in the Android Market that they
 weren't able to authorize the card, then they would know what to do.

 Also it would be nice if buyers understood, that as a seller I don't
 get their credit card info, can't charge them, and have no control
 over the download of the app.

 Google, I love ya, but you've got to work on this issue. Just make it
 clearer to the buyer.

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Starting default calendar and contacts application

2010-04-26 Thread Anurag Singh
Thanks Mark for your valuable note.

Best Regards,
Anurag Singh

On Mon, Apr 26, 2010 at 12:11 AM, Mark Murphy mmur...@commonsware.comwrote:

 Anurag Singh wrote:
  But, there must be some standard way to do this.
 
  Trek suggest, Start an activity with it's intent set to a standard email
  URI - Android will find the best match of the apps that can handle that
  type of intent.
 
  What is the standard email URI? how it could be standard if it's not
  part of SDK.

 I believe TreKing was slightly mistaken in his choice of terms. Here is
 a slightly corrected example from the one found on AndroidSnippets.org:

 Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

 emailIntent.setType(text/plain);
 emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new
 String[]{t...@email.com});
 emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, Subject);
 emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Text);

 context.startActivity(Intent.createChooser(emailIntent, Send mail...));

 There is no Uri for sending an email. Instead, you use ACTION_SEND with
 text/plain as the MIME type and a suitable set of extras.

 By using Intent.createChooser() to create your actual Intent, you will
 let the user choose from available email clients how to send the message.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 2.0 Available!

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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: onActivityResult not being called in Activity that uses GLSurfaceView

2010-04-26 Thread Streets Of Boston
What are the launch-properties of your sub-activity?
Is it a 'singleTask' or 'singleInstance'? If so, the sub-activity
won't report a result to your main-activity's 'onActivityResult()'.

I ask this, because i was struggling with this same issue for a while
until i discovered that my sub-activity was set to 'singleTask'


On Apr 25, 11:27 pm, SChaser crotalistig...@gmail.com wrote:
 Help!

 I have an activity that, instead of getting a response back from a
 startActivityForResult, is destroyed (with no callbacks) when the
 responding activity finishes!

 The activity (call it GL) subclasses Activity and sets its contentView
  to be a GLSurfaceView. This Activity overlays a MapView and uses
 translucency to draw OpenGL objects over the Map.

 Here are the details:
 The  app that uses Intents for a menu system.

 An activity needing a menu does:

 ...startActivityForResult(intent, 0)

 to fire off the menu (a ListView).

 When the menu item is selected, the menu sets a result with:

 setResult(Activity.RESULT_OK, intent); menuActivity.finish();

 In the originating activity, the onActivityResult  should be called
 with the results.

 I have two activities - one where that works, one where it doesn't.
 Both use the same common method to do the setActivityForResult call.

 The first a MapActivity which is also the starting activity of my app.
 It has no problem using the menu system to get results.

 The second is the GL Activity, an Activity which sets it content to be
 a GLSurfaceView.

 This activity never sees onActivityResult after it sends the menu
 intent, and it also vanishes without a trace (no lifecycle methods
 called other than suspend()).

 So the flow is like this:

 MapView   intent --- MenuActivity
                                    displays list of choices
                                    receives a click on a choice
                                    sets a response
                                    calls finish()
 mapview.onActivityResult -- called with result

 mapview --- intent ---    Activity using GLSurfaceView
                                    renders shape
                                    gets a click
                                    sends an intent ---intent-MenuActivity

                                    onSuspend called
 displays list of choices

 receives a click on a choice

 sets a response

 calls finish()
                         surfaceview activity vanishes 
 unexplained magic 

 Something odd is going on here!

 Any ideas?

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Event triggers when I click around marker

2010-04-26 Thread TreKing
On Mon, Apr 26, 2010 at 1:40 AM, Nithin nithin.war...@gmail.com wrote:

 I am doing the event in opTap() method.


onTap(...) will always be called when you tap on the map. You have to
call super.onTap(...), which returns true if you actually tapped something.

boolean onTap(...)
{
 if (super.onTap(...))
{
 // Do Stuff
 return true; // Handled the tap
}
return false; // Did not handle the tap
}

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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: Starting default calendar and contacts application

2010-04-26 Thread AJ
@Anurag
I didn't need any permission, as my requirement is to launch the
Contact App.


Thanks,
AJ

On Apr 26, 4:53 pm, Anurag Singh anusingh...@gmail.com wrote:
 Thanks Ajeet, have you set permission to write contact in your manifest.xml?

 - Auurag Singh



 On Mon, Apr 26, 2010 at 12:07 AM, AJ ajeet.invinci...@gmail.com wrote:
  Hi Anurag,

  You can start the contact activity in the following way:-

  Intent i = new Intent(Intent.ACTION_INSERT,People.CONTENT_URI);
  i.putExtra(ContactsContract.Intents.Insert.NAME, AJ);
  startActivity(i);

  But I am facing some problem in passing the Extra data to the
  activity. It looks that Contact in SDK 2.1 has some limitation.

  I posted my problem in the following  thread. But nobody answered.:-

 http://groups.google.com/group/android-developers/browse_thread/threa...

  Thanks,
  AJ

  On Apr 25, 9:28 pm, Anurag Singh anusingh...@gmail.com wrote:
   But, there must be some standard way to do this.

   Trek suggest, Start an activity with it's intent set to a standard email
  URI
   - Android will find the best match of the apps that can handle that type
  of
   intent.

   What is the standard email URI? how it could be standard if it's not part
  of
   SDK.

   - Anurag Singh

No mail clients are part of the Android SDK.

--
Mark Murphy (a Commons Guy)
   http://commonsware.com|http://twitter.com/commonsguy

Android 2.x Programming Books:http://commonsware.com/books

--
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.comandroid-developers%2bunsubscr...@googlegroups.com
  android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com

For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group athttp://
  groups.google.com/group/android-developers?hl=en

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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: Finally, I published my Android/GAE based MMO War Game

2010-04-26 Thread Mike
Hey Zero,

Any idea on how Pocket Empires has managed to go from a zero in the
rankings to number 25 in less than a few weeks?  Seems a little
questionable to me based on the amount of spam being left on all of
the other top 50 apps and games promoting your game.  More
questionable still is the near constant amount of positive 5 star
feedback being left on Pocket Empires itself with nearly the same
content.  I'll stop short of accusing the own Pocket Empires team of
purposely manipulating the Android market ratings system in order to
promote the game, but it seems very suspicious and, might I say, a bit
slimy and underhanded.

- Michael

On Apr 1, 10:03 pm, ZeroCool zero...@gmail.com wrote:
 Big thanks to Android Team.
 I couldn't have done it without the help of you guys.
 If anyone is interested, search 'pocketempires' or 'pe' in Android
 Market.

-- 
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] Live Wallpaper Architecture

2010-04-26 Thread Nik Bhattacharya
Does the Live Wallpaper run in the same process as the Launcher? I
looked through the Launcher code and cannot really figure out where
the wallpaper layer fits in. I am looking at this with the lens of
memory consumption and safeguards that the Launcher has in place
against a bloated Live Wallpaper.

Thanks,
Nik

-- 
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] ADB shell sqlite

2010-04-26 Thread JHandal
  Hi
I got denied permission to open data directory(running Droid 2.01)
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Juanadb shell
C:\Users\Juan\Desktop\Android 1.5\android-sdk_r3-windows1\android-sdk-
windows\to
olsadb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
0403683B0C01801Fdevice




C:\Users\Juan\Desktop\Android 1.5\android-sdk_r3-windows1\android-sdk-
windows\to
olsadb -s 0403683B0C01801F
Android Debug Bridge version 1.0.25

C:\Users\Juan\Desktop\Android 1.5\android-sdk_r3-windows1\android-sdk-
windows\to
olsadb -s 0403683B0C01801F  shell
$ ls -l
ls -l
drwxrwxrwt root root  2010-04-26 10:18
sqlite_stmt_journals
drw-rw-rw- root root  1969-12-31 19:06 config
drwxrwx--- system   cache 2010-04-25 21:37 cache
d---rwxr-x system   sdcard_rw  2010-04-26 10:08 sdcard
lrwxrwxrwx root root  2010-04-26 10:07 d - /sys/
kernel/debug
lrwxrwxrwx root root  2010-04-26 10:07 etc - /system/
etc
drwxr-xr-x root root  2010-04-04 16:35 system
drwxr-xr-x root root  1969-12-31 19:00 sys
drwxr-x--- root root  1969-12-31 19:00 sbin
dr-xr-xr-x root root  1969-12-31 19:00 proc
-rwxr-x--- root root 6226 1969-12-31 19:00 init.sholes.rc
-rwxr-x--- root root12215 1969-12-31 19:00 init.rc
-rwxr-x--- root root 1677 1969-12-31 19:00
init.goldfish.rc
-rwxr-x--- root root   103100 1969-12-31 19:00 init
-rw-r--r-- root root  118 1969-12-31 19:00 default.prop
drwxrwx--x system   system2009-11-12 11:29 data
drwx-- root root  2010-03-22 19:20 root
drwxr-xr-x root root  2010-04-26 10:07 dev
$ sqlite .databases
sqlite .databases
sqlite: permission denied
$ cd data
cd data
$ ls-l
ls-l
ls-l: permission denied
$

-- 
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 can save an online image in my res folder in android?

2010-04-26 Thread TreKing
On Mon, Apr 26, 2010 at 3:04 AM, Maxood maqs...@salsoft.net wrote:

 Is it possible to save an online image to my res folder in android?


No.


  Please provide the relevant code.


No.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] ADB shell sqlite

2010-04-26 Thread Mark Murphy
JHandal wrote:
   Hi
 I got denied permission to open data directory(running Droid 2.01)
 Microsoft Windows [Version 6.0.6000]
 Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
 
 C:\Users\Juanadb shell
 C:\Users\Juan\Desktop\Android 1.5\android-sdk_r3-windows1\android-sdk-
 windows\to
 olsadb devices
 * daemon not running. starting it now *
 * daemon started successfully *
 List of devices attached
 0403683B0C01801Fdevice
 
 
 
 
 C:\Users\Juan\Desktop\Android 1.5\android-sdk_r3-windows1\android-sdk-
 windows\to
 olsadb -s 0403683B0C01801F
 Android Debug Bridge version 1.0.25
 
 C:\Users\Juan\Desktop\Android 1.5\android-sdk_r3-windows1\android-sdk-
 windows\to
 olsadb -s 0403683B0C01801F  shell
 $ ls -l
 ls -l
 drwxrwxrwt root root  2010-04-26 10:18
 sqlite_stmt_journals
 drw-rw-rw- root root  1969-12-31 19:06 config
 drwxrwx--- system   cache 2010-04-25 21:37 cache
 d---rwxr-x system   sdcard_rw  2010-04-26 10:08 sdcard
 lrwxrwxrwx root root  2010-04-26 10:07 d - /sys/
 kernel/debug
 lrwxrwxrwx root root  2010-04-26 10:07 etc - /system/
 etc
 drwxr-xr-x root root  2010-04-04 16:35 system
 drwxr-xr-x root root  1969-12-31 19:00 sys
 drwxr-x--- root root  1969-12-31 19:00 sbin
 dr-xr-xr-x root root  1969-12-31 19:00 proc
 -rwxr-x--- root root 6226 1969-12-31 19:00 init.sholes.rc
 -rwxr-x--- root root12215 1969-12-31 19:00 init.rc
 -rwxr-x--- root root 1677 1969-12-31 19:00
 init.goldfish.rc
 -rwxr-x--- root root   103100 1969-12-31 19:00 init
 -rw-r--r-- root root  118 1969-12-31 19:00 default.prop
 drwxrwx--x system   system2009-11-12 11:29 data
 drwx-- root root  2010-03-22 19:20 root
 drwxr-xr-x root root  2010-04-26 10:07 dev
 $ sqlite .databases
 sqlite .databases
 sqlite: permission denied
 $ cd data
 cd data
 $ ls-l
 ls-l
 ls-l: permission denied
 $
 

You cannot use adb shell to examine much on an actual device, due to
security restrictions -- it is more for use with the emulator.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

-- 
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] ADB shell sqlite

2010-04-26 Thread J Handal
Thanks Mark,it was fast

-- 
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: Deauthorizing account access in AccounManager

2010-04-26 Thread Hugo Visser
For my Engine Watch app (http://code.neenbedankt.com) I'm using
accountmanager to log on to appengine itself. Maybe this tweet of mine
helps you get started, it isn't really that hard, I found most of the
ingredients on the web and in the appengine google group.

http://twitter.com/botteaap/status/11255919099

Hugo

On Apr 25, 8:53 am, dadical keyes...@gmail.com wrote:
 I'm wading through the poorly documented AccountManager API and am a
 bit confused on a few points.  There's nothing like having to reverse-
 engineer public APIs :).

 Anyway, I'm curious about how to test the use of this API in an end-to-
 end fashion.  One very tricky aspect of the account manager is its
 ability to query the user before granting access to a particular
 account.  I can't seem to find any mention of how to un-grant
 permission for a particular application to use an account.  Does
 anyone know how this is done?

 Also, has anyone figured out what authTokenType is supposed to
 represent?  Using android seems to work for getting a google.com
 auth token, but it makes me nervous that I have no idea what this
 property is really intended for.  I could be building in a breaking
 point.

 Hey Google people, it would be really, really helpful to have a good
 working example of this API.  Even better, some comprehensible docs
 would help.  A mobile app interacting with an AppEngine backend would
 make sense for an example.

 Dave

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Live Wallpaper Architecture

2010-04-26 Thread Romain Guy
Live wallpapers do not run in Launcher's process, it was a very
important decision we made early on when designing the architecture.
Launcher knows absolutely *nothing* about the wallpaper anymore, it's
handled by the window manager.

On Mon, Apr 26, 2010 at 7:18 AM, Nik Bhattacharya nibha...@gmail.com wrote:
 Does the Live Wallpaper run in the same process as the Launcher? I
 looked through the Launcher code and cannot really figure out where
 the wallpaper layer fits in. I am looking at this with the lens of
 memory consumption and safeguards that the Launcher has in place
 against a bloated Live Wallpaper.

 Thanks,
 Nik

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




-- 
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: Live Wallpaper not Showing up on Market for Moto Droid w/ OTA 2.1

2010-04-26 Thread shaun
I decided to update the AndroidManifest.xml to include the following
line (as it should be):
 uses-feature android:name=android.software.live_wallpaper /

I added that and incremented the versionCode and versionName and that
is it.  I uploaded the change to the Android Market and again...the
app did not show up when searching for pub:Yakloin (like I always
do) and I did not see it scrolling through the search results for
Live Wallpaper (which it previously showed up under as well).  I am
talking about from my Droid only.  It has always showed up fine from
my Nexus One, and it did show up for a while on the Droid until I just
uploaded this change I mentioned.

This behavior is very strange to me.  And if it goes like last time,
the app will just start showing up after a couple of days.

In the meantime, can someone with a Droid please try to find the Live
Wallpaper?  It is called H2O Physics Toy Live Wallpaper, but you
should be able to search for pub:Yakloin to see it.

Thanks for any help.

On Apr 23, 9:42 am, shaun shashepp...@gmail.com wrote:
 Well, something changed and it now shows up on my Moto Droid on the
 Market.  Not sure what caused it to show up though, because I tested
 after each update and it did not show up.  So, I am not too confident
 about how to go forward with future AndroidManifest.xml files for the
 Live Wallpapers to come.

 Anyone with thoughts?

 On Apr 21, 5:36 pm, shaun shashepp...@gmail.com wrote:





  And this is the initial release and the version I wanted to use:

  ?xml version=1.0 encoding=utf-8?
  manifest
      xmlns:android=http://schemas.android.com/apk/res/android;
      package=com.yakloinmobile.lw.physics
      android:versionCode=101
      android:versionName=1.01

      uses-sdk android:minSdkVersion=7 /
      uses-feature android:name=android.software.live_wallpaper /
      uses-permission android:name=android.permission.VIBRATE /

      supports-screens
          android:smallScreens=true
          android:normalScreens=true
          android:largeScreens=true
          android:anyDensity=true /

      application
          android:icon=@drawable/icon
          android:label=@string/app_name

          service
              android:label=@string/app_name
              android:name=.WaterPhysicsToyLiveWallpaper
              android:permission=android.permission.BIND_WALLPAPER
              intent-filter android:priority=1
                  action
  android:name=android.service.wallpaper.WallpaperService /
              /intent-filter
              meta-data
                  android:name=android.service.wallpaper
                  android:resource=@xml/main /
          /service

          activity
              android:label=@string/settings
              android:name=.WaterPhysicsToySettings
              android:theme=@android:style/
  Theme.Light.WallpaperSettings
              android:exported=true /

      /application

  /manifest

  On Apr 21, 5:26 pm, Yakloin yakloin...@gmail.com wrote:

   I am pulling out my hair trying to figure out what to do to get my
   Live Wallpaper to show up on the Android Market for a MotoDroidwith
   the2.1OTAupdate.  It shows up and downloads just fine on Nexus One.

   I can only think that it has something to do with the
   AndroidManifest.xml file contents.  I tried all combinations for
   supports-screens including not having it at all.  I tried including/
   excluding the uses-feature
   android:name=android.software.live_wallpaper /.

   I don't like releasing my app over and over trying to debug this.
   Please help out if you can.

   Here is the file for reference (in it's current state):
   ?xml version=1.0 encoding=utf-8?
   manifest
       xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.yakloinmobile.lw.physics
       android:versionCode=104
       android:versionName=1.04

       application
           android:icon=@drawable/icon
           android:label=@string/app_name

           service
               android:label=@string/app_name
               android:name=.WaterPhysicsToyLiveWallpaper
               android:enabled=true
               android:permission=android.permission.BIND_WALLPAPER
               intent-filter android:priority=1
                   action
   android:name=android.service.wallpaper.WallpaperService /
               /intent-filter
               meta-data
                   android:name=android.service.wallpaper
                   android:resource=@xml/main /
           /service

           activity
               android:label=@string/settings
               android:name=.WaterPhysicsToySettings
               android:theme=@android:style/
   Theme.Light.WallpaperSettings
               android:exported=true /

       /application

       uses-sdk android:minSdkVersion=7 /
       uses-permission android:name=android.permission.VIBRATE /

   /manifest

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers 

Re: [android-developers] hw home screen works.?

2010-04-26 Thread TreKing
On Sun, Apr 25, 2010 at 3:26 AM, satish bhoyar getsatonl...@gmail.comwrote:

 I was thinking hw the size of the Workspace is defined.


What Workspace ? I personally have no idea what you're referring to, which
is probably why you have not received a response to your question.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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: Deauthorizing account access in AccounManager

2010-04-26 Thread polyclefsoftware
On Apr 25, 1:53 am, dadical keyes...@gmail.com wrote:
 I'm wading through the poorly documented AccountManager API and am a
 bit confused on a few points.  There's nothing like having to reverse-
 engineer public APIs :).

I feel your pain. We're about to release an app using the
AccountManager API to authenticate to GAE, and it's been a long road.

 Anyway, I'm curious about how to test the use of this API in an end-to-
 end fashion.  One very tricky aspect of the account manager is its
 ability to query the user before granting access to a particular
 account.  I can't seem to find any mention of how to un-grant
 permission for a particular application to use an account.  Does
 anyone know how this is done?

AFAIK, this is not currently possible, without reinstalling the
application with a different package name.

 Also, has anyone figured out what authTokenType is supposed to
 represent?  Using android seems to work for getting a google.com
 auth token, but it makes me nervous that I have no idea what this
 property is really intended for.  I could be building in a breaking
 point.

I use ah, because someone mentioned it worked, and I tried it, and
it worked. Yes, it would be nice to know what allowable values for
this parameter are and what the differences are between them.

 Hey Google people, it would be really, really helpful to have a good
 working example of this API.  Even better, some comprehensible docs
 would help.  A mobile app interacting with an AppEngine backend would
 make sense for an example.

That would certainly be pretty sweet, considering the AccountManager
API has been included since 2.0. Maybe FroYo will contain an actual
working example? Of course by then it will be too late for us, but
we've managed to hack something workable together.

While we're asking for things, I mentioned to the Android team in chat
office hours a while back that it would be really awesome to be able
to set up a dummy Google Account in the emulator in order to test
stuff like the AccountManager API. Otherwise, I can only test apps
that use it on physical devices, which pretty severely limits testable
configurations. But hey, we can dream, right?

-- 
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: Finally, I published my Android/GAE based MMO War Game

2010-04-26 Thread niko20
I too am pretty sure that all the comments I see about pocket empires
are just spam.

It's simply slimy behavior, and I would appreciate it if it would
stop.

-niko

On Apr 26, 9:16 am, Mike michaeldouglaskra...@gmail.com wrote:
 Hey Zero,

 Any idea on how Pocket Empires has managed to go from a zero in the
 rankings to number 25 in less than a few weeks?  Seems a little
 questionable to me based on the amount of spam being left on all of
 the other top 50 apps and games promoting your game.  More
 questionable still is the near constant amount of positive 5 star
 feedback being left on Pocket Empires itself with nearly the same
 content.  I'll stop short of accusing the own Pocket Empires team of
 purposely manipulating the Android market ratings system in order to
 promote the game, but it seems very suspicious and, might I say, a bit
 slimy and underhanded.

 - Michael

 On Apr 1, 10:03 pm, ZeroCool zero...@gmail.com wrote:

  Big thanks to Android Team.
  I couldn't have done it without the help of you guys.
  If anyone is interested, search 'pocketempires' or 'pe' in Android
  Market.

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] How to push a screen to background, without destroying the Surface?

2010-04-26 Thread Anu
I want to hide my app screen and then when the user clicks on the app
again, I want to bring it to the foreground , but I want the app to
maintain the screen that was pushed to background. Is there any way
to
do that right now?.  Because when I try to hide my app, the surface
of
my app is gettng destroyed and so when I try to relaunch the app a
new
surface is created and my app status is changing.

Regards,
Anu G.

-- 
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] How to Get the Frames directly from the encoder ?

2010-04-26 Thread Anu
Is there any way to get the audio/video frames directly from the
encoder ?. If it isnt possible now, is there any future prospect of
that happening?.

Regards,
Anu G.

-- 
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] Frame length for Mpeg-4 Codec in MediaRecorder

2010-04-26 Thread Anu
Is there any way to grab the frame length for Mpeg-4 codec using the
MediaRecorder?. Right now, I have to parse the bytes in the file to
figure out the frame starts ,for live streaming.

Regards,
Anu G.

-- 
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] preventing orientation change during video playback

2010-04-26 Thread Abhi
hello

I am workin on a video player app in which I want only the landscape
orientation active coz right now when the user tilts the phone during
video runtime, it restarts playback in that orientation.

How can I easily avoid this?

Thanks,

Abhi

-- 
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] Re: Saving ArrayList to .txt file

2010-04-26 Thread Tommy
ah I didn't think about permission issue's with Astro! The reason I didn't
just read from it was I figured better make sure it there before screwing
around... lol I'll do what you say and try to read the file after Im done
creating it and see if it works. Thanks for the input and hopefully this is
the last post about this issue :)

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Streets Of Boston
Sent: Monday, April 26, 2010 9:49 AM
To: Android Developers
Subject: [android-developers] Re: Saving ArrayList to .txt file

Maybe that's a permission issue. Astro File manager is not allowed to
look at your app's local data (data/files in its sandbox).

However, why don't you just read the contents of the text-file you
wrote? If that's successful, writing to the text-file was successful
too.

On Apr 26, 9:11 am, Tommy droi...@gmail.com wrote:
 When I try to open the /data folder in what Astro File Manager shows as
the
 top directory (/) there is only one folder called data. Once I open that
 there is nothing else in there. Do I need to add any permissions to the
 mainifest file?



 -Original Message-
 From: android-developers@googlegroups.com

 [mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
 Sent: Monday, April 26, 2010 3:33 AM
 To: Android Developers
 Subject: [android-developers] Re: Saving ArrayList to .txt file

 This piece of code works for me.

 You shoudl search for your file in /data/data/your package name/files

 Thanks and Regards
 Kumar Bibek

 String filename = test+ System.currentTimeMillis()+.txt;
         ArrayListString report = new ArrayListString();
         report.add(Hello);
         report.add(How are you);

                 FileOutputStream fos;
                                 try {
                                         fos =
 openFileOutput(filename,Context.MODE_PRIVATE);
                         ObjectOutputStream out = new
 ObjectOutputStream(fos);
                         out.writeObject(report);
                         out.close();
                                 } catch (FileNotFoundException e) {
                                         // TODO Auto-generated catch block
                                         e.printStackTrace();
                                 } catch (IOException e) {
                                         // TODO Auto-generated catch block
                                         e.printStackTrace();
                                 }

 On Apr 26, 11:40 am, Tommy droi...@gmail.com wrote:
  Well at this point I have tried to write just a simple HELLO to the
text
  file. Again it goes over the code no problem but when I search the /data
  directory there are no files or folders.

  String filename = Testing.txt;
          //stationname.getText().toString() + System.currentTimeMillis();

          FileOutputStream fos =
  openFileOutput(testing.txt,Context.MODE_PRIVATE);
          OutputStreamWriter osw = new OutputStreamWriter(fos);
          osw.write(Hello);
          osw.flush();
          osw.close();

  -Original Message-
  From: android-developers@googlegroups.com

  [mailto:android-develop...@googlegroups.com] On Behalf Of Kumar Bibek
  Sent: Monday, April 26, 2010 12:33 AM
  To: Android Developers
  Subject: [android-developers] Re: Saving ArrayList to .txt file

  What do you mean by there's nothing oevr there? Objects written down
  on a file would not be in a readable format. So you can't just use a
  text reader to read the contents.

  And if you mean that the file is empty, then the process of
  serialization is what you should check first. Try with a normal Java
  program and let us know if you have any problems.

  Thanks and Regards,
  Kumar Bibek

  On Apr 26, 8:35 am, Tommy droi...@gmail.com wrote:
   Hi,

   I am trying to save an array list to a .txt file below is the code I
   am using, which runs without error but when I try to go to Astro file
   manager and browse the data folder there is nothing there.

   String filename = stationname.getText().toString() +
   System.currentTimeMillis();

           FileOutputStream fos =
  openFileOutput(filename,Context.MODE_PRIVATE);
           ObjectOutputStream out = new ObjectOutputStream(fos);
           out.writeObject(report); //Report is the ArrayList that holds
 each
  of
   my station Reports.
           out.close();

   Any advice would be greatly appreciated.

   Thanks for your time,

   Tommy

   --
   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
  athttp://groups.google.com/group/android-developers?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android 

[android-developers] Re: graphically represent multiple list selections or dynamically change a list item view

2010-04-26 Thread applesquash
I apologize for my defensive post. After two weeks of struggling with
this problem your post touched a nerve.

I don't need help with my design, I need help making it work.

But i'll explain my design in hopes that you may have a solution.

It's a todo list.
You click a checkbox to mark an item done.
You select an item or multiple items to edit other aspects like
priority.
Multiple selection is good if you want to change many things at once.

I'm sorry if this is disturbing to you.
Guess I'm still feeling defensive.
Oh well.

On Apr 25, 5:07 pm, Mark Murphy mmur...@commonsware.com wrote:
 applesquash wrote:
  Latest update if anyone is actually reading these...
  Myselectiontrick is working but it's still wonky and selecting
  things at random.
  I believe this is due to the way the inflater works, only inflating
  one page at a time.

 What is a page in this context?

  I guess the list position repeats itself for each cached page.
  But I'm not too sure.
  Does anyone know of a setting that can make the position accurate for
  the whole list and not just the visible page?

 The position parameter passed to getView()/newView()/bindView() is
 accurate for the whole list when used properly. Since there is no
 concept of page with lists in Android, I am not sure what you mean by
 not just the visible page.

  I'm trying to create amultipleselectionlist where theselectionis
  represented graphically rather than with checkboxes.

 Why?

  My list has
  checkboxes, but I want them to serve a different purpose.

 As a user, I find your lack of consistency disturbing.

 Overall, I would not even know where to begin advising you on how to
 implement your intended design.

 I recommend that you simplify your user interface and stick to platform
 conventions that your users will expect, such as a CheckedTextView and
 CHOICE_MODE_MULTIPLE being used formultiple-selectionlists.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _Android Programming Tutorials_ Version 2.0 Available!

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Android SSL Socket problem

2010-04-26 Thread David Arm
Hi all, im developing an android aplication and im facing some
problems with SSL. I tested the SSL communication between my server
and a java client at it works without problems, and now im having
problems trying to code an android client.

I imported my truststore on res/raw folder and so on, but the main
problem (even if i read the API) is that I dont know how to create the
sockets to comunicate with the server using that keystore. For example
I tried this:

 InputStream mIS =
context.getResources().openRawResource(R.raw.truststoreclient);

   keyStore = KeyStore.getInstance(BKS);
   keyStore.load(mIS, aquabona.toCharArray());


mKMF = KeyManagerFactory.getInstance(X509);
mKMF.init(keyStore,
truststoreclient.toCharArray());
KeyManager[] mKM = mKMF.getKeyManagers();
SSLContext sc = SSLContext.getInstance(TLS);
TrustManagerFactory tmf =
TrustManagerFactory.getInstance(X509);
tmf.init(keyStore);
sc.init(mKM, tmf.getTrustManagers(), new
java.security.SecureRandom());

SSLSocketFactory sslsocketfactory = new
SSLSocketFactory(keyStore);

   //Si hacemos la consulta a un unico servidor
   if (ips.size()  2  ipPorts.size()  2) {


   String singleServer = ips.get(0);
   int singlePort = 
Integer.parseInt(ipPorts.get(0));

   Socket soc = sslsocketfactory.createSocket();

   HttpParams params = new  BasicHttpParams();
   HttpProtocolParams.setVersion(params,
HttpVersion.HTTP_1_1);
   HttpProtocolParams.setContentCharset(params, 
utf-8);
   
params.setBooleanParameter(http.protocol.expect-
continue, false);

   Socket socket = 
sslsocketfactory.connectSocket(soc,
singleServer, singlePort, null, 0, params);

And now im having problems with certificates...

So is there an easier way to code up a SSL socket implementation on
android that uses that keystore?
Post some code, examples or ideas please.

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


[android-developers] Pluggable SurfaceView

2010-04-26 Thread Nik Bhattacharya
I would like to create an animated surface view whose contents are
pluggable.  A picture is worth many words, so I uploaded a quick
architecture diagram of what I am trying to achieve.  
http://twitpic.com/1inr0q/full
(hopefully this link goes through otherwise my post won't make much
sense).  Essentially its a surface view that calls an interface
Renderer to draw the canvas on each frame, with the intention that the
concrete implementation of the Renderer interface is provided by other
applications.

I am trying to figure out how to do the following:

1.  How do I load the concrete class that implements the Renderer
interface in my pluggable surface view?
2.  How do I let the concrete class that implements Renderer load
resources from its own apk (essentially using its own context)?

I am having a hard time getting my head around all the classloading/
resource loading issues involved here.

Thanks,
Nik

-- 
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 focus behaving different when using minSdkVersion=3

2010-04-26 Thread jason.delport
Hi,

Thanks for the response.

Your questions were helpful. I changed the SDK version I was running
my code on from 1.5 to 1.6 and implemented the below attributes in the
manifest and everything works as it should (on 1.6+ devices).

uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4 /

However Eclipse shows a warning that the minSdkVersion is lower than
the targetSdkVersion version. Do you know if this can cause problems?

Also, by building my app while running the code on the 1.6 SDK will it
still be available to 1.5 devices in the market?

Thanks in advance.

Cheers,

Jason


On Apr 24, 6:48 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Looks like a bug in the Android framework.

 What is your targetSdk value?
 What actual SDK version are you running your code on?

 On Mar 15, 10:13 pm, licorna lico...@gmail.com wrote:





  A few days ago I was trying to fix this issue: I have a header (three
  ImageButton's) and a ListView. If I use the dpad, pressing DOWN to
  focus the ListView, the ListView shows as selected the seventh or
  eighth row, not the first one.

  What I need to do is that the first element of the ListView get the
  focus (or selection) when I use the dpad, from another screen
  component, but instead, the seventh or eighth is selected.

  I had minSdkVersion=3 in my manifest. When I changed it to
  minSdkVersion=4 it worked as expected (first row selected). Don't know
  why, but there is a difference between both.

  I'm posting it right here if someone else has the same problem as me.
  The fring application has the very same problem in contact list.

  Salud,
  Rodrigo

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Changing Launch activity seems to not work on Update

2010-04-26 Thread jgostylo
For a new update I am changing the start-up workflow for the
application.  Part of this is setting the
android.intent.category.LAUNCHER from one activity to another in my
manifest.

When I run an update from what is on the market to what I download
from my website the application starts in the Activity where it used
to start before the update.  When I uninstall the application and
install it from the same package I got from my website it starts in
the Activity where I have now specified it to start.  Shorter version:
Update fails to update launching activity, uninstall-reinstall does
update the launching activity.

Is this a known issue?  Do I really need to add logic to correct for
people who update the app instead of installing fresh?  Asking people
to uninstall for an update is not a viable option.  Is there something
I can do to clean out whatever is getting saved that is causing the
app to launch with the incorrect Activity?

-- 
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 determine contacts Gmail/Google voice group membership from android phone/emulator

2010-04-26 Thread reekotubbs
After updating the code to 2.1, I found one solution using the
following code:

d = context.getContentResolver().query( Data.CONTENT_URI,
 new String[] {ContactsContract.Contacts.DISPLAY_NAME,
 GroupMembership.GROUP_SOURCE_ID,
 GroupMembership.GROUP_ROW_ID},
 GroupMembership.GROUP_ROW_ID + = + groupid +  AND  +
Data.MIMETYPE + =' +
 GroupMembership.CONTENT_ITEM_TYPE + ',
 null,
 DISPLAY_NAME);


The accomplishes the goal the long route. But when I try to cut a lot
of cursor placements with the following code everything fails:

d = context.getContentResolver().query( Data.CONTENT_URI,
 new String[] {ContactsContract.Contacts.DISPLAY_NAME,
 GroupMembership.GROUP_SOURCE_ID,
 GroupMembership.GROUP_ROW_ID},
 GroupMembership.DisplayName + = + name +  AND  +
Data.MIMETYPE + =' +
 GroupMembership.CONTENT_ITEM_TYPE + ',
 null,
 DISPLAY_NAME);

Can anyone point out why it fails and what I can do to correct this.

Thank you in advance.

On Apr 22, 6:02 am, reekotubbs reekotu...@gmail.com wrote:
 Hello all,

 I have a OutGoingCallReceiver setup to catch outgoing calls, it
 attempts to check their group membership and return which groups the
 contacts are part of.

 I have been using 1.5 code to accomplish this on the emulator. It
 works for users I create, because I have to add them to the groups I
 am looking for, but when I do this on a live android phone with gmail
 synced, it does not pull back group membership. Any help on this.

 here is some of the code:

                 d =
 context.getContentResolver().query(Contacts.GroupMembership.CONTENT_URI,
 projection2,
                        filterString2,null, null);
                 if(d.moveToFirst()){
                 String notes2 =
 c.getString(c.getColumnIndex(Contacts.GroupMembership.PERSON_ID));
                 sGroupName =
 d.getString(d.getColumnIndex(Contacts.GroupMembership.NAME));
                 return (sGroupName);

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] Changing Launch activity seems to not work on Update

2010-04-26 Thread Mark Murphy
jgostylo wrote:
 For a new update I am changing the start-up workflow for the
 application.  Part of this is setting the
 android.intent.category.LAUNCHER from one activity to another in my
 manifest.
 
 When I run an update from what is on the market to what I download
 from my website the application starts in the Activity where it used
 to start before the update.  When I uninstall the application and
 install it from the same package I got from my website it starts in
 the Activity where I have now specified it to start.  Shorter version:
 Update fails to update launching activity, uninstall-reinstall does
 update the launching activity.
 
 Is this a known issue?  Do I really need to add logic to correct for
 people who update the app instead of installing fresh?  Asking people
 to uninstall for an update is not a viable option.  Is there something
 I can do to clean out whatever is getting saved that is causing the
 app to launch with the incorrect Activity?

Which device are you testing this on?

I seem to recall some HTC Heros having a problem similar to this one,
several months ago.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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] Can you have a paid app where the content expires after 1 year?

2010-04-26 Thread Gregory Moore
I would like to create an application where the user pays for the
application and then they have access to the content associated with
the application for one year.   Kind of like a 1 year subscription.
Is this allowed with Android Market?   Once the user downloads the
content, they can keep it forever,  I am mostly concerned with how
long do I have to keep the content that the application downloads and
uses accessible.

-- 
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 determine contacts Gmail/Google voice group membership from android phone/emulator

2010-04-26 Thread reekotubbs
After updating the code to 2.1, I found one solution using the
following code:

d = context.getContentResolver().query( Data.CONTENT_URI,
 new String[] {ContactsContract.Contacts.DISPLAY_NAME,
 GroupMembership.GROUP_SOURCE_ID,
 GroupMembership.GROUP_ROW_ID},
 GroupMembership.GROUP_ROW_ID + = + groupid +  AND  +
Data.MIMETYPE + =' +
 GroupMembership.CONTENT_ITEM_TYPE + ',
 null,
 DISPLAY_NAME);

This accomplishes one of my goal. But when I try to change the code to
the following everything fails:

d = context.getContentResolver().query( Data.CONTENT_URI,
 new String[] {ContactsContract.Contacts.DISPLAY_NAME,
 GroupMembership.GROUP_SOURCE_ID,
 GroupMembership.GROUP_ROW_ID},
 GroupMembership.DisplayName + = + name +  AND  +
Data.MIMETYPE + =' +
 GroupMembership.CONTENT_ITEM_TYPE + ',
 null,
 DISPLAY_NAME);

Can anyone point out why it fails and what I can do to correct this.

Thank you in advance.

On Apr 22, 6:02 am, reekotubbs reekotu...@gmail.com wrote:
 Hello all,

 I have a OutGoingCallReceiver setup to catch outgoing calls, it
 attempts to check their group membership and return which groups the
 contacts are part of.

 I have been using 1.5 code to accomplish this on the emulator. It
 works for users I create, because I have to add them to the groups I
 am looking for, but when I do this on a live android phone with gmail
 synced, it does not pull back group membership. Any help on this.

 here is some of the code:

                 d =
 context.getContentResolver().query(Contacts.GroupMembership.CONTENT_URI,
 projection2,
                        filterString2,null, null);
                 if(d.moveToFirst()){
                 String notes2 =
 c.getString(c.getColumnIndex(Contacts.GroupMembership.PERSON_ID));
                 sGroupName =
 d.getString(d.getColumnIndex(Contacts.GroupMembership.NAME));
                 return (sGroupName);

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] DownloadManager - simultaneous multiple downloads

2010-04-26 Thread chris r
Does the browser download manager supports simultaneous mutiple
downloads? If yes, is there a limit on the maximum number of downloads
that can go on at a time?

-- 
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: Finally, I published my Android/GAE based MMO War Game

2010-04-26 Thread Robert Green
Yes, it is effectively hacking the rating system of the market to
climb up much higher/faster than it should.

It is because it uses a referral system like Gangwars uses wherein
users post referral codes as comments to boost their in-game character
or stats.  I personally think that any app which deliberately is
designed to have users leave comments with codes for other users
(which will no doubt be 5-star) in order to succeed at the app/game is
using the market in bad faith.

Look at both apps - 99% of the comments are (5 Stars) - Add me
OQ23UW or (5 Stars) - Use my code IUWENW for 200 gems!  - That is
artificial rating inflation.

Google should spend a little time discussing this because if every
game started doing that to compete, the market rating system would
become completely ineffective.  I see this sort of thing becoming such
a menace that the top 20-30 games are simply ones with those market
hacks.  I hope they stop it before it gets to that point.

On Apr 26, 10:12 am, niko20 nikolatesl...@yahoo.com wrote:
 I too am pretty sure that all the comments I see about pocket empires
 are just spam.

 It's simply slimy behavior, and I would appreciate it if it would
 stop.

 -niko

 On Apr 26, 9:16 am, Mike michaeldouglaskra...@gmail.com wrote:





  Hey Zero,

  Any idea on how Pocket Empires has managed to go from a zero in the
  rankings to number 25 in less than a few weeks?  Seems a little
  questionable to me based on the amount of spam being left on all of
  the other top 50 apps and games promoting your game.  More
  questionable still is the near constant amount of positive 5 star
  feedback being left on Pocket Empires itself with nearly the same
  content.  I'll stop short of accusing the own Pocket Empires team of
  purposely manipulating the Android market ratings system in order to
  promote the game, but it seems very suspicious and, might I say, a bit
  slimy and underhanded.

  - Michael

  On Apr 1, 10:03 pm, ZeroCool zero...@gmail.com wrote:

   Big thanks to Android Team.
   I couldn't have done it without the help of you guys.
   If anyone is interested, search 'pocketempires' or 'pe' in Android
   Market.

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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: Using Swype on Custom view

2010-04-26 Thread Niral Shah
We have Ontouch Listener in View. However, when virtual keyboard(vkb)
is launched, and input mode is set as swype, if user swypes, he see
the lines across the vkb and even at times the letters to choose from.
However, the Ontouch/application is not receiving any events to be
handled. So, any inputs from user are not recognized/written in text
box. If, in the swype settings we set  automatically include space at
the end of word,  application gets key_space event.
Is there is some mechanism to enable/detect the swype mode?

Thanks,
Niral

On Apr 24, 12:22 pm, Kumar Bibek coomar@gmail.com wrote:
 Implement the onTouch Listener for your view. What problems are you
 having? Can  you be specific?

 Thanks and Regards,
 Kumar Bibek

 On Apr 23, 10:18 pm, Niral Shah niralhs...@gmail.com wrote:



  Trying to supportSwypeon application for Android.  The code isn't
  using Android's native EditTextView but our own custom View. What  API
  can be used to retrieve the text once aswypehas been completed and
  what callback method we should expect in our View?

  Hoping to get feedback... Thanks!

  Niral

  --
  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 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 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 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
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] preventing orientation change during video playback

2010-04-26 Thread Felipe Silveira
Hi Abhi,

You need to do 2 things:

1) Add android:configChanges=orientation to the activity declaration on
your manifest file. Something like this:
activity android:name=activity
...
 android:configChanges=orientation

2) Override method onConfigurationChanged() in your activity. To learn more:
http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)


Felipe Silveira
felipesilveira.com.br

On Mon, Apr 26, 2010 at 12:31 PM, Abhi abhishek.r.sha...@gmail.com wrote:

 hello

 I am workin on a video player app in which I want only the landscape
 orientation active coz right now when the user tilts the phone during
 video runtime, it restarts playback in that orientation.

 How can I easily avoid this?

 Thanks,

 Abhi

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Felipe Silveira
http://www.felipesilveira.com.br
-

-- 
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] Can you have a paid app where the content expires after 1 year?

2010-04-26 Thread TreKing
On Mon, Apr 26, 2010 at 11:38 AM, Gregory Moore
gregoryamoore...@gmail.comwrote:

 Is this allowed with Android Market?


Based on some passed discussions on the topic, pretty much. As long as you
only charge once for the app you distribute via the market, what you do on
the backend is your business.


 Once the user downloads the content, they can keep it forever,  I am mostly
 concerned with how long do I have to keep the content that the application
 downloads and uses accessible.


If I understand you correctly, wouldn't this render you app useless to
anyone trying it after the 1 year (or whatever) period you provide the
content? What's the point of that?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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: Deauthorizing account access in AccounManager

2010-04-26 Thread brian

 Also, has anyone figured out what authTokenType is supposed to
 represent?

AFAIK, it is a account specific value.  Your implementation of
AbstractAccountAuthenticator can enforce any or no restrictions or
conventions on its use. Note, this is only my read, your mileage may
vary.



 Anyway, I'm curious about how to test the use of this API in an end-to-
 end fashion.  One very tricky aspect of the account manager is its
 ability to query the user before granting access to a particular
 account.  I can't seem to find any mention of how to un-grant
 permission for a particular application to use an account.  Does
 anyone know how this is done?

Agreed, it is tricky.  I've investigated and AFAIK there is no way for
your implementation of AbstractAccountAuthenticator to determine who
is calling it.  I looked and Binder.getCallingUid() and
Binder.getCallingPid() are not populated with the caller's values,
CallingUid is always 1000

That leaves two options:
 - some convention of your own device imposed on authTokenType
 - passing options Bundle to getAuthToken() that your authenticator
can interrogate

As far as un-granting, perhaps you could either
 - return authTokens of limited lifetime
 - call AccountManager.removeAccount


See:
http://developer.android.com/reference/android/accounts/AccountManager.html#getAuthToken(android.accounts.Account,
java.lang.String, android.os.Bundle, android.app.Activity,
android.accounts.AccountManagerCallbackandroid.os.Bundle,
android.os.Handler)

http://developer.android.com/reference/android/accounts/AbstractAccountAuthenticator.html#getAuthToken(android.accounts.AccountAuthenticatorResponse,
android.accounts.Account, java.lang.String, android.os.Bundle)





-- 
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] Re: Saving ArrayList to .txt file

2010-04-26 Thread Mark Murphy
Tommy wrote:
 Seems it was a permission issue with Astro when view that directory. How can
 I view the /data directory. Is there a way to use windows explorer when the
 phone is connected or anything?

No. You cannot view the /data directory on a production device without
rooting it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 
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: Motorola Droid JPEG files not standard?

2010-04-26 Thread Jules
Thank you for your comments, but I posted my original question after I
spoke with the developer about the problem, and they said it was the
file that the Motorola Droid is making that is the problem.

How can I prove this either way?

-- 
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] Re: Saving ArrayList to .txt file

2010-04-26 Thread Tommy
Ah I see. I'll do my research on rooting and see if I feel like bothering
with it.

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
Sent: Monday, April 26, 2010 1:32 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Re: Saving ArrayList to .txt file

Tommy wrote:
 Seems it was a permission issue with Astro when view that directory. How
can
 I view the /data directory. Is there a way to use windows explorer when
the
 phone is connected or anything?

No. You cannot view the /data directory on a production device without
rooting it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

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

-- 
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   3   >