Re: [android-developers] Connect to an avaible Network

2012-03-14 Thread Robert Greenwalt
I think that addNetwork adds to a persistent database of networks.  Calling
it again with the same information may generate an error as it can't add
twice.  If you then call enableNetwork using -1 as the networkID it will of
course give an error.

On Tue, Mar 13, 2012 at 11:57 AM, Endy Silveira <
endy.silve...@traceback.com.br> wrote:

> Hello all,
>
> I googled it by days and got no success, I'm trying to connect to my
> WPA/WPA2 network when I put the Wifi On, it all over codes...
>
> If I was already connected to the network before I set the wifi off on the
> program, when I set the wifi on it connect, but I want to enter with the
> name of the network and the password...
>
> The code that I got error is this:
>
> wifiManager.setWifiEnabled(true);
>
> Toast.makeText(context, "Off to On", Toast.LENGTH_LONG).show();
>
> WifiManager wifi = (WifiManager) 
> getSystemService(Context.WIFI_SERVICE);
>
> WifiConfiguration wc = new WifiConfiguration();
>
> wc.SSID = "\"My Network\"";
>
> wc.preSharedKey  = "\"password\"";
>
>
> wc.hiddenSSID = false;
>
> wc.status = WifiConfiguration.Status.ENABLED;
>
> wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP);
>
> wc.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP);
>
> wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK);
>
> 
> wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP);
>
> 
> wc.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP);
>
> wc.allowedProtocols.set(WifiConfiguration.Protocol.RSN);
>
> int res = wifi.addNetwork(wc);
>
> Toast.makeText(context, "add Network returned " + res, 
> Toast.LENGTH_LONG).show();
>
> boolean b = wifi.enableNetwork(res, true);
>
> Toast.makeText(context, "enableNetwork returned " + b, 
> Toast.LENGTH_LONG).show();
>
> wifiManager.setWifiEnabled(true);
>
>
> I got -1 in the add Network and false in enableNetwork...
>
> Someone know why?
>
> Thanks in advance!
>
> Endy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Re: CONNECTIVITY_ACTION during network change from DO - 1x

2012-03-13 Thread Robert Greenwalt
I think the roaming status thing was bugged for a release or two - it's
fixed in ICS.

On Tue, Mar 13, 2012 at 11:54 AM, Ankit  wrote:

> Thanks.
> Even on changing the roam status, I don't see this broadcast.
> e.g. If i go from Sprint network to Verizon and then back to Sprint, I
> dont see this intent being broadcast.
> I see it only when the 3G to WiFi. WiFI to 3G or when i lose
> connection or gain connection back.
>
>
>
> Thanks
> Ankit
>
> On Mar 13, 10:25 am, Robert Greenwalt  wrote:
> > I think you will not.  I think there are telephony notifications you can
> > get if you want that info.
> > If the device IP changes or if you change roam status or if you lose the
> > connection you will receive this broadcast, but I think there are many
> > minor network events that do not trigger it.
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Mar 12, 2012 at 12:26 PM, Ankit  wrote:
> > > Hi,
> > > I went thru the details of the CONNECTIVITY_ACTION at
> >
> > >http://developer.android.com/reference/android/net/ConnectivityManage.
> ..
> >
> > > but am not clear what "A change in network connectivity has occurred"
> > > indicates. Will I receive this intent if the mobile moves from EVDO to
> > > 1x network and vice-verse?
> >
> > > Thanks
> > > Ankit
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] CONNECTIVITY_ACTION during network change from DO - 1x

2012-03-13 Thread Robert Greenwalt
I think you will not.  I think there are telephony notifications you can
get if you want that info.
If the device IP changes or if you change roam status or if you lose the
connection you will receive this broadcast, but I think there are many
minor network events that do not trigger it.

On Mon, Mar 12, 2012 at 12:26 PM, Ankit  wrote:

> Hi,
> I went thru the details of the CONNECTIVITY_ACTION at
>
> http://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION
>
> but am not clear what "A change in network connectivity has occurred"
> indicates. Will I receive this intent if the mobile moves from EVDO to
> 1x network and vice-verse?
>
> Thanks
> Ankit
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Proxy doesn't work in connection with VPN

2012-03-12 Thread Robert Greenwalt
Thanks JP.  That's a useful observation.  I'll file a bug to get this
resolved.

R

On Sun, Mar 11, 2012 at 2:58 PM, Jaypi  wrote:

> Hello,
>
> I have a Samsung Galaxy Nexus with ICS 4.0.2 and the web proxy server
> doesn't work while I'm connected with a VPN connection.
>
> First we have to connect with the wifi in our university, then we need to
> establish a VPN connection. The connection works and I get/send packages
> successfully. I have also an access to my home drive there.
>
> In addition to that we need to configure a proxy server to get access to
> the internet, but that doesn't work. There is no internet connection.
>
> Because there is no option to enable/configure a proxy directly in the
> browser, but only in the network area I think the proxy will be ignored by
> the VPN connection.
>
> Would be nice to fix that problem.
>
> Best regards
> JP
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Why can't I get a Jpeg Callback

2012-03-11 Thread Robert Young
Hello all,

I have the following code that gets called from my
main activity to capture a full Frame Image with the camera.
I've tried many differnt combinations of callback requests, but I
NEVER get a Jepeg Callback, though I do get all the other callbacks.

// **

public void TakeFullFrameImage()
{
if(mCam != null)
{
Date currenttime = new Date();
long Timeout = currenttime.getTime() + 3000;
mCam.stopPreview();
mCam.takePicture(ShutterCb, RawCb, PostViewCb, JpegCb);

// *** [ShutterCb, RawCb, PostViewCb, JpegCb] 
// mCam.takePicture(ShutterCb, RawCb, PostViewCb, JpegCb );
// ** [ The above Gets ShutterCb, RawCb, & PostViewCb only ]
// mCam.takePicture(ShutterCb, RawCb, PostViewCb, null );   
// ** [ The above Gets ShutterCb, RawCb, & PostViewCb ]
// mCam.takePicture(ShutterCb, RawCb, null, null ); 

// ** [ The above Gets ShutterCb & RawCb ]
// mCam.takePicture(ShutterCb, null, null, null );  

// ** [ The above Gets ShutterCb only ]
// mCam.takePicture(ShutterCb, null, PostViewCb, null );
// ** [ The above Gets ShutterCb & PostViewCb ]
// mCam.takePicture(ShutterCb, null, null, JpegCb );
// ** [ The above Gets ShutterCb only ]
// mCam.takePicture(ShutterCb, null, PostViewCb, JpegCb );
// ** [ The above Gets ShutterCb & PostViewCb ]
// mCam.takePicture(null, RawCb, null, null );  

// ** [ The above Gets RawCb only ]
// mCam.takePicture(null, RawCb, PostViewCb, null );

// ** [ The above Gets RawCb, & PostViewCb ]
// mCam.takePicture(null, RawCb, PostViewCb, JpegCb );  
// ** [ The above Gets RawCb, & PostViewCb only ]
// mCam.takePicture(null, null, PostViewCb, null ); 

// ** [ The above Gets PostViewCb only ]
// mCam.takePicture(null, null, null, JpegCb );
// ** [ The above Gets no callback

while( (currenttime.getTime()) < (Timeout) )
currenttime = new Date();
mCam.startPreview();
}
}

// 

I print out some debug info about the data each call back receives,
the log is below.
I always receive the Shutter Callback when I request it.
The Raw Callback always receives a NULL for the data parameter,
the PostView Callback recieves data, but it is much too small,
and is NOT a jpeg, and I never receive the Jepeg callback
even if request it.

The code is running on a samsung galaxy SII. Which according
to mCam.mCamParameters.getSupportedPictureFormats() only supports
ImageFormat.JPEG and nothing else.

So...Why don't I get a Jpeg callback...?

Pleas feel free to ask for additional information if you
think you might know what is wrong, but need more explaination.

// 

03-10 18:12:59.535: D/dalvikvm(12393): GC_CONCURRENT freed ...
03-10 18:13:00.020: D/CLIPBOARD(12393): Hide Clipboard dialog ...
03-10 18:13:00.245: D/skia(12393): onFlyCompress
03-10 18:13:16.775: D/ShutterCb(12393): Shutter Callback received
03-10 18:13:17.125: D/dalvikvm(12393): GC_CONCURRENT freed 451K, ...
03-10 18:13:17.420: D/RawCb(12393): Image size is: 3264 x 2448
03-10 18:13:17.420: D/RawCb(12393): Image PixelFormat is: 256
03-10 18:13:17.435: D/RawCb(12393): Jpeg Image Quality is: 100
03-10 18:13:17.435: D/RawCb(12393): Thumbnail size is: 400 x  240
03-10 18:13:17.435: D/RawCb(12393): Thumbnail quality is: 100
03-10 18:13:17.435: D/RawCb(12393): Callback received with null data
03-10 18:13:17.470: D/PostViewCb(12393): Image size is: 3264 x 2448
03-10 18:13:17.470: D/PostViewCb(12393): Image PixelFormat is: 256
03-10 18:13:17.470: D/PostViewCb(12393): Callback Bytes: 576000
03-10 18:13:17.470: D/PostViewCb(12393): Jpeg Image Quality is: 100
03-10 18:13:17.470: D/PostViewCb(12393): Thumbnail size is: 400 x  240
03-10 18:13:17.470: D/PostViewCb(12393): Thumbnail quality is: 100
03-10 18:13:17.645: D/dalvikvm(12393): GC_CONCURRENT freed 1010K, 56% ...
03-10 18:13:18.095: D/dalvikvm(12393): GC_CONCURRENT freed 410K, ...
03-10 18:13:18.485: D/dalvikvm(12393): GC_CONCURRENT freed 399K, ...
03-10 18:13:18.880: D/dalvikvm(12393): GC_CONCURRENT freed 399K, ...
.
.
.
// 

TIA

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups

[android-developers] I can't get a Jpeg callback

2012-03-11 Thread Robert Young
Hello all,

I have the following code that gets called from my
main activity to capture a full Frame Image with the camera.
I've tried many differnt combinations of callback requests, but I
NEVER get a Jepeg Callback.

// **

public void TakeFullFrameImage()
{
if(mCam != null)
{
Date currenttime = new Date();
long Timeout = currenttime.getTime() + 3000;
mCam.stopPreview();
mCam.takePicture(ShutterCb, RawCb, PostViewCb, JpegCb);
 // *** [ShutterCb, RawCb, PostViewCb, JpegCb] 
// mCam.takePicture(ShutterCb, RawCb, PostViewCb, JpegCb );
// ** [ The above Gets ShutterCb, RawCb, & PostViewCb only ]
// mCam.takePicture(ShutterCb, RawCb, PostViewCb, null );
// ** [ The above Gets ShutterCb, RawCb, & PostViewCb ]
// mCam.takePicture(ShutterCb, RawCb, null, null );
// ** [ The above Gets ShutterCb & RawCb ]
// mCam.takePicture(ShutterCb, null, null, null );
// ** [ The above Gets ShutterCb only ]
// mCam.takePicture(ShutterCb, null, PostViewCb, null );
// ** [ The above Gets ShutterCb & PostViewCb ]
// mCam.takePicture(ShutterCb, null, null, JpegCb );
// ** [ The above Gets ShutterCb only ]
// mCam.takePicture(ShutterCb, null, PostViewCb, JpegCb );
// ** [ The above Gets ShutterCb & PostViewCb ]
// mCam.takePicture(null, RawCb, null, null );
// ** [ The above Gets RawCb only ]
// mCam.takePicture(null, RawCb, PostViewCb, null );
// ** [ The above Gets RawCb, & PostViewCb ]
// mCam.takePicture(null, RawCb, PostViewCb, JpegCb );
// ** [ The above Gets RawCb, & PostViewCb only ]
// mCam.takePicture(null, null, PostViewCb, null );
// ** [ The above Gets PostViewCb only ]
// mCam.takePicture(null, null, null, JpegCb );
// ** [ The above Gets no callback
 while( (currenttime.getTime()) < (Timeout) )
currenttime = new Date();
mCam.startPreview();
}
}

// 

I print out some debug info about the data each call back receives,
the log is below.
I always receive the Shutter Callback when I request it.
The Raw Callback always receives a NULL for the data parameter,
the PostView Callback recieves data, but it is much too small,
and is NOT a jpeg, and I never receive the Jepeg callback
even if request it.

The code is running on a samsung galaxy SII. Which according
to mCam.mCamParameters.getSupportedPictureFormats() only supports
ImageFormat.JPEG and nothing else.

So...Why don't I get a Jpeg callback...?

Pleas feel free to ask for additional information if you
think you might know what is wrong, but need more explaination.

// 

03-10 18:12:59.535: D/dalvikvm(12393): GC_CONCURRENT freed ...
03-10 18:13:00.020: D/CLIPBOARD(12393): Hide Clipboard dialog ...
03-10 18:13:00.245: D/skia(12393): onFlyCompress
03-10 18:13:16.775: D/ShutterCb(12393): Shutter Callback received
03-10 18:13:17.125: D/dalvikvm(12393): GC_CONCURRENT freed 451K, ...
03-10 18:13:17.420: D/RawCb(12393): Image size is: 3264 x 2448
03-10 18:13:17.420: D/RawCb(12393): Image PixelFormat is: 256
03-10 18:13:17.435: D/RawCb(12393): Jpeg Image Quality is: 100
03-10 18:13:17.435: D/RawCb(12393): Thumbnail size is: 400 x  240
03-10 18:13:17.435: D/RawCb(12393): Thumbnail quality is: 100
03-10 18:13:17.435: D/RawCb(12393): Callback received with null data
03-10 18:13:17.470: D/PostViewCb(12393): Image size is: 3264 x 2448
03-10 18:13:17.470: D/PostViewCb(12393): Image PixelFormat is: 256
03-10 18:13:17.470: D/PostViewCb(12393): Callback Bytes: 576000
03-10 18:13:17.470: D/PostViewCb(12393): Jpeg Image Quality is: 100
03-10 18:13:17.470: D/PostViewCb(12393): Thumbnail size is: 400 x  240
03-10 18:13:17.470: D/PostViewCb(12393): Thumbnail quality is: 100
03-10 18:13:17.645: D/dalvikvm(12393): GC_CONCURRENT freed 1010K, 56% ...
03-10 18:13:18.095: D/dalvikvm(12393): GC_CONCURRENT freed 410K, ...
03-10 18:13:18.485: D/dalvikvm(12393): GC_CONCURRENT freed 399K, ...
03-10 18:13:18.880: D/dalvikvm(12393): GC_CONCURRENT freed 399K, ...
.
.
.
// 

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

[android-developers] I Can't Get A JPEG Callback, Anybody know what I'm doing wrong?

2012-03-10 Thread Robert Young
Hello all,

I have the following code that gets called from my
main activity to capture a full Frame Image with the camera.
I've tried many differnt combinations of callback requests, but I
NEVER get a Jpeg Callback.

// **

public void TakeFullFrameImage()
{
if(mCam != null)
{
Date currenttime = new Date();
long Timeout = currenttime.getTime() + 3000;
mCam.stopPreview();
mCam.takePicture(ShutterCb, RawCb, PostViewCb, JpegCb);
 // *** [ShutterCb, RawCb, PostViewCb, JpegCb] 
  // mCam.takePicture(ShutterCb, RawCb, PostViewCb, JpegCb );
  // ** [ The above Gets ShutterCb, RawCb, & PostViewCb only ]
// mCam.takePicture(ShutterCb, RawCb, PostViewCb, null );
// ** [ The above Gets ShutterCb, RawCb, & PostViewCb ]
// mCam.takePicture(ShutterCb, RawCb, null, null );
// ** [ The above Gets ShutterCb & RawCb ]
// mCam.takePicture(ShutterCb, null, null, null );
// ** [ The above Gets ShutterCb only ]
// mCam.takePicture(ShutterCb, null, PostViewCb, null );
// ** [ The above Gets ShutterCb & PostViewCb ]
  // mCam.takePicture(ShutterCb, null, null, JpegCb );
  // ** [ The above Gets ShutterCb only ]
  // mCam.takePicture(ShutterCb, null, PostViewCb, JpegCb );
  // ** [ The above Gets ShutterCb & PostViewCb ]
// mCam.takePicture(null, RawCb, null, null );
// ** [ The above Gets RawCb only ]
// mCam.takePicture(null, RawCb, PostViewCb, null );
// ** [ The above Gets RawCb, & PostViewCb ]
// mCam.takePicture(null, RawCb, PostViewCb, JpegCb );
// ** [ The above Gets RawCb, & PostViewCb only ]
// mCam.takePicture(null, null, PostViewCb, null );
// ** [ The above Gets PostViewCb only ]
  // mCam.takePicture(null, null, null, JpegCb );
  // ** [ The above Gets no callback
 while( (currenttime.getTime()) < (Timeout) )
currenttime = new Date();
mCam.startPreview();
}
}

// 

I print out some debug info about the data each call back receives,
the log is below.
I always receive the Shutter Callback when I request it.
The Raw Callback always receives a NULL for the data parameter,
the PostView Callback recieves data, but it is much too small,
and is NOT a jpeg, and I never receive the Jepeg callback
even if request it.

The code is running on a samsung galaxy SII. Which according
to mCam.mCamParameters.getSupportedPictureFormats() only supports
ImageFormat.JPEG and nothing else.

So...Why don't I get a Jpeg callback...?

Pleas feel free to ask for additional information if you
think you might know what is wrong, but need more explaination.

// 

03-10 18:12:59.535: D/dalvikvm(12393): GC_CONCURRENT freed ...
03-10 18:13:00.020: D/CLIPBOARD(12393): Hide Clipboard dialog ...
03-10 18:13:00.245: D/skia(12393): onFlyCompress
03-10 18:13:16.775: D/ShutterCb(12393): Shutter Callback received
03-10 18:13:17.125: D/dalvikvm(12393): GC_CONCURRENT freed 451K, ...
03-10 18:13:17.420: D/RawCb(12393): Image size is: 3264 x 2448
03-10 18:13:17.420: D/RawCb(12393): Image PixelFormat is: 256
03-10 18:13:17.435: D/RawCb(12393): Jpeg Image Quality is: 100
03-10 18:13:17.435: D/RawCb(12393): Thumbnail size is: 400 x  240
03-10 18:13:17.435: D/RawCb(12393): Thumbnail quality is: 100
03-10 18:13:17.435: D/RawCb(12393): Callback received with null data
03-10 18:13:17.470: D/PostViewCb(12393): Image size is: 3264 x 2448
03-10 18:13:17.470: D/PostViewCb(12393): Image PixelFormat is: 256
03-10 18:13:17.470: D/PostViewCb(12393): Callback Bytes: 576000
03-10 18:13:17.470: D/PostViewCb(12393): Jpeg Image Quality is: 100
03-10 18:13:17.470: D/PostViewCb(12393): Thumbnail size is: 400 x  240
03-10 18:13:17.470: D/PostViewCb(12393): Thumbnail quality is: 100
03-10 18:13:17.645: D/dalvikvm(12393): GC_CONCURRENT freed 1010K, 56% ...
03-10 18:13:18.095: D/dalvikvm(12393): GC_CONCURRENT freed 410K, ...
03-10 18:13:18.485: D/dalvikvm(12393): GC_CONCURRENT freed 399K, ...
03-10 18:13:18.880: D/dalvikvm(12393): GC_CONCURRENT freed 399K, ...
.
.
.
// 

TIA

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

Re: [android-developers] Re: Android how to send the hex code out?

2012-03-08 Thread Robert Young
Serial port by definition is a string protocol, characters above 128 like (
0xFA ) are [control codes]. Examine the difference between binary and
string representation

2012/3/7 Todd Grigsby 

> "0x" implies that the characters that follow are byte data in hex
> notation.  The "0x" is not part of the data.But if you don't know that,
> you're frankly on the wrong list.  You need to learn basic programming
> before you ask any further questions.
> On Mar 6, 2012 5:16 AM, "mark2011"  wrote:
>
>> Dear Todd :
>>
>>Thanks for your kindly hint. Could you give me a more detail?
>> Thanks.
>>
>> BR,
>> Mark
>>
>> On 3月6日, 下午6時57分, Todd Grigsby  wrote:
>> > Google "hex notation" and "hexadecimal".
>> > On Mar 6, 2012 12:34 AM, "mark2011"  wrote:
>> >
>> >
>> >
>> > > Dear All :
>> >
>> > >   I want to send out the hex code like 0xfa through the serial port.
>> > > How do I send the 0x code in the program?
>> >
>> > > Thanks in advanced.
>> >
>> > > BR,
>> > > Mark
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups "Android Developers" group.
>> > > To post to this group, send email to
>> android-developers@googlegroups.com
>> > > To unsubscribe from this group, 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
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Scan files on network storage with android MediaScannerConnection.scanFile

2012-02-16 Thread Robert Auger
In Android SDK the fonction "scanFile" from "MediaScannerConnection"
class allows to add files in the MediaStore, and then to use nice
android apps to display and play multimedia files.

The "ScanFile" method need a "path" parameter (the path to the file to
be scanned).

Is there a way to build a content provider for files on a ftp server
and use the "scanFile" method to add them to the media store ?

What would be the "path" for these files on a network storage unit ?

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

2012-02-12 Thread Robert Thau
Your update seems to be written on the assumption that there's a single row
in ContactsContract.Data which has both the structured name fields and the
phone number, and which is identified by the contact ID.  Unfortunately,
none of that is true:

First off, the name and the phone number will generally be in separate
ContactsContract.Data rows.  (If there is only one phone number; there may
be none, or there may be more than one, in which case there will be one
ContactsContract.Data row for each, with the mime type set to the value of
ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE to distinguish it from
rows containing, say, email addresses, postal addresses, or ... well,
names.)

Second, you can't set the Contact ID for a ContactsContract.Data row
directly.  You can, instead, set the "Raw Contact ID".  "Raw Contacts" are
contact information associated with a given account.  If you have only one
account on the phone (or none), these will almost always be associated with
distinct Contacts.  However, if you have more than one account (say, a
personal Gmail account and an office exchange account), it's possible that
you'll have an entry for the same person in each account.  In that case,
the contacts ContentProvider will represent the two as separate
RawContacts, but synthesize a single aggregated Contact that includes data
from both.  (How does it know?  By similarity of names, common email
addresses, etc. --- which is not exactly foolproof!)

Some stuff that might be helpful:  A general overview of the data model
(from back when this API was first introduced; the earlier, simpler API it
mentions is deprecated and only partially functional on most modern devices
--- it'll break if there's more than one account):

  http://developer.android.com/resources/articles/contacts.html

A sample app which inserts a new contact:

  http://developer.android.com/resources/samples/ContactManager/index.html

You might also want to review the Javadoc for ContactsContract and its
components, particularly the recommendations for batch updates, etc.

Good luck...

rst

On Sat, Feb 11, 2012 at 1:16 AM, darrinps  wrote:

> I am having...mmmdifficulty let's say, updating the contact list.
> I can add to it just fine, but when I go to update it, it processes,
> but makes no change.  Here is my code:
>
>private void continueHandleEdit()
>{
>ArrayList ops = new
> ArrayList();
>
>String displayName = firstNameEdit.getText().toString() + " "
> + lastNameEdit.getText().toString();
>String phoneNumber = phoneNumberEdit.getText().toString();
>
>
>
> ops.add(ContentProviderOperation.newUpdate(ContactsContract.Data.CONTENT_URI)
> .withSelection(Data._ID + "=?", new String[]
> {mContactId})
> .withValue(StructuredName.DISPLAY_NAME, displayName)
> .withValue(Phone.NUMBER, phoneNumber)
> .build());
>
>try
>{
>Log.d(TAG, "Applying: " + ops);
>
>ContentProviderResult[] res =
> getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops);
>
>if (res!=null && res[0]!=null)
>{
>int updated = res[0].count;
>
>
>Log.d(TAG, "Updated " + updated + " row(s)");
>}
>else
>{
>Log.e(TAG, "Contact not updated.");
>}
>
>}
>catch (RemoteException e)
>{
>Log.e(TAG, "RemoteEception caught: " + e.getMessage() +
> "\nCause: " + e.getCause());
>}
>catch (OperationApplicationException e)
>{
>Log.e(TAG, "OperationApplicationEception caught: " +
> e.getMessage() + "\nCause: " + e.getCause());
>}
>
>finish();
>}
>
> Now the funny thing is that the log is showing the following:
>
> [mType: 2, mUri: content://com.android.contacts/data, mSelection:
> _id=?, mExpectedCount: null, mYieldAllowed: false, mValues:
> data1=544687, mValuesBackReferences: null,
> mSelectionArgsBackReferences: null]
>
> Updated 1 row(s)
>
> I know that the mContactId value holds the ID of the row as I verified
> it. Also notice that the phone number is in there (544687) but
> where is the display name? I know the variable held the right data as
> I stepped through it and verified that.
>
> What am I doing wrong?
>
>  It shouldn't be this much of a pain to update a contact! Grr.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 e

[android-developers] Why banned?

2012-02-07 Thread Robert Scott
When I try to log into android-developers I get a message that says I have been 
banned by the owner of the group.  I think this must have been a mistake.  I 
have always posted relevant and polite questions in this group.  My most recent 
postings were about audio latency measurements and their effect on applications 
that use audio.  Was this a violation because I mentioned specific Android 
devices?  If so, I can avoid doing to in the future.  Can you tell me why I 
have been banned?

Robert Scott
fixthatpi...@yahoo.com

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


[android-developers] EditText with bitmaps

2012-02-02 Thread Robert Slama
Hi guys,

is any way how make edittext custumized as is on attached image?

r^

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SQLiteDatabase.execSQL() not behaving as expected

2012-01-27 Thread Robert Hawkey
Yes you would be right if I was using MATCH for the SELECT from the
temporary SearchResults table; however, I'm not doing that. I just
select all the rows from that table as it is not an FTS3 table.  Yes
you're also correct, neither iOS nor Android seem to support FTS4
tables at the moment.  My tables are FTS3 tables.

I suspect it must have something to do with the internal
implementation of execSQL().  It must not truly be a 1:1 mapping of
the C sqlite3_exec() function in the SQLite3 library, I suspect
they're doing something else.  I suspect this because the
documentation says not to include multiple statements separated
with ;'s when calling execSQL(), whereas you can do that with
sqlite3_exec().

Rob

On Jan 26, 6:52 pm, John  wrote:
> Oh and from the same session:
>
> sqlite> sqlite> CREATE VIRTUAL TABLE pages USING fts4(title, body);
> SQL error: no such module: fts4SQL error: near "sqlite": syntax error
> sqlite>
>
> On Jan 26, 3:15 pm, Robert Hawkey  wrote:
>
>
>
>
>
>
>
> > SQlite supports FTS3 and FTS4 (full text searching).  I've seen
> > documentation (don't have it handy) that FTS3 is enabled in the build
> > of SQLite shipped in the API level I'm using so MATCH is valid.  I
> > know MATCH does work because I do at least get one return value.
> > Also, when I perform the work via rawQueries I get the full results.
>
> > Rob
>
> > On Jan 26, 2:23 pm, Mark Murphy  wrote:
>
> > > I have never used MATCH in SQLite. The LIKE operator uses %, not *, as
> > > the wildcard.
>
> > >http://sqlite.org/lang_expr.html
>
> > > On Tue, Jan 24, 2012 at 10:45 AM, Robert Hawkey  wrote:
> > > > Hi everyone,
>
> > > > I have an app I wrote for the iOS that makes extremely heavy use of a
> > > > large database, I am now porting that app to the Android platform.
>
> > > > I have a great deal of operations that follow this pattern:
>
> > > > 1    db.execSQL("CREATE TEMPORARY TABLE SearchResults(Name text);");
> > > > 2    db.execSQL("INSERT INTO SearchResults (Name) SELECT Name FROM
> > > > ProductNames WHERE NameLower MATCH '" + term + "*';");
> > > > 3    db.execSQL("INSERT INTO SearchResults (Name) SELECT Name FROM
> > > > BrandNames WHERE NameLower MATCH '" + term + "*';");
> > > > ...
> > > > Cursor cursor = db.rawQuery("SELECT Name FROM SearchResults" +
> > > > myCount, null);
> > > > cursor.moveToFirst();
> > > > if (!cursor.isAfterLast())
> > > > {
> > > >    Debug.log("DB", "- Adding: " + cursor.getString(0));
> > > >    resultSet.add(cursor.getString(0));
> > > >    cursor.moveToNext();
> > > > }
> > > > cursor.close();
>
> > > > On iOS using the SQLite3 C API and sqlite3_exec() all of these
> > > > statements work perfectly fine.  However, on Android they are
> > > > exhibiting strange behaviour.  I seem to only ever gets one row, it
> > > > seems from the very first INSERT (the line that starts with 2 above).
>
> > > > My goal here is to wrap all of the above commands in a begin and end
> > > > transaction so that I can prevent multiple transactions from being
> > > > created, also I use a temporary in memory table rather than a
> > > > rawQuery() with just the selects because that prevents the bridge from
> > > > the database layer to the Java layer from happening until the very end
> > > > which seems to result in much better performance.
>
> > > > When I rewrite the above logic to look like this:
>
> > > > Cursor cursor = db.rawQuery("SELECT Name FROM Table1 WHERE NameLower
> > > > MATCH '" + term + "*'", null);
> > > > cursor.moveToFirst();
> > > > while (!cursor.isAfterLast())
> > > > {
> > > >    resultSet.add(cursor.getString(0));
> > > >    cursor.moveToNext();
> > > > }
> > > > cursor.close();
> > > > cursor = db.rawQuery("SELECT Name FROM Table2 WHERE NameLower MATCH '"
> > > > + term + "*'", null);
> > > > cursor.moveToFirst();
> > > > while (!cursor.isAfterLast())
> > > > {
> > > >    resultSet.add(cursor.getString(0));
> > > >    cursor.moveToNext();
> > > > }
> > > > cursor.close();
> > > > ...
>
> > > > It works perfectl

[android-developers] Re: SQLiteDatabase.execSQL() not behaving as expected

2012-01-26 Thread Robert Hawkey
SQlite supports FTS3 and FTS4 (full text searching).  I've seen
documentation (don't have it handy) that FTS3 is enabled in the build
of SQLite shipped in the API level I'm using so MATCH is valid.  I
know MATCH does work because I do at least get one return value.
Also, when I perform the work via rawQueries I get the full results.

Rob

On Jan 26, 2:23 pm, Mark Murphy  wrote:
> I have never used MATCH in SQLite. The LIKE operator uses %, not *, as
> the wildcard.
>
> http://sqlite.org/lang_expr.html
>
>
>
>
>
>
>
>
>
> On Tue, Jan 24, 2012 at 10:45 AM, Robert Hawkey  wrote:
> > Hi everyone,
>
> > I have an app I wrote for the iOS that makes extremely heavy use of a
> > large database, I am now porting that app to the Android platform.
>
> > I have a great deal of operations that follow this pattern:
>
> > 1    db.execSQL("CREATE TEMPORARY TABLE SearchResults(Name text);");
> > 2    db.execSQL("INSERT INTO SearchResults (Name) SELECT Name FROM
> > ProductNames WHERE NameLower MATCH '" + term + "*';");
> > 3    db.execSQL("INSERT INTO SearchResults (Name) SELECT Name FROM
> > BrandNames WHERE NameLower MATCH '" + term + "*';");
> > ...
> > Cursor cursor = db.rawQuery("SELECT Name FROM SearchResults" +
> > myCount, null);
> > cursor.moveToFirst();
> > if (!cursor.isAfterLast())
> > {
> >    Debug.log("DB", "- Adding: " + cursor.getString(0));
> >    resultSet.add(cursor.getString(0));
> >    cursor.moveToNext();
> > }
> > cursor.close();
>
> > On iOS using the SQLite3 C API and sqlite3_exec() all of these
> > statements work perfectly fine.  However, on Android they are
> > exhibiting strange behaviour.  I seem to only ever gets one row, it
> > seems from the very first INSERT (the line that starts with 2 above).
>
> > My goal here is to wrap all of the above commands in a begin and end
> > transaction so that I can prevent multiple transactions from being
> > created, also I use a temporary in memory table rather than a
> > rawQuery() with just the selects because that prevents the bridge from
> > the database layer to the Java layer from happening until the very end
> > which seems to result in much better performance.
>
> > When I rewrite the above logic to look like this:
>
> > Cursor cursor = db.rawQuery("SELECT Name FROM Table1 WHERE NameLower
> > MATCH '" + term + "*'", null);
> > cursor.moveToFirst();
> > while (!cursor.isAfterLast())
> > {
> >    resultSet.add(cursor.getString(0));
> >    cursor.moveToNext();
> > }
> > cursor.close();
> > cursor = db.rawQuery("SELECT Name FROM Table2 WHERE NameLower MATCH '"
> > + term + "*'", null);
> > cursor.moveToFirst();
> > while (!cursor.isAfterLast())
> > {
> >    resultSet.add(cursor.getString(0));
> >    cursor.moveToNext();
> > }
> > cursor.close();
> > ...
>
> > It works perfectly returning all the proper results, however this is
> > extremely slow.
>
> > Could anyone explain to me why the execSQL() calls above would not
> > work as I expect them too (and how they work on iOS)?
>
> > Thanks!
>
> > Rob
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in DC:http://marakana.com/training/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 at
http://groups.google.com/group/android-developers?hl=en


[android-developers] SQLiteDatabase.execSQL() not behaving as expected

2012-01-26 Thread Robert Hawkey
Hi everyone,

I have an app I wrote for the iOS that makes extremely heavy use of a
large database, I am now porting that app to the Android platform.

I have a great deal of operations that follow this pattern:

1db.execSQL("CREATE TEMPORARY TABLE SearchResults(Name text);");
2db.execSQL("INSERT INTO SearchResults (Name) SELECT Name FROM
ProductNames WHERE NameLower MATCH '" + term + "*';");
3db.execSQL("INSERT INTO SearchResults (Name) SELECT Name FROM
BrandNames WHERE NameLower MATCH '" + term + "*';");
...
Cursor cursor = db.rawQuery("SELECT Name FROM SearchResults" +
myCount, null);
cursor.moveToFirst();
if (!cursor.isAfterLast())
{
Debug.log("DB", "- Adding: " + cursor.getString(0));
resultSet.add(cursor.getString(0));
cursor.moveToNext();
}
cursor.close();

On iOS using the SQLite3 C API and sqlite3_exec() all of these
statements work perfectly fine.  However, on Android they are
exhibiting strange behaviour.  I seem to only ever gets one row, it
seems from the very first INSERT (the line that starts with 2 above).

My goal here is to wrap all of the above commands in a begin and end
transaction so that I can prevent multiple transactions from being
created, also I use a temporary in memory table rather than a
rawQuery() with just the selects because that prevents the bridge from
the database layer to the Java layer from happening until the very end
which seems to result in much better performance.

When I rewrite the above logic to look like this:

Cursor cursor = db.rawQuery("SELECT Name FROM Table1 WHERE NameLower
MATCH '" + term + "*'", null);
cursor.moveToFirst();
while (!cursor.isAfterLast())
{
resultSet.add(cursor.getString(0));
cursor.moveToNext();
}
cursor.close();
cursor = db.rawQuery("SELECT Name FROM Table2 WHERE NameLower MATCH '"
+ term + "*'", null);
cursor.moveToFirst();
while (!cursor.isAfterLast())
{
resultSet.add(cursor.getString(0));
cursor.moveToNext();
}
cursor.close();
...

It works perfectly returning all the proper results, however this is
extremely slow.

Could anyone explain to me why the execSQL() calls above would not
work as I expect them too (and how they work on iOS)?

Thanks!

Rob

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


[android-developers] Proxy settings for ICS over ethernet

2012-01-16 Thread Robert Walsh
I am trying to set the browser proxy settings in Android ICS but am
having no luck.   The device I am using has ethernet but no wireless
so trying to set the APN or wireless network settings does not work.

I've found suggestions that you can use the java properties
(http.proxyHost and http.proxyPort) set via the setprop command, but
this does not seem to work.

There is also someone saying you can set the proxy in one of the
sqlite3 DBs, but again, no luck. The database is /data/data/
com.google.android.providers.settings/databases/settings.db and the
row should read – 99, http_proxy, proxy:port.

I have also tried setting the proxy on a nexus s ICS phone and then
poking around the sqlite dbs and the java properties (via getprop) but
I cannot find where the settings are stored.

Can anyone help me out here?

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: Android Library Broken

2012-01-12 Thread Robert D .

look here http://www.enterra-inc.com/techzone/
using_ant_android_applications_building/ hope it could be useful



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

2012-01-11 Thread Robert Lash
Please but my name in the hat.


On Jan 5, 12:50 pm, scp89  wrote:
> I've recently finished writing the first full-length, android-specific
> book on Android Marketing. It covers tips, tricks, strategies,
> competitive analysis, and so much more. Everything I've learned in 2
> years selling android apps, I've put into this book. It is available
> via e-book OR softcover:
>
> E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B...
>
> Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/...
>
> GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply
> reply to this thread, and 1 week from today I will randomly select 3
> members and PM you a link to your free download of the 130 page book.

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

2012-01-10 Thread Robert Massaioli
Here is where you should start: 
http://developer.android.com/guide/basics/what-is-android.html

Follow that and it gives you everything that you need to know.

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

2011-12-27 Thread Robert Thau
This isn't necessarily the right place to ask questions about nonstandard
OS installs --- the XDA developers forum for the device might be more
helpful:

  http://forum.xda-developers.com/forumdisplay.php?f=1394

My understanding (which may be out of date!) is that the Nook Tablet has a
cryptographic lock on the boot process which prevents you from easily
replacing the OS image, as is possible for the Nook Color.  People are
working on more complicated hacks which are intended to produce the same
effect, but I'm not sure they're ready yet.

Sorry, but I can't tell you more than that...

rst

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

[android-developers] Re: Pass Data From Activity to All Attached Fragments

2011-12-06 Thread Robert
Okay 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] Pass Data From Activity to All Attached Fragments

2011-12-01 Thread Robert
I'd like to pass some information to all attached Fragments in my Activity. 
However the simplest way that I can see how to accomplish this is to keep 
track of the Fragments that are being attached, via the onAttachFragment() 
method. I would save those Fragments in a list and when I need to, go 
through that list, and pass the data via a function call.

Is there another way that I can accomplish this?

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

Re: [android-developers] Users cannot install my application because of incorrect signing

2011-11-02 Thread Robert Slama
problem is happens when first app what is installed at handset was signed
with diff key. Usually when u install apk to handset with dev key and then
u try install that same apk but signed with production key.

r^

On 2 November 2011 17:23, John Raftery  wrote:

> I used eclipse to compile and sign my app and it works fine when I
> email the .APK file to people, but when they download it from the
> market, installation fails with this error message: "Package file was
> not signed correctly."
>
> Do I need to use my public key in the signing process? Is that what
> the problem is?
>
> Thanks,
> John Raftery
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] ltl doubt

2011-11-02 Thread Robert Slama
no way u can have just one manifest in apk

On 2 November 2011 13:22, bhanu prasad  wrote:

> Is it possible to develop an application with two manifest xml
> files
> Thanks in advance!!!
>
> could u had done ever??
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Re: date and time

2011-11-02 Thread Robert Slama
try add follow line before format to string :
date.setTime(System.currentTimeMillis());

r^

On 2 November 2011 10:44, leigh8347  wrote:

> The peice of code im using to disply the date and time is as follows
>
> datetime.toString()
>
> but like i said this does not update
> regards
>
>
> On Nov 2, 12:02 am, Lew  wrote:
> > leigh8347 wrote:
> >
> > > im [sic] making an app that writes to a .txt file and at the end of
> each
> > > "save" i want to put the date and time.
> >
> > > this is my code that turns the time/date into a string. which works
> > > fine.
> >
> > > SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/
> > > hh:mm:ss");
> > > java.util.Date date = new java.util.Date();
> > > final String datetime = dateFormat.format(date);
> >
> > > The problem im [sic] having is every time i save the time does not
> update.
> > > each row has the same time and date?
> >
> > Sounds like you are using the same 'datetime' reference for each save,
> > perhaps by doing the save at the end of a longer process?
> >
> > It's impossible to say since the problem is in the code you have not
> shown.
> >
> > http://sscce.org/
> > please
> >
> > --
> > Lew
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] How start youtube app with search terms

2011-11-01 Thread Robert Slama
Unfortunatlly its its not opening default youtube app but ask for action
and outube app is not offered. If I call Intent.ACTION_VIEW with url what
lead direct to any video YT app is started.

r^

On 1 November 2011 03:27, TreKing  wrote:

> On Mon, Oct 31, 2011 at 12:52 PM, Robert Slama  wrote:
>
>> I'm looking for solution how I can start youtube activity with search
>> terms. Can someone help me with that?
>> Or ist  possible start yt activity with that or not?
>>
>
> Try launching:
> http://www.youtube.com/results?search_query=your+search+term&aq=f
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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

Re: [android-developers] Screen Shot

2011-10-31 Thread Robert Slama
if u have handset connected to computer u ca use ddms
r^

On 28 October 2011 16:46, vins  wrote:

> Anybody know how to take a screen shot of current screen using app and to
> save that in a sd card 
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] How start youtube app with search terms

2011-10-31 Thread Robert Slama
Hi guys,
I'm looking for solution how I can start youtube activity with search
terms. Can someone help me with that?
Or ist  possible start yt activity with that or not?

Rob

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Check whether media player is playing media or not

2011-10-24 Thread Robert Nekic
What about the AudioManager's isMusicActive?

http://developer.android.com/reference/android/media/AudioManager.html#isMusicActive()





On Oct 24, 11:42 am, Studio LFP  wrote:
> You can't use MediaPlayer.isPlaying() as a static method as it is an
> instanced method. You can have the MediaPlayer instance you create/use be in
> a static variable and work with it from there.
>
> Steven
> Studio LFPhttp://www.studio-lfp.com
>
>
>
>
>
>
>
> On Monday, October 24, 2011 9:38:39 AM UTC-5, Sunil Mishra wrote:
>
> > Can i use MediaPlayer as a static object?
>
> > On Oct 24, 6:57 pm, Jeremy Dagorn  wrote:
> > > Hi,
>
> > >http://developer.android.com/reference/android/media/MediaPlayer.html...
>
> > > MediaPlayer.isPlaying()?
>
> > > On Oct 24, 9:23 am, Sunil Mishra  wrote:
>
> > > > Hi,
>
> > > > Is there any api through which we can figure out whether media player
> > > > is currently playing any media or not?

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


[android-developers] Re: Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Robert Nekic
Well, I rebooted my PC and tried again.   I manually started the
emulator and I was then distracted by an email so the emulator sat for
several minutes.  Returning to Eclipse, I tried debugging again and
this time the running emulator was listed as an option and things seem
to be cooperating.   My quad-core PC is no slouch but apparently the
4.0 emulator needs even more time to spin up and get itself together
than even Honeycomb required.





On Oct 19, 11:08 am, Mark Murphy  wrote:
> I'm not having any problems with it once it is running. Then again, I
> never have Eclipse start the emulator automatically -- I always start
> it myself (now from the new toolbar button).
>
> BTW, Al Sutton has a G+ page where he's tracking ICS emulator issues:
>
> https://plus.google.com/113331808607528811927/posts/7ouwdJcyq9x
>
>
>
>
>
>
>
>
>
> On Wed, Oct 19, 2011 at 10:43 AM, Robert Nekic  wrote:
> > Hi everyone,
>
> > So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
> > set up an API 14 emulator...but I can't get my app to debug correctly
> > in Eclipse (Indigo).  When I debug, device chooser lets me select the
> > 4.0 emulator, the emulator starts and the app is getting installed
> > correctly but debugging fails. The console reports "Failed to install"
> > timeout error.  At that point the emulator is running...but if I try
> > to debug again, Eclipse does not recognize the 4.0 emulator is running
> > in the device chooser "running Android device" list.
>
> > Is anyone else experiencing this?  Any ideas?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.1 Programming Books:http://commonsware.com/books

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


[android-developers] Re: Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Robert Nekic
DDMS also does not recognize the 4.0 emulator is running.




On Oct 19, 10:43 am, Robert Nekic  wrote:
> Hi everyone,
>
> So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
> set up an API 14 emulator...but I can't get my app to debug correctly
> in Eclipse (Indigo).  When I debug, device chooser lets me select the
> 4.0 emulator, the emulator starts and the app is getting installed
> correctly but debugging fails. The console reports "Failed to install"
> timeout error.  At that point the emulator is running...but if I try
> to debug again, Eclipse does not recognize the 4.0 emulator is running
> in the device chooser "running Android device" list.
>
> Is anyone else experiencing this?  Any ideas?

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


[android-developers] Problems with 4.0 SDK? Eclipse doesn't see running 4.0 emulator?

2011-10-19 Thread Robert Nekic
Hi everyone,

So I've installed ADT 14.0, downloaded the various 4.0 SDK bits, and
set up an API 14 emulator...but I can't get my app to debug correctly
in Eclipse (Indigo).  When I debug, device chooser lets me select the
4.0 emulator, the emulator starts and the app is getting installed
correctly but debugging fails. The console reports "Failed to install"
timeout error.  At that point the emulator is running...but if I try
to debug again, Eclipse does not recognize the 4.0 emulator is running
in the device chooser "running Android device" list.


Is anyone else experiencing this?  Any ideas?

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


[android-developers] Re: Generic resizable appwidgets in Android 3.1

2011-10-19 Thread Robert
This is something I really can't understand. Why can't the android
engineers give us a way to create custom views for appwidgets? Diane
Hackborn argues not to abuse them and yet why does she care? After all
it's up to the user to decide if the impact on the experience is worth
it or not. If they don't like their experience being affected they'll
remove the widget. Really brings home the point Steve Yegge (http://
steverant.pen.io/) said about google's arrogance and that android
engineers are designing the perfect product because they know better
than the users and developers that support them.

I'm not concerned with the ipc limit since I use a file and send the
uri to the remoteview. But I do ask why can't android (Diane?) add
information like the current size of an appwidget, add a
callback(intent) for when it is resized and add data for the touch x/y
when a widget's pending intent is called? With those three additions
it becomes very easy to create an image that acts as a custom view. Of
course I'm open to better ideas too, like allowing an application to
run normally but as a launcher widget...

On Aug 25, 3:44 pm, String  wrote:
> On Thursday, August 25, 2011 6:41:33 PM UTC+1, Dianne Hackborn wrote:
>
> But please please please -- don't abuse widgets by consuming lots of
>
> > resources with them, this has a direct impact on the overall experience.
>
> Yeah, I hear you, honestly I do.
>
> It's a situation, though, where users complain if you *don't* provide a 4x4
> widget in addition to the ones you already do. Or they complain because,
> when you provide a resizable widget on Honeycomb, it gets pixellated at 8x8
> (or whatever). And given how sensitive Market sales are to comments &
> ratings, you can't just ignore these complaints, Nor can you engage with the
> user and explain why that's not a good idea; Market comments don't work that
> way.
>
> So Dianne, if you want to keep devs from abusing appwidgets, go talk to the
> Market folks and convince them to improve the comment system. :^)
> . . .
> I may still open an issue on b.android.com, but not to get this 1MB limit
> lifted. I'd be happy just to see the limit documented, and better behavior
> when it's broken, rather than the cryptic !!! FAILED BINDER TRANSACTION !!!
> message in LogCat and silent failure in the Java code.
>
> String

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


[android-developers] GL-related Crash on Xoom/Tab 10.1 requiring removal of battery or shell reboot?

2011-10-10 Thread Robert Green
Isn't this that really awful GL-related bug I've been talking about
for nearly 2 years?  I can't believe this still exists in honeycomb,
worse yet that it's nearly unrecoverable to tablet users that can't
remove their battery and don't have enough technical knowledge to use
ADB.

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

IMO this should be upgraded to severe.  It's been plaguing Android
devices since 2.1

W/SharedBufferStack(  136): waitForCondition(LockCondition) timed out
(identity=3, status=0). CPU may be pegged. trying again.
W/SharedBufferStack(   78): waitForCondition(ReallocateCondition)
timed out
(identity=9, status=0). CPU may be pegged. trying again.
W/SharedBufferStack(   78): waitForCondition(LockCondition) timed out
(identity=5, status=0). CPU may be pegged. trying again.
W/SharedBufferStack(  381): waitForCondition(LockCondition) timed out
(identity=7, status=0). CPU may be pegged. trying again.
W/SharedBufferStack(  136): waitForCondition(LockCondition) timed out
(identity=3, status=0). CPU may be pegged. trying again.
...

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


[android-developers] SQL query issue

2011-09-23 Thread Nency Robert
HI all,

I found this is a weird issue :(

I type this command:

*C:\android-sdk-windows\tools>adb shell sqlite3
/data/data/com.android.browser/databases/browser.db 'select count(url) from
bookmarks where url like %www.android.com%'*
*
*
*I want to run this query: 'select count(url) from bookmarks where url like
%www.android.com%'
*
and the error is:
*SQL error: near "%": syntax error*
*
*
Do I need to write the query differently or need to add anything before
typing special char??

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

[android-developers] Random rare OOM errors

2011-09-20 Thread Robert Macaulay
I have an app that very rarely throws this error or one like it.

java.lang.OutOfMemoryError: array size too large(Heap Size=3395KB,
Allocated=3065KB, Bitmap Size=0KB) <-- look at that small heap
or
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
(from the stacktrace on this, it seemed to be on initial view layout.
Again, very rare)

I do have some icons allocated(none are leaked), and when I run the
app, the heap shown by DDMS never seems to grow very big(2-3 megs
total). I even did a dumpsys meminfo and checked the native memory
allocations. Nothing large or alarming. I've also never experienced
the OOM myself in any sort of testing on various phones and the
emulator. I saw the Google+ app crash once the same way on app launch
on my Nexus S(I peeked at it's stack traces), so at least I'm in good
company.

It seems like there wasn't enough RAM at the time for the app
allocation, and the foreground app died w/ an OOM instead of a
background app being shutdown to free RAM. Has anyone else seen this?

Robert

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


[android-developers] Re: how to play video file using ffmpeg library android

2011-09-16 Thread Robert Willems
Navi or Naveem, or whatever... please go away. You keep on asking this
question and expecting the world to do your bidding.
If you claim to be a developer, go get a senior to help you. If you're
not a developer, go get a company to make your stuff.
But don't ask this question again.

On Sep 16, 11:30 am, NAVI NEW  wrote:
> how to play  video file using ffmpeg library 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 at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android development Online course at UCI

2011-09-16 Thread Nency Robert
HI all thanks for the reply.

I hv already read some books and learning android. Yes you all are
right, java knowledge is must. I also have 1 yr working exp on java
development.

But the pt is, how can I show the android knowledge in my resume? How
can a recruiter believe from looking at my resume that I will be able
to do coding on android, if I keep reading from the books and
internet, and even if I am capable of doing good programming of
android?



--Riddhi

On Thu, Sep 15, 2011 at 11:22 PM, jayaram p  wrote:
> Personally feel that http://developer.android.com is the best source of
> information to learn or to teach android.
>  Spend some time in going through the site and also you can learn the
> examples listed @
> http://developer.android.com/resources/browser.html?tag=sample
>
> On Thu, Sep 15, 2011 at 7:13 PM, Mike 
> wrote:
>>
>> I completely agree with Kris.  A million years ago I taught for
>> another very well known university's extension program.  Some of my
>> students went on to be very highly skilled programmers.  I like to
>> think my courses contributed at least a little to that, but it was
>> nowhere close to the same as a CS degree from our parent university.
>> On the other hand, it was a lot better than our students could get
>> during their remote military assignments otherwise.  So take the
>> course for what it is worth and then keep learning.
>>
>> Mike
>>
>> On Sep 15, 2:24 am, Kristopher Micinski 
>> wrote:
>> > On Wed, Sep 14, 2011 at 4:48 PM, Nency Robert 
>> > wrote:
>> > > HI All,
>> >
>> > > I am new to android development. As I am still in learning phase, I
>> > > have searched so many courses and materials on google for it.
>> >
>> > Online materials are good, especially the android site and related
>> > books, but you'll want some good experience with Java first.  Also a
>> > CS background (systems, especially) may help you understand the design
>> > decisions in android, etc...
>> >
>> > > I found one interesting course which is online. It is held at
>> > > University of California, Irvine Extension. I am planning to enroll
>> > > for this course.
>> >
>> > > So anyone have any idea about how the course is, please let me know.
>> > > This course costs about, $650. So before I enroll for it I want to
>> > > know how useful it will be for me to get job after completion of it.
>> >
>> > I would say that you would almost have zero probability of getting a
>> > job because you took a course in Android development.  However, if you
>> > aren't at a point where you can figure at least a little of it out
>> > without instruction, you might want to look at Java development (and
>> > traditional CS in general).  I.e., no single course is going to make
>> > you become a good programmer (who train for years to be proficient)
>> > and get a job.
>> >
>> > This isn't to say that the course has no merit:  surely they point
>> > things out to you that you might not have figured as quickly alone,
>> > and the extra pressure of a course forcing you to do assignments on a
>> > regular basis changes things as well.
>> >
>> > > I also want to know if anyone has any idea about it, what is the
>> > > difference between University of California Irvine and University or
>> > > California Irvine Extension degree. Are these both same collage or
>> > > different?
>> >
>> > Completely separate entities, UC Irvine is an internationally
>> > recognized institution, an extension degree would a) take much more
>> > than one class, and b) is not held to as high a standard as a
>> > traditional CS degree from the actual institution.
>> >
>> > Kris
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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

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

2011-09-14 Thread Nency Robert
HI All,

I am new to android development. As I am still in learning phase, I
have searched so many courses and materials on google for it.

I found one interesting course which is online. It is held at
University of California, Irvine Extension. I am planning to enroll
for this course.

So anyone have any idea about how the course is, please let me know.
This course costs about, $650. So before I enroll for it I want to
know how useful it will be for me to get job after completion of it.

I also want to know if anyone has any idea about it, what is the
difference between University of California Irvine and University or
California Irvine Extension degree. Are these both same collage or
different?

Thanks.

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


[android-developers] Re: can i able to play video using FFmpeg api.

2011-09-08 Thread Robert Willems
After asking a million times i would have to answer: No, apparently
*you* can't.

On Sep 7, 11:44 am, NAVI NEW  wrote:
> can i able to play video using FFmpeg api.

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


Re: [android-developers] android.git.kernel.org down?

2011-09-05 Thread Robert Thau
The android source mirrors at Github are still available, if you're looking
to
browse --- http://github.com/android

On Mon, Sep 5, 2011 at 1:35 PM, skyman  wrote:

> Hello,
>
> I'm trying to check something in android source but
> http://android.git.kernel.org/ shows only "dreams of electric sheep" at
> least from few days.
> Something has changed?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] [SOLVED] Re: "Sticky" GPS icon after setting proximity alerts...

2011-09-04 Thread Robert Thau
On Thu, Sep 1, 2011 at 10:21 PM, Robert Thau  wrote:

> ... once a proximity alert is first set, the GPS icon in the
> status bar seems to stay on continually, blinking if it hasn't got a
> fix.  Which is what you expect when the proximity alerts are active,
> but I still see the icon in the status bar even after the proximity
> alerts are removed (so far as I can tell), and even after
> uninstalling the app (which, I think, should certainly clear them
> --- though if there's a way to get the LocationManager to list active
> proximity alerts, that would be useful to know).
>

For the sake of people Googling around for solutions to a similar issue,
switching the FLAG_CANCEL_CURRENT in the following to read
FLAG_UPDATE_CURRENT appears to solve the problem.  (This is
the method that builds the PendingIntents which I feed to
addProximityAlert and removeProximityAlert.)


>   def buildPendingIntent( list: ShoppingList, shop: Shop ) = {
> val intent = new Intent( ctx, classOf[ ProxAlertManagement ] )
> intent.putExtra( shopIdKey, shop.id )
> intent.putExtra( listIdKey, shop.shoppingListId )
> PendingIntent.getBroadcast( ctx, 0, intent,
>     PendingIntent.FLAG_CANCEL_CURRENT )
>   }
>
>
Robert Thau

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

[android-developers] "Sticky" GPS icon after setting proximity alerts...

2011-09-01 Thread Robert Thau
I'm experimenting with proximity alerts, and seeing some odd behavior
when trying it out (on a Nexus One running Android 2.3.4, build GRJ22).

Specifically, once a proximity alert is first set, the GPS icon in the
status bar seems to stay on continually, blinking if it hasn't got a
fix.  Which is what you expect when the proximity alerts are active,
but I still see the icon in the status bar even after the proximity
alerts are removed (so far as I can tell), and even after
uninstalling the app (which, I think, should certainly clear them
--- though if there's a way to get the LocationManager to list active
proximity alerts, that would be useful to know).

Unfortunately, I'm not seeing much enlightening on "adb logcat" ---
in particular, there aren't any backtraces.

The code I'm using to set them is Scala, so it may look a bit odd,
but for these purposes it's pretty nearly Java with less punctuation
(and inferred types on variable declarations).  I've included the most
relevant bits below.  The whole thing in context is here:

  https://github.com/rst/shopping_assistant/tree/reflective_orm

(other files there may be of interest to connoisseurs of experimental
ORM projects), and the relevant bits of

  .../src/main/scala/ProxAlertManagement.scala

follow here:

  def resetProxAlert( shop: Shop, list: ShoppingList ): Unit = {
if (prefs.getBoolean("enabled", false) &&
list.undoneItems.count.fetchOnThisThread > 0)
{
  Log.d( "XXX", "adding prox alert for shop " + shop.id + " at lat " +
(shop.latitude / 1e6).toString + " long " +
(shop.longitude / 1e6).toString + " radius " + alertRadiusMeters
)
  locManager.addProximityAlert( shop.latitude / 1e6,
shop.longitude / 1e6,
alertRadiusMeters,
-1,
buildPendingIntent( list, shop ))
} else {
  deleteProxAlert( shop, list )
}
  }

  def deleteProxAlert( shop: Shop, list: ShoppingList ): Unit = {
Log.d( "XXX", "removing prox alert for shop " + shop.id + " at lat " +
  (shop.latitude / 1e6).toString + " long " +
  (shop.longitude / 1e6).toString
  )
locManager.removeProximityAlert( buildPendingIntent( list, shop ))
  }

  def buildPendingIntent( list: ShoppingList, shop: Shop ) = {
val intent = new Intent( ctx, classOf[ ProxAlertManagement ] )
intent.putExtra( shopIdKey, shop.id )
intent.putExtra( listIdKey, shop.shoppingListId )
    PendingIntent.getBroadcast( ctx, 0, intent,
PendingIntent.FLAG_CANCEL_CURRENT )
  }

Thanks in advance for any assistance...

Robert Thau

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

2011-08-29 Thread Robert Thau
The most common cause of this sort of misbehavior is forgetting to request
internet access permission in the Android manifest (without which the
MapView's
background threads don't have permission to fetch the tiles).

On Tue, Aug 30, 2011 at 12:31 AM, bob  wrote:

> I'm working with maps for the first time, but all I get is this grid:
>
> http://i1190.photobucket.com/albums/z449/m75214/blankgrid.png
>
> Any ideas?
>
> Here's my code:
>
> import com.google.android.maps.GeoPoint;
> import com.google.android.maps.MapActivity;
> import com.google.android.maps.MapController;
> import com.google.android.maps.MapView;
>
> import android.app.Activity;
> import android.os.Bundle;
>
> public class hmm extends MapActivity {
>private MapController mapController;
>private MapView mapView;
>
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>mapView = (MapView) findViewById(R.id.mapview);
>
>mapView.setBuiltInZoomControls(true);
>mapView.setStreetView(true);
>mapController = mapView.getController();
>mapController.setZoom(14);
>int lat=(int) (32.969185f * 1E6);
>int lng=(int) (-96.60576f * 1E6);
>GeoPoint point = new GeoPoint(lat, lng);
>mapController.animateTo(point);
>}
>
>@Override
>protected boolean isRouteDisplayed() {
>// TODO Auto-generated method stub
>return false;
>}
> }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: DashboardLayout (iosched 2011) behaves weirdly

2011-08-29 Thread Alexis Robert
If you're interested, I've fixed the bug by adding a penalty in
DashboardLayout's algorithm if the unwanted behavior is met.

The patch is here :

diff --git a/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java
b/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java
index 6e890ca..46b07b9 100644
--- a/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java
+++ b/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java
@@ -131,9 +131,12 @@ public class DashboardLayout extends ViewGroup {

 spaceDifference = Math.abs(vSpace - hSpace);
 if (rows * cols != visibleCount) {
-spaceDifference *= UNEVEN_GRID_PENALTY_MULTIPLIER;
+   spaceDifference *= UNEVEN_GRID_PENALTY_MULTIPLIER;
+} else if (rows * mMaxChildHeight > height || cols *
mMaxChildWidth > width) {
+   spaceDifference *= UNEVEN_GRID_PENALTY_MULTIPLIER;
 }

+
 if (spaceDifference < bestSpaceDifference) {
 // Found a better whitespace squareness/ratio
 bestSpaceDifference = spaceDifference;

Alexis

On 27 août, 09:53, Alexis Robert  wrote:
> Hi,
>
> I have a little problem withDashboardLayout(the one on iosched 2011
> mercurial repository) and as I really don't know what's wrong. I know
> I'm wrong somewhere, as this layout works for the I/O app, and I've
> tried to copy the situation of the I/O app everywhere I can, but
> nothing worked.
>
> When I'm in portrait, everything is fine 
> :http://img405.imageshack.us/img405/4851/device20110827093725.png
>
> But when I'm in landscape,DashboardLayoutbehaves weirdly
> :http://img231.imageshack.us/img231/3061/dashboardlandscape.png
>
> For the source code,
>
> -- home.xml --
>
> 
> http://schemas.android.com/apk/res/android";
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent" android:orientation="vertical">
>      android:layout_height="wrap_content"
>                    android:layout_width="fill_parent"
> android:layout_margin="20dp">
>          android:layout_width="fill_parent"
> android:layout_height="fill_parent">
>                  android:text="@string/orbit_dashboard" style="@style/DashboardButton"
> android:drawableTop="@drawable/dashboard_orbit"/>
>                  android:text="@string/frame_dashboard" style="@style/DashboardButton"
> android:drawableTop="@drawable/dashboard_frame"/>
>                  android:text="@string/date_dashboard" style="@style/DashboardButton"
> android:drawableTop="@drawable/dashboard_date"/>
>                  android:text="@string/event_dashboard" style="@style/DashboardButton"
> android:drawableTop="@drawable/dashboard_event"/>
>                  android:text="@string/maneuver_dashboard"
> style="@style/DashboardButton"
> android:drawableTop="@drawable/dashboard_maneuver"/>
>         
> 
>
> -- style.xml (stripped down to only useful parts) --
>
> 
>         
>
>         
>     
>         <item name="android:windowNoTitle">true</item>
>
>         <item name="actionbarButtonStyle">@style/ActionBarButton</item>
>         <item name="actionbarSeparatorStyle">@style/ActionBarSeparator</item>
>         <item name="actionbarTextSyle">@style/ActionBarText</item>
>     
>
>     
>         <item name="android:layout_width">wrap_content</item>
>         <item name="android:layout_height">wrap_content</item>
>         <item name="android:textStyle">bold</item>
>         <!-- <item name="android:background">@null</item> -->
>     
> 
>
> By the way, if I uncomment the  name="android:background">@null line, it gets even worse in
> portrait :http://img32.imageshack.us/img32/3713/dashboardportraitnobg.png
>
> Thanks a lot !!
>
> Alexis Robert

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


[android-developers] DashboardLayout (iosched 2011) behaves weirdly

2011-08-27 Thread Alexis Robert
Hi,

I have a little problem with DashboardLayout (the one on iosched 2011
mercurial repository) and as I really don't know what's wrong. I know
I'm wrong somewhere, as this layout works for the I/O app, and I've
tried to copy the situation of the I/O app everywhere I can, but
nothing worked.

When I'm in portrait, everything is fine :
http://img405.imageshack.us/img405/4851/device20110827093725.png

But when I'm in landscape, DashboardLayout behaves weirdly
:http://img231.imageshack.us/img231/3061/dashboardlandscape.png

For the source code,

-- home.xml --


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










-- style.xml (stripped down to only useful parts) --






<item name="android:windowNoTitle">true</item>

<item name="actionbarButtonStyle">@style/ActionBarButton</item>
<item name="actionbarSeparatorStyle">@style/ActionBarSeparator</item>
<item name="actionbarTextSyle">@style/ActionBarText</item>



<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textStyle">bold</item>
<!-- <item name="android:background">@null</item> -->



By the way, if I uncomment the @null line, it gets even worse in
portrait : http://img32.imageshack.us/img32/3713/dashboardportraitnobg.png

Thanks a lot !!

Alexis Robert

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

2011-08-18 Thread Robert Thau
On Wed, Aug 17, 2011 at 10:57 PM, Danny D  wrote:

> I'm writing an application that will have lots of map points, using
> the Google Maps API.
>
> Which approach is best? Are there synchronization issues working with
> Overlays directly?
>
>
In general, it's best to manipulate the Android UI and its satellite objects
directly only from the application's main thread --- the UI isn't
thread-safe,
and if the user starts manipulating things while you're dinking UI data
structures on a background thread, things usually go south in a hurry.
(There are a bunch of ways to mediate communication between
background threads and UI updates --- the progress updates associated
with an AsyncTask, Activity#runOnUIThread, the Handler class, and so
forth.)

BTW, here's an old, but perhaps still relevant, thread with some other
relevant info about updating ItemizedOverlays:


http://groups.google.com/group/android-developers/browse_thread/thread/38b11314e34714c3

It seems that at least in older versions of the maps code, there are a
few quirks you need to be aware of.  (I haven't run into these, largely
by dint of doing things the dumb way --- replacing the ItemizedOverlay
on any change --- but I did at one point need to add calls to
MapView#invalidate to force overlay changes onto the display.)

rst

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

2011-08-18 Thread Robert Thau
On Thu, Aug 18, 2011 at 8:51 PM, Ian  wrote:

>
> Has anyone adapted the existing Android data provider system to return data
> Objects based on the data in a cursor and then keep those objects up to date
> when the backing data store changes? Me naive approach would be to store
> serialized versions of these objects in a BLOB column in a sqlite table and
> wrap the cursor with an iterable deserializer mechanism, but I would rather
> not deserialize the objects into memory until I absolutely had to.
>
>
I'm working on a library which is meant to facilitate writing code in that
style.
It's written in Scala, which may be a plus or a minus, depending on taste.
(Having first-class functions certainly makes it easier to deal with
callbacks.)

Source code here:

  https://github.com/rst/positronic_net

and here are a couple of sample apps:

  https://github.com/rst/shopping_assistant
  https://github.com/rst/UmbrellaToday

FWIW, I'm still working on it, trying to automate more boilerplate
programming
tasks, and it's possible that some of the existing API will wind up changing
in
minor ways to accommodate that.  (I'm bumping the version number on
incompatible changes, of course.)  If you'd like to follow along, the
current
action is on the development branches in the positronic_net repo.

Hope this is of interest; I'd also like to see if anyone else has done
something
similar...

rst

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

2011-08-16 Thread Robert Thau
On Sun, Aug 14, 2011 at 11:16 AM, Ben  wrote:Hi!

>
> ->If I try to connect to an existing address, I get the message
> "tv.append("after socket");" but just a second after that I get "08-13
> 20:44:05.657: ERROR/AndroidRuntime(304): Caused by:
> android.view.ViewRoot$CalledFromWrongThreadException: Only the original
> thread that created a view hierarchy can touch its views."
> ->If I try to connect to an address that is not existing(which is exactly
> the situation I want to simulate) I wont get any exception like "unknown
> host" or anything it just hangs and hangs and hangs withour any error or
> something till it kills my router with its trying(DDos anyone?) :D
>
>
I can help you with this bit --- you shouldn't try to manipulate the
TextView directly in
your doInBackground method.  The easiest thing to do for debugging status
messages
like these is to use Log.d and Log.e to put them in the log, and read them
out with "adb
logcat" (or the log pane in Eclipse, or whatever).  If you really do want to
display them
directly on the phone UI, the easiest thing to do is have your background
code (that is,
the doInBackground method) publishProgress(), and put the UI updates in an
onProgressUpdate() method.

(What's going on here is that the Android UI classes are not thread-safe;
manipulating
them off the activity's main thread will either get you exceptions like
this, or something
worse.  The AsyncTask machinery arranges to run onProgressUpdate on that
thread, so
UI manipulation there is safe.)

rst

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

Re: [android-developers] Re: How to close entire app?

2011-08-12 Thread Robert Thau
On Fri, Aug 12, 2011 at 11:17 AM, ndiiie90  wrote:

> Hi again Mark,
>
> I must close the entire app, because my app is a commerce application,
> that has its own flow until the payment, and user can't go back to
> previous screen, so whenever user has reached the last page, there are
> options to exit the app or go back to menu again..have any idea?
>
>
With the caveat that I haven't actually tried either of these techniques:

If you don't want "Back" to *ever* work, then you could try having
each Activity call finish() after starting the next.  Otherwise, you could
think about having some sort of "transaction ID" that's passed between
them, and have them check in onResume whether that transaction is
over, calling finish() if so.

Either way, though, disabling the "Back" button is something to be done
with caution --- users are used to having it work a certain way, and
violating
those assumptions is likely to give them a seriously bad experience.

rst

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

[android-developers] Simple example widget download

2011-08-11 Thread Robert Campbell
I am trying to get started and make my first widget, but am running
into issues.

I want to download a complete example, but I cannot find a download
link for the sample codes on the http://developer.android.com/
website.

Isn't there anywhere I can download everything at once and then
explore the code from there in stead of file by file?

For example I am interested in 
http://developer.android.com/resources/samples/WeatherListWidget/index.html
but I cannot find a way to download the entire project...

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


[android-developers] Parse error installing an app WonderMedia Tablet

2011-08-01 Thread Robert
I am developing an app that installs ok on various model phones, the
Samsung Galaxy tablet and at least one other tablet (I did some
testing at Best Buy;-) ).

The guy I'm developing it for purchased a  WonderMedia tablet and gets
a parse error when installing.  I tried sending the app signed with a
regular key (not debug key) but that didn't make a difference.

The tablet info is:
Android 2.2
Kernal 2.6.32.9-default
Build # generic-eng 2.2 Froyo Ver 1.31-20110513.015040
Model: WonderMedia WM8650

Has anyone experienced this situation?   So far I havn't been able to
find the root cause.  The app is fairly generic and uses WebViews but
otherwise no special permissions.

Thanks for any thoughts.

Robert

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

2011-07-30 Thread Robert Auger
I think we miss the methods "getAudioGroup()" and "getAudioStream()"
in the "SipAudioCall" class

On 28 juil, 21:04, Robert Auger  wrote:
> Here is the log I get when I am registering :
>
> 07-28 20:55:57.980: DEBUG/dalvikvm(3853): GC_CONCURRENT freed 460K, 8%
> free 6788K/7367K, paused 2ms+2ms
> 07-28 20:55:58.340: DEBUG/SipSession(217): +++  add a session with
> key:  'a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50'
> 07-28 20:55:58.340: DEBUG/SipSession(217):
> a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50: @408aa5b0:DEREGISTERING
> 07-28 20:55:58.370: DEBUG/dalvikvm(217): GC_CONCURRENT freed 351K, 6%
> free 6826K/7239K, paused 2ms+2ms
> 07-28 20:55:58.380: DEBUG/SipSession(217): session key from event:
> a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50
> 07-28 20:55:58.380: DEBUG/SipSession(217): active sessions:
> 07-28 20:55:58.380: DEBUG/
> SipSession(217):  ...a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50:
> @408aa5b0:DEREGISTERING
> 07-28 20:55:58.380: DEBUG/SipSession(217):  ~
> @408aa5b0:DEREGISTERING: DEREGISTERING: processing SIP/2.0 100 Trying
> 07-28 20:55:58.380: DEBUG/SipSession(217): Call-ID:
> a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50
> 07-28 20:55:58.380: DEBUG/SipSession(217): CSeq: 7833 REGISTER
> 07-28 20:55:58.380: DEBUG/SipSession(217): From: "Freebox"
> ;tag=1576196663
> 07-28 20:55:58.380: DEBUG/SipSession(217): To: "Freebox"
> 
> 07-28 20:55:58.380: DEBUG/SipSession(217): Via: SIP/2.0/UDP
> 192.168.0.50:47118;received=88.189.161.218;rport=47118;branch=z9hG4bKc032fa 
> a67c86615d912bd26401267d58343539
> 07-28 20:55:58.380: DEBUG/SipSession(217): Content-Length: 0
> 07-28 20:55:58.380: DEBUG/SipSession(217):
> 07-28 20:55:58.390: DEBUG/SipSession(217): session key from event:
> a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50
> 07-28 20:55:58.390: DEBUG/SipSession(217): active sessions:
> 07-28 20:55:58.390: DEBUG/
> SipSession(217):  ...a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50:
> @408aa5b0:DEREGISTERING
> 07-28 20:55:58.390: DEBUG/SipSession(217):  ~
> @408aa5b0:DEREGISTERING: DEREGISTERING: processing SIP/2.0 401
> Unauthorized
> 07-28 20:55:58.390: DEBUG/SipSession(217): Call-ID:
> a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50
> 07-28 20:55:58.390: DEBUG/SipSession(217): CSeq: 7833 REGISTER
> 07-28 20:55:58.390: DEBUG/SipSession(217): From: "Freebox"
> ;tag=1576196663
> 07-28 20:55:58.390: DEBUG/SipSession(217): To: "Freebox"
> ;tag=00-08080-0a4df414-3689cf434
> 07-28 20:55:58.390: DEBUG/SipSession(217): Via: SIP/2.0/UDP
> 192.168.0.50:47118;received=88.189.161.218;rport=47118;branch=z9hG4bKc032fa 
> a67c86615d912bd26401267d58343539
> 07-28 20:55:58.390: DEBUG/SipSession(217): WWW-Authenticate: Digest
> realm="freephonie.net",nonce="0a4df35f3d555d9e1855864a78e12cfd",opaque="0a4 
> cb0a41fcfc7b",stale=false,algorithm=MD5
> 07-28 20:55:58.390: DEBUG/SipSession(217): Server: Cirpack/v4.42q
> (gw_sip)
> 07-28 20:55:58.390: DEBUG/SipSession(217): Content-Length: 0
> 07-28 20:55:58.390: DEBUG/SipSession(217):
> 07-28 20:55:58.410: DEBUG/SipHelper(217): send request with challenge
> response: REGISTER sip:freephonie.net:5060 SIP/2.0
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Call-ID:
> a0aaa95da53e5c8b00d1dbc183bc1...@192.168.0.50
> 07-28 20:55:58.410: DEBUG/SipHelper(217): CSeq: 7834 REGISTER
> 07-28 20:55:58.410: DEBUG/SipHelper(217): From: "Freebox"
> ;tag=1576196663
> 07-28 20:55:58.410: DEBUG/SipHelper(217): To: "Freebox"
> 
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Via: SIP/2.0/UDP
> 192.168.0.50:47118;branch=z9hG4bKf35572d19841940b7d72bd2d9ddf8feb343539;rpo rt
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Max-Forwards: 70
> 07-28 20:55:58.410: DEBUG/SipHelper(217): User-Agent: SIPAUA/0.1.001
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Contact: *
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Expires: 0
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Authorization: Digest
> username="XX",realm="freephonie.net",nonce="0a4df35f3d555d9e1855864 
> a78e12cfd",uri="sip:freephonie.net:
> 5060",response="6194c6c5737201ffa281cdf59f7ce074",algorithm=MD5,opaque="0a4 
> cb0a41fcfc7b"
> 07-28 20:55:58.410: DEBUG/SipHelper(217): Content-Length: 0
> 07-28 20:55:58.410: DEBUG/SipHelper(217):
> 07-28 20:55:58.420: DEBUG/SipSession(217):    authentication retry
> count=1
> 07-28 20:55:58.420: DEBUG/SipSession(217): new state after:
> DEREGISTERING
> 07-28 20:55:58.450: DEBUG/dalvikvm(217): GC_CONCURRENT freed 476K, 8%
> free 6892K/7431K, paused 2ms+3ms
> 07-28 20:55:58.460: DEBUG/SipSession(217): session key from event:
> a0aaa95da53e5c8b00d1d

[android-developers] Re: sendDtmf on Xoom WiFI / Android 3.0

2011-07-28 Thread Robert Auger
er(217): To: "Freebox"

07-28 20:55:58.650: DEBUG/SipHelper(217): Via: SIP/2.0/UDP
192.168.0.50:47118;branch=z9hG4bK969623348c666eb19cd182bed74c66b7343539;rport
07-28 20:55:58.650: DEBUG/SipHelper(217): Max-Forwards: 70
07-28 20:55:58.650: DEBUG/SipHelper(217): User-Agent: SIPAUA/0.1.001
07-28 20:55:58.650: DEBUG/SipHelper(217): Contact: "Freebox"

07-28 20:55:58.650: DEBUG/SipHelper(217): Expires: 3600
07-28 20:55:58.650: DEBUG/SipHelper(217): Authorization: Digest
username="XX",realm="freephonie.net",nonce="0a4df35f3d555d9e1855864a78e12cfd",uri="sip:freephonie.net:
5060",response="6194c6c5737201ffa281cdf59f7ce074",algorithm=MD5,opaque="0a4cb0a41fcfc7b"
07-28 20:55:58.650: DEBUG/SipHelper(217): Content-Length: 0
07-28 20:55:58.650: DEBUG/SipHelper(217):
07-28 20:55:58.680: DEBUG/SipSession(217):authentication retry
count=1
07-28 20:55:58.680: DEBUG/SipSession(217): new state after:
REGISTERING
07-28 20:55:58.710: DEBUG/SipSession(217): session key from event:
ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50
07-28 20:55:58.710: DEBUG/SipSession(217): active sessions:
07-28 20:55:58.710: DEBUG/
SipSession(217):  ...ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50:
@408aa5b0:REGISTERING
07-28 20:55:58.710: DEBUG/SipSession(217):  ~
@408aa5b0:REGISTERING: REGISTERING: processing SIP/2.0 100 Trying
07-28 20:55:58.710: DEBUG/SipSession(217): Call-ID:
ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50
07-28 20:55:58.710: DEBUG/SipSession(217): CSeq: 4624 REGISTER
07-28 20:55:58.710: DEBUG/SipSession(217): From: "Freebox"
;tag=3849340171
07-28 20:55:58.710: DEBUG/SipSession(217): To: "Freebox"

07-28 20:55:58.710: DEBUG/SipSession(217): Via: SIP/2.0/UDP
192.168.0.50:47118;received=88.189.161.218;rport=47118;branch=z9hG4bK969623348c666eb19cd182bed74c66b7343539
07-28 20:55:58.710: DEBUG/SipSession(217): Content-Length: 0
07-28 20:55:58.710: DEBUG/SipSession(217):
07-28 20:55:58.750: DEBUG/SipSession(217): session key from event:
ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50
07-28 20:55:58.750: DEBUG/SipSession(217): active sessions:
07-28 20:55:58.750: DEBUG/
SipSession(217):  ...ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50:
@408aa5b0:REGISTERING
07-28 20:55:58.750: DEBUG/SipSession(217):  ~
@408aa5b0:REGISTERING: REGISTERING: processing SIP/2.0 200 OK
07-28 20:55:58.750: DEBUG/SipSession(217): Call-ID:
ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50
07-28 20:55:58.750: DEBUG/SipSession(217): Contact: "Freebox"
;expires=3600
07-28 20:55:58.750: DEBUG/SipSession(217): CSeq: 4624 REGISTER
07-28 20:55:58.750: DEBUG/SipSession(217): From: "Freebox"
;tag=3849340171
07-28 20:55:58.750: DEBUG/SipSession(217): To: "Freebox"
;tag=00-08113-0a4df420-5539e2f43
07-28 20:55:58.750: DEBUG/SipSession(217): Via: SIP/2.0/UDP
192.168.0.50:47118;received=88.189.161.218;rport=47118;branch=z9hG4bK969623348c666eb19cd182bed74c66b7343539
07-28 20:55:58.750: DEBUG/SipSession(217): P-Associated-URI:

07-28 20:55:58.750: DEBUG/SipSession(217): Server: Cirpack/v4.42q
(gw_sip)
07-28 20:55:58.750: DEBUG/SipSession(217): Content-Length: 0
07-28 20:55:58.750: DEBUG/SipSession(217):
07-28 20:55:58.750: DEBUG/SipSession(217): remove session
@408aa5b0:REGISTERING @key
'ae0ca4fdc8f609102911732b2f925ac7@192.168.0.50'
07-28 20:55:58.760: DEBUG/SipSession(217): new state after:
READY_TO_CALL
07-28 20:55:58.780: DEBUG/dalvikvm(217): GC_CONCURRENT freed 584K, 9%
free 6911K/7559K, paused 2ms+2ms






On 27 juil, 22:16, Robert Auger  wrote:
> Here is the log :
>
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522):
> onCallEstablished()v=0
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): o=cp10 131179726711
> 131179726712 IN IP4 172.18.24.29
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): s=SIP Call
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): c=IN IP4
> 212.27.52.130
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): t=0 0
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): m=audio 37588 RTP/AVP
> 8
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): b=AS:75
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): a=rtpmap:8 PCMA/
> 8000/1
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): a=ptime:30
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): a=sendrecv
> 07-27 22:07:46.670: DEBUG/SipAudioCall(15522): stop audiocall
> 07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): acquire wifi high
> perf lock
> 07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[85] is configured
> as PCMA 8kHz 20ms mode 0
> 07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[90] is configured
> as RAW 8kHz 32ms mode 0
> 07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[90] joins
> group[89]
> 07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[85] joins
> group[89]
> 07-27 22:07:46.670: DEBUG/AudioGroup(15522): group[89] switches from
> mode 0 

[android-developers] Re: sendDtmf on Xoom WiFI / Android 3.0

2011-07-27 Thread Robert Auger
Here is the log :

07-27 22:07:46.670: VERBOSE/SipAudioCall(15522):
onCallEstablished()v=0
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): o=cp10 131179726711
131179726712 IN IP4 172.18.24.29
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): s=SIP Call
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): c=IN IP4
212.27.52.130
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): t=0 0
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): m=audio 37588 RTP/AVP
8
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): b=AS:75
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): a=rtpmap:8 PCMA/
8000/1
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): a=ptime:30
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): a=sendrecv
07-27 22:07:46.670: DEBUG/SipAudioCall(15522): stop audiocall
07-27 22:07:46.670: VERBOSE/SipAudioCall(15522): acquire wifi high
perf lock
07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[85] is configured
as PCMA 8kHz 20ms mode 0
07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[90] is configured
as RAW 8kHz 32ms mode 0
07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[90] joins
group[89]
07-27 22:07:46.670: DEBUG/AudioGroup(15522): stream[85] joins
group[89]
07-27 22:07:46.670: DEBUG/AudioGroup(15522): group[89] switches from
mode 0 to 2
07-27 22:07:46.670: DEBUG/AudioGroup(15522): reported frame count:
output 743, input 320
07-27 22:07:46.670: DEBUG/AudioGroup(15522): adjusted frame count:
output 743, input 512
07-27 22:07:46.680: DEBUG/AudioGroup(15522): latency: output 184,
input 64
07-27 22:07:46.730: DEBUG/SipSession(220): session key from event:
26fdbc8fd021583b836219087c4926af@192.168.0.50
07-27 22:07:46.730: DEBUG/SipSession(220): active sessions:
07-27 22:07:46.730: DEBUG/SipSession(220):  ...
26fdbc8fd021583b836219087c4926af@192.168.0.50: @4177a5f0:IN_CALL
07-27 22:07:46.730: DEBUG/SipSession(220): transaction terminated:
req=INVITE,3141,s=TERMINATED,ds=CONFIRMED,
07-27 22:07:46.730: DEBUG/SipSession(220): Transaction terminated; do
nothing
07-27 22:07:49.310: DEBUG/dalvikvm(205): GC_FOR_ALLOC freed 394K, 14%
free 10284K/11847K, paused 42ms
07-27 22:07:49.310: INFO/dalvikvm-heap(205): Grow heap (frag case) to
10.604MB for 513744-byte allocation
07-27 22:07:49.350: DEBUG/dalvikvm(205): GC_FOR_ALLOC freed 44K, 14%
free 10741K/12359K, paused 34ms
07-27 22:07:49.510: DEBUG/dalvikvm(205): GC_FOR_ALLOC freed 2479K, 32%
free 8478K/12359K, paused 50ms
07-27 22:07:49.510: INFO/dalvikvm-heap(205): Grow heap (frag case) to
9.218MB for 908816-byte allocation
07-27 22:07:49.580: DEBUG/dalvikvm(205): GC_CONCURRENT freed 89K, 25%
free 9277K/12359K, paused 2ms+4ms
07-27 22:07:49.840: DEBUG/PhoneWindow(221): couldn't save which view
has focus because the focused view android.widget.TextView@40872250
has no id.
07-27 22:07:50.030: DEBUG/dalvikvm(15522): GC_CONCURRENT freed 3502K,
30% free 9915K/14023K, paused 3ms+6ms
07-27 22:07:50.780: DEBUG/dalvikvm(220): GC_FOR_ALLOC freed 1566K, 10%
free 21310K/23623K, paused 200ms
07-27 22:07:54.210: DEBUG/SipSession(220): session key from event:
26fdbc8fd021583b836219087c4926af@192.168.0.50
07-27 22:07:54.210: DEBUG/SipSession(220): active sessions:
07-27 22:07:54.210: DEBUG/SipSession(220):  ...
26fdbc8fd021583b836219087c4926af@192.168.0.50: @4177a5f0:IN_CALL
07-27 22:07:54.210: DEBUG/SipSession(220): not the current dialog;
current=gov.nist.javax.sip.stack.SIPDialog@416a3f70,
terminated=gov.nist.javax.sip.stack.SIPDialog@40efc128
07-27 22:07:55.330: VERBOSE/SipAudioCall(15522): send DTMF: 2
07-27 22:08:01.900: WARN/ProcessStats(141): Skipping unknown process
pid 15920
07-27 22:08:02.650: DEBUG/dalvikvm(220): GC_FOR_ALLOC freed 761K, 10%
free 21292K/23623K, paused 181ms
07-27 22:08:05.060: DEBUG/dalvikvm(282): GC_EXPLICIT freed 343K, 11%
free 6931K/7751K, paused 5ms+2ms









On 16 juil, 13:44, Robert Auger  wrote:
> One more information : if I call :
>
> (TelephonyManager)
> getActivity().getSystemService(Context.TELEPHONY_SERVICE).getPhoneType()
>
> in the "onCallEstablished" callback of the "SipAudioCall.Listener"
> included in the "makeAudioCall" (at this time I can perfectly listen
> to my audio messages), the answer is :
>
> 0 : value of "TelephonyManager.PHONE_TYPE_NONE"
>
> I was expecting :
>
> 3 : value of "TelephonyManager.PHONE_TYPE_SIP"
>
> The SIP API is maybe not fully integrated on Android 3.0 ?
>
> On 5 juil, 21:37, Robert Auger  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > Does the « sendDtmf » method from « SipAudioCall » class really work
> > on Android 3.0 / MotorolaXoomWiFi ?
>
> > I am developping a SIP activated application for Android 3.0 tablets
> > and testing it on MotorolaXoomWiFi(no 3G nor 4G)
>
> > I am able to :
> > - create a « SipManager » with « SipManager.newInstance() »
> > - use « manageurSip.makeAudioCall() » to retrieve my voicemail in my
> > SIP pro

[android-developers] problem with hello world app for eclipse in 64 bit win 7

2011-07-19 Thread ROBERT DILLON
i keep getting these 3 messages and cant get my file to run. SDK and
ADT downloaded and installed and i associated them so i need some
help.

invalid command-line parameter: Files.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information

code follows:

package com.example.helloandroid;

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

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}

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

2011-07-16 Thread Robert Auger
One more information : if I call :

(TelephonyManager)
getActivity().getSystemService(Context.TELEPHONY_SERVICE).getPhoneType()

in the "onCallEstablished" callback of the "SipAudioCall.Listener"
included in the "makeAudioCall" (at this time I can perfectly listen
to my audio messages), the answer is :

0 : value of "TelephonyManager.PHONE_TYPE_NONE"

I was expecting :

3 : value of "TelephonyManager.PHONE_TYPE_SIP"

The SIP API is maybe not fully integrated on Android 3.0 ?




On 5 juil, 21:37, Robert Auger  wrote:
> Hello,
>
> Does the « sendDtmf » method from « SipAudioCall » class really work
> on Android 3.0 / MotorolaXoomWiFi ?
>
> I am developping a SIP activated application for Android 3.0 tablets
> and testing it on MotorolaXoomWiFi(no 3G nor 4G)
>
> I am able to :
> - create a « SipManager » with « SipManager.newInstance() »
> - use « manageurSip.makeAudioCall() » to retrieve my voicemail in my
> SIP provider account
> - in the « onCallEstablished » callback, I can use « startAudio() »
> and « setSpeakerMode(true) », to hear messages
>
> But when I try to use « sendDtmf(int) » to save or delete my messages,
> nothing happens.
>
> If I try to use an already developped SIP application "CSIPSimple", I
> am also unable to send DTMF tones.
>
> Should I wait for Android 3.1 to use this feature ?
>
> Thank you in advance.

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


[android-developers] Re: Relative layout java

2011-07-11 Thread Robert Nekic
I've tinkered with it on and off today; some things work, like
Align_Parent_Bottom but Below does not in this scenario. I'm not sure
why. I'd say use a layout xml file and an inflater for as much of the
layout as you can.  Then grab find the views post-inflate and set the
values you need.





On Jul 11, 12:06 pm, Robert Nekic  wrote:
> If I try something similar by adding the child views to an activity
> with an empty RelativeLayout, things position OK.  But if I try your
> custom RelativeLayout class and add that to the activity, the child
> views overlapping.  Hmmm...
>
> On Jul 11, 11:48 am, Robert Nekic  wrote:
>
>
>
>
>
>
>
> > Whoops! Sorry I didn't notice that.  Yes, at a glance it looks
> > correct.  This doesn't really answer the question directly but have
> > you tried using a layout file instead?
>
> > On Jul 11, 11:34 am, JCC  wrote:
>
> > > but adding the "rules" isnt like defining the position of items?
> > > because on the second one for example I got to say that it should be
> > > below the first textview by saying
> > > ageParams.addRule(RelativeLayout.BELOW,viewNombre.getId());

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

2011-07-11 Thread Robert Nekic
If I try something similar by adding the child views to an activity
with an empty RelativeLayout, things position OK.  But if I try your
custom RelativeLayout class and add that to the activity, the child
views overlapping.  Hmmm...



On Jul 11, 11:48 am, Robert Nekic  wrote:
> Whoops! Sorry I didn't notice that.  Yes, at a glance it looks
> correct.  This doesn't really answer the question directly but have
> you tried using a layout file instead?
>
> On Jul 11, 11:34 am, JCC  wrote:
>
>
>
>
>
>
>
> > but adding the "rules" isnt like defining the position of items?
> > because on the second one for example I got to say that it should be
> > below the first textview by saying
> > ageParams.addRule(RelativeLayout.BELOW,viewNombre.getId());

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

2011-07-11 Thread Robert Nekic
Whoops! Sorry I didn't notice that.  Yes, at a glance it looks
correct.  This doesn't really answer the question directly but have
you tried using a layout file instead?


On Jul 11, 11:34 am, JCC  wrote:
> but adding the "rules" isnt like defining the position of items?
> because on the second one for example I got to say that it should be
> below the first textview by saying
> ageParams.addRule(RelativeLayout.BELOW,viewNombre.getId());

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

2011-07-11 Thread Robert Nekic
You're not positioning anything.  If you simply add views to a
RelativeLayout, they overlap.  You have to define how it should
position views relative to other views, hence the name.  Below this,
to the left of that, etc.  It's all explained in the docs:

http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html



On Jul 11, 10:45 am, JCC  wrote:
> anyone? =( I really need help with this.

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


[android-developers] sendDtmf on Xoom WiFI / Android 3.0

2011-07-05 Thread Robert Auger
Hello,

Does the « sendDtmf » method from « SipAudioCall » class really work
on Android 3.0 / Motorola Xoom WiFi ?

I am developping a SIP activated application for Android 3.0 tablets
and testing it on Motorola Xoom WiFi (no 3G nor 4G)

I am able to :
- create a « SipManager » with « SipManager.newInstance() »
- use « manageurSip.makeAudioCall() » to retrieve my voicemail in my
SIP provider account
- in the « onCallEstablished » callback, I can use « startAudio() »
and « setSpeakerMode(true) », to hear messages

But when I try to use « sendDtmf(int) » to save or delete my messages,
nothing happens.

If I try to use an already developped SIP application "CSIPSimple", I
am also unable to send DTMF tones.

Should I wait for Android 3.1 to use this feature ?

Thank you in advance.

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


[android-developers] Re: Exit function in android application

2011-06-30 Thread Robert Massaioli
I think you are failing to understand (or ignoring) the standard workflow of 
and Android App; you are treating it a little too much like a Desktop 
application. Why do you feel like you do even need to close it forever?

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

2011-06-29 Thread Robert Green
Scratch that - I'm seeing the logs (in the midst of a bazillion other
real-time logging statements) but it wasn't printing a stack trace on
a crash for me.  Anyone have an idea on that?

On Jun 29, 7:05 pm, James Wang  wrote:
> I do not see this problem. r u sure your app is up?

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


[android-developers] Logs not appearing in 3.1?

2011-06-29 Thread Robert Green
Ever since my tab 10.1 got upgraded to 3.1, I no longer see my
application's log in logcat.  Does anyone know the reason for this and
how I can see it again?

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] LogCat on Intellij IDEA

2011-06-29 Thread Robert Slama
I use version 10.5 and logcat is there ...

r^

On 29 June 2011 13:17, Kostya Vasilyev  wrote:
> You can always use the host computer's command line window and run "adb
> logcat" there.
>
> 29.06.2011 15:12, gaara пишет:
>>
>> hi group,
>> i wanna to knwo how to get the functionality of the logcat but this
>> time on Intellij IDEA.
>> Peace,
>> Gaara
>>
>
> --
> Kostya Vasilyev
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] ANNOYING BUY

2011-06-20 Thread Robert Taylor
Hello,

I found an annoying bug when using the SWYPE keyboard. When SWYPING, I
double tap a word to select it and the new "Cut/Copy" menu pops up,
but when I want it to display other word choices after hitting the
bottom left swype key, the new menu overlaps onto the swype word
choices. This is really annoying when I am trying to type quickly and
I can't see the first two word choices.

Is there any way to make the new menu move over and align with the
swype word choices? I'm sure there are several workarounds for this.

Thanks

I am using an HTC Evo 4g running the latest Gingerbread update

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

2011-06-16 Thread Robert Massaioli
I also realise that in my last email I forgot to say thank you for 
responding with what the actual issue was about overlays not 
being rotatable. So thank you very much for taking the time to let me know 
what the root cause was.

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

2011-06-16 Thread Robert Massaioli
You are right in that I would have locked them into the slow case, but I 
guess I just find it odd that there is a slow case at all when it comes to 
orientation. So yes, I will re-consider not locking the orientation based on 
your advice. However, what would you suggest if you game should have its 
orientation locked? Let the user lock it themselves in the settings menu? Or 
maybe making an ingame setting that lets them lock the orientation in-game 
at runtime?

As for fragmentation, I did not think that I was complaining about 
fragmentation but I see the point you were making there too.

Also, I was not trying to say that you lied at all, nothing could be further 
from the truth, I was just letting you know what it looked like from an 
outside perspective.

Finally, I am not saying that 30fps is bad, for pretty much every game it is 
a good framerate. However, it is noticeable for a user when they jump from 
60fps to 30fps and that was what I was trying to avoid. (And I'm not even 
going to get started talking about the iPad's flaws; needless to say (but 
I'll say it anyway) I am developing for Android because I am a fan of 
Android)

Said with good intent towards productive discussion,
Robert

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

2011-06-16 Thread Robert Massaioli
For the game that I am currently making if you look at it upside down or 
from any other perspective it does not affect your ability to play the game. 
Similar to how you can put a board game on a table and anybody from any 
direction can still play it. So, for me, it actually makes perfect sense to 
lock the screens orientation because it simply does not matter and it would 
actually annoy users more if the screen rotated with them because they might 
just want to look at it upside down.

If that does not work for your App then fine, don't do it.

As for what you said about not having certain optimisations for various 
layouts, well, when you go from 60 fps down to 30 fps (as was demonstrated 
in the video) it starts to look much more like a bug and much less like a 
missing optimisation.

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

[android-developers] Honeycomb Lag Demonstrated and Explained

2011-06-16 Thread Robert Massaioli
This is sort of a Dev community FYI based on the post I made here on 
reddit: http://redd.it/i0slo

Essentially when most Tegra 2 based tablets, like the Xoom or Samsung Galaxy 
Tab 10.1 are put in any mode other than standard rotation then fps chokes.

The Android issue is 
here<http://code.google.com/p/android/issues/detail?id=15958>
.
To see romainguy talking about the issue watch this for about 60 
seconds<http://www.youtube.com/watch?v=sTx-5CGDvM8#t=52m35s>
.

Now if you want to actually avoid this issue completely then my only 
solution is to lock the screen orientation into standard 
landscape<http://developer.android.com/guide/topics/manifest/activity-element.html#screen>for
 your games.

If anybody knows more about this issue like:

   - If the problem is truly due to Android or Nvidia (or both)?
   - If it is due to Android, where the code is in the source that causes 
  the problem.
   - Where we can read more on the problem? (Or even better fixes)
   - When we can expect a fix?

Then I would be really interested in reading it. I hope this helps some 
developers and keeps some games running faster until this problem is fixed,
Robert

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

[android-developers] installation URL in apk

2011-06-16 Thread Robert Slama
Hi guys,

exist any way how I can get URL from what was apk installed direct in
instaled application?

r^

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


[android-developers] [SOLVED] Custom Widget Will Not Fill Parent View

2011-06-14 Thread Robert
I managed to fill the toolbar_item within the toolbar by adding another 
LinearLayout inside of the toolbar.xml:


http://schemas.android.com/apk/res/android";
   android:layout_width="match_parent"
   android:layout_height="@dimen/toolbar_height"
   android:layout_centerVertical="true"
   android:orientation="horizontal"
   android:background="@color/separator" >

   



So I essentially add the toolbar items within the LinearLayout, and it 
enables me to match the height and width of the parent. Even though this 
works, I'm still boggled as to why this way works, and not my original way. 
The only problem now is that I get a little padding around the items.

Any ideas as to why this way works?

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

[android-developers] Re: Custom Widget Will Not Fill Parent View

2011-06-10 Thread Robert
I'm wondering if it's because I'm somehow inflating the views wrong or 
attaching the wrong parents, but everything seems to be fine.

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

[android-developers] Custom Widget Will Not Fill Parent View

2011-06-10 Thread Robert
I am trying to creating a bottom toolbar widget that dynamically adds 
buttons. Right now the buttons are simple TextViews. My problem lies when I 
add the button, it fails to fill the parent in width and height of the 
toolbar. Instead it simply wraps the TextView content. I don't want that. I 
want it to fill the toolbar and leave no empty space.
*
Custom widget class:*
public class Toolbar extends LinearLayout
   //implements View.OnClickListener
{
   private LinearLayout toolbar_layout;
   private LayoutInflater   layout_inflater;


   public Toolbar(Context context, AttributeSet attrs)
   {
  super(context, attrs);

  // Get the layout inflater from the specified context
  layout_inflater = (LayoutInflater) context.getSystemService(
 Context.LAYOUT_INFLATER_SERVICE);

  View view = layout_inflater.inflate(R.layout.toolbar, null);
  addView(view);
  toolbar_layout = (LinearLayout) view.findViewById(R.id.toolbar);
   }

   public void addItem(String title)
   {
  final int index = toolbar_layout.getChildCount();

  addItem(title, index);
   }

   public void addItem(String title, int index)
   {
  toolbar_layout.addView(inflateItem(title), index);
   }

   public void removeAllItems()
   {
  toolbar_layout.removeAllViews();
   }

   public void removeItemAt(int index)
   {
  toolbar_layout.removeViewAt(index);
   }

   public int getItemCount()
   {
  return toolbar_layout.getChildCount();
   }

   private View inflateItem(String title)
   {
  View   view;
  TextView   titleView;

  view = layout_inflater.inflate(R.layout.toolbar_item, toolbar_layout, 
false);   

  titleView = (TextView) view.findViewById(R.id.item_title);
  titleView.setText(title);

  view.setTag(title);
  //view.setOnClickListener(this);

  return view;
   }
}


*toolbar.xml:*

http://schemas.android.com/apk/res/android";
   android:id="@+id/toolbar"
   android:layout_width="match_parent"
   android:layout_height="@dimen/toolbar_height"
   android:layout_centerVertical="true"
   android:padding="0dp"
   android:orientation="horizontal"
   android:background="@color/separator" >




*toolbar_item.xml*

http://schemas.android.com/apk/res/android";
  android:layout_width="match_parent"
  android:layout_height="@dimen/toolbar_height"
  android:layout_weight="1"
  android:background="@drawable/action_bar_button"
  android:clickable="true" >






Inside main.xml:
   


This is code is roughly based on how to create a custom ActionBar from: 
https://github.com/johannilsson/android-actionbar.

The toolbar item will adjust its size appropriately if I specify its size, 
but fails to do so if I write "match_parent". I can't seen to figure out why 
this is. 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 at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Robert Green
Think of home like alt-tab in windows.  You never need to capture it.
You just need to handle onPause()/onStop() in a way that makes sense
for the user temporarily leaving your app.  You'll get onFinish() when
your app is to be actually destroyed.  If you have a need to actually
kill off the whole thing when home is pressed, call finish() in
onPause()/onStop() and you shall receive the touch of the droid
reaper, making for a clean start next time the user tries to enter the
activity.

On Jun 8, 10:31 am, Indicator Veritatis  wrote:
> Your blog post IS the best explanation I have seen to date of what the
> Home key really means. I thought it was particularly interesting that
> it emphasized something I have been dimly aware of but keep
> forgetting: unlike the Back key, pressing Home does NOT cause finish()
> to be called. I assume from your description that it triggers only one
> lifecycle callback, onPause(). It doesn't even itself trigger
> onStop(), which may or may not follow.
>
> But shouldn't it trigger onStop() too? After all, the application is
> no longer visible. And what about the Activity Stack? Doesn't pressing
> Home put the least recently used Activity on that stack?
>
> In fact, when I put Log.d statements in my main Activity for both
> onPause() and onStop(), I see both get called when I press the Home
> key.
>
> On Jun 8, 5:13 am, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > On Wed, Jun 8, 2011 at 7:20 AM, Mark Murphy  wrote:
> > > On Wed, Jun 8, 2011 at 2:31 AM, Droid  wrote:
> > >> I need to know when the home button is pressed too (otherwise my app
> > >> returns to visibility again and again for ever).
>
> > > Then fix your bug.
>
> > >> (Please don't tell me I need to design my app
> > >> 'properly', I have been Android dev for over a year now)
>
> > > Tough. Design your app properly.
>
> > I just wrote up a blog post about why you should not care about the
> > HOME button and how better to solve this "problem":
>
> >http://commonsware.com/blog/2011/06/08/please-ignore-home-button.html
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android 3.0 Programming Books:http://commonsware.com/books

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


[android-developers] Re: How much HTML5 does the Honeycomb Android Browser support?

2011-05-30 Thread Robert Massaioli
Actually I just found this from browser scope (
http://www.browserscope.org/results?category=summary&v=3):

Android 0.5 7/100 7/10 1
Android 0.6 5/100 5/10 2
Android 1.0 63/100 8/17 99.3% 10/16 93/100 80 37
Android 1.1 25/100 3/8 10/14 72/100 15
Android 1.5 60/100 5/17 97.8% 10/16 93/100 79 127
Android 1.6 60/100 5/17 97.8% 10/16 93/100 79 139
Android 2.0 48/100 7/13 99.3% 9/15 93/100 66
Android 2.1 62/100 8/17 99.3% 9/16 93/100 80 523
Android 2.2 75/100 10/17 853/1308 99.3% 9/16 93/100 80 667
Android 2.3 75/100 10/17 853/1308 99.3% 9/16 93/100 80 149
Android 2.215 62/100 8/13 99.3% 9/16 93/100 81 5
Android 3.0 84/100 12/17 978/1308 99.3% 13/16 100/100 81 102

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

[android-developers] How much HTML5 does the Honeycomb Android Browser support?

2011-05-30 Thread Robert Massaioli
I was wondering how much of the HTML5 spec a Honeycomb Tablet supports. So 
could somebody with 3.0 or 3.1 please go to this page and tell me what 
results you get? http://html5test.com/index.html

I hereby swear that this is not a spam link. I really want to know what 
HTML5 features I can use.

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

Re: [android-developers] Rtsp Http Streaming

2011-05-30 Thread Robert Slama
hmmm

i try open your url rtsp://strm-3.tr.medianova.tv/rkraltv/rkraltv
with realplayer and with vlc and that stream is not available. Try u
open stream in some player (on pc) before u test it on android?

r^

On 26 May 2011 08:37, Filiz Gökçe  wrote:
> Hi,
> I try to make live stream on android,
> I try lots of ways, but none of them doesnt work.
> Could you help me ?
>
>
> This is example of rtsp;
> mMediaPlayer = new MediaPlayer();
> mMediaPlayer.setDataSource(KralStream.getTvStreamUrl().toString());
> mMediaPlayer.setDisplay(holder);
> mMediaPlayer.prepareAsync();
> mMediaPlayer.setOnBufferingUpdateListener(this);
> mMediaPlayer.setOnCompletionListener(this);
> mMediaPlayer.setOnPreparedListener(this);
> mMediaPlayer.setOnVideoSizeChangedListener(this);
> mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
> mMediaPlayer.setLooping(true);
>
> Exeption :05-26 10:22:46.186: ERROR/MediaPlayerService(10157):  create
> PVPlayer
> 05-26 10:23:06.382: ERROR/PlayerDriver(10157): Command PLAYER_INIT completed
> with an error or info -1
> 05-26 10:23:06.382: ERROR/MediaPlayer(23800): error (1, -1)
> 05-26 10:23:06.382: ERROR/MediaPlayer(23800): Error (1,-1)
>
> rtsp;
> VideoView videoView=(VideoView)findViewById(R.id.videoView1);
> Uri uri =
> Uri.parse("http://www.kraltv.com.tr/m/app_streaming_url.asp?t=5&g=DA245844BC6D4F9A8EFDD8F14D41676F";);
> videoView.setVideoURI(uri);
> videoView.start();
>
> Gives message;"Sorry, this video connot ve played."
>
>
> rtsp;
>     mPreview = (SurfaceView) findViewById(R.id.surface);
>     holder = mPreview.getHolder();
>     holder.addCallback(this);
>     holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
>     extras = getIntent().getExtras();
> public void play() {
>
>         try {
>             Uri video = KralStream.getTvStreamUrl();
>             Toast.makeText(this, video.toString(),
> Toast.LENGTH_SHORT).show();
>              mMediaPlayer = new MediaPlayer();
>      mMediaPlayer.setDataSource(path);
>      mMediaPlayer.setDisplay(holder);
>      mMediaPlayer.prepare();
>      mMediaPlayer.setOnBufferingUpdateListener(this);
>      mMediaPlayer.setOnCompletionListener(this);
>      mMediaPlayer.setOnPreparedListener(this);
>      mMediaPlayer.setOnVideoSizeChangedListener(this);
>      mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
>              } catch (Exception e) {
>             Log.e(TAG, "error: " + e.getMessage(), e);
>             }
>     }
>
> Exeption ;05-26 10:36:57.589: ERROR/MediaPlayerService(10157):  create
> PVPlayer
> 05-26 10:37:20.542: ERROR/PlayerDriver(10157): Command PLAYER_INIT completed
> with an error or info -1
> 05-26 10:37:20.542: ERROR/MediaPlayer(24240): error (1, -1)
> 05-26 10:37:20.565: WARN/PlayerDriver(10157): PVMFInfoErrorHandlingComplete
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): error: Prepare failed.:
> status=0x1
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): java.io.IOException:
> Prepare failed.: status=0x1
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.media.MediaPlayer.prepare(Native Method)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> com.giantrabbit.nagare.KralTvNow.play(KralTvNow.java:162)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> com.giantrabbit.nagare.KralTvNow.surfaceCreated(KralTvNow.java:215)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.SurfaceView.updateWindow(SurfaceView.java:536)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.SurfaceView.dispatchDraw(SurfaceView.java:339)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1638)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1638)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.View.draw(View.java:6796)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1640)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.view.View.draw(View.java:6796)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at
> com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1894)
> 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240):

[android-developers] Re: VideoView unhandled informational event?

2011-05-26 Thread Robert Massaioli
This just happened to me too. Really frustrating... My code: 
http://pastebin.com/FRXQB9tY

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Text scaling properly on two different mdpi devices (Evo, and Galaxy Tab 10.1)

2011-05-26 Thread Robert Green
I also want to do this exact same thing.  I don't want my text to be
the same physical size - I want it to be bigger when there are more
pixels regardless of density (yes it means super big text on a 10"
screen).  Since Android made compatibility mode a postage stampish
kind of mode on tablets instead of just magnifying (like I really,
really think it should have) it broke all my legacy games (they look
like crap on the tablets) and now I have lots more updating work to
do, but since I was stupid about it and used text views for games like
Wixel (which used to sound like a good idea for what kind of game it
was but now I'm regretting using anything other than a single custom
view that I have control over) I have a ridiculous amount of scaling
around of things that probably will need additional work later as
different screens come out...

On May 25, 11:49 am, Mike  wrote:
> OK.  Having a day or so to think about this, I think I asked the wrong
> question.
>
> So, let me try again:
>
> Is there way to do fontscalingsimilar to the way you can assign
> percentages to a layout?
>
> I realized that with my existing portrait mdpi layout, I was
> inadvertently relying on the height of some of my text to affect the
> placement of Views that came below the text.  This looks great on a
> myTouch, but crappy on a Galaxy Tab 10.1 since there are so many
> remaining vertical pixels (even with the fontscalingusing dp units.)
>
> Regards,
>
> - Mike
>
> On May 23, 4:46 pm, Dianne Hackborn  wrote:
>
>
>
>
>
>
>
> > The font size should be the same on those two devices (myTouch and Galaxy
> > Tab 10.1) because they have the same density.  What is bringing you to think
> > they should be different?
>
> > On Mon, May 23, 2011 at 3:34 PM, Mike wrote:
>
> > > Hi Dianne,
>
> > > Thanks for the quick reply.
>
> > > I understand density to be a function of native resolution versus
> > > physical display size.  So, the new Galaxy Tab 10.1 which has a native
> > > resolution of 800 x 1280 pixels and a physical display size of 10.1"
> > > diagonal ends up being a mdpi device.  When I populate a
> > > DisplayMetrics for the Galaxy Tab 10.1,  it gives me a density of 1.0
> > > and a density dpi of DENSITY_MEDIUM which confirms this.
>
> > > I misspoke with regard to the Evo.  I apologize.  It is indeed an hdpi
> > > device.
>
> > > In any case, I believe I still need to address this issue since a
> > > device such as the myTouch (320x480 native resolution) is an mdpi
> > > device as well.  Even though the myTouch and Galaxy Tab 10.1 have
> > > drastically different native resolutions as you point out.  I've been
> > > having difficulty using device independent units for my text size to
> > > make the font look appropriate on both devices since they map to the
> > > same layout file.
>
> > > - Mike
>
> > > On May 23, 4:16 pm, Dianne Hackborn  wrote:
> > > > Evo and Galaxy Tab are both hdpi (though the Tab technically should
> > > probably
> > > > be mdpi...  hdpi is okay though, it is just a design decision for the
> > > device
> > > > to make the overall UI larger).
>
> > > > Also density != "higher res".  It is REALLY REALLY important to
> > > understand
> > > > this.  The Xoom is mdpi but much higher resolution than the hdpi phones.
> > >  It
> > > > just has a bigger screen, but as a result is lower density.
>
> > > > If all you care about is the screen resolution (that is you don't care
> > > > really about having your UI size remain about the same across devices),
> > > then
> > > > don't use density which will pick resources based on *screen density* 
> > > > not
> > > > resolution.  You could instead use -nodpi and just do your own resource
> > > > selection based on how many pixels you have to use.
>
> > > > On Mon, May 23, 2011 at 2:35 PM, Mike  > > >wrote:
>
> > > > > I've started work to get my games to scale nicely for the higher-res
> > > > > displays like the Xoom and Galaxy Tab devices.
>
> > > > > I've made use of the ldpi/mdpi/hdpi/xhdpi folder naming convention for
> > > > > my resources which works nicely for layouts and graphics, but not so
> > > > > much for text sizescaling.  The problem is that an Evo and a Galaxy
> > > > > Tab 10.1 are both mdpi devices and will map to the same layout file.
> > > > > Yet, I need to scale the text size differently for these two devices.
> > > > > (I'm using text size units of dp.)
>
> > > > > Any ideas on something obvious I might be missing or any suggestions
> > > > > would be much appreciated.
>
> > > > > - Mike
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email 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: Scaling text up to be relative to screen pixels

2011-05-26 Thread Robert Green
Not possible, eh?

On May 26, 1:03 pm, Robert Green  wrote:
> I'm a long time Android developer (Been here since pre 1.0).  My focus
> is on games, so I don't care too much about the apps side of things.
> Generally I want a game to just consume the screen and everything to
> just scale up as a percentage (a button should always be 50% of the
> screen, etc).  I even want that on 10" tablets and whatever size
> future devices, because without scaling up, I have no other content so
> there will just be more blank space and a less predictable UI.
>
> I can work it out for buttons and such but how do I scale up text on
> my menus?  Saying, "use a surfaceview" is awesome for the game itself
> but all my legacy games have multiple activities for menus and use
> standard Android UI components.  They worked great on all screens
> before honeycomb/tablets, which are quickly becoming a major headache
> for me.
>
> Usually I just want 5 or so buttons laid out linearly vertically
> either in the center or on the right side of the screen (portrait/
> landscape) and I want the text on the buttons to scale up with the
> screen so it looks exactly the same at 1280x800 vs 480x320.  Am I
> missing something or is this not possible to do without adding
> additional layouts for larger screens (and potentially making even
> more layouts for even bigger screens later, etc)?
>
> Best practices to achieve this, anyone?

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


[android-developers] aspect-correct image scale-up

2011-05-26 Thread Robert Green
What's the right way to scale an arbitrary-sized image up to consume
all of one axis while maintaining aspect ratio using an ImageView/xml?

For instance, I have a 300px x 300px image I'd like to stretch up to
fill the screen while keeping aspect.  That means on a 480x800 screen,
it should be 480x480.  On a 1280x800 screen, it should be 800x800.  Is
there an easy way to do that or do I need to make my own custom view
that's smart about it?  I can, it just seems like something that
should be trivial to do without.

Yes, I have RTFM'd already and tried things like making the ImageView
fill one axis or the other while trying different scaleTypes like
fitCenter..

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] Scaling text up to be relative to screen pixels

2011-05-26 Thread Robert Green
I'm a long time Android developer (Been here since pre 1.0).  My focus
is on games, so I don't care too much about the apps side of things.
Generally I want a game to just consume the screen and everything to
just scale up as a percentage (a button should always be 50% of the
screen, etc).  I even want that on 10" tablets and whatever size
future devices, because without scaling up, I have no other content so
there will just be more blank space and a less predictable UI.

I can work it out for buttons and such but how do I scale up text on
my menus?  Saying, "use a surfaceview" is awesome for the game itself
but all my legacy games have multiple activities for menus and use
standard Android UI components.  They worked great on all screens
before honeycomb/tablets, which are quickly becoming a major headache
for me.

Usually I just want 5 or so buttons laid out linearly vertically
either in the center or on the right side of the screen (portrait/
landscape) and I want the text on the buttons to scale up with the
screen so it looks exactly the same at 1280x800 vs 480x320.  Am I
missing something or is this not possible to do without adding
additional layouts for larger screens (and potentially making even
more layouts for even bigger screens later, etc)?

Best practices to achieve this, anyone?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Robert
I don't have the 40 years experience of the original poster.. just a
kid in the industry at 30 years. Little more if counting the time in
college doing programming.

By their nature, all decisions are limiting.  As I look back over the
various OS/programming systems I've used, most (LInux ecosystem
excepted) were not only limiting but also closed.  Real Programmers by
their nature were (and are) innovative and found ways to accomplish
the requirements even with those limitations.  Linux and now Android
as it's version for smartphones has changed that.  We are free to fork/
clone the OS, we are free to look into the source and see what makes
it tick, what might be hidden (ie: not documented) there. Someone who
forks into a separate version for sure will change some things..that's
the basic reason for a fork.

The Google team has to make decisions and have a cohesive roadmap.
They have proven many times that they are open to suggestions and
willing to discuss why things are the way they are and to make
changes.  None of the non-Linux OS providers come close.

So Diane and the rest of the team (+ the AI team)  thanks for your
willingness to soldier on despite the arrows that get shot your way.


On May 25, 6:14 pm, Dianne Hackborn  wrote:
> I'm still wondering what these "limiting decisions" are.  The only thing> 
> have heard is limits on what applications are allowed to do, but that
> actually gives us more flexibility in maintaining Android -- it is far
> easier to remove such limits on apps than it is to introduce new limits that
> you find you need to improve security, stability, etc.
>
>
>
>
>
>
>
>
>
> On Wed, May 25, 2011 at 1:17 PM, DanH  wrote:
> > > While I would agree that there are some unfortunate and limiting
> > decisions
> > > in the design of android (but maybe not agree with you about which those
> > > are), I'm not sure that this actually matters that much in the long run.
>
> > I think you're getting the gist of it.  It's always hard to tell how
> > much impact these "limiting decisions" will have in the future (and
> > there will always be differences of opinion about them), but certainly
> > they're there.  The analog is designing a CPU with a too-small
> > addressing space -- you can invent fixes, and patches on the fixes,
> > and kludges on the patches on the fixes for awhile, but sooner or
> > later it catches up with you, and the platform gets more and more
> > expensive to build and use along the way.
>
> > Usually the platform will coast along under the momentum of existing
> > apps and users for awhile, but sooner or later the costs make it more
> > feasible (for both vendor and customer) to dump the old and switch
> > rather than to keep going.  Some vendors (not to be named) "finesse"
> > this issue by forcing users to change platforms at regular intervals,
> > others, thanks to good initial design (or sometimes just clever
> > emulation), are able to advance their platforms while still
> > maintaining compatibility with apps that are 30 years old.  But I
> > don't see the basis for either in Android.
>
> > On May 25, 10:17 am, Chris Stratton  wrote:
> > > On Tuesday, May 24, 2011 11:29:03 AM UTC-4, DanH wrote:
>
> > > Additionally, Android, as it's currently designed, does not have
>
> > > > "legs".  The process model and UI are both too restrictive to be
> > > > extendable to the pads and other new paradigms of the future.
>
> > > While I would agree that there are some unfortunate and limiting
> > decisions
> > > in the design of android (but maybe not agree with you about which those
> > > are), I'm not sure that this actually matters that much in the long run.
>
> > > The thing that android has is momentum.  If you look around, it's almost
> > > like every company who wants to think they are in the consumer
> > electronics
> > > business is now offering, or working on offering, their own android
> > device.
>
> > > And I think that's very important; the original IBM PC wasn't perfect
> > > either, and some of its issues are with us today, but a large enough
> > variety
> > > of interests jumped on the bandwagon and adapted it to tolerably
> > accomplish
> > > the huge variety of things they needed.
>
> > > A possible relief-valve for what one person or another may see as a
> > > limitation of android is that it's not necessarily clear what android has
> > to
> > > be in order to be android.  A mobile phone operating system?  Well, there
> > > are now non-phones.  A framework built on linux?  I hear someone can run
> > > apps on QNX and someone else hopes to on Windows.  Linux with an apache
> > > userspace?   I expect someone has or is working on a GNU version.
> >  Dalvik?
> > > Someone will run a more conventional java, and someone else will
> > > re-implement the core APIs in C++.  Software at all?  People are putting
> > > Ubuntu on devices sold for android.
>
> > > As more and more interests get involved, I expect we will see a someone
> > > offering a contrasting alt

[android-developers] Re: Multi-touch pointer ids on Sony Xperia Play & spurious ACTION_DOWN events

2011-05-17 Thread Robert Green
Actually, it's not just native, but requires a native activity...
http://developer.sonyericsson.com/cws/download/1/921/870/1297178992/Accessing_Touch%20Events.pdf

I don't plan on supporting it until they can provide a normal native
lib or header or Java access.

On May 17, 2:10 pm, Robert Green  wrote:
> The regular buttons fire key events (up/down/left/right/sony shapes/L/
> R/select/start) so that is good but then there are these two magical
> analog pads that are a lot like the analog sticks on a PS3 controller
> and IIRC they are only accessible via a native library (though I
> haven't dug for the code to access them so I don't know yet how to use
> them).  Perhaps they will be supported as part of the peripherals in
> future Android APIs but for now I can only imagine that a person will
> need to link to a sony library and access via native so that means
> some JNI for Java-side support.
>
> On May 17, 12:38 pm, MichaelEGR  wrote:
>
>
>
>
>
>
>
> > On May 17, 12:25 pm, Robert Green  wrote:
>
> > > Testing on my xperia play shows that it goes up to Pointer ID 15 and
> > > then starts over again!  Why 15?  No clue...
>
> > WHAT? You mean you don't use your toes? ;P
>
> > > This is inconsistent behavior when compared to all other multitouch
> > > Android devices.  I'm going to end up implementing the same remapping
> > > solution for all my multitouch games and frameworks.
>
> > Yeppers.. doh.. meh... I suppose it's not the end of the world, but
> > yep I've got things isolated so I can just load a custom input filter
> > component for my event system to do the remapping just for this
> > device.
>
> > Can you please enlighten on the button matter for Java API support? I
> > recall you mentioning something about them only accessible on the
> > native side? It would be nice if they generated key events; please say
> > it's so!
>
> > BTW happy bday Rob!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Multi-touch pointer ids on Sony Xperia Play & spurious ACTION_DOWN events

2011-05-17 Thread Robert Green
The regular buttons fire key events (up/down/left/right/sony shapes/L/
R/select/start) so that is good but then there are these two magical
analog pads that are a lot like the analog sticks on a PS3 controller
and IIRC they are only accessible via a native library (though I
haven't dug for the code to access them so I don't know yet how to use
them).  Perhaps they will be supported as part of the peripherals in
future Android APIs but for now I can only imagine that a person will
need to link to a sony library and access via native so that means
some JNI for Java-side support.

On May 17, 12:38 pm, MichaelEGR  wrote:
> On May 17, 12:25 pm, Robert Green  wrote:
>
> > Testing on my xperia play shows that it goes up to Pointer ID 15 and
> > then starts over again!  Why 15?  No clue...
>
> WHAT? You mean you don't use your toes? ;P
>
> > This is inconsistent behavior when compared to all other multitouch
> > Android devices.  I'm going to end up implementing the same remapping
> > solution for all my multitouch games and frameworks.
>
> Yeppers.. doh.. meh... I suppose it's not the end of the world, but
> yep I've got things isolated so I can just load a custom input filter
> component for my event system to do the remapping just for this
> device.
>
> Can you please enlighten on the button matter for Java API support? I
> recall you mentioning something about them only accessible on the
> native side? It would be nice if they generated key events; please say
> it's so!
>
> BTW happy bday Rob!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Multi-touch pointer ids on Sony Xperia Play & spurious ACTION_DOWN events

2011-05-17 Thread Robert Green
Testing on my xperia play shows that it goes up to Pointer ID 15 and
then starts over again!  Why 15?  No clue...

This is inconsistent behavior when compared to all other multitouch
Android devices.  I'm going to end up implementing the same remapping
solution for all my multitouch games and frameworks.

On May 17, 5:51 am, Mario Zechner  wrote:
> So, i wondered why we had that assumption. Back in 2009/early 2010
> when 2.0 came out and the Droid blew away the world this group was
> full of multi-touch related topics. Dianne Hackborn answered ALL our
> questions back then, a feat that probably took up all her work
> time :P. She also explained how pointer ids are handed out by the
> system.
>
> original 
> message:http://groups.google.com/group/android-developers/msg/2786021d43ae196d
>
> quote:  "If finger A goes down, then finger B, then finger A
> is released, you will see pointer #0 going up and the following
> movements
> will have only pointer ID #1 (at index 0 because that is the only
> active
> pointer).  When the next finger goes down, it is given the first
> available
> pointer ID (there is no way to know "which" finger this is, so we
> assume the
> first available), thus you see a new pointer ID 0 going down."
>
> So, the first available pointer id is chosen. That was our assumption
> as well. There are a few more threads on the group that go into
> pointer ids and how they are generated.
>
> It seems theXperiabreaks this assumption. Would be nice to hear an
> official word on this.
>
> On 17 Mai, 04:25, Michael Leahy  wrote:
>
>
>
>
>
>
>
> > >"It looks indeed as if Sony was brewing their own special kind of
>
> > 'fragmentation'"
>
> > I've come to a succinct definition of "fragmentation" at least from a
> > developer perspective as unfortunately this term is widely "misused and
> > abused" in the press and sometimes twisted in definition by organizations
> > that produce it.
>
> > "Fragmentation is what happens when OS and device differentiation fails to
> > honor standards and contracts of developer APIs."
>
> > This covers faults in various OS versions and various ODM faults as well at
> > least from a developer perspective.  OS / device differentiation should be
> > celebrated; fragmentation as defined above... not so much.
>
> > --Mike
>
> > On Mon, May 16, 2011 at 7:08 PM, Mario Zechner 
> > wrote:
>
> > > I don't have direct physical access to anXperiamyself so i can't
> > > comment on the button issues Robert discovered. It looks indeed as if
> > > Sony was brewing their own special kind of "fragmentation".

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What exactly happens during an upgrade?

2011-05-06 Thread Robert Macaulay
The problem is the upgrade process seems like it has some race
conditions in it. Mostly things around resources being non-existent,
even though they are definitely there in the drawable directory. Even
more disconcerting is a stack trace that is in the old code, but is
very definitely running a few pieces of new code at the same time.

An example. I had a crash while accessing resources(that are
definitely present) in a service. It was on a blank line in the new
codebase, and matched up in the old. The crash was reported via ACRA,
which sources its destination from the app's application class. In
this particular upgrade, I changed the destination in the application
class due to an acra upgrade.. So the old crash should have gone to
the old destination, while new version crashes should goto the new
place. However, I received a old version crash report at the new
destination.

It's not just ACRA through, I've received user reported crashes via
the market with the same stacktraces with almost all the comments
mentioning that it crashed right after they upgraded.



On Sun, May 1, 2011 at 5:29 PM, Dianne Hackborn  wrote:
> Allowing applications to include any information is a really tricky subject.
>  Even the stack crawls can been a concern -- for example there was an issues
> raised in the past about a health care about that could throw an exception
> that would have some user information in the exception message.
>
> People often don't realize just how complicated a lot of this stuff is
> outside of just writing some code and releasing it.
> On Sun, May 1, 2011 at 5:45 PM, TreKing  wrote:
>>
>> On Sun, May 1, 2011 at 4:14 PM, Dianne Hackborn 
>> wrote:
>>>
>>> Just to be aware -- the logging information is pretty sensitive.
>>
>> Agreed. I should clarify - the logging information I collect is
>> specifically for my own app, not the system log. In release mode I write to
>> my own, internal log file and submit that if there is a crash. If I get a
>> crash report and can't figure it out from the exception, I throw in some
>> logging with the next update and am able to better investigate the problem
>> next time it happens. After the issue is fixed, I just take out the logging
>> for the next update.
>> I do give the user the *option* to include the system log, though in
>> retrospect I've never actually needed the extra information to fix any
>> problems.
>>
>>>
>>> We've found it hard enough to keep the platform and its apps clean about
>>> logging personal information (pretty much every release has had last-minute
>>> fixes for personal information being logged), and when you add in
>>> manufacturers and third party apps, it is just impossible. For example there
>>> was the manufacturer who released devices whose soft keyboard logged each
>>> key pressed, and it is just scary what one sees various third party apps.
>>
>> Agreed again. I've "debugged" some apps by viewing the LogCat while I run
>> them and it's fairly absurd what some apps leave in release mode.
>>
>>>
>>> There has also been significant pressure to do something stronger, such
>>> as not allow third party apps access to the logs at all or only to the data
>>> they have written to the log.  I don't know if that will actually happen,
>>> but it is enough of a concern to be a possibility.
>>
>> That would be fantastic. If the system could direct each app's logs to
>> it's own location and include only that to the developer in the Market
>> console, it would be infinitely more useful.
>>
>>>
>>> This is also why Android Feedback does not currently make the logs
>>> available, because of the kinds of personal information likely to be in
>>> them.
>>
>> Understood - but it does make them fairly unusable for all but the most
>> obvious of crashes. This is why I opted for my own solution. I would never
>> have identified and fixed the number of issues I have already by solely
>> relying on the Market crash reports. (It also doesn't help that very few
>> people actually report the issues and the ones that do provide little to no
>> explanation).
>>
>>
>> -
>> TreKing - Chicago transit tracking app for Android-powered devices
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
> --
> You received this mess

[android-developers] Re: Logcat View fails with "Could not create the view: For input string: "our" "

2011-05-05 Thread Robert Rowntree
same issue on 3.7 M6 on windows vista  using a logcat filter containing ":"

resolved by following instructions in previous post

this bug makes the filter pretty useless for implementing string patterns

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

2011-05-04 Thread Robert Massaioli
For the record I think you would be better off with the Simple XML 
Library: 
http://massaioli.homelinux.com/wordpress/2011/04/21/simple-xml-in-android-1-5-and-up/

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

2011-05-04 Thread Robert Massaioli
Why do you feel that you have to request to join this group? If you have 
questions ask them. Personally I prefer asking all of my Android questions 
on Stack Overflow and leave this for discussions.

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

[android-developers] Access Androidify avatar from another app

2011-05-02 Thread Robert Jenks
I had fun using the Androidify app to create avatars for myself and
family.  I am currently writing a multiplayer card game and was
wondering if it is possible to access the saved "My Androids" and
offer my users a way to use one of their androidify icons to represent
them in my game.  This would be similar to Avatar games available in
the XBOX 360 arcade market.

Thanks,
-Robert

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

2011-05-01 Thread Robert

Thanks for the feedback.  Is a good idea to have it online but this
app is designed for search teams so we need to make sure that all
functionality is available on or off grid since a fair number of
searches are not urban and are in areas that are way off the telecom
grid.   I'll probably switch to a Webview with static data and then
maybe make it updatable via the web in a future release.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What exactly happens during an upgrade?

2011-05-01 Thread Robert Macaulay
> On Thu, Apr 28, 2011 at 12:39 AM, Robert Macaulay
>  wrote:
>>
>> I have Acra in my app to report on crashes(I will be removing it in favor
>> of the market one soon).
>
> Why would you move to a worse solution?

Mainly for simplicity. One less thing to deal with. But I do like the
new version(upgraded after posting)

>>
>> If that is what happens, how is the code being mingled at runtime?
>
> No idea - but I think many of us have seen strange, seemingly-impossible
> exceptions being generated after updates. There's definitely something wonky
> there.

Glad then it's not just me. Wish I could protect better against it.
Users do actually see the crash after upgrades because of these random
events.

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


[android-developers] Navigation in a Help Screen

2011-05-01 Thread Robert
I have implemented a "Help Screen" that has text in a TextView that
has several subject headers.  Scrolling through the text works fine.
Some of the folks who will use the app want to have a navigation bar
at the top that will jump to a particular category.

One thought I had was to use buttons and control the text in the
TextView programmatically.  ANother was to change it to a Webview and
use  links/anchors.

Does anyone have thoughts on a "best practice" for this type of
thing?

Thanks for any opinions.

Robert

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


[android-developers] VideoView no longer updating the buffer

2011-04-29 Thread Robert
On Android 2.3, VideoView's getBufferPercentage is only returning 0. I
depended on this value to update a progress listener when I connected
to a RTSP link. Does anyone know how I can get this functionality back
on 2.3?

Robert

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

2011-04-27 Thread Robert Massaioli
I know it has been a while but in case you wanted a JAXB replacement in 
Android you should use the Simple 
library: 
http://massaioli.homelinux.com/wordpress/2011/04/21/simple-xml-in-android-1-5-and-up/

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

[android-developers] What exactly happens during an upgrade?

2011-04-27 Thread Robert Macaulay
I have Acra in my app to report on crashes(I will be removing it in
favor of the market one soon). I've recently changed the form that it
posts to during an upgrade(so the new app version will post to the new
form, the old version will remain on the old form). However, I've
witnessed old code, throwing an exception about resources being null,
being reported to the new form. Acra attaches an uncaughtException
Handler to the application class. In this case, since I've switched
destination forms, it implies that Android is replacing the code in
place in the same process.  The exceptions I get are in the old code,
usually accessing resources from the context.

An example is:
onCreate() in my launch activity sets up a tab host. It assigns a
selectorDrawable to the tab(an xml resource, referring to 2 valid png
files, all in the drawable directory). It gets a ResourceNotFound
Exception - stack trace at the end. The line numbers indicate it is
being thrown in old code. However, the user has installed the new
version since I see the exception on the new form. It seems that there
is a race condition during upgrades where pieces of the old app are
still around while the new one is being placed in.

I've also seen very similar things in a Service that has an AsyncTask
that gets the AppWidgetManager.getInstance(this). In this case, it
throws an NPE in there - stack also at end..

In the end, a solution would be to enforce a new process for the new
instance of the app. Is this possible? If that is what happens, how is
the code being mingled at runtime? Could the user be launching my app
while it is "installing", and thus get pieces of the old one still?

Thanks
Robert

Stack trace showing the tab host failure:
Caused by: android.content.res.Resources$NotFoundException: File
res/drawable/ic_tab_alert.xml from drawable resource ID #0x7f020010
at android.content.res.Resources.loadDrawable(Resources.java:1725)
at android.content.res.Resources.getDrawable(Resources.java:590)
at com.zomut.watchdog.library.Main.onCreate(Main.java:168)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2701)
... 11 more
Caused by: java.lang.NullPointerException
at 
android.graphics.drawable.DrawableContainer$DrawableContainerState.addChild(DrawableContainer.java:349)
at 
android.graphics.drawable.StateListDrawable$StateListState.addStateSet(StateListDrawable.java:265)
at 
android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:796)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:737)
at android.content.res.Resources.loadDrawable(Resources.java:1722)
... 15 more

Stack trace showing the AppWidget.getInstance() failure:
java.lang.NullPointerException
   at android.appwidget.AppWidgetManager.(AppWidgetManager.java:230)
   at 
android.appwidget.AppWidgetManager.getInstance(AppWidgetManager.java:221)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Display list of saved tables to be opened

2011-04-23 Thread Robert
Well I would put the names into a table that you can read (and maybe
some descriptive info too)  but you didn't look far to find your
answer.

A quick google for  "sqlite select tables" found:
http://www.sqlite.org/sqlite.htmlin there is a section "Querying
the database schema"   go read that and you'll find a SELECT that does
exactly what you want (actually more than you probably need).

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


<    1   2   3   4   5   6   7   8   9   10   >