[android-developers] Re: ListView problem is back.

2009-11-14 Thread Sergey Vasilinets
Goog Morning Dan,
Thank you for your reply.
This project is very simple and there isn't such functions as delete
and edit. That's why only action with the size of adapter is adding
and it's in safe method of AsyncTask

On 14 ноя, 06:52, Dan Dumont ddum...@gmail.com wrote:
 I'm pretty sure that if the size of the adapter changes while the layout is
 being calculated you will get this exception.

 All additions, deletions, and data updates should be done in the UI thread I
 think.
 Using an AsyncTask is one way to do this.   Make sure that each piece of
 data your background process produces is added to the adapter in the safe
 methods of the AsyncTask.

 On Fri, Nov 13, 2009 at 5:43 PM, Sergey Vasilinets 

 sergey.vasilin...@googlemail.com wrote:
  Hello,
  I have a error 11-14 01:23:23.204: ERROR/AndroidRuntime(730):
  java.lang.IllegalStateException: The content of the adapter has
  changed but ListView did not receive a notification. Make sure the
  content of your adapter is not modified from a background thread, but
  only from the UI thread.
  .  This error was discussed earlier here. I took the advices given
  there, but they didn't solve problem completely.
  My ListView fills in without exception. But if I've begun to click
  (frequently) on elements of listview , while it is filling in, i see
  that error.
  I'm  using the ListView + Cursor , and  I'm sure that the cursor is
  updated from the main thread (via AsyncTask, also I tried Handlers
  with post() , but it works the same)

  I wrote specially simple project to show my problem, and it's here :
 http://listexample.googlecode.com/

  I'm looking forward to your answers to know what I'm doing wrong.

  PS Sorry for my bad english.

  Sergey Vasilinets.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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: Help! Force close after renaming package

2009-11-14 Thread FJMustak
I'm not exactly sure how to display the stack-trace in eclipse... But
here is exactly what I did:
- Using the Snake example that came with the 1.1 SDK, I replaced
com.example.android.snake with com.example.android.snake2 in the .java
files, and in the manifest.  I also renamed the directory from /com/
example/android/snake to /com/example/android/snake2
then I ran the package using a 1.6 AVD (G1)
I tried several of the Android 1.1 SDK examples, and most of them
worked fine after I renamed the package, the exceptions were
lunarlander and snake...


On Nov 13, 1:18 pm, TreKing treking...@gmail.com wrote:
 What does the stack-trace look like when it force-closes?

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

 On Fri, Nov 13, 2009 at 5:52 AM, FJMustak fjmus...@gmail.com wrote:
  I have modified a sample app, and it works fine.  When I rename the
  package though, it force closes.  I have modified the package name in
  all the .java files, as well as the manifest, in addition to the
  physical directory structure.  I've even tried to create a project
  from scratch and copy the relevant code in.  Any ideas what could be
  causing this? Am I missing something?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] Strategy for installing large apps on Archos 5 tablet

2009-11-14 Thread westmeadboy
I have an app which has a download size of about 7MB and an installed/
configured size of about 25MB.

So far, I've been handling this by using the SD card for the baulk of
the data. This works fine although the installation process is a
little cumbersome.

I notice the smallest of the Archos 5 tablets is 8GB.

Can someone confirm whether this is all part of the internal memory?
In other words, can /data/data/com.mypackage fill this memory
(potentially).

If so, does this mean there is a good chance that
getExternalStorageDirectory() will quite often return null??? -
because people will have less need to use an external SD card...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Restore Previously saved Cookie on HttpClients

2009-11-14 Thread vekexasia
Hello there,

I'm looking for a way to restore the previously saved cookies on the
HttpClient. Have someone tried this before?

Bests, Andrea

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Strategy for installing large apps on Archos 5 tablet

2009-11-14 Thread Mark Murphy
westmeadboy wrote:
 I have an app which has a download size of about 7MB and an installed/
 configured size of about 25MB.
 
 So far, I've been handling this by using the SD card for the baulk of
 the data. This works fine although the installation process is a
 little cumbersome.
 
 I notice the smallest of the Archos 5 tablets is 8GB.

Really? I thought my 32GB flash one was the smallest. Maybe that's just
the smallest I could find over here.

 Can someone confirm whether this is all part of the internal memory?
 In other words, can /data/data/com.mypackage fill this memory
 (potentially).

It is not. At least not with how we would probably use the term.

System storage on my ARCHOS is 114MB right now. I have a bunch of apps
installed, but most are tiny book samples.

Internal storage is 30GB, of which about 20.5GB are presently
available, after I loaded some content on.

And, of course, while writing this email, I got another lovely
spontaneous reboot of the device...

 If so, does this mean there is a good chance that
 getExternalStorageDirectory() will quite often return null??? -
 because people will have less need to use an external SD card...

I haven't tried that yet, though I will make a point to do so next week.

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

Android App Developer Training: 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] How to control the playing of a song over Multiple Activities...

2009-11-14 Thread Shre555
Suppose I want to start a song in Activity A see to it that it plays
in Activity B when I move from Activity A to B Now after moving from
Activity B to Activity C I want to stop that song and play another
song.

PleaseI need Help on this cant figure it out some how

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 control the playing of a song over Multiple Activities...

2009-11-14 Thread RichardC
Use a service to play your song(s), control/monitor the service from
your Activities A, B and C

--
RichardC

On Nov 14, 11:34 am, Shre555 shreyas1...@gmail.com wrote:
 Suppose I want to start a song in Activity A see to it that it plays
 in Activity B when I move from Activity A to B Now after moving from
 Activity B to Activity C I want to stop that song and play another
 song.

 PleaseI need Help on this cant figure it out some how

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Problem with communicating Thread with progressBar

2009-11-14 Thread Lance Nanek
Is this what you are trying to do?
final Handler mHandler = new Handler() {
public void handleMessage(Message msg) {
Log.i(TAG, Received message. Checking if location still 
null.);

if(location!=null){
Log.i(TAG, Location not null. Dismissing dialog.);
dismissDialog(DIALOG1_KEY);
} else {
Log.i(TAG, Location null. Sending delayed message to 
check again
later.);
sendEmptyMessageDelayed(0, 100);
}
}
};
showDialog(DIALOG1_KEY);
mHandler.sendEmptyMessageDelayed(0, 100);

No new thread needed. That said, why not just have whatever sets the
location to not be null also trigger the dialog to be dismissed? If it
is on another thread it can send the Location in a message and have
the assignment and dismiss happen on the UI thread just as easily as
the above causes the check to happen on the UI thread.

Re Looper#prepare and Looper#loop, you would only need to call those
if you created a Handler on your new thread. You are creating the
Handler on the thread that was creating your new thread. If that
thread is the UI thread, it doesn't need the looper calls because it
already has a message queue running. Looper#loop doesn't cause your
own code to loop anyway, it causes the code that gives out messages to
handlers to loop.

On Nov 14, 5:22 am, adag adjo...@googlemail.com wrote:
 Hello,

 Here is my code:
 --
 final Handler mHandler = new Handler(){
                                 public void handleMessage(Message msg) {
                                         if(location!=null){
                                                 Log.i(TAG, got message from 
 handler);
                                                 dismissDialog(DIALOG1_KEY);
                                                 //this.getLooper().quit();
                                         }
                                 }
                         };
                         showDialog(DIALOG1_KEY);

                         new Thread(new Runnable() {

                                 public void run() {

                                         Looper.prepare();
                                                                         try {
                                                                               
   Thread.sleep(100);
                                                                         } 
 catch (InterruptedException e) {
                                                                               
   // TODO Auto-generated catch block
                                                                               
   e.printStackTrace();
                                                                         }
                                                                 
 mHandler.sendEmptyMessage(0);
                                         Looper.loop();
                                 }//end of run
                         }).start();
 
 The problem is as follows:
 progressBar is showing correctly. mHandler obtains the message but
 only once(for the first time). But I need to make it in loop(as
 Looper.loop should have worked in this case), so it calls mHandler
 handleMessage in every loop(but its not happening in this case).
 The outcome progressBar kept on rotating though the condition in the
 handleMessage (if(location!=null) )is getting satisfied in the mean
 time of the active progressbar.
 How can I make mHandle,sendEmptyMessage to call in each loop so I can
 check for this (if(location!=null)) condition.

 Any Suggestion would be very helpful

 ag

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Securing a paid app

2009-11-14 Thread jax
I am wondering how I might go about securing a paid app on Android.

I am thinking of selling the application from my own website via
PayPal, however, how will I stop people from sharing it with their
friends etc.  Does Android have any type of native support for this?

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


[android-developers] Re: Problem with communicating Thread with progressBar

2009-11-14 Thread adag
Lance,
Wonderful.
Thanks very much for your kind explanation.

Re,
ag

On Nov 14, 11:53 am, Lance Nanek lna...@gmail.com wrote:
 Is this what you are trying to do?
 final Handler mHandler = new Handler() {
         public void handleMessage(Message msg) {
                 Log.i(TAG, Received message. Checking if location still 
 null.);

                 if(location!=null){
                         Log.i(TAG, Location not null. Dismissing dialog.);
                         dismissDialog(DIALOG1_KEY);
                 } else {
                         Log.i(TAG, Location null. Sending delayed message to 
 check again
 later.);
                         sendEmptyMessageDelayed(0, 100);
                 }
         }};

 showDialog(DIALOG1_KEY);
 mHandler.sendEmptyMessageDelayed(0, 100);

 No new thread needed. That said, why not just have whatever sets the
 location to not be null also trigger the dialog to be dismissed? If it
 is on another thread it can send the Location in a message and have
 the assignment and dismiss happen on the UI thread just as easily as
 the above causes the check to happen on the UI thread.

 Re Looper#prepare and Looper#loop, you would only need to call those
 if you created a Handler on your new thread. You are creating the
 Handler on the thread that was creating your new thread. If that
 thread is the UI thread, it doesn't need the looper calls because it
 already has a message queue running. Looper#loop doesn't cause your
 own code to loop anyway, it causes the code that gives out messages to
 handlers to loop.

 On Nov 14, 5:22 am, adag adjo...@googlemail.com wrote:

  Hello,

  Here is my code:
  --
  final Handler mHandler = new Handler(){
                                  public void handleMessage(Message msg) {
                                          if(location!=null){
                                                  Log.i(TAG, got message 
  from handler);
                                                  dismissDialog(DIALOG1_KEY);
                                                  //this.getLooper().quit();
                                          }
                                  }
                          };
                          showDialog(DIALOG1_KEY);

                          new Thread(new Runnable() {

                                  public void run() {

                                          Looper.prepare();
                                                                          try 
  {
                                                                              
      Thread.sleep(100);
                                                                          } 
  catch (InterruptedException e) {
                                                                              
      // TODO Auto-generated catch block
                                                                              
      e.printStackTrace();
                                                                          }
                                                                  
  mHandler.sendEmptyMessage(0);
                                          Looper.loop();
                                  }//end of run
                          }).start();
  
  The problem is as follows:
  progressBar is showing correctly. mHandler obtains the message but
  only once(for the first time). But I need to make it in loop(as
  Looper.loop should have worked in this case), so it calls mHandler
  handleMessage in every loop(but its not happening in this case).
  The outcome progressBar kept on rotating though the condition in the
  handleMessage (if(location!=null) )is getting satisfied in the mean
  time of the active progressbar.
  How can I make mHandle,sendEmptyMessage to call in each loop so I can
  check for this (if(location!=null)) condition.

  Any Suggestion would be very helpful

  ag



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


