[android-developers] Re: Did anyone try Paypal in-apps Library?

2010-05-25 Thread Zsolt Vasvari
When I saw that PayPal decided to release the doc as a PDF document as
opposed to Javadoc, it really turned me off.

On May 25, 7:54 am, Chi Kit Leung michaelchi...@gmail.com wrote:
 Hi all,
 Did anyone try Paypal in-apps Library? Moreover, if any apps has this
 feature, it will against the policy in Android Market Policy, right? In
 Android Market, the free apps must be right without locking feature, right?
 --
 Regards,
 Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info

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

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


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

2010-05-25 Thread debelyoo
Hi Andy,

Good to see that the problem is not only specific to my environment :)
And I hope we could find a solution, or at least one Android engineer
will take a look at this post.

I still stuck on it... I tried on Android 1.6 (G1) and Android 2.1
(HTC Desire). Both do not work.

I'm currently looking into the MediaPlayer sources, to see if I can
get more details about the error and maybe fix the bug myself.

Cheers
Jean

On May 24, 9:45 am, Andy Savage a...@bluewire.net.nz wrote:
 Hi there,

 Any answer to this question? It's bugging me too. Jean, can you tell
 us what version you are testing this on? Have you tried 2.1?

 Cheers,
 Andy

 On May 6, 3:32 pm, debelyoo jean.ross...@gmail.com wrote:



  Hi dillirao,

  I don't receive onPrepared callback.

  After requesting the live stream through the SDP file (http://
  server_ip/live.sdp) I receive the following callbacks:
  - onBufferingUpdate -- Buffering 100%
  - onErrorCallback -- Command PLAYER_INIT completed with an error or
  info PVMFErrCorrupt

  My file is encoded in MPEG-4 part 2, audio is AAC, file format
  is .mp4, resolution is 320x240. I have a bitrate of 700kbps but bw
  should not be a problem since I'm on Wi-Fi.
  I can stream the same file with a RTSP request from the Darwin server.
  It works smoothly.

  Any idea why the device returns this error ? evn though it can play
  the same stream via RTSP ?

  Jean

  On May 5, 3:06 pm, dillirao malipeddi dillir...@arijasoft.com wrote:

   did u received OnPrepared callback.
   Plz write a onErrorcallback and see, if you get error callback.

   whats video profile and audio profile you are using.

   use : h263/h264 15fps; 176x144 or 320x240  and use low bit rate , on
   internet ; if lan, bw is not issu
   for audio: use aac/ again try low bit rate encoding;... amr/ is ok...

   Thanks

   On Thu, Apr 29, 2010 at 6:32 PM, debelyoo jean.ross...@gmail.com wrote:
I try to play a live stream on my android phone using the MediaPlayer
object. But I definitely see a black screen. Does anybody have any
experience with streaming on Android ?

Here is what I'm doing:
I broadcast a stream with Darwin streaming server (via
PlaylistBroadcast) to my Android phone. The stream is sent over RTP to
the IP of my device (unicast). A .sdp file describes my stream.

In my app, I try to play the stream with the following code where url
is rtsp://server_ip/live.sdp

private void playVideo(String url) {
       try {
               //media.setEnabled(false);

               if (player==null) {
                       //System.out.println(create MediaPlayer);
                       player=new MediaPlayer();
                       player.setScreenOnWhilePlaying(true);
               } else {
                       player.stop();
                       player.reset();
               }

               player.setDataSource(url);
               //holder.setFixedSize(320, 240);
               player.setDisplay(holder);

               player.setAudioStreamType(AudioManager.STREAM_MUSIC);
               player.setOnPreparedListener(this);
               player.prepareAsync();
               player.setOnBufferingUpdateListener(this);
               player.setOnCompletionListener(this);
       } catch (Throwable t) {
               System.out.println(Exception in media prep:
+t.toString());
       }
   }

public void onPrepared(MediaPlayer mp) {
               //System.out.println(onPrepared);

               int width=player.getVideoWidth();
               int height=player.getVideoHeight();

               if (width!=0  height!=0) {
                        holder.setFixedSize(width, height);
                        player.start();
               }
}

I always have a black screen, buffering remains at 0%.
I checked that I can play this live stream on VLC and QT on a desktop,
and it works fine. If I request the same file via a direct RTSP
request (rtsp://server_IP/myVideo.mp4) the file plays correctly on my
android phone.

I also tried to request the .sdp file by an HTTP request (http://
server_IP/live.sdp) but the result is the same (black screen).

Does anybody have already succeeded in playing a live stream on an
android phone ?

Cheers
Jean

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

   --
   Thank you,
   Dilli Rao. Mwww.arijasoft.com

   --
   You received this message because you are subscribed to the 

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

2010-05-25 Thread Andy Savage
In the interests of keeping things together here is the
linkhttp://groups.google.com/group/android-developers/browse_thread/thread/f963e8f7ac35b75bfor
my thread I started in the developers thread just a few days ago
related
to this.

I will file a bug request sometime soon unless anybody else can shed any
light (although I don't know if there will be much attention paid to it). It
is more a feature enhancement than a bug I think, but
it's definitely causing me difficulty.

The functionality to decode RTP streams is already built into OpenCore but
unfortunately you can't pass an SDP file to the MediaPlayer (OpenCore
Wrapper) unless it contains an RTSP stream link inside it. This is a bit
dumb really... what's the point in passing an SDP file in that case? but ah.

There seems to be a limitation that means that it will only accept SDP
information with RTP streams inside if it gets them from the RTSP stream
(e.g. it gets this information from SETUP in the RTSP protocal).

Thus far it seems the only solution is to dump the RTP packets to a file
(periodically close the file and write a new one) then periodically open
these files in mediaplayer. A pretty ugly hack really!

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 2:19 PM, debelyoo jean.ross...@gmail.com wrote:

 Hi Andy,

 Good to see that the problem is not only specific to my environment :)
 And I hope we could find a solution, or at least one Android engineer
 will take a look at this post.

 I still stuck on it... I tried on Android 1.6 (G1) and Android 2.1
 (HTC Desire). Both do not work.

 I'm currently looking into the MediaPlayer sources, to see if I can
 get more details about the error and maybe fix the bug myself.

 Cheers
 Jean

 On May 24, 9:45 am, Andy Savage a...@bluewire.net.nz wrote:
  Hi there,
 
  Any answer to this question? It's bugging me too. Jean, can you tell
  us what version you are testing this on? Have you tried 2.1?
 
  Cheers,
  Andy
 
  On May 6, 3:32 pm, debelyoo jean.ross...@gmail.com wrote:
 
 
 
   Hi dillirao,
 
   I don't receive onPrepared callback.
 
   After requesting the live stream through the SDP file (http://
   server_ip/live.sdp) I receive the following callbacks:
   - onBufferingUpdate -- Buffering 100%
   - onErrorCallback -- Command PLAYER_INIT completed with an error or
   info PVMFErrCorrupt
 
   My file is encoded in MPEG-4 part 2, audio is AAC, file format
   is .mp4, resolution is 320x240. I have a bitrate of 700kbps but bw
   should not be a problem since I'm on Wi-Fi.
   I can stream the same file with a RTSP request from the Darwin server.
   It works smoothly.
 
   Any idea why the device returns this error ? evn though it can play
   the same stream via RTSP ?
 
   Jean
 
   On May 5, 3:06 pm, dillirao malipeddi dillir...@arijasoft.com wrote:
 
did u received OnPrepared callback.
Plz write a onErrorcallback and see, if you get error callback.
 
whats video profile and audio profile you are using.
 
use : h263/h264 15fps; 176x144 or 320x240  and use low bit rate , on
internet ; if lan, bw is not issu
for audio: use aac/ again try low bit rate encoding;... amr/ is ok...
 
Thanks
 