[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
No problem on the Android 2.0 emulator...
I'm testing on 1.5 emulator...

On 14 nov, 01:43, Pierre pierredur...@gmail.com wrote:
 Do you know if it's a bug ?

 Is it possible to receive UDP packet on android ?
 Is there any example ?

 On 12 nov, 22:27, Pierre pierredur...@gmail.com wrote:

  each time i call receive(), i receive the first byte of the received
  packet

  On Nov 12, 10:14 pm, Dan Sherman impact...@gmail.com wrote:

   Subsequent calls just block until the timeout?

   - Dan

   On Thu, Nov 12, 2009 at 3:52 PM, Pierre pierredur...@gmail.com wrote:
I receive only the first byte of my udp packet...

On Nov 12, 8:18 pm, Dan Sherman impact...@gmail.com wrote:
 We've had issues with UDP packets coming in off the socket
non-reassembled.

 See what happens with multiple reads, see if you get back the expected
 packet length in total...

 - Dan

 On Thu, Nov 12, 2009 at 2:16 PM, Pierre pierredur...@gmail.com 
 wrote:
  I use Android 1.5 on HTC Hero

  My code (udp server on my phone) :

  this.socket = new DatagramSocket(port);
  byte[] array = new byte[500];
  DatagramPacket packetIn = new DatagramPacket(array,500);
  this.socket.receive(packetIn);
  System.out.println(packet length  + packetIn.getLength());

  Packet length is ALWAYS 1, even if i send larger packets !
  I don't understand why ...

  When i use Wireshark, i see normal packets.

  Is it a bug ?
  This code works on Windows.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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 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: App name/icon problems on Hero after reboot

2009-11-14 Thread AngelOD
Hi,

I would just like to add here, that I have a Scandinavian HTC Hero,
and I've tried to recreate several of these errors, without luck, so
whatever it is, that causes it, I'd have to assume it's not in the
Scandinavian release of the firmware. Just in case someone wanted to
note that to HTC during one of (I imagine) countless emails to them,
since the fault is more than likely on their part, even if they say
they can't recreate it themselves.

Cheers,
Tristan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Growing pains for Android developers??

2009-11-14 Thread gosh
I think you hit the 'nail on the head' Niko with your We can't judge
Google based on knowledge we DONT have. - and maybe its the legal
team who are driving the car.

The tech side of Android, including this group's info-feeders and
strokers of the many considerable egos amongst us, are Great - and
more power to them.
But, if a publisher is trying to build a business plan upon
development on Android, there are no available timeframes around the
marketing aspects, and no avenue to find out whether or not the
marketing aspects are in hand. I.e. Is there a marketing strategy for
Android at all? Publishers have to base any business plans on faith,
hope, hunches and hearsay.

E.g. Unlike you, many publishers cannot sell their applications 'at
all' (to experience the low volumes;) because they are from countries
that are not amongst the current 9 where publishers can. e.g.
Australia is still missing from that list. No one from Google can say
anything about that - I've tried many info channels to no avail. Not
just a time-envelope of when it may be added, but even whether it will
'ever' be added (e.g. Will ads within free apps supersede customer
payment for apps entirely? Will Chrome OS become the main game? Should
we be moving more development to Flash and away from Java? I.e. In
this info vacuum comes speculation). Its not the programmers here
whinging (at my company), its the Business Manager.

Stepping back from the fray several hundred yards for some perspective
on why people may grumble a bit (whether or not they are
'programmers') - It is a remarkable thing that a company such as
Google, which is largely built upon search, itself built upon
information produced by other people and other companies (web-site
content; scanned books, uploaded video, etc), does itself make so
little of its own information available - and keeping it from its
early adopter developers and publishers, of all people. Personally, I
am surprised at how many people don't 'whing' at all.


On Nov 14, 3:38 am, niko20 nikolatesl...@yahoo.com wrote:
 Ok, let me answer some of these myself.

 App sales sluggish - well android is still a growing platform, and yes
 the latest improvements to the app store have helped, as well as all
 the new phone releases as well, I'm seeing about double the orders per
 day as before. Not to mention that we finally will probably actually
 have customers that aren't also developers.

 ADP - you can just get a droid phone and develop with it. The only
 reason to have an ADP is so you can flash it with different ROMS. If
 you want to test against Android 2.0 you can just use a DROID to
 develop with. Any android device can be used for debugging and
 development.

 The Google market has improved over the last six months and will
 likely improve again. Having on 325 characters may seem like a
 restriction, but it does enable people's devices to download the data
 faster, as well as preventing too much spam in their comments (like
 keywords, and other garbage the is irrevlevant), that the apple Iphone
 app store suffers from. Some of the apps I've looked at on the IPhone
 store don't even say what they do in their description! It's usually a
 little TOO long winded!

 Rumor and conjecture - the rules and agreements between Google and
 developers are quite clearly stated in the Developer agreement. Some
 people want to read between the lines and have hissy fits about every
 little detail. Maybe that is just the way programmers are. But it's
 pretty much standard legal fare. A lot of what you may see on this
 board is just whining about small details that may only affect a
 minority of developers.

 The IPhone system has its own flaws as well (approval process, etc).
 And that system most likely is a take it or leave it agreement too. We
 can't judge Google based on knowledge we DONT have. Speculation is
 just that, speculation. I haven't seen any arguments that show the
 opposing platforms advantages yet (like how their agreements work,
 etc).

 -niko

 On Nov 13, 6:57 am, WoodManEXP woodman...@gmail.com wrote:



  We have spent significant time  energy and $$ producing several
  Android applications on the bet/hope it will be able to cut into the
  iPhone market. Unfortunately little is happening.

  - The apps sales are sluggish (the apps are hardly even being pirated
  as far as we can tell).
  - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
  development to be updated to 2.0 and the Droid phone is released. How
  is one to test?
  - The Google Market seems ineffective. Consider limitations like the
  short app descriptions for instance. Google Market has a way to go to
  catch up with the magic of iTunes.
  - There is void of two-way communication between Google and the
  Android developer base so rumor and conjecture and trial and error
  prevail.
  - Distribution license agreement is updated in a take it or leave it
  fashion (with no meaningful explanation or attempt to point out
  

Re: [android-developers] Re: ListView problem is back.

2009-11-14 Thread Dan Dumont
Can you post a sample?

On Nov 14, 2009 4:23 AM, Sergey Vasilinets 
sergey.vasilin...@googlemail.com wrote:

Goog Morning Dan,
Thank you for your reply.
This project is very simple and there isn't such functions as delete
and edit. That's why only action with the size of adapter is adding
and it's in safe method of AsyncTask

On 14 ноя, 06:52, Dan Dumont ddum...@gmail.com wrote:  I'm pretty sure
that if the size of the a...

 sergey.vasilin...@googlemail.com wrote:   Hello,   I have a error
11-14 01:23:23.204: ERROR/...
  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...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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-Java] Why String \0 is converted to [65533,65533]

2009-11-14 Thread Joes
All,
While I'm programming the Android SMTP code,I met a confused problem
with code similar as the following:
String str= \0 username \0 passwrd;
After executed the code, I found \0 is intepreted as two
undisplayable char.
Then I executed the folloing debug code:
String sZero = \0;
int iLen = sZero.length();
int iValue1 = (int)sZero.charAt(0);
int iValue2 = (int)sZero.charAt(1);
Log.w(ZERO, Zero String, Lenth=, iLen,  value1=, iValue1, 
value2=, iValue2);
What I get in screen is :
Zero String, Length=2 value1=65533 value2=65533.

Really confuse me, why \0 become [65533,65533] in my program?

Thanks

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


[android-developers] Re: How to launch the browser

2009-11-14 Thread anand
Hi guys,

I am trying to make an appwidget to be displayed when we click a
button.

I am having a simple application which has a button.

When the button is clicked,it will send a broadcast message.
I am implementing an appwidgetprovider class in the same application.

I have overridden the onReceive function in the appwidgetprovider
class as shown below:


@Override
public void onReceive ( Context context,Intent intent ) {

String action = intent.getAction();
String message=;
//String packagename=;
//int appwidgetid;
//String RESULT_OK = sucessfull;

Log.i(test, message received);

if( android.appwidget.action.APPWIDGET_ENABLED.equals ( 
action ) )
{

//String message;
Toast.makeText( context, Broadcast sucessfull...,
Toast.LENGTH_LONG).show();

if ( intent.hasExtra(broadcast.MESSAGE)) {

message = 
(String)intent.getCharSequenceExtra(broadcast.MESSAGE);
Toast.makeText( context, message, 
Toast.LENGTH_LONG).show();

}



ComponentName component;
component = new ComponentName(context,receiver.class);


RemoteViews views = new 
RemoteViews(context.getPackageName
(),R.layout.widget_provider);
views.setTextViewText(R.id.message, message);
}
 }
}

I am able to see the toast messages but i am not able to see the
appwidget.

In the above code R.layout.widget_provider is the xml file which has
the appwidget-provider tag.
I have also mention this file as the resource file in the android
manifest file.

My questions are:
1.Is this code correct?
2.What should be the second parameter in the instantiation of
Remoteviews class?
3.What should be the first parameter in the setTextViewText function?

Please anybody help me on this...







On Nov 12, 6:45 am, Susan ska...@gmail.com wrote:
 You guys are my heros! I've been trying to overcome this single issue
 for about two hours. That's fantastic. It works beautifully. Thanks!

 For the sake of posterity (and anybody else who might be trying to
 solve this), here's my working code:

 (the lines are long so I apologize for the crummy formatting)

      public class Widget extends AppWidgetProvider
      {
          public void onReceive(Context context, Intent intent)
          {
              String action = intent.getAction();
              if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals
 (action))
              {

                  RemoteViews views = new RemoteViews(

 context.getPackageName(),R.layout.widget);

                  Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse
 (http://www.cnn.com;));
                  i.addCategory(Intent.CATEGORY_BROWSABLE);
                  i.setComponent(new ComponentName
 (com.android.browser,

 com.android.browser.BrowserActivity));
                  PendingIntent pendingIntent =
 PendingIntent.getActivity(context, 0, i, 0);
                  views.setOnClickPendingIntent(R.id.Widget,
 pendingIntent);

                  AppWidgetManager.getInstance(context).updateAppWidget
                                               (intent.getIntArrayExtra
 (AppWidgetManager.
                                                EXTRA_APPWIDGET_IDS),
 views);
              }
          }
      }

 On Nov 11, 7:33 pm, Jason Proctor jason.android.li...@gmail.com
 wrote:

  you can't instantiate a Uri from a string, need to use the parse()
  factory method.

  this is how i do it, works for me --

  Intent  intent = new Intent ();

  intent.setAction (android.intent.action.VIEW);
  intent.addCategory (android.intent.category.BROWSABLE);
  intent.setData (Uri.parse (http://www.cnn.com;));

  context.startActivity (intent);

  are you happy? :-)

  J

  I am trying to create a widget that, when clicked on, launches the
  browser and goes to a particular URL. Unfortunately, I have had a lot
  of problems. I started with a (working) widget that, when clicked,
  opened the alarm clock. Then, using the code from another Groups post
  (http://groups.google.com/group/android-developers/msg/
  11e54b1df3a4d279), I tried to convert it to open the browser instead.
  Here is my (non-working) code:

  public class Widget extends AppWidgetProvider
  {
       public void onReceive(Context context, Intent intent)
       {
           String action = intent.getAction();
           if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action))
           {

               RemoteViews views = new RemoteViews(context.getPackageName
  (), R.layout.widget);

               Intent i = new Intent(Intent.ACTION_VIEW).addCategory
  (Intent.CATEGORY_BROWSABLE).setComponent(new ComponentName
  (com.android.browser, com.android.browser.BrowserActivity));
               Uri url = 

[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
Please, tell me i'm wrong :

It looks that received packet are truncated after n bytes.
n is the size of the first received packet.

Seriously, this bug make me mad !
It only happens on MY phone !

On 14 nov, 13:59, Pierre pierredur...@gmail.com wrote:
 No problem on the Android 2.0 emulator...
 I'm testing on 1.5 emulator...

 On 14 nov, 01:43, Pierre pierredur...@gmail.com wrote:

  Do you know if it's a bug ?

  Is it possible to receive UDP packet on android ?
  Is there any example ?

  On 12 nov, 22:27, Pierre pierredur...@gmail.com wrote:

   each time i call receive(), i receive the first byte of the received
   packet

   On Nov 12, 10:14 pm, Dan Sherman impact...@gmail.com wrote:

Subsequent calls just block until the timeout?

- Dan

On Thu, Nov 12, 2009 at 3:52 PM, Pierre pierredur...@gmail.com wrote:
 I receive only the first byte of my udp packet...

 On Nov 12, 8:18 pm, Dan Sherman impact...@gmail.com wrote:
  We've had issues with UDP packets coming in off the socket
 non-reassembled.

  See what happens with multiple reads, see if you get back the 
  expected
  packet length in total...

  - Dan

  On Thu, Nov 12, 2009 at 2:16 PM, Pierre pierredur...@gmail.com 
  wrote:
   I use Android 1.5 on HTC Hero

   My code (udp server on my phone) :

   this.socket = new DatagramSocket(port);
   byte[] array = new byte[500];
   DatagramPacket packetIn = new DatagramPacket(array,500);
   this.socket.receive(packetIn);
   System.out.println(packet length  + packetIn.getLength());

   Packet length is ALWAYS 1, even if i send larger packets !
   I don't understand why ...

   When i use Wireshark, i see normal packets.

   Is it a bug ?
   This code works on Windows.

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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 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] How can I turn off the display?

2009-11-14 Thread wonae
Hi, I'm trying to find the API function that turns off the display.
Is it possible to turn off the display in my app?
Thank you in advance :)

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


[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
I can reproduce this bug in the Android 1.5 emulator !

On 14 nov, 15:26, Pierre pierredur...@gmail.com wrote:
 Please, tell me i'm wrong :

 It looks that received packet are truncated after n bytes.
 n is the size of the first received packet.

 Seriously, this bug make me mad !
 It only happens on MY phone !

 On 14 nov, 13:59, Pierre pierredur...@gmail.com wrote:

  No problem on the Android 2.0 emulator...
  I'm testing on 1.5 emulator...

  On 14 nov, 01:43, Pierre pierredur...@gmail.com wrote:

   Do you know if it's a bug ?

   Is it possible to receive UDP packet on android ?
   Is there any example ?

   On 12 nov, 22:27, Pierre pierredur...@gmail.com wrote:

each time i call receive(), i receive the first byte of the received
packet

On Nov 12, 10:14 pm, Dan Sherman impact...@gmail.com wrote:

 Subsequent calls just block until the timeout?

 - Dan

 On Thu, Nov 12, 2009 at 3:52 PM, Pierre pierredur...@gmail.com 
 wrote:
  I receive only the first byte of my udp packet...

  On Nov 12, 8:18 pm, Dan Sherman impact...@gmail.com wrote:
   We've had issues with UDP packets coming in off the socket
  non-reassembled.

   See what happens with multiple reads, see if you get back the 
   expected
   packet length in total...

   - Dan

   On Thu, Nov 12, 2009 at 2:16 PM, Pierre pierredur...@gmail.com 
   wrote:
I use Android 1.5 on HTC Hero

My code (udp server on my phone) :

this.socket = new DatagramSocket(port);
byte[] array = new byte[500];
DatagramPacket packetIn = new DatagramPacket(array,500);
this.socket.receive(packetIn);
System.out.println(packet length  + packetIn.getLength());

Packet length is ALWAYS 1, even if i send larger packets !
I don't understand why ...

When i use Wireshark, i see normal packets.

Is it a bug ?
This code works on Windows.

--
You received this message because you are subscribed to the 
Google
Groups Android Developers group.
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 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: Growing pains for Android developers??

2009-11-14 Thread wonae
Hey guys,
I'm a Korean and we don't even find a way to sell our apps!!
We have to earn a little cash only with AdMob :_(

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Speech Recognition makes a beep when the user Cancels. This is bad.

2009-11-14 Thread GregM
If the user cancels the speech dialog, it makes a little beeping
sound.

You might think that beeping sounds is an innocent little thing, but
it broke my app.

See, after my app is done speaking, it starts listening again for the
user to get its attention. When the app beeps, it assumes this is the
user getting the apps attention. Hence, the app gets into an infinite
loop where the user cancels, it hears the cancel beep, it brings up
the speech dialog again, the user cancels again, the app beeps, the
app brings up the speech dialog again

My question: How do I make the speech dialog stop beeping?

Bigger question: In general, how do I gain better control over the
android speech dialog? There's nothing I can do currently, but launch
it.

Thanks!

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


[android-developers] Re: Documentation deficiencies.

2009-11-14 Thread Paul
I agree totally with what Tim wrote. Lots of deficiencies and
undocumented things. I just spent 2 days trying to figure out why my
ItemizedOverlay subclass was not rendering OverlayItems that had their
own marker. Finally found something that mentioned setting the bounds
of the marker. Totally undocumented. They could at least provide their
source code so we could figure this stuff out ourselves.

Also, on a similar topic (poor documentation) I've been trying to
figure out how to get a MapView zoom controls to stay visible and not
disappear after a few seconds. Seems like you have to call this
undocumented method:  mapView.getZoomButtonsController() and then call
setVisible(true) on that object : mapView.getZoomButtonsController
().setVisible(true); Of course for some weird reason the user still
has to touch the map once before the zoom controls appear.

-Paul


On Nov 3, 5:20 pm, Tim Hutt tdh...@gmail.com wrote:
 Hi, this has been noted by many people previously, but I thought I'd
 have a little rant about it. Simply put, the Android SDK documentation
 is shockingly incomplete. I can't believe Google doesn't have the
 resources to employ someone full-time to work on it. Here are just a
 few examples:

 1. You need to call ItemizedOverlay.populate() even if you have added
 no items. This is mentioned no-where, and I've even seen people create
 crazy work-arounds because they didn't know it.

 2. populate() isn't explained at all well. Let's compare a few
 function descriptions with what *I* would write:

 ItemizedOverlay intro, current version:

 A base class for an Overlay which consists of a list of OverlayItems.
 This handles sorting north-to-south for drawing, creating span bounds,
 drawing a marker for each point, and maintaining a focused item. It
 also matches screen-taps to items, and dispatches Focus-change events
 to an optional listener. 

 My version:

 ItemizedOverlay is an Overlay that allows you to easily draw small
 collections of [OverlayItem]s on top of the map. Typically the items
 will be some kind of pin or marker. A default [Drawable] to use can be
 passed to the constructor, and individual [OverlayItem]s can have
 specific [Drawable]s. This class handles sorting the items
 north-to-south so that the overlap as expected, and drawing a marker
 for each point. It also maintains a focused item, matches screen-taps
 to items, and dispatches Focus-change events to an optional listener.
 Typically it is subclassed and used as described below. See the
 documentation for populate() and createItem() for further information
 on how to specify the [OverlayItem]s. then I would give an example of
 deriving a simple class from ItemizedOverlay, but I'm not paid to
 write this so meh

 ItemizedOverlay.populate(), current version:

 Utility method to perform all processing on a new ItemizedOverlay.
 Subclasses provide Items through the createItem(int) method. The
 subclass should call this as soon as it has data [note that this is
 *wrong*!], before anything else gets called.

 My version:

 ItemizedOverlay maintains an internal cache of [OverlayItem]s in
 order to draw them efficiently. This function must be called in order
 to populate the internal cache. Note that it must be called before the
 draw() method is even if you have added no items. When it is called it
 first uses ItemizedOverlay.size() to determine how many [OverlayItem]s
 there are to draw. You must override this method in your subclass.
 Once the number of items has been determined it calls
 ItemizedOverlay.createItem(int i) for i=0 to size() in order to
 retrieve each [OverlayItem]. These items are then sorted from north to
 south to facilitate drawing. Whenever you change the items to be drawn
 you must call populate() in order to update the cache.

 Actually I've just noted that that description isn't quite true and
 has caused a bug in my program - size() is apparently only ever called
 once. This is pretty stupid but hey, my point stands.

 3. At http://developmentality.net/there is a note about how setMarker() 
 doesn't work unless you set the bounds on the drawable.
 This should clearly be mentioned in the documentation.
 4. fill_parent, wrap_content, gravity and so on aren't adequately
 explained *at all*.
 5. Not a documentation issue, but boundCenterBottom() should be really
 be public.
 6. I strongly encourage you to look at the documentatio for
 ProgressDialog. It is truly 
 shocking:http://developer.android.com/reference/android/app/ProgressDialog.htm...()

 I know there are a lot of classes, but *really*.

 7. There are so many classes where the documentation is the type that
 I would write *to myself* as I was writing the code. e.g. Bundle is
 described as A mapping from String values to various Parcelable
 types.. That's it. Helpful.

 This mailing list is clearly too high volume for anyone from Google to
 read, but I feel better for having ranted. Back me up here people.

 :-)

-- 
You received this message because 

[android-developers] viewflipper deck?

2009-11-14 Thread Wouter
Hey,

How can i make something like this:

http://mippin.com/buzzdeck

I want to make a deck of itinerary items (for my application TripIt).
So a new screen per itinerary..

I tried to make this with a viewflipper but it shows the full view on
the screen and i cannot see the other decks on the left or right
side?

Has someone made this before or has tips to make this?

Thank you so much,

Wouter

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


[android-developers] Re: Why String \0 is converted to [65533,65533]

2009-11-14 Thread Andrei
just a guess that u want to do this instead \\0

On Nov 14, 8:58 am, Joes joyj...@gmail.com wrote:
 All,
 While I'm programming the Android SMTP code,I met a confused problem
 with code similar as the following:
     String str= \0 username \0 passwrd;
 After executed the code, I found \0 is intepreted as two
 undisplayable char.
 Then I executed the folloing debug code:
     String sZero = \0;
     int iLen = sZero.length();
     int iValue1 = (int)sZero.charAt(0);
     int iValue2 = (int)sZero.charAt(1);
     Log.w(ZERO, Zero String, Lenth=, iLen,  value1=, iValue1, 
 value2=, iValue2);
 What I get in screen is :
     Zero String, Length=2 value1=65533 value2=65533.

 Really confuse me, why \0 become [65533,65533] in my program?

 Thanks

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


[android-developers] Re: Securing a paid app

2009-11-14 Thread Andrei
What u want to do is to tie your app to one device
How u do it up to u

On Nov 14, 7:12 am, jax jackma...@gmail.com wrote:
 I am wondering how I might go about securing a paid app on Android.

 I am thinking of selling the application from my own website via
 PayPal, however, how will I stop people from sharing it with their
 friends etc.  Does Android have any type of native support for this?

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


[android-developers] Barcode

2009-11-14 Thread Paul Townsend
Hi I just wondering if I wanted to display a barcode on my phone so
that a scanner could scan it, ie like the reward cards apps, how would
I go about creating the barcode in a view.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Securing a paid app

2009-11-14 Thread jax
Yes, that is why I have posted the question because I don't know how
to do it.

Has anyone done this before or know of a method for achieving this?


On Nov 14, 10:23 pm, Andrei gml...@gmail.com wrote:
 What u want to do is to tie your app to one device
 How u do it up to u

 On Nov 14, 7:12 am, jax jackma...@gmail.com wrote:

  I am wondering how I might go about securing a paid app on Android.

  I am thinking of selling the application from my own website via
  PayPal, however, how will I stop people from sharing it with their
  friends etc.  Does Android have any type of native support for this?



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


[android-developers] Re: Can't receive UDP packets correctly

2009-11-14 Thread Pierre
Ok, to sumarize :
My program receive UDP packets.
On my HTC Hero (Android 1.5) and on emulator 1.5-1.6, i can't receive
UDP packets correctly.
They are truncated after the first byte (i receive only 1 byte
packets).

No problem in the Android 2.0 emulator

On 14 nov, 15:57, Pierre pierredur...@gmail.com wrote:
 I can reproduce this bug in the Android 1.5 emulator !

 On 14 nov, 15:26, Pierre pierredur...@gmail.com wrote:

  Please, tell me i'm wrong :

  It looks that received packet are truncated after n bytes.
  n is the size of the first received packet.

  Seriously, this bug make me mad !
  It only happens on MY phone !

  On 14 nov, 13:59, Pierre pierredur...@gmail.com wrote:

   No problem on the Android 2.0 emulator...
   I'm testing on 1.5 emulator...

   On 14 nov, 01:43, Pierre pierredur...@gmail.com wrote:

Do you know if it's a bug ?

Is it possible to receive UDP packet on android ?
Is there any example ?

On 12 nov, 22:27, Pierre pierredur...@gmail.com wrote:

 each time i call receive(), i receive the first byte of the received
 packet

 On Nov 12, 10:14 pm, Dan Sherman impact...@gmail.com wrote:

  Subsequent calls just block until the timeout?

  - Dan

  On Thu, Nov 12, 2009 at 3:52 PM, Pierre pierredur...@gmail.com 
  wrote:
   I receive only the first byte of my udp packet...

   On Nov 12, 8:18 pm, Dan Sherman impact...@gmail.com wrote:
We've had issues with UDP packets coming in off the socket
   non-reassembled.

See what happens with multiple reads, see if you get back the 
expected
packet length in total...

- Dan

On Thu, Nov 12, 2009 at 2:16 PM, Pierre 
pierredur...@gmail.com wrote:
 I use Android 1.5 on HTC Hero

 My code (udp server on my phone) :

 this.socket = new DatagramSocket(port);
 byte[] array = new byte[500];
 DatagramPacket packetIn = new DatagramPacket(array,500);
 this.socket.receive(packetIn);
 System.out.println(packet length  + packetIn.getLength());

 Packet length is ALWAYS 1, even if i send larger packets !
 I don't understand why ...

 When i use Wireshark, i see normal packets.

 Is it a bug ?
 This code works on Windows.

 --
 You received this message because you are subscribed to the 
 Google
 Groups Android Developers group.
 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 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: Why String \0 is converted to [65533,65533]

2009-11-14 Thread Joes
I just wanna know, with what condition can cause this issue.  I think
it's probably because of the charset setup which is controlled by
makefile or something else. I need a direction to look into.

Thanks


On Nov 14, 9:18 am, Andrei gml...@gmail.com wrote:
 just a guess that u want to do this instead \\0

 On Nov 14, 8:58 am, Joes joyj...@gmail.com wrote:



  All,
  While I'm programming the Android SMTP code,I met a confused problem
  with code similar as the following:
      String str= \0 username \0 passwrd;
  After executed the code, I found \0 is intepreted as two
  undisplayable char.
  Then I executed the folloing debug code:
      String sZero = \0;
      int iLen = sZero.length();
      int iValue1 = (int)sZero.charAt(0);
      int iValue2 = (int)sZero.charAt(1);
      Log.w(ZERO, Zero String, Lenth=, iLen,  value1=, iValue1, 
  value2=, iValue2);
  What I get in screen is :
      Zero String, Length=2 value1=65533 value2=65533.

  Really confuse me, why \0 become [65533,65533] in my program?

  Thanks- Hide quoted text -

 - Show quoted text -

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


[android-developers] Person using Sprint Hero can't see application?

2009-11-14 Thread g1bb
Hello,

I have someone e-mailing me that they can't see my application in the
Market. Is there something specific that I need to put in my manifest?
They're using a Sprint Hero.

Here's my manifest:
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.droidfart.app android:versionCode=14
android:versionName=1.1.2
application android:label=@string/app_name android:icon=@drawable/
logo
activity android:name=.Main
  android:label=@string/app_name
  android:screenOrientation=portrait
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

activity android:name=.FartBombActivity
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.FartBombCountDown
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.Shaker
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.Settings
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.Recorder
android:label=@string/app_name
android:screenOrientation=portrait/

 receiver android:name=.SMSReceiver
android:enabled=true
intent-filter
action

android:name=android.provider.Telephony.SMS_RECEIVED /
/intent-filter
/receiver
receiver android:name=.SMSReceiver android:label=@string/
app_name
intent-filter
   category android:name=android.intent.category.LAUNCHER /
/intent-filter
/receiver

 receiver android:name=.OneShotAlarm android:process=:remote /
   service android:name=.FartBomb/
 /application

uses-sdk android:minSdkVersion=4/uses-sdk
uses-permission android:name=android.permission.RECEIVE_SMS/uses-
permission
uses-permission android:name=android.permission.WAKE_LOCK/uses-
permission
uses-permission android:name=android.permission.VIBRATE/uses-
permission
uses-permission android:name=android.permission.RECORD_AUDIO/uses-
permission
/manifest

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: Help! Force close after renaming package

2009-11-14 Thread TreKing
To get the stack trace, just look at the LogCat view in eclipse when the
program crashes (sometimes the debugger stops at the crash point so you may
have to continue execution until it shows up).

Alternatively, run the DDMS tool a select your running AVD to see the
LogCat.

I haven't really looked at the examples in much depth, but aren't
LunarLander and Snake (the only) game projects? Maybe that has something to
do with it? Maybe try searching the entire project for the package name and
see if it's been hard-coded somehow? Getting the stack-trace from the LogCat
is definitely your best bet to get a lead though.

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


On Sat, Nov 14, 2009 at 4:24 AM, FJMustak fjmus...@gmail.com wrote:

 I'm not exactly sure how to display the stack-trace in eclipse... But
 here is exactly what I did:
 - Using the Snake example that came with the 1.1 SDK, I replaced
 com.example.android.snake with com.example.android.snake2 in the .java
 files, and in the manifest.  I also renamed the directory from /com/
 example/android/snake to /com/example/android/snake2
 then I ran the package using a 1.6 AVD (G1)
 I tried several of the Android 1.1 SDK examples, and most of them
 worked fine after I renamed the package, the exceptions were
 lunarlander and snake...


 On Nov 13, 1:18 pm, TreKing treking...@gmail.com wrote:
  What does the stack-trace look like when it force-closes?
 
 
 -
  TreKing - Chicago transit tracking app for Android-powered deviceshttp://
 sites.google.com/site/rezmobileapps/treking
 
  On Fri, Nov 13, 2009 at 5:52 AM, FJMustak fjmus...@gmail.com wrote:
   I have modified a sample app, and it works fine.  When I rename the
   package though, it force closes.  I have modified the package name in
   all the .java files, as well as the manifest, in addition to the
   physical directory structure.  I've even tried to create a project
   from scratch and copy the relevant code in.  Any ideas what could be
   causing this? Am I missing something?
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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 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] File passed to sever os of size zero

2009-11-14 Thread Mike88
Hello,

I have written a  java client for the android and I have a java server
that runs on pc. the problem is when my file is sent to the pc the
file is read but ends up with size zero. Anyone got any ideas why.
Help is much appreciated. The code is shown below

Client:

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class AndroidClient extends Activity {
/** Called when the activity is first created. */
public static TextView tv;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);

tv = new TextView(this);
tv.setText(Main - client);
setContentView(tv);

Thread cThread = new Thread(new TCPClientTest());

cThread.start();
}
}

class TCPClientTest implements Runnable {


public void run() {
 try {

   InetAddress serverAddr = InetAddress.getByName(10.0.2.2);

   Log.d(TCP, C: Connecting...);
   Socket socket = new Socket(serverAddr, );
   String message = Hello from Client;
   try {



Log.d(TCP, C: Sending: ' + message + ');
PrintWriter out = new PrintWriter( new BufferedWriter
( new OutputStreamWriter(socket.getOutputStream())),true);

out.println(message);
Log.d(TCP, C: Sent.);
  Log.d(TCP, C: Done.);

  try {
  Log.e(, C: waiting for return);
  BufferedReader in = new BufferedReader(new
InputStreamReader(socket.getInputStream()));
  String str = in.readLine();
  System.out.println(S: Received: ' + str +
');
  AndroidClient.tv.setText(str);
} catch(Exception e) {
System.out.println(S: Error);
} finally {
 System.out.println(S: Done.);
}

File myFile = new File
(android.os.Environment.getExternalStorageDirectory().getPath() + /
psi.pdf);

out.println((int)myFile.length());

byte [] mybytearray  = new byte [(int)myFile.length
()];
FileInputStream fis = new FileInputStream(myFile);
BufferedInputStream bis = new BufferedInputStream
(fis);
bis.read(mybytearray,0,mybytearray.length);
OutputStream os = socket.getOutputStream();
System.out.println(Sending...);
os.write(mybytearray,0,mybytearray.length);
os.flush();

os.close();
bis.close();
fis.close();

Log.d(--, File has read);

//FileOutputStream fos = new FileOutputStream
(sdcard/01 All My Life.m4a);

 } catch(Exception e) {
 Log.e(TCP, S: Error, e);
} finally {
  socket.close();
}
 } catch (Exception e) {
  Log.e(TCP, C: Error, e);
 }

}
}

Server on pc

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

public class JavaServer {

public static void main(String[] args){

Thread sThread = new Thread(new TCPServerTest());

sThread.start();
}
}



class TCPServerTest implements Runnable{

public static final String SERVERIP = 10.0.2.15;
public static final int SERVERPORT = ;

public void run() {
 try {
 System.out.println(S: Connecting...);

 String message2 = Hahahahaha;

  ServerSocket serverSocket = new ServerSocket
(SERVERPORT);
  System.out.println(got past conect);
  while (true) {
  System.out.println(got into loop);
 Socket client = serverSocket.accept();
 System.out.println(S: Receiving...);
 try {
  BufferedReader in = new BufferedReader(new
InputStreamReader(client.getInputStream()));
  String str = in.readLine();
  System.out.println(S: Received: ' + str +
');
 

Re: [android-developers] Barcode

2009-11-14 Thread Mark Murphy
Paul Townsend wrote:
 Hi I just wondering if I wanted to display a barcode on my phone so
 that a scanner could scan it, ie like the reward cards apps, how would
 I go about creating the barcode in a view.

Here are two possibilities:

1. You store on the phone the barcode as an alphanumeric value and a bar
code type, then generate the image on the phone. That would require a
bar code imaging JAR, and while those probably exist for Java, I expect
they may require some massaging to work on Android.

2. You store on the phone the actual barcode image, obtained from a Web
service or something. This has the advantage of being a better-traveled
road. Then, you'd just use an ImageView, or the 2D graphics API, to
display the image on screen.

The only thing I see potentially being tricky with scenario #2 is
getting the image size right, taking into account different screen
densities. And, you have that same problem with scenario #1.

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

_Android Programming Tutorials_ Version 1.0 In Print!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Debugging on HTC Tattoo

2009-11-14 Thread Aasha
I have just got myself a new HTC Tattoo which is NOT carrier locked.
Now I'm unable to find out how to use that to debug my application.
Is is possible to do that on an unlocked HTC Tattoo? If so, can
someone point me to some resource outlining how to do that?

Thanks and Regards
Aasha

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 test if app is shown on Market for all screensizes

2009-11-14 Thread Klaus Kartou
Our app use the following permissions:
android.permission.ACCESS_FINE_LOCATION

   - android.permission.INTERNET
   - android.permission.ACCESS_COARSE_LOCATION
   - android.permission.CAMERA
   - android.permission.ACCESS_NETWORK_STATE
   - android.permission.WRITE_EXTERNAL_STORAGE

But why should the camera permission make the app not show up on market on
HTC Tattoo?
I´m confused about this :)

On Sat, Nov 14, 2009 at 12:00 AM, blindfold seeingwithso...@gmail.comwrote:

 Hi Phil,

 Search for seeingwithsound, and you should find The vOICe for Android
 camera app (I just double checked this search on my ADP1).

 One wild guess is that your android.permission.SET_ORIENTATION might
 play a role (I do not use it), because at least on HTC's G1/ADP1 there
 are orientation limitations in the camera preview, and perhaps HTC
 decided to become more picky about this for camera apps.

 Thanks

 On Nov 13, 10:48 pm, phil philipp.bre...@gmail.com wrote:
  Let me know what to search for and we can check with our Tattoo,
  which is a nifty nice little Android phone, by the way.
 
  On 13 Nov., 19:56, blindfold seeingwithso...@gmail.com wrote:
 
   Interesting. Did you try and find other camera applications on the
   Market with your HTC Tattoo?
 
   (I'm using android.permission.CAMERA and android:minSdkVersion=4
   with my camera app, The vOICe for Android, but I do not know if it
   shows up on the Tattoo.)
 
   On Nov 13, 6:57 pm, phil philipp.bre...@gmail.com wrote:
 
Hi,
 
we did some further testing and found out that the
android.permission.CAMERA is the Problem in our case. We tried
 leaving
it out and then the app was showing up in the market. Does anyone
 else
have the same problem or can confirm that this is a problem.
 
We hope for a fast solution or any tip how this can be solved as we
need the CAMERA permission in our application.
 
Any help is much appreciated.
 
 

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Barcode

2009-11-14 Thread Paul Townsend
Humm hoping there were barcode fonts or something, I wanted to create a
barcode from a number that you store into the app. I could do the web
service thing I just didn't want it to be an image although the generated
one will be of high quality so will scan fine.

2009/11/14 Mark Murphy mmur...@commonsware.com

 Paul Townsend wrote:
  Hi I just wondering if I wanted to display a barcode on my phone so
  that a scanner could scan it, ie like the reward cards apps, how would
  I go about creating the barcode in a view.

 Here are two possibilities:

 1. You store on the phone the barcode as an alphanumeric value and a bar
 code type, then generate the image on the phone. That would require a
 bar code imaging JAR, and while those probably exist for Java, I expect
 they may require some massaging to work on Android.

 2. You store on the phone the actual barcode image, obtained from a Web
 service or something. This has the advantage of being a better-traveled
 road. Then, you'd just use an ImageView, or the 2D graphics API, to
 display the image on screen.

 The only thing I see potentially being tricky with scenario #2 is
 getting the image size right, taking into account different screen
 densities. And, you have that same problem with scenario #1.

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

 _Android Programming Tutorials_ Version 1.0 In Print!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Barcode

2009-11-14 Thread Mark Murphy
Paul Townsend wrote:
 Humm hoping there were barcode fonts or something, I wanted to create a
 barcode from a number that you store into the app. I could do the web
 service thing I just didn't want it to be an image although the
 generated one will be of high quality so will scan fine. 

Well, there are a seemingly infinite number of barcode standards, each
with different line lengths, widths, etc. You don't just need a barcode
font -- you need one that handles whichever standard(s) your app needs.

Some are in fonts, but the last I looked (years ago), there were few
freely available fonts. I recall trying to figure out how to add USPS
delivery barcodes to mailing labels and giving up in frustration.

But, again, that was a few years ago, and something new may have arisen
since then.

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

_Android Programming Tutorials_ Version 1.0 In Print!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Debugging on HTC Tattoo

2009-11-14 Thread Mark Murphy
Aasha wrote:
 I have just got myself a new HTC Tattoo which is NOT carrier locked.
 Now I'm unable to find out how to use that to debug my application.
 Is is possible to do that on an unlocked HTC Tattoo? If so, can
 someone point me to some resource outlining how to do that?

I can tell you that my unlocked HTC Tattoo is picked up by adb and DDMS
fine on Ubuntu. All I had to do was enable USB debugging (Settings 
Applications  Development).

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

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Barcode

2009-11-14 Thread Paul Townsend
Ok thanks for your help, I would only need the code 39 one its for a Parkrun
barcode and they use just a standard barcode but in the interest of space
prob the web service is the way to go on android.

2009/11/14 Mark Murphy mmur...@commonsware.com

 Paul Townsend wrote:
  Humm hoping there were barcode fonts or something, I wanted to create a
  barcode from a number that you store into the app. I could do the web
  service thing I just didn't want it to be an image although the
  generated one will be of high quality so will scan fine.

 Well, there are a seemingly infinite number of barcode standards, each
 with different line lengths, widths, etc. You don't just need a barcode
 font -- you need one that handles whichever standard(s) your app needs.

 Some are in fonts, but the last I looked (years ago), there were few
 freely available fonts. I recall trying to figure out how to add USPS
 delivery barcodes to mailing labels and giving up in frustration.

 But, again, that was a few years ago, and something new may have arisen
 since then.

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

 _Android Programming Tutorials_ Version 1.0 In Print!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Android on LG KM900 ARENA

2009-11-14 Thread kingrz
 AMD_SINGLE.bin and A250img.bin have been dissambled. Experimental
kernels are almost compiled. Come and help us to improve the chances
to port ANDROID on the LG ARENA.

On Nov 11, 10:57 am, kingrz raoul.zivo...@inet.hr wrote:
 If you want to help or see how is going the project go 
 onhttp://androidarena.pytalhost.net/

 We need all the help you can give!!!

 TNX

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Does MotionEvent.getEdgeFlags() ever return anything other than 0 ?

2009-11-14 Thread davemac
I was expecting the getEdgeFlags() method of MotionEvent to tell me
when a MotionEvent had reached the edge of something, but the value
returned from getEdgeFlags() is *always* zero. Is this the expected
behavior? The documentation says that the flags indicate when a touch
has reached the edge of the display. I've tried this on a real device
and in the emulator, and the location coordinates never quite reach
the edge of the display, and getEdgeFlags() always returns 0. By
never quite reach I mean that if dragging a finger off the left edge
of the display, the smallest X I got was 2. Reaching the edge of the
view doesn't seem to change the value returned either.

I suppose I could set the flags myself using setEdgeFlags() using
calculations with known dimensions of the object whose edges I care
about. Is that how it's supposed to be used? Is this broken for now?

Thanks for your help.

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


Re: [android-developers] Re: Links in WebView context menu?

2009-11-14 Thread Mariano Kamp
Mark,

thanks for the hint. Reading the API documentation I would have never
guessed what it does. It seems that you get the marked link back and when
long clicking on a link it get's selected and so this work for me.

Cheers,
Mariano

On Wed, Nov 11, 2009 at 2:33 PM, Mark Murphy mmur...@commonsware.comwrote:

 Mariano Kamp wrote:
  *bump*
 
  On Fri, Nov 6, 2009 at 5:40 PM, Mariano Kamp mariano.k...@gmail.com
  mailto:mariano.k...@gmail.com wrote:
 
  Hi,
 
is there any way to launch a context menu on the links in a
  WebView that knows about the links it is launched upon? I would like
  to launch a context menu on links that I can then open in the actual
  Android browser or send the link by email etc.

 I am not aware of a way to control the option menu on a per-link basis.

 However, you can implement an option menu generally on the WebView, then
 try calling getHitTestResult() on the WebView, which may give you the
 information you seek. I haven't tried this, so I have no idea how well
 it will work.

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

 Android App Developer 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
 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] Dell Mini 3 emulator skin now available for Android 2.0 SDK

2009-11-14 Thread Tea Vui Huang
Dell Mini 3 emulator skin now available for Android 2.0 SDK
http://teavuihuang.com/android

The Dell Mini 3, a keyboardless touch-screen Android phone was
launched on 13th November 2009. It will initially be available only
from China Mobile and Brazil's Claro. This emulator skin brings the
Dell Mini 3 to your Android 2.0 SDK in WVGA854 resolution (480x854
high density, normal screen). The emulator skin package, screenshots
and installation instructions are now available at the above website.

Tea Vui Huang's Android Page
[The No.1 website for Google Android Emulator Skins]

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Stacking a ListView with other widgets below?

2009-11-14 Thread Mark Wyszomierski
One more question on this - it seems like if we use a header or footer
view - then our activity can not add any other views? Example:

 LinearLayout
   ListView // with header and footer views.
 /LinearLayout

the above works perfectly with focus getting routed correctly etc. The
focus acts strangely in this case though:

  LinearLayout
LinearLayout
  Button
/LinearLayout
ListView
  /LinearLayout

if the list view has focusable items - then the focus jumps back up to
the top LinearLayout-button after hitting down key again. This is kind
of strange, should this be happening? To explain further:

  LinearLayout
LinearLayout
  Button
/LinearLayout
ListView
  // listview is composed of:
  TextView
  TextView
  Button
  TextView
/ListView
  /LinearLayout

so focus is fine up until it hits the row with the Button. The button
gets highlighted (since itemsCanFocus=true), but then hitting the down
arrow key again jumps focus up to the top linear layout button,
instead of continuing focus to the next row of the ListView. Normally
I could just use a header view instead, but is there an undocumented
rule in which we cannot add other views to our layout if using a
ListView with setItemsCanFocus=true?

Thanks

On Nov 13, 6:52 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Romain, thanks, that saved me.

 On Nov 13, 6:34 pm, Romain Guy romain...@google.com wrote:



  When you add the footer to thelistviewyou need to indicate it can
  receive 
  focus:http://d.android.com/reference/android/widget/ListView.html#setItemsC...)

  On Fri, Nov 13, 2009 at 3:27 PM, Mark Wyszomierski mar...@gmail.com wrote:
   Hi Romain,

   If I use a footer view, it can get focus, but its internal controls
   cannot be focused using the scroll ball? For example, this is a simple
   footer view:

    LinearLayout llFooter = new LinearLayout(this);
    llFooter.setLayoutParams(new AbsListView.LayoutParams
   (AbsListView.LayoutParams.FILL_PARENT,
   AbsListView.LayoutParams.WRAP_CONTENT));

     Button btn1 = new Button(this);
     btn1.setText(Btn1);
     llFooter.addView(btn1);

   When I use the scroll ball the navigate to the footer, the entire
   background gets highlighted, and I cannot access the button on the
   layout. Is there some way of doing that for a better user experience,
   or do users just have to touch with their finger?

   Thanks

   On Nov 13, 6:13 pm, Romain Guy romain...@google.com wrote:
   Don't use a ScrollView, it won't work. Add footers to yourListView.

   On Fri, Nov 13, 2009 at 3:11 PM, Mark Wyszomierski mar...@gmail.com 
   wrote:
Hi,

Is there a way to create a layout with aListViewset to use full
height, then some additional panels? Something like this:

 LinearLayout height = fill_parent
     ScrollView
         ListViewheight = wrap_content /
         TextView /
         TextView /
     /ScrollView
 /LinearLayout

Basically I'd like to keep theListViewat a height which contains all
its children views, then some static widgets below that - all inside a
master ScrollView - is that possible?

Thanks

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

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

  --
  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: How to test if app is shown on Market for all screensizes

2009-11-14 Thread blindfold
Hi Klaus,

Did you check if my camera app shows up on the Market for the HTC
Tattoo?

My The vOICe for Android app (search for seeingwithsound on the
Market) uses

uses-sdk android:minSdkVersion=4 /
uses-permission android:name=android.permission.CAMERA/
uses-permission android:name=android.permission.WAKE_LOCK/
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/
uses-permission android:name=android.permission.INTERNET/
uses-permission
android:name=android.permission.ACCESS_WIFI_STATE/
uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/

and it shows up on the Market when I search for seeingwithsound with
my ADP1.
I'll be interested if it too fails to show up with the HTC Tattoo?

On Nov 14, 5:09 pm, Klaus Kartou kar...@gmail.com wrote:
 Our app use the following permissions:
 android.permission.ACCESS_FINE_LOCATION

    - android.permission.INTERNET
    - android.permission.ACCESS_COARSE_LOCATION
    - android.permission.CAMERA
    - android.permission.ACCESS_NETWORK_STATE
    - android.permission.WRITE_EXTERNAL_STORAGE

 But why should the camera permission make the app not show up on market on
 HTC Tattoo?
 I´m confused about this :)

 On Sat, Nov 14, 2009 at 12:00 AM, blindfold seeingwithso...@gmail.comwrote:

  Hi Phil,

  Search for seeingwithsound, and you should find The vOICe for Android
  camera app (I just double checked this search on my ADP1).

  One wild guess is that your android.permission.SET_ORIENTATION might
  play a role (I do not use it), because at least on HTC's G1/ADP1 there
  are orientation limitations in the camera preview, and perhaps HTC
  decided to become more picky about this for camera apps.

  Thanks

  On Nov 13, 10:48 pm, phil philipp.bre...@gmail.com wrote:
   Let me know what to search for and we can check with our Tattoo,
   which is a nifty nice little Android phone, by the way.

   On 13 Nov., 19:56, blindfold seeingwithso...@gmail.com wrote:

Interesting. Did you try and find other camera applications on the
Market with your HTC Tattoo?

(I'm using android.permission.CAMERA and android:minSdkVersion=4
with my camera app, The vOICe for Android, but I do not know if it
shows up on the Tattoo.)

On Nov 13, 6:57 pm, phil philipp.bre...@gmail.com wrote:

 Hi,

 we did some further testing and found out that the
 android.permission.CAMERA is the Problem in our case. We tried
  leaving
 it out and then the app was showing up in the market. Does anyone
  else
 have the same problem or can confirm that this is a problem.

 We hope for a fast solution or any tip how this can be solved as we
 need the CAMERA permission in our application.

 Any help is much appreciated.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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: Android 2.0 SDK - BluetoothSocket Question

2009-11-14 Thread Chen Ganir
Nick,

Thanks. Didn't know which discussion board you were reading more
often :)

Thanks for your response.

Chen Ganir.


On Nov 14, 2:31 am, Nick Pelly npe...@google.com wrote:
 Answered this one on android-platform.





 On Thu, Nov 12, 2009 at 6:58 AM, Chen Ganir chen.ga...@gmail.com wrote:
  Hi.

  I've read the new API specifications for the BluetoothSocket and i
  encountered some unresolved issues regarding the connection
  limitations for BluetoothServerSocket.

  At
 http://developer.android.com/reference/android/bluetooth/BluetoothAda...
  there is a description of the Creation of BluetoothServerSocket.It
  says there that it creates a new listening RFCOMMsocketfor incoming
  connections. One should use accept to get the connected
  BluetoothSocket from this ServerSocket. My questions are :
  1. What happens if a connection is established before accept is
  called? Will it hold and wait for an accept command or dropped until
  an accept command is invoked and allow reconnection?
  2. Can more than one connections exist to a single
  BluetoothSocketServer?

  Athttp://developer.android.com/reference/android/bluetooth/BluetoothSer...
  the accept method is described. My questions are :
  3. Will i get a connected BluetoothSocket for a connection which was
  established prior to calling the accept method?
  4. What happens if after the first accept, i do another accept? Will i
  get another incoming connection? Or will the BluetoothServerSocket
  block any incoming connections until the previous connection is
  disconnected?
  5. If Connection Queue is available - what is the limit? how many
  connections will be held in Queue ?

  5. Does the BluetoothServerSocket support multiple connections from
  different devices? What about multiple connections from the same
  device?

  Athttp://code.google.com/p/apps-for-android/source/browse/trunk/BTClick...
  there is a sample application demonstrating the use of BluetoothSocket
  and BluetoothServerSocket. This application creates 7 different
  servers (different UUID's) and listens to 7 incoming connections on 7
  different servers. In addition, this sample closes the
  BluetoothServerSocket once a single connection is made to each of the
  servers. This does not show the behavior of the API as described in
  the official API documentation.

  I would appreciate any thoughts or ideas you have about this issue.

  Thanks,
  Chen Ganir.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] How can I select or click on an item in a ListView?

2009-11-14 Thread lau ka man
As I mentioned in the email subject,
I want to select an item (e.g. Department of Human Resource Management) in
my ListView.
And you can see that:
I had try to use
setClickable(true), setChoiceMode(ListView.CHOICE_MODE_SINGLE),
setFocusable(true), setFocusableInTouchMode(true),
no matter I use touch screen to click on the item or use the scroll ball on
my mouse to select the item, it also doesn't work.
Is there any mistakes in my coding?
I hope someone can give me some ideas what I should do.
because I am a beginner for developing Android application.

And the following is my coding:
package com.example.abc;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class DeptList extends ListActivity {
 int position;
 /** Called when the activity is first created. */
@Override
public void onCreate(Bundle bund) {
super.onCreate(bund);

setListAdapter(new ArrayAdapterString(this,
  android.R.layout.simple_list_item_1, DEPARTMENTS));
getListView().setTextFilterEnabled(true);
getListView().setClickable(true);
getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
getListView().setFocusable(true);
getListView().setFocusableInTouchMode(true);
getListView().setOnClickListener(selectItem);
}

private OnClickListener selectItem = new OnClickListener()
{
 public void onClick(View v)
 {
  position = getListView().getCheckedItemPosition();
  if(position == 2)
  {
   Intent contactlist = new Intent();
   contactlist.setClass(DeptList.this, Meeting.class);
   startActivity(contactlist);
  }
  else
  {
   Intent contactlist1 = new Intent();
   contactlist1.setClass(DeptList.this, OfficeMap.class);
   startActivity(contactlist1);
  }
 }
};

static final String[] DEPARTMENTS = new String[] {
 Department of Accounting,
 Department of Marketing and Sales,
 Department of Human Resource Management,
 Department of Computing
};
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Focus between views and lists issue/problem with Donut

2009-11-14 Thread Mark Wyszomierski
Ok this seems to be a bug unfortunately:
http://code.google.com/p/android/issues/detail?id=4255#c2

On Nov 14, 2:47 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Brady, did you come up with a work around for this? I'm having the
 same problem, and I can't come up with some sort of temporary fix for
 it sadly.

 On Oct 14, 5:10 pm, Brady brady.kro...@gmail.com wrote:



  Ok, I did some more sleuthing and this is definitely a bug.

  I modified the 1.5 SDK API demo Views  Lists  ex 7 to test. I added
  a button above the listview in the  list_7.xml layout. The same
  problem occurred on my 1.6 Donut Ion. If I set focus to the button
  using the 5-way nav, then nav down, the focus jumps to the 6th item in
  the list of contacts. Somewhere in the code a setSelection(5) is being
  called.

  Gonna file a bug.

  Brady

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Stacking a ListView with other widgets below?

2009-11-14 Thread Mark Wyszomierski
This is problem is probably related to this ListView bug:
http://code.google.com/p/android/issues/detail?id=4255#c2

On Nov 14, 1:07 pm, Mark Wyszomierski mar...@gmail.com wrote:
 One more question on this - it seems like if we use a header or footer
 view - then our activity can not add any other views? Example:

  LinearLayout
    ListView // with header and footer views.
  /LinearLayout

 the above works perfectly with focus getting routed correctly etc. The
 focus acts strangely in this case though:

   LinearLayout
     LinearLayout
       Button
     /LinearLayout
     ListView
   /LinearLayout

 if the list view has focusable items - then the focus jumps back up to
 the top LinearLayout-button after hitting down key again. This is kind
 of strange, should this be happening? To explain further:

   LinearLayout
     LinearLayout
       Button
     /LinearLayout
     ListView
       //listviewis composed of:
       TextView
       TextView
       Button
       TextView
     /ListView
   /LinearLayout

 so focus is fine up until it hits the row with the Button. The button
 gets highlighted (since itemsCanFocus=true), but then hitting the down
 arrow key again jumps focus up to the top linear layout button,
 instead of continuing focus to the next row of theListView. Normally
 I could just use a header view instead, but is there an undocumented
 rule in which we cannot add other views to our layout if using aListViewwith 
 setItemsCanFocus=true?

 Thanks

 On Nov 13, 6:52 pm, Mark Wyszomierski mar...@gmail.com wrote:



  Romain, thanks, that saved me.

  On Nov 13, 6:34 pm, Romain Guy romain...@google.com wrote:

   When you add the footer to thelistviewyou need to indicate it can
   receive 
   focus:http://d.android.com/reference/android/widget/ListView.html#setItemsC...)

   On Fri, Nov 13, 2009 at 3:27 PM, Mark Wyszomierski mar...@gmail.com 
   wrote:
Hi Romain,

If I use a footer view, it can get focus, but its internal controls
cannot be focused using the scroll ball? For example, this is a simple
footer view:

 LinearLayout llFooter = new LinearLayout(this);
 llFooter.setLayoutParams(new AbsListView.LayoutParams
(AbsListView.LayoutParams.FILL_PARENT,
AbsListView.LayoutParams.WRAP_CONTENT));

  Button btn1 = new Button(this);
  btn1.setText(Btn1);
  llFooter.addView(btn1);

When I use the scroll ball the navigate to the footer, the entire
background gets highlighted, and I cannot access the button on the
layout. Is there some way of doing that for a better user experience,
or do users just have to touch with their finger?

Thanks

On Nov 13, 6:13 pm, Romain Guy romain...@google.com wrote:
Don't use a ScrollView, it won't work. Add footers to yourListView.

On Fri, Nov 13, 2009 at 3:11 PM, Mark Wyszomierski mar...@gmail.com 
wrote:
 Hi,

 Is there a way to create a layout with aListViewset to use full
 height, then some additional panels? Something like this:

  LinearLayout height = fill_parent
      ScrollView
          ListViewheight = wrap_content /
          TextView /
          TextView /
      /ScrollView
  /LinearLayout

 Basically I'd like to keep theListViewat a height which contains all
 its children views, then some static widgets below that - all inside 
 a
 master ScrollView - is that possible?

 Thanks

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

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

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

[android-developers] Re: How can I select or click on an item in a ListView?

2009-11-14 Thread Mark Wyszomierski
I think you need to use:

 ListView.setOnItemClickListener()

instead.

On Nov 14, 2:25 pm, lau ka man ivancar...@gmail.com wrote:
 As I mentioned in the email subject,
 I want to select an item (e.g. Department of Human Resource Management) in
 my ListView.
 And you can see that:
 I had try to use
 setClickable(true), setChoiceMode(ListView.CHOICE_MODE_SINGLE),
 setFocusable(true), setFocusableInTouchMode(true),
 no matter I use touch screen to click on the item or use the scroll ball on
 my mouse to select the item, it also doesn't work.
 Is there any mistakes in my coding?
 I hope someone can give me some ideas what I should do.
 because I am a beginner for developing Android application.

 And the following is my coding:
 package com.example.abc;

 import android.app.ListActivity;
 import android.content.Intent;
 import android.os.Bundle;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;

 public class DeptList extends ListActivity {
  int position;
  /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle bund) {
         super.onCreate(bund);

         setListAdapter(new ArrayAdapterString(this,
           android.R.layout.simple_list_item_1, DEPARTMENTS));
         getListView().setTextFilterEnabled(true);
         getListView().setClickable(true);
         getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
         getListView().setFocusable(true);
         getListView().setFocusableInTouchMode(true);
         getListView().setOnClickListener(selectItem);
     }

     private OnClickListener selectItem = new OnClickListener()
     {
      public void onClick(View v)
      {
       position = getListView().getCheckedItemPosition();
       if(position == 2)
       {
        Intent contactlist = new Intent();
        contactlist.setClass(DeptList.this, Meeting.class);
        startActivity(contactlist);
       }
       else
       {
        Intent contactlist1 = new Intent();
        contactlist1.setClass(DeptList.this, OfficeMap.class);
        startActivity(contactlist1);
       }
      }
     };

     static final String[] DEPARTMENTS = new String[] {
      Department of Accounting,
      Department of Marketing and Sales,
      Department of Human Resource Management,
      Department of Computing
     };



 }

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Need help with using multiple views within a Listview

2009-11-14 Thread JasonMP
Hi all,

I,m trying to build a custom Listview and Adapter to populate the
screen with items from a database.  I need to have a checkbox in each
view that when clicked will display a number in a textview from the
database within that particular Listview item, and then also update
the checked status in the database.  Anyone have an example of how I
could make this work?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Focus between views and lists issue/problem with Donut

2009-11-14 Thread Mark Wyszomierski
Brady, did you come up with a work around for this? I'm having the
same problem, and I can't come up with some sort of temporary fix for
it sadly.

On Oct 14, 5:10 pm, Brady brady.kro...@gmail.com wrote:
 Ok, I did some more sleuthing and this is definitely a bug.

 I modified the 1.5 SDK API demo Views  Lists  ex 7 to test. I added
 a button above the listview in the  list_7.xml layout. The same
 problem occurred on my 1.6 Donut Ion. If I set focus to the button
 using the 5-way nav, then nav down, the focus jumps to the 6th item in
 the list of contacts. Somewhere in the code a setSelection(5) is being
 called.

 Gonna file a bug.

 Brady

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


[android-developers] Re: Can someone with a Motorola Droid call AccountManager.getAccounts() please?

2009-11-14 Thread Micah
I am working on a similar project over at:
http://code.google.com/p/google-authenticator-for-android/

The end goal is to simulate the Google Account Authenticator found on
the Droid so that developers can use Google Accounts on their AVDs, as
well as people with 2.0 phones without Google Accounts (since the
Google Account isn't part of the AOSP, like Google Maps, Gmail, etc.).

It looks like we are at *about* the same point in writing the
authenticators, ie: not very far. :P  I do have some TODO comments
throughout that talk about some of the questions that I still have as
to how things work though.

On Nov 13, 6:40 pm, Dan Dumont ddum...@gmail.com wrote:
 To facilitate the discussion around this topic, I've started up a project
 over here:http://code.google.com/p/androidaccounts/

 http://code.google.com/p/androidaccounts/If anyone is interested in
 pitching in and writing some examples, let me know so I can add you.
 The current state of the project is as far as I've gotten to understanding
 what is available so far... and I'm stumped as to why new accounts don't
 seem to persist after their creation ( as far as the AccountsTester app is
 concerned ).
 Again, any comments from google devs about usage and best-practices would be
 greatly appreciated!

 On Fri, Nov 13, 2009 at 7:16 PM, ddum...@gmail.com ddum...@gmail.comwrote:



  I would also like some documentation.   The APIs are insufficient to
  deduce any sort of real world usage...

  The sources to the Dev Tools AccountsTester app would be a great
  start it seems that they left it out of the git repo.

  On Nov 13, 7:05 pm, polyclefsoftware dja...@gmail.com wrote:
   On Nov 13, 3:55 pm, Nerdrow troybe...@gmail.com wrote:

A working example from the Android team would be nice :)

   No kidding.

   I'm interested in using the authentication from the user's Google
   account to automatically log them into a Google App Engine app. I was
   hoping the new AccountManager would allow this. But there are no
   working examples and no indication of how one might set up a dummy
   account on an emulator.

   Would one of the Google folks please comment on 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%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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Archos/Android development

2009-11-14 Thread Lee
So I started porting an app over for the Archos developer 'contest'.
Got the skin, switched back to 1.5. Perhaps someone, somewhere has
some small experience with developing for the Internet Tablet 5

- I have no 'extended status bar' showing on the emulator, which the
appslib document advises us to shrink our heights by 48 pixels for. If
I have a SurfaceView, surely the dimensions of that already take into
account the status bar. Or is the extended base a particularly
horrible kludge that overlaps the accessible screen area ?

- is there a developer forum somewhere, or a FAQ or *anything* except
that single page on appslib.com ?

- any idea where to download AppsLib.apk to try it on the emulator ?
The link on appslib.com gives me 404.

I'm sure these questions will come up a lot in the next days as people
port over for their Christmas gift.

TIA!

Lee

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


[android-developers] Re: Can't run or debug my app on Eclipse

2009-11-14 Thread yuvalkesten
Happens to me as well.
Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are
having this problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Donuts Cupcakes

2009-11-14 Thread Bala

Enjoy the pictures: http://web-on-the-go.com/people/android.shtml

These pictures were taken using Android G1 phone at Google, Mountain
View, CA.

Best,
Bala

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


[android-developers] Re: Can't run or debug my app on Eclipse

2009-11-14 Thread yuvalkesten
Hi - I think it's somehow connected to the build.props file of your
android device since my problems started after I changed this file so
I will be able to run the droid maps app on my google ion and the
everything returned to normal after I reflashed the cyanogen 4.2.4
image (Which probably fixed my build.props).

Hope I have helped...

On Nov 14, 10:38 pm, yuvalkesten yuvalkes...@gmail.com wrote:
 Happens to me as well.
 Running on Google ION with Cyanogen 4.2.4, Windows XP. All apps are
 having this problem.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: PopupWindow with GridView - Trouble with inflating view

2009-11-14 Thread k_day
I did notice that if I remove

popupview.setAdapter(new ImageAdapter(this));

I no longer throw the exception.  Am I using the Adapter wrong?  Any
help would really be appreciated.

On Nov 10, 7:29 pm, k_day kevin.r@gmail.com wrote:
 I tried to post on

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

 but it appears the discussion is locked (no reply button) for some
 reason.

 I am having a similar issue while trying to use a GridView in a
 PopupWindow.  On my Activity's onCreate method, I am inflating a
 gridview from xml as follows:

 LayoutInflater inflater = (LayoutInflater)this.getSystemService
 (Context.LAYOUT_INFLATER_SERVICE);
 final GridView popupview = (GridView) inflater.inflate
 (R.layout.gridviewpopup, null, false);
 popupview.setAdapter(new ImageAdapter(this));

 I would like this GridView to popup on a button click. Also inside of
 my activity's onCreate, I have:

 final Button addButton = (Button) findViewById(R.id.add);
  addButton.setOnClickListener(new View.OnClickListener() {
             public void onClick(View v) {
                 PopupWindow mwindow = new PopupWindow(popupview, 100,
 100);
                 mwindow.showAtLocation(findViewById(R.id.main),
 Gravity.CENTER, 100, 100);
                 mwindow.setFocusable(true);
             }
  });

 On button click, I am throwing a ClassCastException from
 GridView.onMeasure(int, int).

 Can anyone please explain to me what I am doing wrong?

 Thanks.

 -k_day

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 test if app is shown on Market for all screensizes

2009-11-14 Thread Edward Falk
Oh, and more importantly, the Android market should have a tool that
allows developers to get a list of devices that their application
won't be shown for, and why.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Archos/Android development

2009-11-14 Thread Thomas Riley
Firstly, here is the APK: http://files.appslib.com/apps/marketplace/appslib.apk

Is that the one giving the 404 error? Its working me me.

As for testing, I guess it would be best to try and find someone with
a archos device and try it proper.

I do hope my applications get validated :)

On Nov 14, 8:32 pm, Lee lee.wil...@googlemail.com wrote:
 So I started porting an app over for the Archos developer 'contest'.
 Got the skin, switched back to 1.5. Perhaps someone, somewhere has
 some small experience with developing for the Internet Tablet 5

 - I have no 'extended status bar' showing on the emulator, which the
 appslib document advises us to shrink our heights by 48 pixels for. If
 I have a SurfaceView, surely the dimensions of that already take into
 account the status bar. Or is the extended base a particularly
 horrible kludge that overlaps the accessible screen area ?

 - is there a developer forum somewhere, or a FAQ or *anything* except
 that single page on appslib.com ?

 - any idea where to download AppsLib.apk to try it on the emulator ?
 The link on appslib.com gives me 404.

 I'm sure these questions will come up a lot in the next days as people
 port over for their Christmas gift.

 TIA!

 Lee

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 there a list of standard Intent specifications?

2009-11-14 Thread MrChaz
I'm looking into getting my application to show up when the user tries
to 'share' a picture via the Gallery application I can't, however,
find any information about how exactly to go about this.

I get that I need to declare an intent filter for the SHARE action,
what I can't seem to find is how the Gallery wants to send out the
selected image.

http://android-developers.blogspot.com/2009/11/integrating-application-with-intents.html
documentation is key indeed.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Is there a list of standard Intent specifications?

2009-11-14 Thread Mark Murphy
MrChaz wrote:
 I'm looking into getting my application to show up when the user tries
 to 'share' a picture via the Gallery application I can't, however,
 find any information about how exactly to go about this.

I'd try supporting ACTION_SEND and see if that gets you in there.

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

_Android Programming Tutorials_ Version 1.0 In Print!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 test if app is shown on Market for all screensizes

2009-11-14 Thread Edward Falk
Wait, so people are reporting problems with the CAMERA permission?
Let me guess, if you need that permission, then the app isn't shown to
phones that don't have cameras?

What if the app *can* use the camera, but doesn't *need* to use the
camera.  What if it runs just fine on devices without cameras.  What
if my app can use GPS, but runs ok without it?  Network connectivity?
This sounds pretty broken to me.

Why not just let the user decide if they want the app or not?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 cannot find my dev phone

2009-11-14 Thread Antonio Si
Hi,

I just got my android dev phone, but when I invoke adb devices, it only shows:

List of devices attached
no permissions

What does it mean? What is the problem and how should I fix it?

Would appreciate any input.

Thanks.

Antonio.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Choosing Dev Phone

2009-11-14 Thread Edward Falk
I don't know if someone else mentioned this, but I want to stress that
99% of developers do NOT need a dev phone.  If you just want to write
android apps in Java and run them, any phone will do this.  Dev phones
are for if you want to do OS-level development.  I'd much prefer a
phone that can download any app to one that can't.  I have a G1 and a
Google IO phone, and not being able to see my own paid apps on the
market can be a hassle.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] BAck to Activity after WebView

2009-11-14 Thread toby
Hello,

I've been searching and looking for this answer for quite some time
now. I want to display a little HTML in a webView.

When the User read the HTML, he's supposed to use the back button to
go back to the previous activity. However, it closes the App.

How can I make it go back to the last Activity? It would also be ok to
display a soft back button or something.

Here my code

[snip]
WebView webview = new WebView(this);
setContentView(webview);
webview.canGoBack();
webview.loadData(worker.getHtmlResult(), text/html, utf-8);
[snap]

Thanks,

Toby

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 test if app is shown on Market for all screensizes

2009-11-14 Thread Klaus Kartou
Hi Blindfold,

Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users
reported that they couldnt find our app on Market with their Tattoo. But we
have no idea why?

To Edward:
HTC Tattoo has a camera, so that cannot be the reason our apps are not
showing.

What to do? :D

Cheers

On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk ed.f...@gmail.com wrote:

 Oh, and more importantly, the Android market should have a tool that
 allows developers to get a list of devices that their application
 won't be shown for, and why.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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: Securing a paid app

2009-11-14 Thread Paul Turchenko
TelephonyManager telManager = (TelephonyManager)
context.getSystemService(Context.TELEPHONY_SERVICE);
telManager.getDeviceId() will give you the device ID (IMEI for cell
phones). This is how you can tie your application to the device. The
rest (license generation, your program - server communication is up
to you). We already have developed security system exactly as you ask.
Feel free to contact me via e-mail for more details.

On Nov 14, 2:12 pm, jax jackma...@gmail.com wrote:
 I am wondering how I might go about securing a paid app on Android.

 I am thinking of selling the application from my own website via
 PayPal, however, how will I stop people from sharing it with their
 friends etc.  Does Android have any type of native support for this?

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


[android-developers] Optional permissions (revisited)

2009-11-14 Thread Jonas Petersson
Hi all,

I know this was discussed on this list about a year ago, but as far as I 
could tell it ended up with Dianne saying that it may be done, but was 
not a priority at the time.

Situation:
I've had a few requests from users of one of my apps that they would 
prefer to disable for instance access to the phonebook and GPS (for 
paranoia presumably). This would disable some interesting features in my 
app, but it would still be useful in simple cases.

As it is now, I'd have to release two versions of the application with 
99% of the code identical (could probably make it 100% really with some 
effort and just have different manifests). This is suboptimal. Having 
certian permissions listed as optional in the manifest and then checking 
for them during execution would be a lot better.

My opinion is:
Most users don't seem to be particularly bothered so having the current 
intall dialog as a default would be fine, but then add a button for 
detailed tuning, where permissions that are flagged as optional can be 
toggled. (Toggling these for an already installed app is a separate 
question.)

Other opinions?

Best / Jonas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: App name/icon problems on Hero after reboot

2009-11-14 Thread ZillCE
The icon I was using was the only one on the phone created by the
installation in All Programs.  It was not an icon placed on the
desktop.  Is there is a way to delete and recreate the icons in All
Programs?

=

On Nov 13, 3:19 pm, Dianne Hackborn hack...@android.com wrote:
 On Fri, Nov 13, 2009 at 11:02 AM, ZillCE zillce...@gmail.com wrote:
  While not exactly the same issue, after an application upgrade (an
  application I wrote) I have experienced the application icon not
  working (The linked program is no longer installed on your phone).
  After a power down/up the icon works but the program crashes on
  startup with a ClassNotFoundException.

 This is a completely separate issue, and known behavior in the Android
 platform -- when you place a shortcut on your desktop, you are putting a
 shortcut to a specific activity inside of the app.  If the updated app has
 changed the class of this activity, the shortcut will still exist referring
 to the old activity and no longer work.  It is fixed by deleting the
 shortcut and creating a new one.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] Pause game

2009-11-14 Thread Huynh Ngoc Vu Nguyen
Hi all!

I have a game in android platform. I want to implement pause game function
but I don't known stop current threat and resume it when re-play.
Please help me solution!
Thanks all,

Best,

Nguyen
-- 
Huynh Ngoc Vu Nguyen
Add: Duy Xuyên - Quang Nam
E-mail: vunguye...@gmail.com
Phone: 0935102789

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: adb cannot find my dev phone

2009-11-14 Thread Lee Jarvis
Read the documentation: 
http://developer.android.com/guide/developing/device.html

If it's a permissions issue try running `abd kill-server` followed by
`adb devices` as root, if your device shows you can either leave it
be, and switch back to a regular user and commence with debugging etc,
or set up permissions which is discussed within the documentation.

Regards,
Lee

On 14 Nov, 21:48, Antonio Si antonio...@gmail.com wrote:
 Hi,

 I just got my android dev phone, but when I invoke adb devices, it only 
 shows:

 List of devices attached
     no permissions

 What does it mean? What is the problem and how should I fix it?

 Would appreciate any input.

 Thanks.

 Antonio.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Pause game

2009-11-14 Thread Mark Murphy
Huynh Ngoc Vu Nguyen wrote:
 Hi all!
 
 I have a game in android platform. I want to implement pause game
 function but I don't known stop current threat and resume it when re-play.
 Please help me solution!

You could use a semaphore:

http://developer.android.com/reference/java/util/concurrent/Semaphore.html

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

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Choosing Dev Phone

2009-11-14 Thread Alberto
I have a G1 dev phone and can't see any paid apps in the marketplace
with the device.

On Nov 14, 12:21 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I have a Google ION and can purchase and download any app I want. I
 believe only rooted phones are restricted from downloading paid apps,
 is that correct?

 -John Coryat

 Radar Now!

 What Zip 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: Pause game

2009-11-14 Thread davemac
Not sure exactly what you're asking here, so here goes:

If you're asking how the user can tell the game to pause, then you
need some sort of control in the UI that the user can invoke to
trigger the pause action in your game. This could be a very small
button, maybe in the corner of your game that the user can click on.
Or maybe it's a special key that the user can press (assuming a
physical keyboard here), or maybe a menu from hitting the Menu button
on the device. As soon as the event happens you can stop the game
action, present the choices to the user and decide what to do from
there.

If you're asking how to save the game parameters so it picks up where
the user left off, then you should look at SharedPreferences. These
can be read and written to from code (see SharedPreferences.Editor),
with or without actually creating a preferences GUI for your
application. Save whatever values you need to save in onPause(), and
read them back in onResume(). Note that the very first time you start
up your app, there won't be any saved values so provide appropriate
defaults if you don't find any saved values.

- dave

On Nov 14, 6:35 pm, Mark Murphy mmur...@commonsware.com wrote:
 Huynh Ngoc Vu Nguyen wrote:

  Hi all!

  I have a game in android platform. I want to implement pause game
  function but I don't known stop current threat and resume it when re-play.
  Please help me solution!

 You could use a semaphore:

 http://developer.android.com/reference/java/util/concurrent/Semaphore...

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

 Android Development Wiki:http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Optional permissions (revisited)

2009-11-14 Thread Edward Falk

 Other opinions?

I agree absolutely.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 reject a call using Android SDK

2009-11-14 Thread Muhammad Bilal
Hi,

My question is really simple and to Geeks and experts in Android
development, is it possible to reject a incoming call using Android
SDK 1.6 or higher ?



regards
MB

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: App name/icon problems on Hero after reboot

2009-11-14 Thread Dianne Hackborn
On Sat, Nov 14, 2009 at 3:18 PM, ZillCE zillce...@gmail.com wrote:

 The icon I was using was the only one on the phone created by the
 installation in All Programs.  It was not an icon placed on the
 desktop.  Is there is a way to delete and recreate the icons in All
 Programs?


Sorry I didn't realize you were referring to the all apps drawer?  Is this
on a Hero?  If so, then the issue after the reboot is probably the same
problem (it reverting to your old manifest), though having a problem after
an update but before a reboot is something else.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Does MotionEvent.getEdgeFlags() ever return anything other than 0 ?

2009-11-14 Thread Dianne Hackborn
I don't know what device you are running on, but on things like the G1 and
myTouch, the touch screen isn't able to accurately detect locations at the
far edges of the screen, so when you reach that area the location will be
pinned to the very far edge and the flag set.  Note that this is referring
to the edge of the -screen-, not wherever your view is.

On Sat, Nov 14, 2009 at 9:16 AM, davemac davemac...@gmail.com wrote:

 I was expecting the getEdgeFlags() method of MotionEvent to tell me
 when a MotionEvent had reached the edge of something, but the value
 returned from getEdgeFlags() is *always* zero. Is this the expected
 behavior? The documentation says that the flags indicate when a touch
 has reached the edge of the display. I've tried this on a real device
 and in the emulator, and the location coordinates never quite reach
 the edge of the display, and getEdgeFlags() always returns 0. By
 never quite reach I mean that if dragging a finger off the left edge
 of the display, the smallest X I got was 2. Reaching the edge of the
 view doesn't seem to change the value returned either.

 I suppose I could set the flags myself using setEdgeFlags() using
 calculations with known dimensions of the object whose edges I care
 about. Is that how it's supposed to be used? Is this broken for now?

 Thanks for your help.

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Person using Sprint Hero can't see application?

2009-11-14 Thread Dianne Hackborn
Are you sure the Here is running 1.6 (which is the minSdkVersion 4 you are
specifying)?

On Sat, Nov 14, 2009 at 7:53 AM, g1bb corymgibb...@gmail.com wrote:

 Hello,

 I have someone e-mailing me that they can't see my application in the
 Market. Is there something specific that I need to put in my manifest?
 They're using a Sprint Hero.

 Here's my manifest:
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.droidfart.app android:versionCode=14
 android:versionName=1.1.2
 application android:label=@string/app_name android:icon=@drawable/
 logo
activity android:name=.Main
  android:label=@string/app_name
  android:screenOrientation=portrait
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

activity android:name=.FartBombActivity
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.FartBombCountDown
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.Shaker
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.Settings
android:label=@string/app_name
android:screenOrientation=portrait/

activity android:name=.Recorder
android:label=@string/app_name
android:screenOrientation=portrait/

 receiver android:name=.SMSReceiver
android:enabled=true
intent-filter
action

  android:name=android.provider.Telephony.SMS_RECEIVED /
/intent-filter
/receiver
receiver android:name=.SMSReceiver android:label=@string/
 app_name
intent-filter
   category android:name=android.intent.category.LAUNCHER /
/intent-filter
 /receiver

  receiver android:name=.OneShotAlarm android:process=:remote /
   service android:name=.FartBomb/
  /application

 uses-sdk android:minSdkVersion=4/uses-sdk
 uses-permission android:name=android.permission.RECEIVE_SMS/uses-
 permission
 uses-permission android:name=android.permission.WAKE_LOCK/uses-
 permission
 uses-permission android:name=android.permission.VIBRATE/uses-
 permission
 uses-permission android:name=android.permission.RECORD_AUDIO/uses-
 permission
 /manifest

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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Can't we have multiple instances for root of a task, in the same task?

2009-11-14 Thread Dianne Hackborn
That is the normal behavior, and something you pretty much don't want to
change.  Why do you want to do this instead of having multiple instances of
an activity in the same task?

On Sat, Nov 14, 2009 at 1:56 AM, pink 444 pnk...@gmail.com wrote:

 Hi all,

   I am trying to know the association between activities and
 tasks.

 Thus i tried to instantiate root of a task for multiple times by
 using intent object, which has FLAG_ACTIVITY_NEW_TASK flag .But i did
 not get succeeded.

  Instead the intent ,which fired to instantiate root of a task
 for multiple times, are simply ignored but the task came to
 foreground.

 Thus my question here is, Can't we have multiple instances for
 root of a task in the same task.

 Any help would be appreciated highly.


 Regards,
 -Siva.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

[android-developers] installing Android 1.6+ on headless Linux server

2009-11-14 Thread azad
Hi,

I am not sure how to install Android 1.6+ on a headless Linux server.
Our continuous integration build machine is a headless server in the
cloud.

Following the instructions, I downloaded android-sdk_r3-linux.tgz,
untarred it, added its location to my path, and tried to update. This
what I got:


r...@savendipity:/usr/local/share/android-sdk-linux/tools# android
update sdk

No command line parameters provided, launching UI.
See 'android --help' for operations from the command line.

Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-
gtk-3550 or swt-pi-gtk in swt.library.path, java.library.path or the
jar file

+ stack trace


I don't know whether this message means that it is not possible to
update the SDK without a GUI, that my command line is wrong, or that
my environment is missing something that would allow me to install
from the command line.

Would appreciate instructions on how to install 1.6+ on a headless
linux server.

Thanks in advance for your help.

Azad

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Does MotionEvent.getEdgeFlags() ever return anything other than 0 ?

2009-11-14 Thread davemac
I've got a Motorola Droid. The location values approach 0 or 480 or
854 but never quite get there. The emulator also doesn't ever quite
get to the edge of the screen.

- dave

On Nov 14, 8:17 pm, Dianne Hackborn hack...@android.com wrote:
 I don't know what device you are running on, but on things like the G1 and
 myTouch, the touch screen isn't able to accurately detect locations at the
 far edges of the screen, so when you reach that area the location will be
 pinned to the very far edge and the flag set.  Note that this is referring
 to the edge of the -screen-, not wherever your view is.



 On Sat, Nov 14, 2009 at 9:16 AM, davemac davemac...@gmail.com wrote:
  I was expecting the getEdgeFlags() method of MotionEvent to tell me
  when a MotionEvent had reached the edge of something, but the value
  returned from getEdgeFlags() is *always* zero. Is this the expected
  behavior? The documentation says that the flags indicate when a touch
  has reached the edge of the display. I've tried this on a real device
  and in the emulator, and the location coordinates never quite reach
  the edge of the display, and getEdgeFlags() always returns 0. By
  never quite reach I mean that if dragging a finger off the left edge
  of the display, the smallest X I got was 2. Reaching the edge of the
  view doesn't seem to change the value returned either.

  I suppose I could set the flags myself using setEdgeFlags() using
  calculations with known dimensions of the object whose edges I care
  about. Is that how it's supposed to be used? Is this broken for now?

  Thanks for your help.

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

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


[android-developers] android-x86 test build 20091113 is available

2009-11-14 Thread Yi Sun
The Android-x86 project is glad to announce a new test build
20091113 for public testing. A live cd ISO and USB image are
available from our site:

   http://www.android-x86.org/download
   http://code.google.com/p/android-x86/downloads/list

Features

Build 20091113 is Android 1.6 (Donut) based and it is a release
candidate for android-x86 1.6 stable release.
In addition to the features available in previous release, the new
build contains

   * Hardware OpenGL support from olv in 0xlab.
   * Fn key support for EeePC platforms.
   * External USB bluetooth support.
   * NDK for X86 platforms is supported (based on the original work
from guillaume.etiev...@laposte.net)
   * new touch features to simulate home/menu/back keys to support
touch only device.
   * Improvement on the keyboard support. User can use ctrl+c directly
from terminal simulator now.
   * A lots of bug fixes.

Released Files

   * Live CD iso: android-x86-20091113.iso

     sha1sum:  dec0b99a6fe1e33e05b665e82f3020f612eb14bf

   * Live USB image: android-x86-20091113_usb.img.gz

     sha1sum:  ce040ced2da92c278c7df2527b5f3498a68afbfa

Source code

 The source code is available in our git server:

   $ repo init -u git://git.android-x86.org/android-x86/platform/manifest.git
   $ repo sync

Test reports (success or fail) are welcome.
Please send the reports to the Android-x86 discussion group.
http://groups.google.com/group/android-x86

--
Android-x86
http://www.android-x86.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Invalid Audio Buffer Size on Samsung Galaxy

2009-11-14 Thread joelt

The following works fine on a G1 but gives an error on the Samsung
Galaxy. I was hoping cross-platform support would be better than this.
See error below.

private final static int RATE = 44100;
private final static int CHANNEL_MODE =
AudioFormat.CHANNEL_CONFIGURATION_MONO;
private final static int ENCODING =
AudioFormat.ENCODING_PCM_16BIT;
private AudioRecord recorder_;


 public boolean open() {

  int bufferSize = 4 * AudioRecord.getMinBufferSize(RATE,
CHANNEL_MODE, ENCODING);
  recorder_ = new AudioRecord(AudioSource.MIC, RATE, CHANNEL_MODE,
ENCODING, bufferSize);

last line gives the following on the Samsung Galaxy phone:
11-14 19:04:07.507: ERROR/AndroidRuntime(7617):
java.lang.IllegalArgumentException: Invalid audio buffer size.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Person using Sprint Hero can't see application?

2009-11-14 Thread Alexey Volovoy
Most of the Heros running 1.5 , although upgrade afaik is available.
So minSdk should be 3 ( or you'll run into the same problem with CLIQ
users )
target SDK should be 4

On Nov 14, 9:53 am, g1bb corymgibb...@gmail.com wrote:
 Hello,

 I have someone e-mailing me that they can't see my application in the
 Market. Is there something specific that I need to put in my manifest?
 They're using a Sprint Hero.

 Here's my manifest:
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
       package=com.droidfart.app android:versionCode=14
 android:versionName=1.1.2
 application android:label=@string/app_name android:icon=@drawable/
 logo
         activity android:name=.Main
                   android:label=@string/app_name
                   android:screenOrientation=portrait
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=android.intent.category.LAUNCHER /
             /intent-filter
         /activity

         activity android:name=.FartBombActivity
                 android:label=@string/app_name
                 android:screenOrientation=portrait/

         activity android:name=.FartBombCountDown
                 android:label=@string/app_name
                 android:screenOrientation=portrait/

         activity android:name=.Shaker
         android:label=@string/app_name
         android:screenOrientation=portrait/

         activity android:name=.Settings
         android:label=@string/app_name
         android:screenOrientation=portrait/

         activity android:name=.Recorder
         android:label=@string/app_name
         android:screenOrientation=portrait/

          receiver android:name=.SMSReceiver
                         android:enabled=true
                         intent-filter
                                 action
                                         
 android:name=android.provider.Telephony.SMS_RECEIVED /
                         /intent-filter
         /receiver
         receiver android:name=.SMSReceiver android:label=@string/
 app_name
     intent-filter
        category android:name=android.intent.category.LAUNCHER /
     /intent-filter
 /receiver

  receiver android:name=.OneShotAlarm android:process=:remote /
    service android:name=.FartBomb/
  /application

 uses-sdk android:minSdkVersion=4/uses-sdk
 uses-permission android:name=android.permission.RECEIVE_SMS/uses-
 permission
 uses-permission android:name=android.permission.WAKE_LOCK/uses-
 permission
 uses-permission android:name=android.permission.VIBRATE/uses-
 permission
 uses-permission android:name=android.permission.RECORD_AUDIO/uses-
 permission
 /manifest

 Thanks in advance.

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


[android-developers] Re: Invalid Audio Buffer Size on Samsung Galaxy

2009-11-14 Thread joelt
It is also spitting this out:
WARN/AudioHardwareMSM72XX(1018): getInputBufferSize bad sampling rate:
44100

Is there an API that will tell me which rates it _does_ support? It
doesn't look like it.

On Nov 14, 8:57 pm, joelt j...@harpsoft.com wrote:
 The following works fine on a G1 but gives an error on the Samsung
 Galaxy. I was hoping cross-platform support would be better than this.
 See error below.

     private final static int RATE = 44100;
     private final static int CHANNEL_MODE =
 AudioFormat.CHANNEL_CONFIGURATION_MONO;
     private final static int ENCODING =
 AudioFormat.ENCODING_PCM_16BIT;
     private AudioRecord recorder_;

  public boolean open() {

   int bufferSize = 4 * AudioRecord.getMinBufferSize(RATE,
 CHANNEL_MODE, ENCODING);
   recorder_ = new AudioRecord(AudioSource.MIC, RATE, CHANNEL_MODE,
 ENCODING, bufferSize);

 last line gives the following on the Samsung Galaxy phone:
 11-14 19:04:07.507: ERROR/AndroidRuntime(7617):
 java.lang.IllegalArgumentException: Invalid audio buffer size.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Growing pains for Android developers??

2009-11-14 Thread Kieran
Android 2 SDK released: 27th Oct
Droid released: 6th Nov
So that's 9 days (with a weekend) to test our apps at the new
resolution, make any necessary fixes, then deploy to the Market. I
don't think that's enough, and ultimately it's the Droid users that
suffer.


On Nov 15, 1:00 am, wonae mat...@hanmail.net wrote:
 Hey guys,
 I'm a Korean and we don't even find a way to sell our apps!!
 We have to earn a little cash only with AdMob :_(

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] App Not showing up on Verizon DROID Phones

2009-11-14 Thread Kumaravel Kandasami
Did NOT see my app (Money Now Preview) on the VERIZON new DROID phone.

I personally searched for my app on the Market app  - Weird did not see the
app on my friends phone.

Weird !! Looks like there could some settings on the phone or need to change
any thing on my app .. not clue.


Any suggestions/recommendations !?



Kumar_/|\_
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...


On Thu, Nov 12, 2009 at 10:40 PM, Kumaravel Kandasami 
kumaravel.kandas...@gmail.com wrote:

 Thank You very much Scott.


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:32 PM, SoftwareForMe.com SoftwareForMe.com 
 softwareforme@gmail.com wrote:

 Your Manifest looks fine.

 I have a Droid. I searched the market and found MoneyNow - Preview, by
 SAISK LLC. If that's you, you're AOK.

 Scott
 SoftwareForMe.com


 On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 BTW, additionally I have ON ed the copy protection in the Android
 Market.*

 **On (Helps prevent copying of this application from the device.
 Increases the amount of memory on the phone required to install the
 application.)*


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thanks Dianne Hackborn.
 This is my entire manifest file, I have just renamed the classes for
 this email.


 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=com.saisk.moneynow
   android:versionCode=2
   android:versionName=Preview 1.0
uses-permission android:name=android.permission.INTERNET /
uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
application
android:name=myApplication
android:icon=@drawable/mn
android:label=@string/app_name
android:windowNoTitle=true

 activity android:name=.MyActivity
   android:configChanges=keyboardHidden|orientation
   android:theme=@android:style/Theme.NoTitleBar
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 /application

 uses-sdk android:minSdkVersion=3 /
 /manifest


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn 
 hack...@android.comwrote:

 What else is in your manifest?

 On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 I just got a call from my friend saying that she is not able to see
 our App: Money Now on her Droid phone.

 I have declared in manifest.xml as
 uses-sdk android:minSdkVersion=3 /

 Is there anything that I am missing to have my app be displayed on the
 DROID Phones or it is an user error.


 Appreciate your response.

 Thanks,
 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see 
 and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Warm regards,
 The PhoneMyPC Team

 --
 You received this message because you are 

[android-developers] Re: Help! Force close after renaming package

2009-11-14 Thread FJMustak
Thanks for the help!  I looked at the LogCat view and it pointed me to
what I was missing... It was in the layout XML file.  Works now.

On Nov 14, 7:58 am, TreKing treking...@gmail.com wrote:
 To get the stack trace, just look at the LogCat view in eclipse when the
 program crashes (sometimes the debugger stops at the crash point so you may
 have to continue execution until it shows up).

 Alternatively, run the DDMS tool a select your running AVD to see the
 LogCat.

 I haven't really looked at the examples in much depth, but aren't
 LunarLander and Snake (the only) game projects? Maybe that has something to
 do with it? Maybe try searching the entire project for the package name and
 see if it's been hard-coded somehow? Getting the stack-trace from the LogCat
 is definitely your best bet to get a lead though.

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

 On Sat, Nov 14, 2009 at 4:24 AM, FJMustak fjmus...@gmail.com wrote:
  I'm not exactly sure how to display the stack-trace in eclipse... But
  here is exactly what I did:
  - Using the Snake example that came with the 1.1 SDK, I replaced
  com.example.android.snake with com.example.android.snake2 in the .java
  files, and in the manifest.  I also renamed the directory from /com/
  example/android/snake to /com/example/android/snake2
  then I ran the package using a 1.6 AVD (G1)
  I tried several of the Android 1.1 SDK examples, and most of them
  worked fine after I renamed the package, the exceptions were
  lunarlander and snake...

  On Nov 13, 1:18 pm, TreKing treking...@gmail.com wrote:
   What does the stack-trace look like when it force-closes?

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

   On Fri, Nov 13, 2009 at 5:52 AM, FJMustak fjmus...@gmail.com wrote:
I have modified a sample app, and it works fine.  When I rename the
package though, it force closes.  I have modified the package name in
all the .java files, as well as the manifest, in addition to the
physical directory structure.  I've even tried to create a project
from scratch and copy the relevant code in.  Any ideas what could be
causing this? Am I missing something?

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 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: Person using Sprint Hero can't see application?

2009-11-14 Thread Walter
I had the same problem, here is the solution from one user:

I found that the fault was caused by modifying the build.trout.prop
to enable Google Maps Navigation, this in turn broke protected apps in
the 1.6 marketplace.apk

Just letting you know incase anyone else has the same issue, they need
to restore their original build.trout.prop



On Nov 14, 8:46 pm, Alexey Volovoy avolo...@gmail.com wrote:
 Most of the Heros running 1.5 , although upgrade afaik is available.
 So minSdk should be 3 ( or you'll run into the same problem with CLIQ
 users )
 target SDK should be 4

 On Nov 14, 9:53 am, g1bb corymgibb...@gmail.com wrote:

  Hello,

  I have someone e-mailing me that they can't see my application in the
  Market. Is there something specific that I need to put in my manifest?
  They're using a Sprint Hero.

  Here's my manifest:
  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
        package=com.droidfart.app android:versionCode=14
  android:versionName=1.1.2
  application android:label=@string/app_name android:icon=@drawable/
  logo
          activity android:name=.Main
                    android:label=@string/app_name
                    android:screenOrientation=portrait
              intent-filter
                  action android:name=android.intent.action.MAIN /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter
          /activity

          activity android:name=.FartBombActivity
                  android:label=@string/app_name
                  android:screenOrientation=portrait/

          activity android:name=.FartBombCountDown
                  android:label=@string/app_name
                  android:screenOrientation=portrait/

          activity android:name=.Shaker
          android:label=@string/app_name
          android:screenOrientation=portrait/

          activity android:name=.Settings
          android:label=@string/app_name
          android:screenOrientation=portrait/

          activity android:name=.Recorder
          android:label=@string/app_name
          android:screenOrientation=portrait/

           receiver android:name=.SMSReceiver
                          android:enabled=true
                          intent-filter
                                  action
                                          
  android:name=android.provider.Telephony.SMS_RECEIVED /
                          /intent-filter
          /receiver
          receiver android:name=.SMSReceiver android:label=@string/
  app_name
      intent-filter
         category android:name=android.intent.category.LAUNCHER /
      /intent-filter
  /receiver

   receiver android:name=.OneShotAlarm android:process=:remote /
     service android:name=.FartBomb/
   /application

  uses-sdk android:minSdkVersion=4/uses-sdk
  uses-permission android:name=android.permission.RECEIVE_SMS/uses-
  permission
  uses-permission android:name=android.permission.WAKE_LOCK/uses-
  permission
  uses-permission android:name=android.permission.VIBRATE/uses-
  permission
  uses-permission android:name=android.permission.RECORD_AUDIO/uses-
  permission
  /manifest

  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] App Not showing up on Verizon DROID Phones

2009-11-14 Thread SoftwareForMe.com SoftwareForMe.com
*Money Now - PreviewFREE*
**SAISK LLC  **000

It's there!

I have a Moto Droid on Verizon.

Could this be a regional thing? Im in Washington State.

Scott
SoftwareForMe.com
Makers of PhoneMyPC

On Sat, Nov 14, 2009 at 9:19 PM, Kumaravel Kandasami 
kumaravel.kandas...@gmail.com wrote:

 Did NOT see my app (Money Now Preview) on the VERIZON new DROID phone.

 I personally searched for my app on the Market app  - Weird did not see the
 app on my friends phone.

 Weird !! Looks like there could some settings on the phone or need to
 change any thing on my app .. not clue.


 Any suggestions/recommendations !?




 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:40 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thank You very much Scott.


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:32 PM, SoftwareForMe.com SoftwareForMe.com 
 softwareforme@gmail.com wrote:

 Your Manifest looks fine.

 I have a Droid. I searched the market and found MoneyNow - Preview, by
 SAISK LLC. If that's you, you're AOK.

 Scott
 SoftwareForMe.com


 On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 BTW, additionally I have ON ed the copy protection in the Android
 Market.*

 **On (Helps prevent copying of this application from the device.
 Increases the amount of memory on the phone required to install the
 application.)*


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thanks Dianne Hackborn.
 This is my entire manifest file, I have just renamed the classes for
 this email.


 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=com.saisk.moneynow
   android:versionCode=2
   android:versionName=Preview 1.0
uses-permission android:name=android.permission.INTERNET /
uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
application
android:name=myApplication
android:icon=@drawable/mn
android:label=@string/app_name
android:windowNoTitle=true

 activity android:name=.MyActivity
   android:configChanges=keyboardHidden|orientation
   android:theme=@android:style/Theme.NoTitleBar
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 /application

 uses-sdk android:minSdkVersion=3 /
 /manifest


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn 
 hack...@android.comwrote:

 What else is in your manifest?

 On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 I just got a call from my friend saying that she is not able to see
 our App: Money Now on her Droid phone.

 I have declared in manifest.xml as
 uses-sdk android:minSdkVersion=3 /

 Is there anything that I am missing to have my app be displayed on
 the DROID Phones or it is an user error.


 Appreciate your response.

 Thanks,
 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see 
 and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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] Re: Bounding Geometry in Maps?

2009-11-14 Thread Chad
You know, I took a look at that lat/lon span and totally dismissed it.
Now it makes sense. Thanks for the pointer.
So is it safe to assume that I need to divide the span value in 1/2
prior to adding/subtracting that value from the center point lat/lon?

Thanks,
Chad

On Nov 13, 3:23 pm, TreKing treking...@gmail.com wrote:
 The MapView class has a center point and latitude and longitude spans that
 you can use to compute the visible area.

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

 On Fri, Nov 13, 2009 at 9:30 AM, Chad cha...@gmail.com wrote:
  Is there a way to get the current bounding geometry or bounding box in
  a current map view? I am connecting to a large dataset and would like
  the ability to send a bounding box of the users current view to the
  server to retrieve only the points that are within the users view and
  maybe buffer a little outside similar to google earth.

  Thanks,
  Chad

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] App Not showing up on Verizon DROID Phones

2009-11-14 Thread Kumaravel Kandasami
Thanks Scott.

Interesting !!  I am in Houston, Texas.

What would be the reason the app is visible only on certain phones of same
type  service provider !?

Would it be an issue on Google Android Market App/Market place ?

Next thing, I am doing is to test on other Droids in my region.

I'll keep you updated, because it might help developers like me - who are
trusting that their app would be served on all the phones, if they put it in
the Android market.


Kumar_/|\_
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...


On Sat, Nov 14, 2009 at 11:29 PM, SoftwareForMe.com SoftwareForMe.com 
softwareforme@gmail.com wrote:

 *Money Now - PreviewFREE*
 **SAISK LLC  **000

 It's there!

 I have a Moto Droid on Verizon.

 Could this be a regional thing? Im in Washington State.

 Scott
 SoftwareForMe.com
 Makers of PhoneMyPC


 On Sat, Nov 14, 2009 at 9:19 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Did NOT see my app (Money Now Preview) on the VERIZON new DROID phone.

 I personally searched for my app on the Market app  - Weird did not see
 the app on my friends phone.

 Weird !! Looks like there could some settings on the phone or need to
 change any thing on my app .. not clue.


 Any suggestions/recommendations !?




 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:40 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thank You very much Scott.


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:32 PM, SoftwareForMe.com SoftwareForMe.com 
 softwareforme@gmail.com wrote:

 Your Manifest looks fine.

 I have a Droid. I searched the market and found MoneyNow - Preview, by
 SAISK LLC. If that's you, you're AOK.

 Scott
 SoftwareForMe.com


 On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 BTW, additionally I have ON ed the copy protection in the Android
 Market.*

 **On (Helps prevent copying of this application from the device.
 Increases the amount of memory on the phone required to install the
 application.)*


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thanks Dianne Hackborn.
 This is my entire manifest file, I have just renamed the classes for
 this email.


 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=com.saisk.moneynow
   android:versionCode=2
   android:versionName=Preview 1.0
uses-permission android:name=android.permission.INTERNET /
uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
application
android:name=myApplication
android:icon=@drawable/mn
android:label=@string/app_name
android:windowNoTitle=true

 activity android:name=.MyActivity
   android:configChanges=keyboardHidden|orientation
   android:theme=@android:style/Theme.NoTitleBar
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 /application

 uses-sdk android:minSdkVersion=3 /
 /manifest


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn hack...@android.com
  wrote:

 What else is in your manifest?

 On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 I just got a call from my friend saying that she is not able to see
 our App: Money Now on her Droid phone.

 I have declared in manifest.xml as
 uses-sdk android:minSdkVersion=3 /

 Is there anything that I am missing to have my app be displayed on
 the DROID Phones or it is an user error.


 Appreciate your response.

 Thanks,
 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support, and so won't reply to such e-mails.  All 
 such
 

Re: [android-developers] App Not showing up on Verizon DROID Phones

2009-11-14 Thread SoftwareForMe.com SoftwareForMe.com
I agree. We need some way to keep track of this stuff. I know the Eris
phones can't see PhoneMyPC right now; I'm hoping for a solution at the Dec
11 OTA.

Scott
SoftwareForMe.com
Makers of PhoneMyPC

On Sat, Nov 14, 2009 at 10:11 PM, Kumaravel Kandasami 
kumaravel.kandas...@gmail.com wrote:

 Thanks Scott.

 Interesting !!  I am in Houston, Texas.

 What would be the reason the app is visible only on certain phones of same
 type  service provider !?

 Would it be an issue on Google Android Market App/Market place ?

 Next thing, I am doing is to test on other Droids in my region.

 I'll keep you updated, because it might help developers like me - who are
 trusting that their app would be served on all the phones, if they put it in
 the Android market.


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Sat, Nov 14, 2009 at 11:29 PM, SoftwareForMe.com SoftwareForMe.com 
 softwareforme@gmail.com wrote:

 *Money Now - PreviewFREE*
 **SAISK LLC  **000

 It's there!

 I have a Moto Droid on Verizon.

 Could this be a regional thing? Im in Washington State.

 Scott
 SoftwareForMe.com
 Makers of PhoneMyPC


 On Sat, Nov 14, 2009 at 9:19 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Did NOT see my app (Money Now Preview) on the VERIZON new DROID phone.

 I personally searched for my app on the Market app  - Weird did not see
 the app on my friends phone.

 Weird !! Looks like there could some settings on the phone or need to
 change any thing on my app .. not clue.


 Any suggestions/recommendations !?




 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:40 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thank You very much Scott.


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 10:32 PM, SoftwareForMe.com SoftwareForMe.com 
 softwareforme@gmail.com wrote:

 Your Manifest looks fine.

 I have a Droid. I searched the market and found MoneyNow - Preview,
 by SAISK LLC. If that's you, you're AOK.

 Scott
 SoftwareForMe.com


 On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 BTW, additionally I have ON ed the copy protection in the Android
 Market.*

 **On (Helps prevent copying of this application from the device.
 Increases the amount of memory on the phone required to install the
 application.)*


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 Thanks Dianne Hackborn.
 This is my entire manifest file, I have just renamed the classes for
 this email.


 manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=com.saisk.moneynow
   android:versionCode=2
   android:versionName=Preview 1.0
uses-permission android:name=android.permission.INTERNET /
uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
application
android:name=myApplication
android:icon=@drawable/mn
android:label=@string/app_name
android:windowNoTitle=true

 activity android:name=.MyActivity
   android:configChanges=keyboardHidden|orientation
   android:theme=@android:style/Theme.NoTitleBar
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 /application

 uses-sdk android:minSdkVersion=3 /
 /manifest


 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...


 On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn 
 hack...@android.com wrote:

 What else is in your manifest?

 On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami 
 kumaravel.kandas...@gmail.com wrote:

 I just got a call from my friend saying that she is not able to see
 our App: Money Now on her Droid phone.

 I have declared in manifest.xml as
 uses-sdk android:minSdkVersion=3 /

 Is there anything that I am missing to have my app be displayed on
 the DROID Phones or it is an user error.


 Appreciate your response.

 Thanks,
 Kumar_/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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 

[android-developers] Relationship between MediaPlayer's audioStreamType and AudioManger's mode

2009-11-14 Thread hap 497
Hi,

Is there any relationship between MediaPlayer's audioStreamType  and
AudioManger's mode?
Like setting MediaPlayer's audioStream Type will put AudioManager into
different mode?
Or these 2 value are completely different?

Thank you.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Choosing Dev Phone

2009-11-14 Thread String
On 14 Nov, 23:16, Jonas Petersson jonas.peters...@xms.se wrote:

 Other opinions?

My opinion: Don't hijack other people's threads. :^(

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


[android-developers] Re: How to test if app is shown on Market for all screensizes

2009-11-14 Thread blindfold
OK, I didn't know that. My curiosity was triggered by Phil with the
suggested role of the CAMERA permission in having apps be visible on
the Market, which AFAIK should not have made any difference. Also,
android:minSdkVersion=4 (Android 1.6) according to documentation
implies that all screensizes are assumed supported:
http://d.android.com/guide/practices/screens_support.html If
android:minSdkVersion or android:targetSdkVersion is 4 (Android 1.6)
or higher, the default value for everything is true.

So I expected that basically only visibility of (unadapted for
screensize) Android 1.5 apps on the Market would be affected, without
any role for android.permission.CAMERA, and I would otherwise be
surprised.

BTW, lots of HTC Tattoo buyers seem annoyed, judging from
http://androinica.com/2009/10/11/htc-tattoos-android-market-will-not-list-apps-that-dont-support-qvga-display-option-update/
where it is stated that even Google's own Listen, My Tracks and
Sky Map are (were?) not visible on Android Market for users of the
HTC Tattoo.


On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote:
 Hi Blindfold,

 Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users
 reported that they couldnt find our app on Market with their Tattoo. But we
 have no idea why?

 To Edward:
 HTC Tattoo has a camera, so that cannot be the reason our apps are not
 showing.

 What to do? :D

 Cheers

 On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk ed.f...@gmail.com wrote:
  Oh, and more importantly, the Android market should have a tool that
  allows developers to get a list of devices that their application
  won't be shown for, and why.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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] JSONObject text must begin with '{' at character 1

2009-11-14 Thread TJ
I'm having a weird error, seems to be cause whenever I hit JSONObject
json=new JSONObject(result);.
The error msg is org.json.JSONException: A JSONObject text must begin
with '{. I have no idea how to fix this is any one have any idea
PLEASE LET ME KNOW. The JSON File is

thanks

The JSON File is
{ResultSet:{
  totalResultsAvailable:3,
  totalResultsReturned:2,
  firstResultPosition:1,
  Result:[
{
  Title:madonna 116,
  Summary:Picture 116 of 184,
  Url:http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/
madonna\/madonna-116.jpg,
   }
},
{
  Title:madonna 118,
  Summary:Picture 118 of 184,
  Url:http:\/\/www.celebritypicturesarchive.com\/pictures\/m\/
madonna\/madonna-118.jpg,
  }
}
  ]
}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 2.0] Contacts FAQ?

2009-11-14 Thread Bonifaz
A Blog entry about the new Contacts API from Google covering these
points would be helpful.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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   >