On Thu, Apr 29, 2010 at 6:32 PM, debelyoo jean.ross...@gmail.com
 wrote:
 I try to play a live stream on my android phone using the
 MediaPlayer
 object. But I definitely see a black screen. Does anybody have any
 experience with streaming on Android ?
 
 Here is what I'm doing:
 I broadcast a stream with Darwin streaming server (via
 PlaylistBroadcast) to my Android phone. The stream is sent over RTP
 to
 the IP of my device (unicast). A .sdp file describes my stream.
 
 In my app, I try to play the stream with the following code where
 url
 is rtsp://server_ip/live.sdp
 
 private void playVideo(String url) {
try {
//media.setEnabled(false);
 
if (player==null) {
//System.out.println(create MediaPlayer);
player=new MediaPlayer();
player.setScreenOnWhilePlaying(true);
} else {
player.stop();
player.reset();
}
 
player.setDataSource(url);
//holder.setFixedSize(320, 240);
player.setDisplay(holder);
 

  player.setAudioStreamType(AudioManager.STREAM_MUSIC);
player.setOnPreparedListener(this);
player.prepareAsync();
player.setOnBufferingUpdateListener(this);
player.setOnCompletionListener(this);
} catch (Throwable t) {
System.out.println(Exception 

[android-developers] Re: Sending scores to the internet

2010-05-25 Thread Neilz
Dear Junde.

Your high score api looks great. Can I ask if it is secure, and how do
you ensure people cannot cheat?

Thanks!

On May 17, 8:13 am, Junde (Scoreloop) jun...@gmail.com wrote:
 Hi guys,

 This globalhighscores thing can be much easier, and free :)

 I'd like to introduce you to Scoreloop (www.Scoreloop.com), we're a
 cross-platform mobile social gaming enabler.
 We just launched our Android Social Gaming SDK. We have an advanced
 version with player challenges and coins, as well as a simple
 lightweight (but customisable) global scoreboard
 version that can be integrated very easily.. Along with the release
 comes an updated developer area to more easily configure game
 settings, and a new support forum/FAQ to assist with implementation.
 To download, just sign up atwww.Scoreloop.com/download

 Here's some screenshots of the integrations - a standard simplehigh
 scores template which you can customise, as well as a more advanced
 social gaming integration with challenges and 
 coins.http://androidforums.com/android-developers/79343-scoreloop-android-s...

 At the same time we'd also like to announce the addition of the
 MySpace SDK, so that you can now enable your users to connect to their
 MySpace social graph. To reward the first developers to integrate this
 functionality, MySpace is offering 1M ad impressions on their Android/
 iPhone App to the best social integrations with the MySpace support by
 June 30th.

 Our goal is to give game developers the tools and infrastructure they
 need to make better, more social games, in a fully customizable and
 modular way. With the public release of Core Social, every developer
 is now able to do just that.

 Here’s a brief list of some features you immediately have access to:
 - Global Leaderboards
 - Friend Finding
 - Social Network Publishing (MySpace/Facebook)
 - Social Discovery (Cross-Promotions / Friend Recommendations)
 - Player Challenges
 - Online Profiles
 - In-Game Currencies
 - Location Awareness
 - Achievements (iPhone only, soon Android)
 - Downloadable Content: Virtual Goods/Services (coming soon on
 Android)

 If you need any help or have any questions, please feel free to
 contact us directly.

 Thanks,
 Junde
 Business Development Managerwww.Scoreloop.com

 On May 16, 6:42 pm, ko5tik kpriblo...@yahoo.com wrote:



  On May 15, 12:45 pm, Simone simone.russ...@gmail.com wrote:

   Is it possible for me to add this feature in my game? I just need a
   little storage space somewhere on the internet to put the names and
   scores of the best players.
   Anyone?
   Simone

  You will need little more than  storage -  some kind of server
  software
  storing data and also some communication protocol for user handsets.

  This could be tricky.

  I implemented highscore  for my game recently
  (http://www.yook.de/getlines)

  I used:
   PicoWebRemoting to create REST-Service ( Just simple class with 2
  methods -
  push to push entry and pull top pull entries since some 
  period:http://www.pribluda.de/lines-highscore/Highscore/pull?since=0)

  On the client side you will need to parse JSON (native in android,
  though I use my
  library for databinding:http://github.com/ko5tik/jsonserializer)

  Then you will have to find an answer to following questions:
     - how to prevent doulbe insertion ofhighscrores
     - how do you deal with lack of connectivity
     - when do you pull highscore data from server to device
     - how do you secure your service  from pranksters inserting  bogus
  entries
  (no credentials stored in APK are secure)

  So you may choose to go for some embeddable highscore service
  (there are some - grok this list) instead doing everything yourself

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

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

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


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

2010-05-25 Thread bera
I asked google android team,They tell me:

'We are taking stock of all the returned phones and working on sending
the device back out. I had responded to the developer through the
seeding queue a few days ago with the same info. We just got a report
from our shipping vendor yesterday about phones returned to them by
Fedex with delivery exceptions.'

So there is hope

On 5月24日, 下午9时26分, bera bera...@gmail.com wrote:
 @peter :
 You are the 4th,who still not get phone.

 The threads in Android Help forum :

 http://www.google.com/support/forum/p/Android+Market/thread?tid=28c54...http://www.google.com/support/forum/p/Android+Market/thread?tid=4ce9a...

 No one ignored us,we are bad luck.

 On 5月24日, 下午5时20分, peter yellowwin...@gmail.com wrote:





  Hi all any update from those who still not getting their phone? I
  emailed Google and no response yet. I am located in Hong Kong and also
  noted that some of the developers in Hong Kong have received the phone
  but mine still not arriving ;(

  Any help?

  On May 17, 3:24 pm, bera bera...@gmail.com wrote:

   I also received response on May 7,and get the order number.
   But the Fedex had returned the shipment on May 6...

   Unfortunately,no answer after May 9...

   On 5月17日, 上午11时22分, Join findhe...@gmail.com wrote:

Bera,

I sent my problem on May 3,and google responsed on May 7.

FYI,here is the reply:

,

Your phone is being shipped now. We apologize for the slip-up.

Thanks,


--

Google Developer Programs, Androidhttp://developer.android.com


And I got my phone on May 11.

Good luck.

On May 15, 8:12 pm, bera bera...@gmail.com wrote:

 Join :
   Did you receive the response this week?
   I have sent two mails but no answer. I don't think there still got
 someone to manage android-market-seed...@google.com anymore.
   Besides, my friend neither receive any reply nor get his two mobile
 phones.

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

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

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

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

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


[android-developers] Socket freezes via GSM connection

2010-05-25 Thread ayanir
Hello,

I’m working on application that uses a socket connection.
I’ve implemented 2 different Threads for the read() and the write()
methods so they are not being blocked by the read.
Everything is working well on the WiFi connection but when I switch to
GSM connection the connection becomes unstable without any exception
being thrown. It means that there are freezes – the write and read
seems to work but no data is actually being piped.
Here is what I’m doing:


private Socket socketConn = null;
private DataInputStream dis = null;
private DataOutputStream dos = null;

//Read buffer
private byte[] buffer;
ByteArrayOutputStream readBuffer;

private String serverAddress;
private int serverPort;

public void openConnection(int timeout) throws Exception {
   if(socketConn != null){
   return;
   }

   //if we need to resolve the host - if succeed we replace the
default otherwise we use the default.
   //the check is done only once.
   if(checkHostResolved){
   checkHostResolved = false;
   try{
   InetAddress ia =
InetAddress.getByName(serverHostAddress);
   serverAddress = ia.getHostAddress();
   }
   catch(UnknownHostException e2){
   MyLog.printException(this, e2, run()
InetAddress.getByName);
   }
   }
   socketConn = new Socket();
   InetSocketAddress isa = new InetSocketAddress(serverAddress,
serverPort);
   socketConn.connect(isa, timeout);
   socketConn.setKeepAlive(true);
   socketConn.setTcpNoDelay(true);
   socketConn.setSoLinger(true, 1000);

   dis = new DataInputStream(socketConn.getInputStream());
   dos = new DataOutputStream(socketConn.getOutputStream());
}

public void closeConnection() {
   if(socketConn != null){
   try{
   if(dis != null){
   socketConn.shutdownInput();
   dis.close();
   }
   if(dos != null){
   socketConn.shutdownOutput();
   dos.close();
   }
   if(socketConn != null){
   socketConn.close();
   }
   if(readBuffer != null){
   readBuffer.reset();
   }
   }
   catch(IOException ioe){
   MyLog.printException(this, ioe, Problem
Closing connection);
   }
   finally{
   dis = null;
   dos = null;
   socketConn = null;
   }
   }
   MyLog.printLog(this, closeConnection end);
}


private int trySend(String message) {

   try{
   byte[] data = message.getBytes();
   dos.write(data);
   dos.flush();
   return 0;
   }
   catch(SocketException se){
   MyLog.printException(this, se, Problem with trySend);
   }
   catch(Exception e){
   MyLog.printException(this, e, trySend());
   }


   MyLog.printLog(this, trySend() Problem with trySend);
   return ERROR_CODE_CONNECTION;
}

private boolean tryRead() {
   try{
   int b = 0;
   while((b = dis.read(buffer))  0){
   readBuffer.write(buffer, 0, b);

   //if the last read byte is '\0' then we have
complete reading at least 1 packet of data
   if(buffer[b - 1] == '\0'){
   byte[] data = readBuffer.toByteArray();
   MyLog.printLog(this, read
data.length= + data.length);
   readBuffer.reset();
   String text = new String(data,
utf-8);
   return true;
   }
   MyLog.printLog(this, out while read b= + b);
   //if the b0 then EOF has reached
   if(b  0){
   throw new Exception(EOF has reached);
   }
   }
   catch(Exception e){
   }
   return false;
}


Does anyone encounter connection stability problems?
Do I need to open the connection differently?
How about using SocketChannel is it more reliable?
Does Socket connection is a good approach when talking about mobile
network connection?

Thanks
ayanir

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Refreshing an activity on a tabwidget

2010-05-25 Thread Lamia Hannoun
Any ideas plz??!!!

2010/5/24 Lamia Hannoun lamia.hann...@gmail.com

 Hello!

 I need to refresh my listview on my activity whenever i remove an item. I
 tried to call the activity (startActivity(Intent) )  it works but i lose the
 tabwidget.How Can I refresh my list without any lost ?

 Thx 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] Socket freezes via GSM connection

2010-05-25 Thread ayanir
Hello,

I’m working on application that uses a socket connection.
I’ve implemented 2 different Threads for the read() and the write()
methods so they are not being blocked by the read.
Everything is working well on the WiFi connection but when I switch to
GSM connection the connection becomes unstable without any exception
being thrown. It means that there are freezes – the write and read
seems to work but no data is actually being piped.
Here is what I’m doing:


private Socket socketConn = null;
private DataInputStream dis = null;
private DataOutputStream dos = null;

//Read buffer
private byte[] buffer;
ByteArrayOutputStream readBuffer;

private String serverAddress;
private int serverPort;

public void openConnection(int timeout) throws Exception {
   if(socketConn != null){
   return;
   }

   //if we need to resolve the host - if succeed we replace the
default otherwise we use the default.
   //the check is done only once.
   if(checkHostResolved){
   checkHostResolved = false;
   try{
   InetAddress ia =
InetAddress.getByName(serverHostAddress);
   serverAddress = ia.getHostAddress();
   }
   catch(UnknownHostException e2){
   MyLog.printException(this, e2, run()
InetAddress.getByName);
   }
   }
   socketConn = new Socket();
   InetSocketAddress isa = new InetSocketAddress(serverAddress,
serverPort);
   socketConn.connect(isa, timeout);
   socketConn.setKeepAlive(true);
   socketConn.setTcpNoDelay(true);
   socketConn.setSoLinger(true, 1000);

   dis = new DataInputStream(socketConn.getInputStream());
   dos = new DataOutputStream(socketConn.getOutputStream());
}

public void closeConnection() {
   if(socketConn != null){
   try{
   if(dis != null){
   socketConn.shutdownInput();
   dis.close();
   }
   if(dos != null){
   socketConn.shutdownOutput();
   dos.close();
   }
   if(socketConn != null){
   socketConn.close();
   }
   if(readBuffer != null){
   readBuffer.reset();
   }
   }
   catch(IOException ioe){
   MyLog.printException(this, ioe, Problem
Closing connection);
   }
   finally{
   dis = null;
   dos = null;
   socketConn = null;
   }
   }
   MyLog.printLog(this, closeConnection end);
}


private int trySend(String message) {

   try{
   byte[] data = message.getBytes();
   dos.write(data);
   dos.flush();
   return 0;
   }
   catch(SocketException se){
   MyLog.printException(this, se, Problem with trySend);
   }
   catch(Exception e){
   MyLog.printException(this, e, trySend());
   }


   MyLog.printLog(this, trySend() Problem with trySend);
   return ERROR_CODE_CONNECTION;
}

private boolean tryRead() {
   try{
   int b = 0;
   while((b = dis.read(buffer))  0){
   readBuffer.write(buffer, 0, b);

   //if the last read byte is '\0' then we have
complete reading at least 1 packet of data
   if(buffer[b - 1] == '\0'){
   byte[] data = readBuffer.toByteArray();
   MyLog.printLog(this, read
data.length= + data.length);
   readBuffer.reset();
   String text = new String(data,
utf-8);
   return true;
   }
   MyLog.printLog(this, out while read b= + b);
   //if the b0 then EOF has reached
   if(b  0){
   throw new Exception(EOF has reached);
   }
   }
   catch(Exception e){
   }
   return false;
}


Does anyone encounter connection stability problems?
Do I need to open the connection differently?
How about using SocketChannel is it more reliable?
Does Socket connection is a good approach when talking about mobile
network connection?

Thanks
ayanir

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Froyo-Problem: Calendar access

2010-05-25 Thread Andreas Streim
Hi everybody,

my app uses the internal calendar via the not officially, but in some
articles on the web mentioned methods. So I have some lines to read
all available calendars:

String[] projection = new String[] { _id, displayName };
Uri calendars = Uri.parse(content://calendar/calendars);
Cursor managedCursor = act.managedQuery(calendars,
projection,access_level300, null, null); /* selected */
if (managedCursor.moveToFirst()) {
etc.

It works well with Android 1.5 to 2.1, but since Froyo there seems to
be a problem. A Nexus user with Froyo gets force close and sent me a
log with this line:

05-24 18:55:04.308 E/AndroidRuntime( 1467): Caused by:
java.lang.NullPointerException
05-24 18:55:04.308 E/AndroidRuntime( 1467): at
streim.de.quickaddroid.MeinKalender.init(MeinKalender.java:27)

that's the if-line.

Can anybody give me a hint what Google has changed to the calendar since 2.1?

I know the method to access the calendar was never official, but there
was no alternative. And it's not a good user experience, when apps you
have used before stopped working. And the (hobby) programmer cannot do
anything, because calendar is not part of the SDK and I don't have a
Nexus :-(

Greetings,
Andreas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 light sensor

2010-05-25 Thread qvark
Hi, I have updated to Froyo and the problem is still there: I cannot
read the light value until  the conditions change *a lot*. Any idea?

Thanks,

Jose Luis.

On 20 mayo, 11:24, qvark joseluishuertasfernan...@gmail.com wrote:
 Hi there, I'm having some troubles with thelightsensoron the Nexus
 One.

 AFAIK, the proper way to read the measures of asensoris registering
 a SensorListener through the SensorManager and then wait for the
 readings on the onSensorChanged method.

 My main problem is that thelightsensordon't seem very accurate (the
 readings jump a lot) and I don't get the first reading until the
 lighting conditions change. I have to change the phone orientation, go
 outdoors or hide thesensorwith my fingers or otherwise I don't
 receive any value. Is there any way to increase the accuracy or, even
 more important,  to force an initial reading?

 BTW, I have tried with SensorManager.SENSOR_DELAY_FASTEST but I
 haven't noticed any change.

 Thanks,

 Jose Luis.

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

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


[android-developers] outgoing call pick up state

2010-05-25 Thread kgselvam
 public void onCallStateChanged(int state, String incomingNumber) {
String stateString = N/A;
System.out.println(State Cheanged KSM+state);
   switch (state) {
case TelephonyManager.CALL_STATE_IDLE:
  stateString = Idle;
  break;
case TelephonyManager.CALL_STATE_OFFHOOK:
demoPlay();
   stateString = Off Hook;
  break;
case TelephonyManager.CALL_STATE_RINGING:
  stateString = Ringing;
  break;
 default:
 System.out.println(State Cheanged KSM+state);
 break;

}


please help me any other way to listen state of call

thanks
Kgselvam

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Camera preview - works on all devices apart from the Droid

2010-05-25 Thread mscwd01
Surely I cant be the only one to encounter problems with this?

On May 24, 6:19 pm, mscwd01 mscw...@gmail.com wrote:
 Hey,

 This is my code I use to display a preview from the camera on a
 SurfaceView:

 public void surfaceChanged(SurfaceHolder holder, int format, int w,
 int h) {

         Camera.Parameters parameters = mCamera.getParameters();
         ListSize cameraSizes =
 CameraReflect.getSupportedPreviewSizes(parameters);
         if(cameraSizes != null  cameraSizes.size()  0) {
                 parameters.setPreviewSize(Math.max(cameraSizes.get(0).width,
 cameraSizes.get(0).height), Math.min(cameraSizes.get(0).width,
 cameraSizes.get(0).height));
         }
         else {
                 parameters.setPreviewSize(Math.max(w, h), Math.min(w, h));
         }
         mCamera.setParameters(parameters);
         mCamera.startPreview();

 }

 It's pretty basic stuff; it uses reflection to determine if the
 version of Android the user is running supports the
 getSupportedPreviewSizes() method. If it does it obtains the width and
 height and sets these as the preview size. If the version of Android
 is older it will just set it as the width and height returned by the
 SurfaceView.

 However, it seems the Motorola Droid/Milestone doesn't like this code
 and will instead show a blank screen instead of the camera preview.

 Could someone kindly tell me where i'm going wrong?

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

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


[android-developers] data transfer from pc through usb

2010-05-25 Thread Jags
my android application needs to transfer some data from PC using usb
and bluetooth, what are the feasibility and sample codes, if any ?

--jgs

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Petition: Google, please improve the Android Market.

2010-05-25 Thread Tomáš Hubálek
I'm contacting users by changing comment of the app (this causes that
my comment goes to the top and users may read it). You can also spend
some characters of description but it is too small for it.

Both ways are just workarounds.

I also would like the feature to contact users (especially users that
rate bad because of their mistake or misunderstanding).

Tom

On 23 kvě, 20:48, Erik erikcell...@gmail.com wrote:
 Did they indicate what they would react to?

 I just published my first app last week, and I've been really
 frustrated not being able to respond to users comments! I was really
 surprised at the lack of functionality in the Market for developers.

 On May 21, 5:09 am, Tomáš  Hubálek tom.huba...@gmail.com wrote:





  BTW: In different thread they said that the'll not react on petitions,
  but I still think that this petition is good thing.

  On 17 kvě, 11:42, rob irondad rob.irond...@gmail.com wrote:

   Hello, fellow developers,

   Just a quick update on the petition that was posted 3 months ago now,

   As of now it has been signed by 1246 people.
   Since the petition was made public, there has been recent reports
   about developers seeing crash reports and usercommentsin the
   developer console. This seems to indicate that points 2 and 5 of the
   petition will be taken care of in a near future!

   But as of today all the points in the petition remain valid.

   So far, there has been no reaction or acknowledgment from Google.

   Petition link:http://petitiononline.com/androidm

   --
   Rob

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

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

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

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


[android-developers] Re: API 8 (Froyo) changed lockpattern setting

2010-05-25 Thread Bonifaz
It is really a shame, two of my apps are also relying on the
LOCK_PATTERN_ENABLED setting not to be a secure settings (which
clearly wasn't before).
How can I trust that my apps will work in future when such important
details simply change.
I already see customers complaining about my app not beeing compatible
anymore, and I cannot do a little thing about it.

Very disappointing!


On May 24, 7:47 pm, Mark Murphy mmur...@commonsware.com wrote:
 Willem wrote:
  My users seem complaining that my lockpattern plugin for locale does
  not work anymore. It turns out that the setting LOCK_PATTERN_ENABLED
  is moved from Settings.System to Settings.Secure. Since secure
  settings are read only my application becomes pretty useless in
  android 2.2...

  I understand that the lockpattern setting is a secure setting. But it
  was a system setting before.. Isn't strange that the API developers
  just changed this?!?

 Not particularly. They moved a bunch to Settings.Secure when they set it
 up back in Android 1.5. I expect they will continue to do this when they
 determine that it is too risky to leave in Settings.System, either due
 to malware or user complaints.

  Is there a way to write secure
  settings anyway?

 Not for ordinary SDK applications.

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

 _Android Programming Tutorials_ Version 2.0 Available!

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

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


[android-developers] Re: RTP stream video decoding

2010-05-25 Thread Jez
Hi Andy,

I have the same problem too - attempting to stream an axis encoded
live video stream as h264 format and using the media player to show
the video live on an Android phone.

Now i'm not sure if this is possible?


On May 25, 2:45 am, Andy Savage a...@bluewire.net.nz wrote:
 Thanks for your suggestion.

 I had considered this. The problem with this approach is that it seems that
 the MediaPlayer requires anything passed in as a FileDescriptor to be
 seekable (this is the same problem that prevents me from substituting
 FileDescriptor for LocalSocket). In this case this means that the file would
 have to finish recording before it can be played so that the timing headers
 are added.

 The idea is to have (semi) real-time video so you can see what's going on.
 Think video calling... except that it doesn't quite have to be as
 responsible for now.

 Anybody else have any ideas?

 --
 The greatest challenge to any thinker is stating the problem in a way that
 will allow a solution
 - Bertrand Russell

 Andy Savage
 Cell Phone: +852 936 34341
 Skype ID: andy_savage
 Linked In:http://www.linkedin.com/in/andysavage





 On Tue, May 25, 2010 at 5:06 AM, savanevery savanev...@gmail.com wrote:
  How about writing the RTP stream to a file and playing it from there?

  On May 24, 2:44 am, Andy Savage a...@bluewire.net.nz wrote:
   Hi everyone,

   I need a little bit of help from some experts out there.

   Currently I am developing an application that will stream video using RTP
   and SIP. I have this mostly working with audio working fine both ways
  using
   Java (and native) codecs. I can stream out video also from the camera to
  a
   windows client.

   The problem comes from when I want to receive and decode the video on the
   android platform. I understand at this stage that Mediaplayer only
  supports
   RTSP streams. Ironically it does what I need (by getting the SDP
  information
   from using RTSP SETUP call and using that RTP/UDP information to receive
  the
   stream). But I can't seem to access this functionality, all it takes as
   input is a RTSP url. If you are unfamiliar the difference between RTSP
  using
   RTP and SIP using RTP. You can read about the differences
   herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
   .

   What I need to do is take an RTP stream encoded with h.263-1998 and
  somehow
   pass it to the mediaplayer (or even a lower level api if somebody can
   provide an example).

   The only way I can think around this is to write another service
   to receive the RTP stream and provide an RTSP interface... but this is a
   really ugly solution.

   I would really appreciate if anybody could offer any help with this.

   Kind regards,
   Andy Savage

   --
   The greatest challenge to any thinker is stating the problem in a way
  that
   will allow a solution
   - Bertrand Russell

   Andy Savage
   Cell Phone: +852 936 34341
   Skype ID: andy_savage
   Linked In:http://www.linkedin.com/in/andysavage

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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 athttp://
  groups.google.com/group/android-developers?hl=en

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

 - Show quoted text -

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


[android-developers] Re: Signup for C2DM ?

2010-05-25 Thread qvark
Eagerly waiting here to start testing... has anybody received a
response?

On 22 mayo, 01:12, brian br...@bwalsh.com wrote:
 Filled out the form requesting access.
 I was wondering if anyone has started to work withC2DM?
 Has Google responded to your signup request?

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

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


[android-developers] Re: API 8 (Froyo) changed lockpattern setting

2010-05-25 Thread Lee
Thirded, I only just 2 weeks ago started using this functionality.

Lee

On May 25, 10:08 am, Bonifaz bonifaz.kaufm...@gmail.com wrote:
 It is really a shame, two of my apps are also relying on the
 LOCK_PATTERN_ENABLED setting not to be a secure settings (which
 clearly wasn't before).
 How can I trust that my apps will work in future when such important
 details simply change.
 I already see customers complaining about my app not beeing compatible
 anymore, and I cannot do a little thing about it.

 Very disappointing!

 On May 24, 7:47 pm, Mark Murphy mmur...@commonsware.com wrote:



  Willem wrote:
   My users seem complaining that my lockpattern plugin for locale does
   not work anymore. It turns out that the setting LOCK_PATTERN_ENABLED
   is moved from Settings.System to Settings.Secure. Since secure
   settings are read only my application becomes pretty useless in
   android 2.2...

   I understand that the lockpattern setting is a secure setting. But it
   was a system setting before.. Isn't strange that the API developers
   just changed this?!?

  Not particularly. They moved a bunch to Settings.Secure when they set it
  up back in Android 1.5. I expect they will continue to do this when they
  determine that it is too risky to leave in Settings.System, either due
  to malware or user complaints.

   Is there a way to write secure
   settings anyway?

  Not for ordinary SDK applications.

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

  _Android Programming Tutorials_ Version 2.0 Available!

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

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

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


[android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread Lee
Whether or not it's wise to use unpublished Uri's, I'm sure tens of
thousands of android phone users are going to be annoyed if the
calendar data is no longer accessible.

Here's the system error:

ActivityThread: Failed to find provider info for calendar

Looking at the git source the URI appears not to have changed.

Lee

On May 25, 8:34 am, Andreas Streim andreas.str...@googlemail.com
wrote:
 Hi everybody,

 my app uses the internal calendar via the not officially, but in some
 articles on the web mentioned methods. So I have some lines to read
 all available calendars:

 String[] projection = new String[] { _id, displayName };
 Uri calendars = Uri.parse(content://calendar/calendars);
 Cursor managedCursor = act.managedQuery(calendars,
 projection,access_level300, null, null); /* selected */
 if (managedCursor.moveToFirst()) {
 etc.

 It works well with Android 1.5 to 2.1, but since Froyo there seems to
 be a problem. A Nexus user with Froyo gets force close and sent me a
 log with this line:

 05-24 18:55:04.308 E/AndroidRuntime( 1467): Caused by:
 java.lang.NullPointerException
 05-24 18:55:04.308 E/AndroidRuntime( 1467): at
 streim.de.quickaddroid.MeinKalender.init(MeinKalender.java:27)

 that's the if-line.

 Can anybody give me a hint what Google has changed to the calendar since 2.1?

 I know the method to access the calendar was never official, but there
 was no alternative. And it's not a good user experience, when apps you
 have used before stopped working. And the (hobby) programmer cannot do
 anything, because calendar is not part of the SDK and I don't have a
 Nexus :-(

 Greetings,
 Andreas

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

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


Re: [android-developers] Re: RTP stream video decoding

2010-05-25 Thread Andy Savage
Hi there,

I am working through this in a private discussion with another very helpful
user. Essentially it seems that at this stage the only way to get an RTP
stream to work is a couple of hacks:

A) Wrap it as an RTSP stream.
Basically need a client/server architecture, perhaps another little service
running in the background to buffer the RTP data (perhaps write to file?)
and then respond to appropriate RTSP commands.

I havn't tested this but theoretically it should work.

B) Write the data to two files. For example each file contains 1 second of
data. Write file, close file (thus the file gets timing information and lock
is released) open the file with mediaplayer and play. Meanwhile open another
file to write information to that. When mediaplayer finished with file 1,
get it to play file 2. Meanwhile write information to file 1 again. And keep
looping.

This is horribly resource intensive, but should produce an okay video (so I
hear). Although syncing information for this difficult (impossible?).

That's for streaming in. If your looking for information about streaming out
you should see the Sipdroid code VideoCamera.java where they implement a
'write to file', 'open file and stream' method. It produces a jerky but
reasonable video quality.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 5:29 PM, Jez jeremy.a.co...@baesystems.com wrote:

 Hi Andy,

 I have the same problem too - attempting to stream an axis encoded
 live video stream as h264 format and using the media player to show
 the video live on an Android phone.

 Now i'm not sure if this is possible?


 On May 25, 2:45 am, Andy Savage a...@bluewire.net.nz wrote:
  Thanks for your suggestion.
 
  I had considered this. The problem with this approach is that it seems
 that
  the MediaPlayer requires anything passed in as a FileDescriptor to be
  seekable (this is the same problem that prevents me from substituting
  FileDescriptor for LocalSocket). In this case this means that the file
 would
  have to finish recording before it can be played so that the timing
 headers
  are added.
 
  The idea is to have (semi) real-time video so you can see what's going
 on.
  Think video calling... except that it doesn't quite have to be as
  responsible for now.
 
  Anybody else have any ideas?
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
 
 
  On Tue, May 25, 2010 at 5:06 AM, savanevery savanev...@gmail.com
 wrote:
   How about writing the RTP stream to a file and playing it from there?
 
   On May 24, 2:44 am, Andy Savage a...@bluewire.net.nz wrote:
Hi everyone,
 
I need a little bit of help from some experts out there.
 
Currently I am developing an application that will stream video using
 RTP
and SIP. I have this mostly working with audio working fine both ways
   using
Java (and native) codecs. I can stream out video also from the camera
 to
   a
windows client.
 
The problem comes from when I want to receive and decode the video on
 the
android platform. I understand at this stage that Mediaplayer only
   supports
RTSP streams. Ironically it does what I need (by getting the SDP
   information
from using RTSP SETUP call and using that RTP/UDP information to
 receive
   the
stream). But I can't seem to access this functionality, all it takes
 as
input is a RTSP url. If you are unfamiliar the difference between
 RTSP
   using
RTP and SIP using RTP. You can read about the differences
herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
.
 
What I need to do is take an RTP stream encoded with h.263-1998 and
   somehow
pass it to the mediaplayer (or even a lower level api if somebody can
provide an example).
 
The only way I can think around this is to write another service
to receive the RTP stream and provide an RTSP interface... but this
 is a
really ugly solution.
 
I would really appreciate if anybody could offer any help with this.
 
Kind regards,
Andy Savage
 
--
The greatest challenge to any thinker is stating the problem in a
 way
   that
will allow a solution
- Bertrand Russell
 
Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In:http://www.linkedin.com/in/andysavage
 
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
 android-developers@googlegroups.com
To unsubscribe from this group, send email to

Re: [android-developers] Re: RTP stream video decoding

2010-05-25 Thread Andy Savage
Jez,

You might want to consider a pure RTSP implementation for what you want.
That should work fine for one way streaming. Android (atleast in 2.1)
handles this fine.

I understand some functionality relating to this was a little broken in
previous versions.

-- 
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 6:12 PM, Andy Savage a...@bluewire.net.nz wrote:

 Hi there,

 I am working through this in a private discussion with another very helpful
 user. Essentially it seems that at this stage the only way to get an RTP
 stream to work is a couple of hacks:

 A) Wrap it as an RTSP stream.
 Basically need a client/server architecture, perhaps another little service
 running in the background to buffer the RTP data (perhaps write to file?)
 and then respond to appropriate RTSP commands.

 I havn't tested this but theoretically it should work.

 B) Write the data to two files. For example each file contains 1 second of
 data. Write file, close file (thus the file gets timing information and lock
 is released) open the file with mediaplayer and play. Meanwhile open another
 file to write information to that. When mediaplayer finished with file 1,
 get it to play file 2. Meanwhile write information to file 1 again. And keep
 looping.

 This is horribly resource intensive, but should produce an okay video (so I
 hear). Although syncing information for this difficult (impossible?).

 That's for streaming in. If your looking for information about streaming
 out you should see the Sipdroid code VideoCamera.java where they implement a
 'write to file', 'open file and stream' method. It produces a jerky but
 reasonable video quality.

 --
 The greatest challenge to any thinker is stating the problem in a way that
 will allow a solution
 - Bertrand Russell

 Andy Savage
 Cell Phone: +852 936 34341
 Skype ID: andy_savage
 Linked In: http://www.linkedin.com/in/andysavage


 On Tue, May 25, 2010 at 5:29 PM, Jez jeremy.a.co...@baesystems.comwrote:

 Hi Andy,

 I have the same problem too - attempting to stream an axis encoded
 live video stream as h264 format and using the media player to show
 the video live on an Android phone.

 Now i'm not sure if this is possible?


 On May 25, 2:45 am, Andy Savage a...@bluewire.net.nz wrote:
  Thanks for your suggestion.
 
  I had considered this. The problem with this approach is that it seems
 that
  the MediaPlayer requires anything passed in as a FileDescriptor to be
  seekable (this is the same problem that prevents me from substituting
  FileDescriptor for LocalSocket). In this case this means that the file
 would
  have to finish recording before it can be played so that the timing
 headers
  are added.
 
  The idea is to have (semi) real-time video so you can see what's going
 on.
  Think video calling... except that it doesn't quite have to be as
  responsible for now.
 
  Anybody else have any ideas?
 
  --
  The greatest challenge to any thinker is stating the problem in a way
 that
  will allow a solution
  - Bertrand Russell
 
  Andy Savage
  Cell Phone: +852 936 34341
  Skype ID: andy_savage
  Linked In:http://www.linkedin.com/in/andysavage
 
 
 
 
 
  On Tue, May 25, 2010 at 5:06 AM, savanevery savanev...@gmail.com
 wrote:
   How about writing the RTP stream to a file and playing it from there?
 
   On May 24, 2:44 am, Andy Savage a...@bluewire.net.nz wrote:
Hi everyone,
 
I need a little bit of help from some experts out there.
 
Currently I am developing an application that will stream video
 using RTP
and SIP. I have this mostly working with audio working fine both
 ways
   using
Java (and native) codecs. I can stream out video also from the
 camera to
   a
windows client.
 
The problem comes from when I want to receive and decode the video
 on the
android platform. I understand at this stage that Mediaplayer only
   supports
RTSP streams. Ironically it does what I need (by getting the SDP
   information
from using RTSP SETUP call and using that RTP/UDP information to
 receive
   the
stream). But I can't seem to access this functionality, all it takes
 as
input is a RTSP url. If you are unfamiliar the difference between
 RTSP
   using
RTP and SIP using RTP. You can read about the differences
herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
.
 
What I need to do is take an RTP stream encoded with h.263-1998 and
   somehow
pass it to the mediaplayer (or even a lower level api if somebody
 can
provide an example).
 
The only way I can think around this is to write another service
to receive the RTP stream and provide an RTSP interface... but this
 is a
really ugly solution.
 
I would really appreciate if anybody could offer any help with this.
 
Kind regards,

[android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread andreas
On 25 Mai, 11:44, Lee lee.wil...@googlemail.com wrote:
 Whether or not it's wise to use unpublished Uri's,

Well, I would prefer to use published Uris, but there are none to
access the calendar. And there is not even any other official way to
enter and read calendar data. That's a pity.

But maybe some Google Andorid Wizard reads my cry for help ;-) and can
tell me, what's now wrong with Froyo and

String[] projection = new String[] { _id, displayName };
Uri calendars = Uri.parse(content://calendar/calendars);
Cursor managedCursor = act.managedQuery(calendars,
projection,access_level300, null, null);

Andreas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Weird activity launch behavior when started from other apps

2010-05-25 Thread Max
I have an application that contains several activities - call them A,
B, C and D. Normally the user will launch activity A, then go to
activity B, then C, then D. All activities have launchMode =
standard so that if the user switch to another app or return to home
screen, he can go back to where he left off by pressing the
application icon on launcher or home screen.

Most of the time the application works fine, but if the user start the
app from somewhere other than the launcher / home screen (e.g.
upgrading the app Android Market then press Open), the launch
behavior becomes very strange. Now if the user return to the home
screen, then press the application icon again, it will start a new
instance of activity A and put it on top of the stack. If the user
continue to navigate the app, the activity stack will become something
like A - B - C - A - B. I have verified this by running adb shell
dumpsys activity.

This behavior will persist until the application completely exits
(i.e. no more activities in the stack), until then the activities will
keep accumulating in the stack. As the activities are quite graphic
intensive, the application will run out of memory when there are ~15
levels of activities.

So... is there a way to prevent this behavior? I want the launcher
icon always get back to the activity where the user left off, or start
the default activity if the application wasn't running. I have tried
the various launch modes but seems none of them fits this description.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Video rendering performance on android

2010-05-25 Thread Lauri Ehrenpreis
Seems that NDK r4 adds stable api to access bitmap from native code.
So method 3) is now officially supported :)

On Apr 14, 5:50 pm, Lauri Ehrenpreis lauri...@gmail.com wrote:
 I need torendervideoon android. I got sw decoder which decodes
 stream to YUV or RGB with very reasonable cpu usage, but so far
 haven't found a nice way how torenderframes.

 I have tried 3 methods so far:
 1) using opengl from native code:
 * create a texture of type GL_TEXTURE_2D
 * set coordinates to fill full opengl rendering area
 * torendera frame update the texture with glTexSubImage2D or
 glTexImage2D function
 (more or less the same method that is used in vlc media player)

 With this method the performance is most terrible.. VGA rendering
 @5..7FPS uses up 100% of nexus one cpu!

 2)  rendering with canvas function Canvas.drawBitmap(int[] colors, int
 offset, int stride, int x, int y, int width, int height, boolean
 hasAlpha, Paint paint)Was hoping to use this via JNI. First i just
 made a simple perfo test:
 * colors array was initialized in java code
 * then I just called mSurfaceHolder.lockCanvas();
 canvas.drawBitmap(colors, ... );
 mSurfaceHolder.unlockCanvasAndPost(canvas); in sequence

 Perfo is better than with opengl - v...@30fps uses up 40% of nexus one-
 s cpu...

 3) Rendering with canvas function Canvas.drawBitmap(Bitmap bitmap,
 float left, float top, Paint paint), while updating bitmap in native
 code
 * in java code i do: mSurfaceHolder.lockCanvas(); nativeUpdate();
 canvas.drawBitmap(mybitmap, ... );
 mSurfaceHolder.unlockCanvasAndPost(canvas);
 * in native code i get value of a variable
 myrenderclass.mybitmap.mNativeBitmap via JNI
 * cast it to SkBitmap * pVideoBuffer
 * use pVideoBuffer-allocPixels();  pVideoBuffer-getPixels(); to
 get native pointer to memory (need to link to native android library
 libskia.so to get these functions)
 * copy or decode thevideoframe to this memory

 With this method i get only 10% cpu usage when doing v...@30fps... but
 lets face it - its a hack which may break in future

 Am I missing something or there really isn't any better way torendervideo? 
 for example some opengl extension function etc..?

 Br,
 Lauri

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


[android-developers] Can I use code to enable the GPS service?

2010-05-25 Thread Kenneth WON
Dear all,

Can I use code to enable the GPS service?
I don't want to prompt the setting page.

Thanks.
Kenneth

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Froyo-Problem: Calendar access

2010-05-25 Thread Lee
The 'calendar' in your Uri is the problem, it's unrecognized so you
get a null cursor back.

Lee

On May 25, 11:33 am, andreas andreas.str...@googlemail.com wrote:
 On 25 Mai, 11:44, Lee lee.wil...@googlemail.com wrote:

  Whether or not it's wise to use unpublished Uri's,

 Well, I would prefer to use published Uris, but there are none to
 access the calendar. And there is not even any other official way to
 enter and read calendar data. That's a pity.

 But maybe some Google Andorid Wizard reads my cry for help ;-) and can
 tell me, what's now wrong with Froyo and

 String[] projection = new String[] { _id, displayName };
 Uri calendars = Uri.parse(content://calendar/calendars);
 Cursor managedCursor = act.managedQuery(calendars,
 projection,access_level300, null, null);

 Andreas

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

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


[android-developers] Re: samsung app store

2010-05-25 Thread Michael
Out of interest I registered for the bada dev site and the link for
the appstore takes you to the same page referenced in the email
(seller.samsungapps.com).

This makes me think that it is legit.

Cheers,
Mike

On May 20, 7:08 pm, Jean-Baptiste Charles Bouvet de Lozier
tinyappwo...@gmail.com wrote:
 The paid Android Market currently is not available for the most of the
 countries. So it could be a viable alternative for the rest of the
 word. It seems that the main site supports only a single Bada model,
 and dev resources for Bada and WinMo OS-es, so currently there is no
 Android.

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

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


Re: [android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread Toni Menzel
Forgive me if i am wrong, but are those google calendars anyway? Why
not use the official gcalendar data api at [1] ?
Sure this accesses the web and not just phone services..

[1] http://code.google.com/apis/calendar/data/2.0/developers_guide.html

Toni

On Tue, May 25, 2010 at 1:12 PM, Lee lee.wil...@googlemail.com wrote:
 The 'calendar' in your Uri is the problem, it's unrecognized so you
 get a null cursor back.

 Lee

 On May 25, 11:33 am, andreas andreas.str...@googlemail.com wrote:
 On 25 Mai, 11:44, Lee lee.wil...@googlemail.com wrote:

  Whether or not it's wise to use unpublished Uri's,

 Well, I would prefer to use published Uris, but there are none to
 access the calendar. And there is not even any other official way to
 enter and read calendar data. That's a pity.

 But maybe some Google Andorid Wizard reads my cry for help ;-) and can
 tell me, what's now wrong with Froyo and

 String[] projection = new String[] { _id, displayName };
 Uri calendars = Uri.parse(content://calendar/calendars);
 Cursor managedCursor = act.managedQuery(calendars,
 projection,access_level300, null, null);

 Andreas

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

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



-- 
Toni Menzel
Independent Software Developer
Professional Profile: http://okidokiteam.com
t...@okidokiteam.com
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Error playing multiple sounds

2010-05-25 Thread REvolver
I've switched all my sound effects to sound pools... it works now but
I still don't understand why it didn't before... By the way... thanks
a lot!!!

On May 20, 8:56 am, Bartinger domiii.1...@gmail.com wrote:
 If you play more sounds at the same time i would recommend to use
 soundpool

 I wrote here an class where you can add and play sounds hat the same
 timehttp://code.google.com/p/candroidengine/source/browse/trunk/src/at/ba...

 On 19 Mai, 14:50, REvolver luca.lupol...@gmail.com wrote:



  HI,

  I'm playing some MediaPlayer instances at the same time (4 or 5) but
  sometimes when I try to start a new media player it doesn't work and
  an error is shown on the log:

  E/AudioFlinger( 1073): no more track names availlable
  E/AudioTrack( 1073): AudioFlinger could not create track, status: -12
  E/AudioSink( 1073): Unable to create audio track
  E/VorbisPlayer( 1073): mAudioSink open failed

  It also happens when there're only 3 or 2 MediaPlayer playing at the
  same time.
  What does it mean this error?
  How can I workaround with it?
  Actually checking the isPlaying() after the start() call does not seem
  very helpful as every call returns true

  I've to say that every MediaPlayer is created once via
  MediaPlayer.create.

  Thanks a lot!

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

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

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


[android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread andreas
Well, thanks - so I can ask my question to the Android Wizards a
little bit more to the point: What is the correct Uri for Froyo?

Greetings,
Andreas

On 25 Mai, 13:12, Lee lee.wil...@googlemail.com wrote:
 The 'calendar' in your Uri is the problem, it's unrecognized so you
 get a null cursor back.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Froyo-Problem: Calendar access

2010-05-25 Thread andreas
I have used the gacalendar data api / web access in early version of
Quick Addroid, my android app. The problem is, you need an internet
connection, if you want to enter a date, and, the biggest problem, you
have to ask the user for his password. That's bad, because a lot of
people don't like to give their password away to an app.

I think it's logical to use the calendar of the phone to add /
retrieve events. And it's a pity that Google doesn't publish a correct
way to do that.

Andreas

On 25 Mai, 13:46, Toni Menzel t...@okidokiteam.com wrote:
 Forgive me if i am wrong, but are those google calendars anyway? Why
 not use the official gcalendar data api at [1] ?
 Sure this accesses the web and not just phone services..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: samsung app store

2010-05-25 Thread Chi Kit Leung
I found Paypal in-apps library. Maybe that will helps the developers of paid
apps.
But I am not sure whether you can help upload an apps with some locked
features as a free app in Android market.

On Tue, May 25, 2010 at 9:46 PM, Michael nicholls...@googlemail.com wrote:

 Out of interest I registered for the bada dev site and the link for
 the appstore takes you to the same page referenced in the email
 (seller.samsungapps.com).

 This makes me think that it is legit.

 Cheers,
 Mike

 On May 20, 7:08 pm, Jean-Baptiste Charles Bouvet de Lozier
  tinyappwo...@gmail.com wrote:
  The paid Android Market currently is not available for the most of the
  countries. So it could be a viable alternative for the rest of the
  word. It seems that the main site supports only a single Bada model,
  and dev resources for Bada and WinMo OS-es, so currently there is no
  Android.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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




-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Hardware Requirements

2010-05-25 Thread Andreas Frey
Hello,

is there any information about hardware requirements for an android
phone? I spent some time searching the web and this group but
unfortunately could not find anything useful.

Is there such an information, covering the following questions
- required screensize? (qvga [320x240] afaik)
- required/optional hardware components
  - bluetooth, wifi, compass, motion sensors, etc?

Any help is welcome.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] VP8 Video Codec

2010-05-25 Thread Mark Murphy
Andy Savage wrote:
 I am wondering if there is any timeframe for VP8 to be included into
 Android?

It is not in there now, as the specs were apparently nailed down too
late for Froyo. I got the impression from various I|O mentions that it's
on target for Gingerbread, but I wouldn't bet the house on that.

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

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

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


[android-developers] Re: Participate in app promotion experiment

2010-05-25 Thread Jeff Knaggs

Here's another number my app, punch, is not free. At the beginning
of John's advertising experiment, the price was $1.69. I showed no
change in order rates after the first ~5000 impressions, and
subsequently lowered the price after ~1 to $0.99.  At that point
there was a consistent daily average uptick. That increase accounted
for 1.43% of the 420 click-throughs. Another number I'll share (that
really can only be applied to my app) is the cancel ratio: ~43%
cancelled (uninstalled/refunded).

Background on my app so you don't read too much into the numbers. I
wrote punch to get my feet wet on the whole process: from learning
Java (new to me), wanted to experiment with accelerometer for
potential use in a much more complicated project, to marketing
strategies. It's a very simple app --uses accelerometer: waits for non-
movement (kind of), tracks movement, detects non-movement (kind of),
reports acceleration and time of movement (kind of).


That said, I consider these facts as other confounding variables:
(1) only on market for approx 7 days before the experiment started.
(2) for most phone owners I predict this is, at most, a try-once game,
get-bored, rarely use again (if at all)
(3) there is a free game by somebody else with same basic
functionality, not as polished (not that mine is exactly polished
either). As an aside the free game has a fairly large download count
and a youtube video with a bunch of teens (?) playing it (over 11,000
views). There is an iphone game as well, with youtube video (over 7000
views).
(4) my app does put an admob banner up (some people may not like this
and uninstall?)
(5) I purposely do not put this in any of the game categories as part
of my personal marketing testing is to play around with naming and
categorization. punch is under applications:health with my Market
text implying one can use it regularly as part of a metric for
exercise.


On May 24, 1:59 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 Latest results:

           campaign          | hits_left | impressions | clicks | ctr
 +---+-++--
  Punching for Health        |      1253 |       28747 |    420 | 1.46

droid-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: What happened to ADC3

2010-05-25 Thread Jason Tomlinson
Google only announced rounds 1 and 2 of the ADC.  They never mentioned
anything about a 3rd round.


On May 24, 8:26 am, Divakarla Srinivas divakarlasrini...@gmail.com
wrote:
 Hello,

 I have been waiting for the announcement of ADC3. with wide open
 eyes..

 Can any going to give me some updates when it is going to be announced
 or whether ADC3 is going to happen or not

 -Srinivas

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

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


Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 18 Topics

2010-05-25 Thread Sudeep Jha
Hi all,

  How to get the MIDlet and CLDC version programmatically in android?

Regards,
Sudeep

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

Re: [android-developers] Android Hardware Requirements

2010-05-25 Thread Mark Murphy
Andreas Frey wrote:
 Hello,
 
 is there any information about hardware requirements for an android
 phone? I spent some time searching the web and this group but
 unfortunately could not find anything useful.
 
 Is there such an information, covering the following questions
 - required screensize? (qvga [320x240] afaik)
 - required/optional hardware components
   - bluetooth, wifi, compass, motion sensors, etc?
 
 Any help is welcome.

There is now, on the new-and-improved source.android.com. Check out:

http://source.android.com/compatibility/index.html

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

_The Busy Coder's Guide to Android Development_ Version 3.0
Available!

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


Re: [android-developers] Re: samsung app store

2010-05-25 Thread Chi Kit Leung
I read the policy of Android Market, you only can use the authorized payment
process to charge your users.

On Tue, May 25, 2010 at 10:13 PM, Chi Kit Leung michaelchi...@gmail.comwrote:

 I found Paypal in-apps library. Maybe that will helps the developers of
 paid apps.
 But I am not sure whether you can help upload an apps with some locked
 features as a free app in Android market.

   On Tue, May 25, 2010 at 9:46 PM, Michael nicholls...@googlemail.comwrote:

 Out of interest I registered for the bada dev site and the link for
 the appstore takes you to the same page referenced in the email
 (seller.samsungapps.com).

 This makes me think that it is legit.

 Cheers,
 Mike

 On May 20, 7:08 pm, Jean-Baptiste Charles Bouvet de Lozier
  tinyappwo...@gmail.com wrote:
  The paid Android Market currently is not available for the most of the
  countries. So it could be a viable alternative for the rest of the
  word. It seems that the main site supports only a single Bada model,
  and dev resources for Bada and WinMo OS-es, so currently there is no
  Android.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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




 --
 Regards,
 Michael Leung
 http://www.itblogs.info
 http://www.michaelleung.info




-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Any guidelines for handling the Headset and Bluetooth AVRC buttons in Froyo?

2010-05-25 Thread Lee
I notice that the music app does not release 'sole ownership' of the
intent even once it's UI exits, so anything in the background that
previously wanted to pick it up is out of luck. Which I did want to
do, as it happens.

Also that the previous owner doesn't have to release for another app
to be able to grab ownership.

Lee

On May 25, 2:41 am, Stefan skyntc...@gmail.com wrote:
 I am trying to figure out what is the correct (new) approach for
 handling of Intent.ACTION_MEDIA_BUTTON in Froyo. In pre 2.2 days we
 had to register a BroadcastReceiver (either permanently or at run-
 time) and the Media Button events would arrive (as long as no other
 application intercepts them and aborts the broadcast).

 Froyo seems to still somewhat support that model (at least for the
 wired headset), but it also introduces the
 registerMediaButtonEventReceiver, and
 unregisterMediaButtonEventReceiver  methods that seem to control the
 transport focus between applications.

 During my experiments, using registerMediaButtonEventReceiver does
 cause  both the bluetooth and the wired headset button presses to be
 routed to the application's broadcast receiver (the app gets the
 transport focus), but it looks like any change in the audio routing
 (for example  unplugging the headset) shits the focus back to the
 default media player.

 What is the correct way to handle that in Froyo? Do we have to detect
 the change in the audio routing and try to re-gain the focus?

 This is an issue that any 3rd party media player on the Android
 platform has to deal with, so I hope that a Google Engineer can
 provide some guidelines that we all can follow. Having a standard
 approach may make headset button controls a bit more predictable for
 the end users.

 Stefan

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

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


[android-developers] Re: Even with Min SDK version, building app against 2.2 breaks 1.5?

2010-05-25 Thread Sebastian
Not quite, I was and I am still building against API 4, and min API is
3. After updating the SDK to 2.2 and updating Eclipse Plugin too, it
stopped working on 1.5. After copying the resources like your
described it, it worked again on 1.5.

Good to see that there's a solution now.



On May 24, 9:13 pm, Xavier Ducrohet x...@android.com wrote:
 Hi sebastian,

 Let see if I get this straight, you had the following resources:

 drawable-hdpi/
    foo.png
 drawable-mdpi/
    foo.png

 you used to build against API 7, but now you are building against API
 8, and it started failing to work on 1.5?

 You moved drawable-mdpi/foo.png into drawable/foo.png and now it works on 1.5?

 Xav

 On Sun, May 23, 2010 at 3:27 AM, sebastian



 mail.sebastian.schu...@googlemail.com wrote:
  Have had the same problems after updating SDK to 2.2 and Android
  Eclipse Plugin to newest version,
  but haven't changed anything on my project, min SDK version is 3 and
  target SDK version 4.

  The problem was caused by drawables in drawable-hdpi and drawable-mdpi
  folders that weren't in the drawable folder.
  In my case, copying all drawables from drawable-mdpi to drawable
  folder, clean and rebuild project solved the problem!

  Looks like a bug in Android SDK/Eclipse Plugin, hope Google fixes that.

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. 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 
 athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Ordered List

2010-05-25 Thread Samuh
I have to display an ordered list of items (expected level of nesting
= 2) in a TextView.

What is the best way to do this?

I have tried creating a string resource such as:
string name=html_listolliitem 1\n/liliitem 2\n/li/ol/
string
and then setting this text in TextView.

This just displayed the two list items one below the other without the
default disc(bullets). It did not work.

Please help.

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


Re: [android-developers] Re: Bluetooth question regarding observing a pairing

2010-05-25 Thread Jake Maui
Don,
I'm trying to observe when my phone connects/disconnects from my PC by
running the BluetoothChat in the debugger.  I can see in the console that my
phone is connecting for *AVRCP profile* but the break point doesn't stop in
the setState method.  I don't know enough about bluetooth yet so I don't
know if it's because the chat program is only looking for a particular
profile or not.

Thanks


On Mon, May 24, 2010 at 4:00 PM, DonFrench dcfre...@gmail.com wrote:

 Have you looked at the BluetoothChat example?  It does what you want.

 On May 23, 10:03 am, Jake Maui jakemau...@gmail.com wrote:
  Is there a way to observe a bluetooth pairing and then be aware of when
 the
  connection no longer exists?  Basically I want to observe when my phone
  connects to another device and what that connection is dropped to that I
 may
  execute an action based on that connection.
 
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: Janky Custom Cursor Adapter

2010-05-25 Thread blcooley

A Cursor returned by a SQLiteDatabase query can indeed get a blob.

http://developer.android.com/reference/android/database/Cursor.html#getBlob(int)

http://www.tutorialforandroid.com/2009/10/how-to-insert-image-data-to-sqlite.html


On May 24, 11:16 pm, GodsMoon godsm...@gmail.com wrote:
 However, I can't store the
 application icon in the db because sqlite doesn't support blobs.

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


[android-developers] Can't we add shared libraries without use of android ndk tools

2010-05-25 Thread Karteek N
Hi all,
I have gone through android ndk tutorials.
But i am little confusing in Android.mk file as well as Application.mk file
so instead of that i used the following approach
I created a Test.java file which is having one native method.
i added the static{

System.loadLibrary(mylib);
}
By using javah -jni i generated Test.h and using that decleration i
implemented  a c file
And i compiled c file and generated the libmylib.so library.
But now my question is how to add this shared library to my android
application
I followed 2 approaches but all throwing exception that Library mylib not
founed.
1 In eclipse BuildPath-ConfigurebuildPath-Android2.1-native given the
path of my shared library
2 I copied shared library to /data/data/myprojectpackagenae/lib/
  and used the statement in my code as
   System.load(/data/data/mypackagename/lib/libmylib.so);

In above two cases it is throwing same exception

Where iam wrong?
Is it  procedure is wright?
Please help me

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem in Exporting Signed Application Package

2010-05-25 Thread Marc Lester Tan
Hi all,

I've just upgraded my SDK to 2.2 and now when trying to export signed
application in Eclipse, I am getting the following exception:

*Message:*
Unhandled event loop exception

*Exception Stack Trace:*
java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper$NonLibraryProjectOnlyFilter.accept(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidProjects(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidProjects(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper.getAndroidProjects(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.handleProjectNameChange(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.access$0(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage$1.modifyText(Unknown
Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1254)
at org.eclipse.swt.widgets.Text.setText(Text.java:1801)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.onShow(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$ExportWizardPage.setVisible(Unknown
Source)
at
org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1199)
at
org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:551)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at
com.android.ide.eclipse.adt.internal.wizards.actions.ExportWizardAction.run(Unknown
Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

*Session Data:*
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring
/Users/marc/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
org.eclipse.epp.package.jee.product -keyring /Users/marc/.eclipse_keyring
-showlocation

Anyone experiencing the same problem? Any resolution? Thanks in advance.

Regards,
Marc

-- 
You 

[android-developers] Re: Android Library Project

2010-05-25 Thread Mark Carter
For me, the biggest problem with the Android Library Project feature,
is that library source files are showing up multiple times (once for
the library project and then once for each project that uses that
library project) in:

1. The main source view
2. Call Hierarchy
3. Compiler warnings/errors

i.e. everything is duplicated making things much harder to manage.

(this is a bit more detail of what I wrote earlier - but essentially
the same 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


Re: [android-developers] How to install an app programaticaly on Android

2010-05-25 Thread TreKing
On Mon, May 24, 2010 at 4:13 PM, Nando Android nando.andr...@gmail.comwrote:

 Is there any class on the SDK that has this kind of functionality?

That is, can I call some API or code to install an application on the phone?


I would start with the PackageManager.


 Can I force some updates as well?


Nope.

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

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

[android-developers] Re: Can I use code to enable the GPS service?

2010-05-25 Thread DonFrench
Someone correct me if I am wrong but I think that since 2.0 the only
thing you can do is to present the settings page.

On May 25, 3:53 am, Kenneth WON kenneth...@gmail.com wrote:
 Dear all,

 Can I use code to enable the GPS service?
 I don't want to prompt the setting page.

 Thanks.
 Kenneth

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

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


Re: [android-developers] Using the Binder in One of My c++ Application

2010-05-25 Thread Anoop Pant
.It means the application is a daemon and will sit below the app framework
layer in Android architecture  above the Linux Kernel.


What you mean by  This is not exposed by the NDK, so there is no official
way to do that from applications

On 5/25/10, David Turner di...@android.com wrote:

 This is not exposed by the NDK, so there is no official way to do that from
 applications.


 What does sit on the same layer as Bionic Libc layer means anyway ?

  On Mon, May 24, 2010 at 1:40 AM, Anoop Pant anoopwait...@gmail.comwrote:

 Hi,
 I want to understand if i want to user the Binder in my C
 application(daemon). What is the API layer to use Binder in C
 application(daemon).Both the daemon sits on the same layer as Bionic
 Libc layer

 Can somebody help me by giving a sample example in which two
 process(daemon) written in C can use binder interface for transferring
 the data in between.

 Does i need AIDL in this layer too?

 Scenario is below:

 ||
 ||
 ||  Daemon 1 Implemented in C
 ||
 ==
  Binder
 ==
 ||
 ||  Daemon 2  Implemented in C
 ||
 ||

 Thanks
 Anoop

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

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

[android-developers] Re: What happened to ADC3

2010-05-25 Thread Maps.Huge.Info (Maps API Guru)
I would guess that all the negative reactions from developers during
ADC2 has left a bad taste in Google's mouth. I was really amazed how
angry and caustic a large number of developers got during this
contest. In the end, I think it was counter productive and a waste of
developer and Google resources. A much better use was giving away
devices to the thousands of developers who qualified in the seeding
program.

If you look at what a contest such as ADC can do, it really alienates
virtually anyone who participates or in the case of ADC2, those that
couldn't participate because of the limitations and rules of the
contest. How many developers came away satisfied with the ADC?
Probably 30. The rest, which numbered in the thousands, were left
feeling like losers. That's the problem with contests such as ADC.
There are a few winners and lots and lots of losers.

On the other hand, giving away thousands of Droid and Nexus One
devices made many people feel good about Google and the developer
programs in general. There were still a lot of whiny ones who were
disgruntled because they didn't receive their device exactly two weeks
after being notified, but the vast majority were happily surprised and
delighted by the gift.

Ask yourself, which would you rather have: A one in 10,000 chance of
winning some large bit of money that requires three months of hard
work to participate or a guarantee of receiving $500 (in the form of a
device) for work already done. To me, there is no choice here, I'll
take the sure thing any day.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send 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: Client server setup in android

2010-05-25 Thread santha
Im working on android since last 7-8 months.. so i have good
understanding on android concepts.
Also i worked on HttpClient..

But what my question is.. If i want to post the data to the server
which format i have to prefer?? is it in XML or in JSON??

Where the REST web services come into the picture while sending from
client to server??

On May 24, 8:38 pm, Frank Weiss fewe...@gmail.com wrote:
 I was assuming that you have already used HttpClient for a client-server
 application and that HttpClient is apparently available on Android. As for
 JSON, there's already a lot of info on the web, if you just bother to search
 for it.

 If you want to learn Android programming please try out the tutorials at
 developer.android.com.



 On Mon, May 24, 2010 at 7:20 AM, santha uday.pic...@gmail.com wrote:
  Hi Ted,

  Thanks for the reply.. Currently im working on android applications
  development..In this my requirement is to send the data from the
  client application to server.. In so many blogs i read that it is
  better to send in the JSON format..

  But on the server it should have capable of reading the data..Could u
  please tell me where i can get the clear picture of client-server
  communication through an example source code??

  If u have any samples regarding this please let me know...

  Thanks in advance..
  uday

  On May 24, 11:17 am, Ted Neward ted.new...@gmail.com wrote:
   That's kind of a REST 101 sort of question and not constrained to
  Android
   in any way. Your best bet is to find a simple REST tutorial on the web
   someplace and build a simple REST client and server. After that, read up
  on
   the HTTP protocol itself so you understand the details.

   Ted Neward
   Java, .NET, XML Services
   Consulting, Teaching, Speaking, Writinghttp://www.tedneward.com

-Original Message-
From: android-developers@googlegroups.com [mailto:android-
develop...@googlegroups.com] On Behalf Of santha
Sent: Sunday, May 23, 2010 7:19 PM
To: Android Developers
Subject: [android-developers] Client server setup in android

Hi Guys,

I'm new to android application development.. I want to transfer the
data between the client and the server.. As of my knowledge for
transferring the data from client to server  we use HttpClient
protocol..

Is this protocol is same as REST web services??

If i want to send the data in the form of JSON format,then what are
the necessary steps that i need to follow??

And on the server side what are the steps to receive and parse the
data??

Could any one please respond me..

Thanks in advance

Uday Kiran

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-
develop...@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 athttp://
  groups.google.com/group/android-developers?hl=en

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

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

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


[android-developers] Re: Client server setup in android

2010-05-25 Thread santha
Im working on android since last 7-8 months.. so i have good
understanding on android concepts.
Also i worked on HttpClient..

But what my question is.. If i want to post the data to the server
which format i have to prefer?? is it in XML or in JSON??

Where the REST web services come into the picture while sending from
client to server??

On May 24, 8:38 pm, Frank Weiss fewe...@gmail.com wrote:
 I was assuming that you have already used HttpClient for a client-server
 application and that HttpClient is apparently available on Android. As for
 JSON, there's already a lot of info on the web, if you just bother to search
 for it.

 If you want to learn Android programming please try out the tutorials at
 developer.android.com.



 On Mon, May 24, 2010 at 7:20 AM, santha uday.pic...@gmail.com wrote:
  Hi Ted,

  Thanks for the reply.. Currently im working on android applications
  development..In this my requirement is to send the data from the
  client application to server.. In so many blogs i read that it is
  better to send in the JSON format..

  But on the server it should have capable of reading the data..Could u
  please tell me where i can get the clear picture of client-server
  communication through an example source code??

  If u have any samples regarding this please let me know...

  Thanks in advance..
  uday

  On May 24, 11:17 am, Ted Neward ted.new...@gmail.com wrote:
   That's kind of a REST 101 sort of question and not constrained to
  Android
   in any way. Your best bet is to find a simple REST tutorial on the web
   someplace and build a simple REST client and server. After that, read up
  on
   the HTTP protocol itself so you understand the details.

   Ted Neward
   Java, .NET, XML Services
   Consulting, Teaching, Speaking, Writinghttp://www.tedneward.com

-Original Message-
From: android-developers@googlegroups.com [mailto:android-
develop...@googlegroups.com] On Behalf Of santha
Sent: Sunday, May 23, 2010 7:19 PM
To: Android Developers
Subject: [android-developers] Client server setup in android

Hi Guys,

I'm new to android application development.. I want to transfer the
data between the client and the server.. As of my knowledge for
transferring the data from client to server  we use HttpClient
protocol..

Is this protocol is same as REST web services??

If i want to send the data in the form of JSON format,then what are
the necessary steps that i need to follow??

And on the server side what are the steps to receive and parse the
data??

Could any one please respond me..

Thanks in advance

Uday Kiran

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-
develop...@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 athttp://
  groups.google.com/group/android-developers?hl=en

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

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

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


[android-developers] Stop Application Catch

2010-05-25 Thread adag
Hello All,

I have five screen in my application. While in performing one action
in fifth screen I encountered with Stop Application message. On which,
I am getting 3 times Stop Application msg box, which covers 3
previous screen and comes back to the first screen.

I understand I must have encountered with Error may be
IndexOutOfBoundException which I have not addressed it in my code. I
was wondering why it asks for extra 3 times Stop Application system
message. It is fine to display an Stop Application system message if
I encountered an error in any screen it should stop that particular
screen and should come to the next screen on. How can I trap/catch
such incidents not to occur in the consecutive screen.

Please provide your valuable suggestion.

If the above description is not clear at any place please let me know
that I be more clear to you.

Sincerely,
adjo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Best Framework

2010-05-25 Thread TreKing
On Thu, May 20, 2010 at 11:58 AM, K1 ozzyfat2...@gmail.com wrote:

 hi


hi


 I'm new in android


welcome


 ,some body help me on,what is the best framework for android?


The Android Framework is by far the best of the Android Frameworks


  is there any eclipse Plugin?


yes


 thx


ur wlcme

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

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

[android-developers] More about WakeLocks and Services

2010-05-25 Thread Evan Ruff
Hey all,

I was wondering if someone could help me clarify how I can created the
following:

1. My application uses AlarmManager to trigger an IntentService
2. IntentService gets a WakeLock
3. IntentService runs all the necessary code
4. IntentService releases WakeLock

For an IntentService, Is there a way to accomplish this without using
the BroadcastReciever Pattern, as created by Mark Murphy? It's my
understanding that the AlarmManager will invoke the Service directly,
so can I get a valid wake lock inside of the onHandleIntent method?

Thanks!

Evan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bluetooth question regarding observing a pairing

2010-05-25 Thread DonFrench
The BluetoothChat program is looking for a service with a specific
UUID and you need to change it to match the service you are looking
for.  For the Serial Port Profile (SPP), the correct UUID is
0003--1000-8000-00805F9B34FB. However, unless something has
changed very recently, I do not believe that you can connect to
anything through the emulator.  I think you will have to test your
code using an actual phone.


On May 25, 6:28 am, Jake Maui jakemau...@gmail.com wrote:
 Don,
     I'm trying to observe when my phone connects/disconnects from my PC by
 running the BluetoothChat in the debugger.  I can see in the console that my
 phone is connecting for *AVRCP profile* but the break point doesn't stop in
 the setState method.  I don't know enough about bluetooth yet so I don't
 know if it's because the chat program is only looking for a particular
 profile or not.

 Thanks



 On Mon, May 24, 2010 at 4:00 PM, DonFrench dcfre...@gmail.com wrote:
  Have you looked at the BluetoothChat example?  It does what you want.

  On May 23, 10:03 am, Jake Maui jakemau...@gmail.com wrote:
   Is there a way to observe a bluetooth pairing and then be aware of when
  the
   connection no longer exists?  Basically I want to observe when my phone
   connects to another device and what that connection is dropped to that I
  may
   execute an action based on that connection.

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

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

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

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


[android-developers] Re: What happened to ADC3

2010-05-25 Thread Jean-Baptiste Charles Bouvet de Lozier
The answer is there: http://www.androlib.com/gd/stats/newappsbymonth.aspx
The propagation phase is over.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Refreshing an activity on a tabwidget

2010-05-25 Thread TreKing
On Mon, May 24, 2010 at 10:32 AM, Lamia Hannoun lamia.hann...@gmail.comwrote:

 How Can I refresh my list without any lost ?


Invalidate the underlying adapter.

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

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

Re: [android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread TreKing
On Tue, May 25, 2010 at 5:33 AM, andreas andreas.str...@googlemail.comwrote:

 But maybe some Google Andorid Wizard reads my cry for help ;-) and can tell
 me, what's now wrong with Froyo


I highly doubt this since the Google Engineers are pretty adamant about
people NOT using unpublished APIs.
They're probably not going to help you continue to do so. Unfortunately this
is the risk you take in doing so.

In the meantime, consider doing a null check on that line and giving the
user an error message. It's better than outright crashing.

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

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

Re: [android-developers] Refreshing an activity on a tabwidget

2010-05-25 Thread Lamia Hannoun
Hi!

I did it but i doesn't work actually i fill my adapter with data from
another activity, so when i tried myadapter.notifyDataSetInvalidated(*)*  it
doesn't work :s

Thx

2010/5/25 TreKing treking...@gmail.com

  On Mon, May 24, 2010 at 10:32 AM, Lamia Hannoun 
 lamia.hann...@gmail.comwrote:

 How Can I refresh my list without any lost ?


 Invalidate the underlying adapter.



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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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: Can I use code to enable the GPS service?

2010-05-25 Thread Yahel
 Someone correct me if I am wrong but I think that since 2.0 the only
 thing you can do is to present the settings page.

The only part where you are wrong is that it has never been possible
to avoid the prompt :D
For quite obvious security reasons.

Yahel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Automatic scrolling of table when rows are added

2010-05-25 Thread FractalBob
I have a TableLayout wrapped in a ScrollView and as the table expands
with new rows, I want the last item added to be displayed. How can I
do this? TIA!

Bob

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Ordered List

2010-05-25 Thread TreKing
On Tue, May 25, 2010 at 8:21 AM, Samuh samuh.va...@gmail.com wrote:

 I have to display an ordered list of items (expected level of nesting
 = 2) in a TextView.

 What is the best way to do this?


Can you provide a better explanation of what you're trying to do?

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

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

[android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread andreas
Well, since my app is free and I am not doing that as a business, I
will add a null check and open a window and tell the user the reason,
why he can't use the app on his brandnew froyo device. :-)

On 25 Mai, 17:52, TreKing treking...@gmail.com wrote:
 I highly doubt this since the Google Engineers are pretty adamant about
 people NOT using unpublished APIs.
 They're probably not going to help you continue to do so. Unfortunately this
 is the risk you take in doing so.

 In the meantime, consider doing a null check on that line and giving the
 user an error message. It's better than outright crashing.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Best Framework

2010-05-25 Thread Felipe Silveira
If you want a integrated solution (eclipse+plugins) you can check Motodev:
http://developer.motorola.com/

It helps a lot.

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

On Tue, May 25, 2010 at 12:14 PM, TreKing treking...@gmail.com wrote:

 On Thu, May 20, 2010 at 11:58 AM, K1 ozzyfat2...@gmail.com wrote:

 hi


 hi


  I'm new in android


 welcome


  ,some body help me on,what is the best framework for android?


 The Android Framework is by far the best of the Android Frameworks


  is there any eclipse Plugin?


 yes


  thx


 ur wlcme


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

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




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

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

[android-developers] Find the Activity object associated with a Tab in a TabActivity

2010-05-25 Thread dillipk
Hello,
   I have a TabActivity which contains 5 tabs(basically associated 5
activities).  Its easy to get the current tab index, but how do I find
the Activity object associated with a particular tab.?


Thanks,
DK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Issue with setBuiltInZoomControls on HTC Incredible

2010-05-25 Thread Tom Coxon
Hi David,

I'm having this exact same problem too. My suspicion was that it was
related to UI customisation HTC did with the Incredible, so I emailed
HTC Tech Support a couple of nights ago, to find out, and they
suggested phoning the HTC Head Office in the UK (because Tech Support
can't give out that information). I've pretty much given up at this
point because I don't have the time to spend hours on the phone
explaining what the problem is to a dozen different people.

If anyone has been able to file a bug report or contact any HTC
software devs, please let us all know about it. :-)

My only solution for now has been to detect the phone model: if it's
the Incredible (Build.MODEL = ADR6300) disable built-in zooming, and
manually attach the zoom buttons. The downside is that this means
Incredible owners can't use pinch-zoom, which may or may not be
acceptable for your app. I'll send more specific implementation
details if you need it.

Regards,
Tom

On Thu, May 20, 2010 at 9:03 PM, David at TRC dproth...@gmail.com wrote:
 We are getting exactly the same problem. I am anxious to see if anyone
 has found a fix for this.

 David

 On May 17, 12:19 pm, Achanta krishna.acha...@gmail.com wrote:
 Even I have a very similar issue with all the webviews in our app.
 None of the webviews display properly .
 *They initially zoom in on loading and does not let me zoom out. I
 cannot even scroll vertically or horizontally.
 *When I click on a link it always selects another link that is way
 below the one that I currently select.

 I am also using the built in zoom controls.
 The name of our app is iTriage if anyone with an incrediblw want to
 test it. It works fine on all the other phones.
 This issue is also causing the new users to leave bad ratings and is
 damaging our app ratings.

 This is the snippet of code that I am using in my app.
             mWebView = (WebView) findViewById(R.id.web_view);
             mWebView.getSettings().setJavaScriptEnabled(true);
             mWebView.setWebViewClient(new MyWebViewClient());
             mWebView.loadUrl(url);
             mWebView.getSettings().setBuiltInZoomControls(true);

 Please let me know what might be causing this issue or how I might be
 able to fix this.

 Thank you.

 On May 3, 9:21 pm, Felix fel...@gmail.com wrote:



  I use aWebViewto display JPGs to users. TheWebViewallows me to
  easily add zooming functionality without having to write the code to
  actually do it.

  Anyway, I've been getting a lot of Bug reports from users with an 
  HTCIncrediblethat the zooming is broken. I bought an HTCIncredible, and
  tested and sure enough zooming causes theWebViewto be surrounded by
  a box. It's difficult to explain, but basically panning and zooming is
  not possible. The only way I can get theWebViewto properly display
  the JPG is by setting setBuiltInZoomControls(false).

  I ran the app on another 2.1 phone (Droid), and it works fine. Works
  fine on my Nexus One, and even in the 2.1 Simulator.

  Anyone else run into this problem?

  Here's the code i have for myWebView:

 webview= (WebView) 
 findViewById(R.id.webview);webview.getSettings().setLoadsImagesAutomatically(true);webview.getSettings().setJavaScriptEnabled(true);webview.getSettings().setBuiltInZoomControls(true);webview.setInitialScale(initialScale);

  Then I just do:

 webview.loadUrl(file:// + getFilesDir() + / + filename);

  Thanks,
  Felix

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

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: JUnit failing with warning - test class not found in selected project

2010-05-25 Thread Felipe Ramos
I am facing a similar problem. My output after the test is ran is:

junit.framework.TestSuite$1:
Test results for ContentProviderSuite

It seems that the JUnit framework is not able to find the tests inside
the test class. I even built a specific TestSuite to put inside there
just the test class that I want to run, but even with this, I get the
same output.

Could anyone check ProviderTestCase2 to see if it is faulty, please?
It is great to have test support inside Android, but these kind of
issues get in the way during development.

Regards

Felipe

On Apr 28, 10:44 am, paulkeogh paul.ke...@gmail.com wrote:
 Env:

 Eclipse 3.5, Android 0.9.6, Windows XP SP2

 Using the Android New project wizard I create a project and a test
 project.

 Add a simple test to test project extending AndroidTestCase - works
 fine.

 Add another test to test project extending ProviderTestCase2 - fails.
 the JUnit view shows a green bar but with a warning node under the
 junit.framework.TestSuite1 node.

 When I click on the warning node I see - test class not found in
 selected project

 This is all out of the box - no changes made to the underlying
 environment. No useful output in either the Console or LogCat view.

 Any suggestions ?

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

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


[android-developers] Semitransparent text over VideoView doesn't seem to render properly

2010-05-25 Thread Warren
I have a TextView with partial opacity (textColor=#55ff) over a
VideoView, all within a relative layout. I expect the text to be a
light white shading over the video. However, once the video starts
playing, the text looks a dark, dull gray. If I set the text to full
opacity, there is no issue and the text appears solid white.

My guess is that this is some type of optimization to prevent having
to re-alpha blend after every frame update, but I'm not sure. If so,
is there a way to disable it?

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


Re: [android-developers] Froyo-Problem: Calendar access

2010-05-25 Thread Michael MacDonald
On 05/25/10 03:34, Andreas Streim wrote:
 Hi everybody,

 my app uses the internal calendar via the not officially, but in some
 articles on the web mentioned methods. So I have some lines to read
 all available calendars:

 String[] projection = new String[] { _id, displayName };
 Uri calendars = Uri.parse(content://calendar/calendars);
 Cursor managedCursor = act.managedQuery(calendars,
 projection,access_level300, null, null); /* selected */
 if (managedCursor.moveToFirst()) {
 etc.

 It works well with Android 1.5 to 2.1, but since Froyo there seems to
 be a problem. A Nexus user with Froyo gets force close and sent me a
 log with this line:

 05-24 18:55:04.308 E/AndroidRuntime( 1467): Caused by:
 java.lang.NullPointerException
 05-24 18:55:04.308 E/AndroidRuntime( 1467): at
 streim.de.quickaddroid.MeinKalender.init(MeinKalender.java:27)

 that's the if-line.

 Can anybody give me a hint what Google has changed to the calendar since 2.1?

 I know the method to access the calendar was never official, but there
 was no alternative. And it's not a good user experience, when apps you
 have used before stopped working. And the (hobby) programmer cannot do
 anything, because calendar is not part of the SDK and I don't have a
 Nexus :-(

 Greetings,
 Andreas

   
This is why Google begs, pleads and cajoles you not to use unpublished
APIs-- they will change without notice, which creates a bad user
experience and poisons perceptions of the whole platform.  When you use
an unpublished API, you are hurting every Android developer.

Google /needs/ to be able to change some things to move the platform
forward, and stuff that is undocumented is what they change.

If you can't find another way to get the functionality of an unpublished
API, the correct answer is to file a bug in the bug list requesting that
the functionality be officially provided.

From your description, it sounds like Google probably saw the app's
ability to access the calendar without going through the account log-in
page as a security flaw, and closed it.


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

[android-developers] Multitouch not working on Desire?

2010-05-25 Thread Robert Green
A user just told me that the built-in apps on his desire have working
multitouch but none of the downloadable ones are working, including
multitouch visible test and multitouch visualizer.  He said Dolphin HD
is working.

I'm a little confused.  Why would some apps get multiple touch points
and others not?  Is there something in the manifest that we need to
specify now for it?

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


Re: [android-developers] Refreshing an activity on a tabwidget

2010-05-25 Thread TreKing
On Tue, May 25, 2010 at 10:54 AM, Lamia Hannoun lamia.hann...@gmail.comwrote:

 so when i tried myadapter.notifyDataSetInvalidated(*)*  it doesn't work


Did you try notifyDataSetChanged()? I've actually notice that
notifyDataSetInvalidated() does not work and never use it.

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

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

[android-developers] Re: Automatic scrolling of table when rows are added

2010-05-25 Thread Jean-Baptiste Charles Bouvet de Lozier
new Handler().post(new Runnable() {
  public void run() {
last.requestRectangleOnScreen(new Rect(0, 0, 0,
last.getHeight()));
  }
});

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Android Library Project

2010-05-25 Thread Xavier Ducrohet
Yes, this is not great.

The problem is our need to compile the library code as part of the
main project, and Eclipse only really gives us access to linked source
folder (it's so much easier in Ant because we control the input to
javac). I'm not sure there are other ways, except than replacing the
Java builder with our own (and this is not something I want to do).

Xav

On Tue, May 25, 2010 at 6:51 AM, Mark Carter mjc1...@googlemail.com wrote:
 For me, the biggest problem with the Android Library Project feature,
 is that library source files are showing up multiple times (once for
 the library project and then once for each project that uses that
 library project) in:

 1. The main source view
 2. Call Hierarchy
 3. Compiler warnings/errors

 i.e. everything is duplicated making things much harder to manage.

 (this is a bit more detail of what I wrote earlier - but essentially
 the same 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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. 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: Application Crash Reporting made easy - needs testers

2010-05-25 Thread GJTorikian
Kevin—

Thanks very much for your clear and quick response. I was able to
extend CrashReportingApplication and override the necessary methods.

I'm running a Cliq still on 1.5; I'll be sure to send in
thoughts/features.

Thanks—
Garen

On May 24, 3:43 pm, Kevin Gaudin kevin.gau...@gmail.com wrote:
 Hello Garen,

 You should be able to make your existing Application class extend
 org.acra.CrashReportingApplication in replacement of extending Application.
 Just make sure to call super.onCreate() at the beginning of your own
 existing onCreate() override, and add other needed methods like getFormId()
 (required) and getCrashResources() (if you want to configure user
 notifications in acra v2).

 The limitation of this configuration system requiring to extend a custom
 Application class is when you need to use another lib which has the same
 requirement. As you wrote before, we can only extend one class. I might add
 some documentation later on how to enable crash reporting manually in your
 application class if you are in this very special case.

 Please contact me directly by email or file an issue on the project page if
 you still have problems with ACRA. We solved an issue with Mathias Lin today
 which occurred when the manifest doesn't use the android:versionName
 attribute. There's a new acra-2.0.2 version with the fix.

 Kevin





 On Sat, May 22, 2010 at 2:04 AM, GJTorikian gjtorik...@gmail.com wrote:
  Hi Kevin—

  My app already has a class that extends Application, which is defined
  in android:name in the Manifest. It seems that if I try to replace it
  with the ACRA-created class (I called it CrashReporter), the app
  crashes on first run, then runs fine after that.

  If I make CrashReporter an inner class, I lose all the ACRA
  functionality.

  Any plans to make ACRA work for apps that already have a main
  Activity class defined? It's really the extends org.* bit that's
  throwing it off, since classes can only extend from one other class...

  Thanks—
  Garen

  On May 17, 9:39 am, Kevin Gaudin kevin.gau...@gmail.com wrote:
   Hello,

   I would like to introduce you to a library calledACRA(Application
   Crash Reporting for Android).http://acra.googlecode.com

   The goal of this library is to provide android applications developers
   with a tool to let their applications send them crash reports the
   easiest possible way.

   One of the main issue when implementing crash reporting tools is...
   where do I send my reports ?ACRAsolves this problem with a simple
   solution : reports are sent to a Google Docs Form ! So you don't need
   to code your own reports receiver scripts and you don't have to find
   dedicated hosting for that... let's use Google's servers ! :)

   A first version ofACRAhas been successfully used in a few apps
   already on the market, and we are now preparing to publish a v2 which
   allows developers to replace the annoying force close dialog with
   fully configurable notification systems :
   * Silent : the user experience is not altered compared to standard
   android apps. The force close dialog is displayed, butACRAtries to
   send a report. If it fails, reports will be sent on application
   restart in a separate Thread.
   * Toast notification to inform the user that a crash report has been
   sent (and you may add that it can be disabled in the preferences
   screen)
   * Status bar notification which leads to a dialog asking the user if
   he's ok to send a report. You can even add an input field to let him
   comment the issue.

   We are now looking for devs who would like to test the library and
   it's different notification modes. All the information, screenshots
   and step-by-step usage guide are available in that Wiki page :
 http://code.google.com/p/acra/wiki/ACRAHowTo2

   Devs who would like to use the v1 and it's basic (but working)
   functionnality can follow this link :
 http://code.google.com/p/acra/wiki/ACRAHowTo2

   Any comment/discussion is open aboutACRA, we really want your opinion
   about it.

   Kevin

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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 athttp://
  groups.google.com/group/android-developers?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%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 

[android-developers] Re: More about WakeLocks and Services

2010-05-25 Thread nikhil
http://github.com/commonsguy/cwac-wakeful

On May 25, 10:16 am, Evan Ruff evan.r...@gmail.com wrote:
 Hey all,

 I was wondering if someone could help me clarify how I can created the
 following:

 1. My application uses AlarmManager to trigger an IntentService
 2. IntentService gets a WakeLock
 3. IntentService runs all the necessary code
 4. IntentService releases WakeLock

 For an IntentService, Is there a way to accomplish this without using
 the BroadcastReciever Pattern, as created by Mark Murphy? It's my
 understanding that the AlarmManager will invoke the Service directly,
 so can I get a valid wake lock inside of the onHandleIntent method?

 Thanks!

 Evan

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

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


Re: [android-developers] Re: More about WakeLocks and Services

2010-05-25 Thread Mark Murphy
nikhil wrote:
 http://github.com/commonsguy/cwac-wakeful

Actually, he's seeking an answer to a question that I couldn't answer
(at least not without more experimentation).

My implementation uses a BroadcastReceiver to get the WakeLock and start
the WakefulIntentService.

The OP is wondering if we can skip the BroadcastReceiver, and just have
the AlarmManager invoke an IntentService directly, with the
IntentService grabbing the WakeLock in onStartCommand().

Personally, I am nervous that this might be too late, and there might be
a gap where there's no WakeLock in force, so the phone may fall asleep.
However, I don't know that for certain.

Has anyone experimented with WakeLocks and IntentServices, besides my
WakefulIntentService?

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.5 Available!

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


[android-developers] Re: Participate in app promotion experiment

2010-05-25 Thread Maps.Huge.Info (Maps API Guru)
The experiment is starting to wrap up. Here are the current stats:

 idapad |   campaign   | hits_left | impressions |
clicks | ctr
+--+---+-
++--
102 | Punching for Health  | 0 |   30001 |
433 | 1.44
   1002 | ArmaBoing| 0 |   25001 |
361 | 1.44
   1009 | Executive Assistant (adware) |  5968 |4032 |
63 | 1.56
100 | My College Life Beta | 0 |   30001 |
478 | 1.59
   1000 | Google Voice Call Advanced   | 0 |   30001 |
516 | 1.72
   1004 | Achievements and Trophies|  4143 |5857 |
109 | 1.86
   1005 | Emergency QuickDial  |  4915 |   10085 |
201 | 1.99
101 | PuzzleQube   | 0 |   30001 |
620 | 2.07
   1003 | Diddo!   |  4144 |   10856 |
253 | 2.33
   1006 | Pobs |  4217 |5783 |
137 | 2.37
   1001 | What Zip Code?   | 0 |   30001 |
812 | 2.71
   1007 | Squirrel free|  4145 |5855 |
167 | 2.85
   1008 | FishCast 2010 by Datasport   |  4838 |5162 |
211 | 4.09
(13 rows)

 hits_left | impressions | clicks | ctr
---+-++--
 32370 |  222636 |   4361 | 1.96

If you'd like your app to be included in the next round, contact me
directly and I'll let you know what to do.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send 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: Android Library Project

2010-05-25 Thread Mark Carter
One thing that makes things slightly easier is to uncheck the Builders -
Java Builder of the Library project. This means that compiler
errors/warnings will not be duplicated. You still need to be sure you are
editing the code from MyApp/MyLibrary rather than MyLibrary.

This doesn't help the call hierarchy problem though.

Another option is just to use resource-only libraries and live with
replicating the java code in the top level apps.

On 25 May 2010 19:49, Xavier Ducrohet x...@android.com wrote:

 Yes, this is not great.

 The problem is our need to compile the library code as part of the
 main project, and Eclipse only really gives us access to linked source
 folder (it's so much easier in Ant because we control the input to
 javac). I'm not sure there are other ways, except than replacing the
 Java builder with our own (and this is not something I want to do).

 Xav

 On Tue, May 25, 2010 at 6:51 AM, Mark Carter mjc1...@googlemail.com
 wrote:
  For me, the biggest problem with the Android Library Project feature,
  is that library source files are showing up multiple times (once for
  the library project and then once for each project that uses that
  library project) in:
 
  1. The main source view
  2. Call Hierarchy
  3. Compiler warnings/errors
 
  i.e. everything is duplicated making things much harder to manage.
 
  (this is a bit more detail of what I wrote earlier - but essentially
  the same 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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

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


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

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

2010-05-25 Thread mike

On 05/24/2010 11:36 PM, Andy Savage wrote:
In the interests of keeping things together here is the link 
http://groups.google.com/group/android-developers/browse_thread/thread/f963e8f7ac35b75b 
for my thread I started in the developers thread just a few days ago 
related to this.


I will file a bug request sometime soon unless anybody else can shed 
any light (although I don't know if there will be much attention paid 
to it). It is more a feature enhancement than a bug I think, but 
it's definitely causing me difficulty.


The functionality to decode RTP streams is already built into OpenCore 
but unfortunately you can't pass an SDP file to the MediaPlayer 
(OpenCore Wrapper) unless it contains an RTSP stream link inside it. 
This is a bit dumb really... what's the point in passing an SDP file 
in that case? but ah.


RTSP is not a stream. It's a command and control protocol. The SDP 
announcement(s)

is the payload describing the media to be streamed. SIP also uses SDP.

The flow is:
RTSP/PLAY-- client
RTSP/SDP  - client
RTP--- client

Where you just listen for the UDP RTP packets on the port the SDP
announcement told you listen on.

Mike



There seems to be a limitation that means that it will only accept SDP 
information with RTP streams inside if it gets them from the RTSP 
stream (e.g. it gets this information from SETUP in the RTSP protocal).


Thus far it seems the only solution is to dump the RTP packets to a 
file (periodically close the file and write a new one) then 
periodically open these files in mediaplayer. A pretty ugly hack really!


--
The greatest challenge to any thinker is stating the problem in a way 
that will allow a solution

- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In: http://www.linkedin.com/in/andysavage


On Tue, May 25, 2010 at 2:19 PM, debelyoo jean.ross...@gmail.com 
mailto:jean.ross...@gmail.com wrote:


Hi Andy,

Good to see that the problem is not only specific to my environment :)
And I hope we could find a solution, or at least one Android engineer
will take a look at this post.

I still stuck on it... I tried on Android 1.6 (G1) and Android 2.1
(HTC Desire). Both do not work.

I'm currently looking into the MediaPlayer sources, to see if I can
get more details about the error and maybe fix the bug myself.

Cheers
Jean

On May 24, 9:45 am, Andy Savage a...@bluewire.net.nz
mailto:a...@bluewire.net.nz wrote:
 Hi there,

 Any answer to this question? It's bugging me too. Jean, can you tell
 us what version you are testing this on? Have you tried 2.1?

 Cheers,
 Andy

 On May 6, 3:32 pm, debelyoo jean.ross...@gmail.com
mailto:jean.ross...@gmail.com wrote:



  Hi dillirao,

  I don't receive onPrepared callback.

  After requesting the live stream through the SDP file (http://
  server_ip/live.sdp) I receive the following callbacks:
  - onBufferingUpdate -- Buffering 100%
  - onErrorCallback -- Command PLAYER_INIT completed with an
error or
  info PVMFErrCorrupt

  My file is encoded in MPEG-4 part 2, audio is AAC, file format
  is .mp4, resolution is 320x240. I have a bitrate of 700kbps but bw
  should not be a problem since I'm on Wi-Fi.
  I can stream the same file with a RTSP request from the Darwin
server.
  It works smoothly.

  Any idea why the device returns this error ? evn though it can
play
  the same stream via RTSP ?

  Jean

  On May 5, 3:06 pm, dillirao malipeddi dillir...@arijasoft.com
mailto:dillir...@arijasoft.com wrote:

   did u received OnPrepared callback.
   Plz write a onErrorcallback and see, if you get error callback.

   whats video profile and audio profile you are using.

   use : h263/h264 15fps; 176x144 or 320x240  and use low bit
rate , on
   internet ; if lan, bw is not issu
   for audio: use aac/ again try low bit rate encoding;... amr/
is ok...

   Thanks

   On Thu, Apr 29, 2010 at 6:32 PM, debelyoo
jean.ross...@gmail.com mailto:jean.ross...@gmail.com wrote:
I try to play a live stream on my android phone using the
MediaPlayer
object. But I definitely see a black screen. Does anybody
have any
experience with streaming on Android ?

Here is what I'm doing:
I broadcast a stream with Darwin streaming server (via
PlaylistBroadcast) to my Android phone. The stream is sent
over RTP to
the IP of my device (unicast). A .sdp file describes my
stream.

In my app, I try to play the stream with the following
code where url
is rtsp://server_ip/live.sdp

private void playVideo(String url) {
   try {
   //media.setEnabled(false);

   if (player==null) {
 

Re: [android-developers] Re: RTP stream video decoding

2010-05-25 Thread mike

On 05/24/2010 02:06 PM, savanevery wrote:

How about writing the RTP stream to a file and playing it from there?


On May 24, 2:44 am, Andy Savagea...@bluewire.net.nz  wrote:
   

Hi everyone,

I need a little bit of help from some experts out there.

Currently I am developing an application that will stream video using RTP
and SIP. I have this mostly working with audio working fine both ways using
Java (and native) codecs. I can stream out video also from the camera to a
windows client.

The problem comes from when I want to receive and decode the video on the
android platform. I understand at this stage that Mediaplayer only supports
RTSP streams. Ironically it does what I need (by getting the SDP information
from using RTSP SETUP call and using that RTP/UDP information to receive the
stream). But I can't seem to access this functionality, all it takes as
input is a RTSP url. If you are unfamiliar the difference between RTSP using
RTP and SIP using RTP. You can read about the differences
herehttp://www.cs.columbia.edu/~hgs/rtsp/faq.html#rtsp_sip
 


Oh, ok... you've at least read Henning's faq. Sorry for the previous
post.


.

What I need to do is take an RTP stream encoded with h.263-1998 and somehow
pass it to the mediaplayer (or even a lower level api if somebody can
provide an example).

The only way I can think around this is to write another service
to receive the RTP stream and provide an RTSP interface... but this is a
really ugly solution.
 


Yeah, you might be stuck with a B2BUA. But RTSP is *really* simple,
so setting up a local listener and pasting them together shouldn't be
*that* horrible of a hack if it comes to that.

Mike


I would really appreciate if anybody could offer any help with this.

Kind regards,
Andy Savage

--
The greatest challenge to any thinker is stating the problem in a way that
will allow a solution
- Bertrand Russell

Andy Savage
Cell Phone: +852 936 34341
Skype ID: andy_savage
Linked In:http://www.linkedin.com/in/andysavage

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


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


[android-developers] Re: Android Apps purchasing from anywhere in the world

2010-05-25 Thread Amir Alagic
Hi,

I don't think that this will happen any time soon for you in
Singapore. Google is living on ads and few months ago Google bought
AdMob for 750 million dollars. It it not in their interest to improve
paid apps after they invested so much money in mobile advertising.

Last year Google said that they will give us list of countries that
will get paid apps... but it is more than a year and still almost
nothing. There were some rumors that paid apps will come to Sweden at
the end of Q1 2009, then that it will come in october 2009, then that
it will come in Q1 2010 but nothing. Many people ask questions about
that on so called Help forum for Android Market but nobody from Google
is answering even if some people asked for more than a year.

People that were on Google IO got 100 dollars checks to use with
Adwords/Adsense (friend that was there told me about that). It looks
like that Google prefer adds... I hope that I am wrong.


On May 21, 11:34 am, hotr0d cyberm...@gmail.com wrote:
 I'm surrently located in Singapore and I really love my Nexus one and
 I would love buy apps from the market place. I hope the ability to buy
 android apps from anywhere in the world (just like Iphone apps) would
 be available really really really soon.

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

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


Re: [android-developers] Re: JUnit failing with warning - test class not found in selected project

2010-05-25 Thread Test Mock5
 test.mock5

On May 25, 2010 9:55 AM, Felipe Ramos felipe.wo...@gmail.com wrote:
I am facing a similar problem. My output after the test is ran is:

junit.framework.TestSuite$1:
Test results for ContentProviderSuite

It seems that the JUnit framework is not able to find the tests inside
the test class. I even built a specific TestSuite to put inside there
just the test class that I want to run, but even with this, I get the
same output.

Could anyone check ProviderTestCase2 to see if it is faulty, please?
It is great to have test support inside Android, but these kind of
issues get in the way during development.

Regards

Felipe


On Apr 28, 10:44 am, paulkeogh paul.ke...@gmail.com wrote:
 Env:

 Eclipse 3.5, Android 0.9.6,...
 For more options, visit this group athttp://
groups.google.com/group/android-developers?hl=en


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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 2.2 MediaPlayer Woes

2010-05-25 Thread Brad
I have an app that uses multiple media players to play overlapping
sounds.  Each time I play a new sound the following actions are
performed:

- reset
- setDataSource
- prepare
- setLooping
- setVolume
- start

Up until 2.2 everything worked fine, now the first media player sounds
fine, but when I start the second media player the sound is garbled
and I get the following messages in the console:

E/MediaPlayer(  449): error (1, -2147483648)
E/MediaPlayer(  449): Error (1,-2147483648)

and later

E/MediaPlayer(  449): Error (-38,0)
E/MediaPlayer(  449): Error (-38,0)

I know the standard recommendation is to use a SoundPool in this case,
but it doesn't work for me because I need to know when each sound has
finished playing.  Also my samples are very large and SoundPool seems
geared toward smaller sound clips.

Any idea what may have changed to cause this new behavior?  Any ideas
for possible workarounds? 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] Stop Application Catch

2010-05-25 Thread adag
Hello,

I have 5 screen in which I am encountering Stop Application error
which makes my application to stop. Here I know that an exception
which supposed to be addressed inside the code on which the error is
occurring. The Stop Application System Message is forcing the next 3
screen to close until it reaches to the 1st screen of the application.

Is there any scope(or the way by handling) that I can stop that system
message not to occur onto the next screen of any uncontrolled such
error.

Please reply with your valuable suggestion would be grateful.

Thanks and Regards,
adjo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Stop Application Catch

2010-05-25 Thread Mark Murphy
adag wrote:
 Hello,
 
 I have 5 screen in which I am encountering Stop Application error
 which makes my application to stop. Here I know that an exception
 which supposed to be addressed inside the code on which the error is
 occurring. The Stop Application System Message is forcing the next 3
 screen to close until it reaches to the 1st screen of the application.
 
 Is there any scope(or the way by handling) that I can stop that system
 message not to occur onto the next screen of any uncontrolled such
 error.

The system message will occur when your code crashes. If the system
message is appearing four times, then your code is crashing four times.

Use adb logcat, DDMS, or the DDMS perspective in Eclipse to fix the bug.
Then, the system message will go away.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Apps purchasing from anywhere in the world

2010-05-25 Thread Tomáš Hubálek
This sounds terribly. I love AdSense in web pages as it is not
annoying but sometimes even useful. But I really hate ads in software.
I wish what you wrote bellow is not true :-(

Tom

On 25 kvě, 20:41, Amir Alagic amirs...@gmail.com wrote:
 Hi,

 I don't think that this will happen any time soon for you in
 Singapore. Google is living on ads and few months ago Google bought
 AdMob for 750 million dollars. It it not in their interest to improve
 paid apps after they invested so much money in mobile advertising.

 Last year Google said that they will give us list of countries that
 will get paid apps... but it is more than a year and still almost
 nothing. There were some rumors that paid apps will come to Sweden at
 the end of Q1 2009, then that it will come in october 2009, then that
 it will come in Q1 2010 but nothing. Many people ask questions about
 that on so called Help forum for Android Market but nobody from Google
 is answering even if some people asked for more than a year.

 People that were on Google IO got 100 dollars checks to use with
 Adwords/Adsense (friend that was there told me about that). It looks
 like that Google prefer adds... I hope that I am wrong.

 On May 21, 11:34 am, hotr0d cyberm...@gmail.com wrote:



  I'm surrently located in Singapore and I really love my Nexus one and
  I would love buy apps from the market place. I hope the ability to buy
  android apps from anywhere in the world (just like Iphone apps) would
  be available really really really soon.

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

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


Re: [android-developers] Re: Client server setup in android

2010-05-25 Thread Frank Weiss
Hi santha,

Please note that REST has much more to do with the HTTP method (GET, POST,
PUT, DELETE, etc.) and the URI than with the data serialization, such as
JSON and XML.

For many simple client-to-server data transfers, you can use the query
parameters instead of REST.

JSON and XML are often a subjective developer choice or dictated by an
existing web service. JSON is less verbose. XML can be transformed with
technologies such as XSLT. For HTML web clients, JSON is often the
serialization of choice because it maps directly to a Javascript object
graph. However, there are several Java libraries that will
serialize/deserialize JSON to Java object graphs.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: R: Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-25 Thread BobG
I cant seem to get that example I posted to run much faster than every
200ms, so if some Real Smart Guy can try to speed it up and tell us
peons what the speedup trick was, we'd be grateful.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Froyo-Problem: Calendar access

2010-05-25 Thread andreas
Hi,

On 25 Mai, 19:18, Michael MacDonald googlec...@antlersoft.com wrote:
 This is why Google begs, pleads and cajoles you not to use unpublished
 APIs-- they will change without notice, which creates a bad user
 experience and poisons perceptions of the whole platform.  When you use
 an unpublished API, you are hurting every Android developer.

Tell me if I am wrong, but Google tells us, there is a content
provider for calendar:

http://developer.android.com/guide/topics/providers/content-providers.html

There you can read:

Similarly, the URIs for the table of recent phone calls and the table
of calendar entries are:

android.provider.CallLog.Calls.CONTENT_URI
android.provider.Calendar.CONTENT_URI

There is even a permission for read and for write to the calendar, so
I think

 From your description, it sounds like Google probably saw the app's
 ability to access the calendar without going through the account log-in
 page as a security flaw, and closed it.

you are wrong. The user accepts that I work with his calendar, the
same way it's no security hole if I work with his emails, after the
app requests permission on install and is granted permission.

Greetings,
Andreas

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


[android-developers] ListView and ListAdapter

2010-05-25 Thread John Gaby
I am trying to use ListView and ListAdapter.  If I create a simple
Android project and add a ListView as the content view, and set it's
adapter to my adapter based on ListAdapter, everything seems to work.
My ListAdapter's 'getCount' is called, and I return 3, my
'getViewTypeCount' is called and I return 1, my 'getItemType' is
called and I return 0, and for each item, my 'getView' is called and I
return a TextView.  Everything works, and the list is displayed with 3
items.

Now if I try and do the same thing in a more complicated environment,
it does not work.  My 'getCount', 'getViewTypeCount' and 'getItemType'
methods are called, but the 'getView' method is never called and the
ListView appears empty.

Now I know that I must be doing something wrong in the more
complicated case, but I cannot see what it is. The code is really too
involved to post here, but I was hoping that someone could give me
some ideas as to why my 'getView' is never called even though I return
3 from my 'getCount' method.

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


Re: R: Re: Re: [android-developers] Searching for Vumeter or needle indicator

2010-05-25 Thread Kostya Vasilyev
Not sure if i can be called a Real Smart Guy, but you could do math in the
processing loop with integer math instead of floats...

This loop also seems a good candidate for conversion to native code using
the NDK.

25.05.2010 23:31 пользователь BobG bobgard...@aol.com написал:

I cant seem to get that example I posted to run much faster than every
200ms, so if some Real Smart Guy can try to speed it up and tell us
peons what the speedup trick was, we'd be grateful.


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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: interprocess communication

2010-05-25 Thread mah
Your service could possibly maintain a database with the detail. If
you take that approach, you might also listen for ON_BOOT and, when
received, make sure your database gets reset.

On May 19, 7:11 pm, irbaboon kkat...@gmail.com wrote:
 Hi,

 I'm developing an application which consists of two different
 activities which edit files. The two activities run in separate
 processes. Multiple instances of both activities can be launched
 concurrently in different tasks. Each activity instance is passed a
 file path to work on in its intent. I'd like to make it so that a
 given file cannot be edited in more than one activity instance at the
 same time.

 As far as my understanding goes, I have to use a Service. Each
 activity instance must ask the service whether it is allowed to
 acquire the editing rights for the file passed in its intent. The
 service will keep a set of open files. Set entries will be removed
 when activity instances are closed.

 The problem is that the service process can be killed at almost any
 time. There is not any method like Activity.saveInstanceState(...) in
 Service. How is the set of open files supposed to persist an eventual
 killing and later re-launching of the service process?

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

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


Re: [android-developers] ListView and ListAdapter

2010-05-25 Thread TreKing
On Tue, May 25, 2010 at 2:31 PM, John Gaby jg...@gabysoft.com wrote:

 Now if I try and do the same thing in a more complicated environment, it
 does not work.


Unless you explain what a more complicated environment means, you're
probably not going to get very good responses.

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

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

[android-developers] Change in the way input-lines act when updating to Android 2.2...

2010-05-25 Thread ajb
I have a calculator type app that I've developed and it's on the
Android Market. It uses two input-lines (EditText) and has always
worked well until I updated my Nexus One to Android 2.2.

When I would touch the input line, the soft keypad would pop-up
automatically, lift up the focused input line into view, and then I
would type in my numbers...no problems. But when I updated to Android
2.2, the soft keypad doesn't lift the focused input line far enough
and it's only half in view. Then when I scroll down to the next input
line, it doesn't lift up either and it's only about 1/4 of the way
into view. Another problem is that, sometimes, when I go back and
forth between the two input lines and then try to enter numbers - the
numbers don't appear but they do when I scroll left. Hard to explain
exactly what is happening but something strange is going on there that
didn't happen under my Android 2.1 and other lower versions.

I even tried to change some input line (EditText) statements in my
code and also tried to change the way the soft keypad would 'pad' the
view to the top but things still didn't work after I recompiled.
(android:windowSoftInputMode and android:inputType)

I also wonder if they made the soft keypad in 2.2 a little bigger in
height (na - that's crazy).

Anyway, any help would be appreciated. Does anybody out there with 2.2
mess with an app that has input lines where their softkeypad has to
move the input line up into view - does it work for 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] Playing Audio During call so that other person on call can hear it

2010-05-25 Thread Amit Mangal
Hi Everyone,
I want to build an application which will play an audio file when call is
connected so that other person on the call can hear this audio file.
experts please guide me how to do that ?
Thanks in advance
Amit

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Froyo-Problem: Calendar access

2010-05-25 Thread Mark Murphy
andreas wrote:
 Tell me if I am wrong, but Google tells us, there is a content
 provider for calendar:
 
 http://developer.android.com/guide/topics/providers/content-providers.html
 
 There you can read:
 
 Similarly, the URIs for the table of recent phone calls and the table
 of calendar entries are:
 
 android.provider.CallLog.Calls.CONTENT_URI
 android.provider.Calendar.CONTENT_URI

That reference, and the lingering permissions, are leftovers from about
two years ago, when the Calendar content provider was part of the SDK.

 The user accepts that I work with his calendar, the
 same way it's no security hole if I work with his emails

There is no email content provider, either.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] new froyo service: android.app.backup. Available in Emulator?

2010-05-25 Thread brian
Is it possible to test the new Backup api in the emulator?

I wrote a simple BackupAgent, but it never seems to be called...

http://developer.android.com/reference/android/app/backup/package-summary.html

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


Re: [android-developers] Re: Froyo-Problem: Calendar access

2010-05-25 Thread Michael MacDonald
On 05/25/10 15:31, andreas wrote:

 Hi,

 Tell me if I am wrong, but Google tells us, there is a content
 provider for calendar:

 http://developer.android.com/guide/topics/providers/content-providers.html

 There you can read:

 Similarly, the URIs for the table of recent phone calls and the table
 of calendar entries are:

 android.provider.CallLog.Calls.CONTENT_URI
 android.provider.Calendar.CONTENT_URI

   
Nevertheless, android.provider.Calendar /is not/ part of the published
SDK, and has not been since the SDK went official.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >