[android-developers] Re: maps not getting displayed

2009-01-29 Thread JS

did you get the maps api key?

On Jan 28, 10:49 pm, sankalp  wrote:
> hi group
>
> i was making a location based service applictaion but i was not
> getting maps rendered in to my mapview .
> i checked the ddms log i saw an error in mapactivty tags "couldnt get
> connection factory client"
>
> please can anyone help out of this .ASAP
>
> thnx
> sankalp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Failed to upload myapp.apk on 'HT841GZ03224': Too many open files

2009-01-29 Thread Stoyan Damov

I don't know the reason for this particular error message, but I
strongly advise you to always uninstall your app before reinstalling,
otherwise you'll run out of device memory and would have to do the
"double shutdown" or "battery pull" trick to get it back.

Cheers

On Wed, Jan 28, 2009 at 9:22 PM, Mark Nuetzmann
 wrote:
>
> I have been debugging my app for weeks now on both the emulator and
> device.  All of a sudden I am getting the following error when I try
> to debug.
>
> Failed to upload myapp.apk on 'HT841GZ03224': Too many open files
>
> I figure I could simply uninstall the app and try again but is there a
> quicker fix?
>
> thanks,
> 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
-~--~~~~--~~--~--~---



[android-developers] Using/accessing the AutoText database

2009-01-29 Thread shimo...@gmail.com

Hi all,

Does the AutoText mechanism in Android have a database of correct
English words ?

Can I use it somehow to test several word combinations to see if I can
find a match ?

(trying to built T9...)

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



[android-developers] Re: Is SDK(r2) support camera capture from desktop devices * (webcams etc). ?

2009-01-29 Thread blindfold

Maybe try http://www.tomgibara.com/android/camera-source

On Jan 29, 6:59 am, jj  wrote:
> Actually I am working on emulator, dont have android phone,
> I am developing app of capture image using camera and use that in my
> appl.
>
> Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Video resolution support

2009-01-29 Thread Raghu D K

Hello All,

What are the video resolutions supported by the PV codecs in the
opencore module? Is there a manual or guide describing this?


Warm Regards,
Raghu

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



[android-developers] MyLocation blinking dot

2009-01-29 Thread JS

I like the blinking blue dot with the surrounding disc showing the
accuracy.

How do I implement such a dot in my custom Canvas?  I know I can
subclass MyLocationOverlay class, but I need to draw the dot using my
own data, etc.

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] Finding the data directory of an application

2009-01-29 Thread info.sktechnol...@gmail.com

Is there a preferred way to find the data directory of an application,
other than starting with android.os.Environment.getDataDirectory()
and appending "/data/" and the package name?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Porting JavaME Midlet to android.

2009-01-29 Thread sblantipodi

I'll simply abandon this unuseful platform :)
Android serves only to create other fragmentation...


On Jan 28, 7:49 pm, Noonien Soong  wrote:
> You will be able to use java code that does not access any of the J2ME
> APis.
> You will have to recode most of the System-related stuff.
>
> I think what you should do is take a step back and take a look at the
> notepad example if you haven't already. Really go though it step by
> step.
> Then start playing around with little example apps to see how things
> are done in android.
>
> Android really is quite different from coding for J2ME - you probably
> are better of writing things like the UI from scratch.
>
> That's my experience ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Exporting 3D model from Maya/Blender, what format to use it with android?

2009-01-29 Thread sblantipodi

As subject...
I want to export my 3D model from Maya/Blender and I want to render it
using android...
In what format I need to export my 3D model?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 do you pass a Bundle to an activity on an instrumentation test case?

2009-01-29 Thread J . Pablo Fernández

Hello,

When implementing an ActivityInstrumentationTestCase, how do you start
the activity with a Bundle of saved state?

Thanks.
--
J. Pablo Fernández  (http://pupeno.com)

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



[android-developers] Re: Porting JavaME Midlet to android.

2009-01-29 Thread Daniel Janev

Hi Guys,

I hope that in the next android release the DexFile (something like
class loader) will work without any hacks. Having this "feature" will
allow anyone to implement the MIDP/CLDC APIs over Android ones. Also
having a simple backend system, which converts the Java classes into
Android dex format will allow to run any MIDlet on the system.

I really hope that Google will have this in the next release. Can
someone from Google comment this? Will the DexFile work in the next release?

sblantipodi wrote:
> I'll simply abandon this unuseful platform :)
> Android serves only to create other fragmentation...
> 
> 
> On Jan 28, 7:49 pm, Noonien Soong  wrote:
>> You will be able to use java code that does not access any of the J2ME
>> APis.
>> You will have to recode most of the System-related stuff.
>>
>> I think what you should do is take a step back and take a look at the
>> notepad example if you haven't already. Really go though it step by
>> step.
>> Then start playing around with little example apps to see how things
>> are done in android.
>>
>> Android really is quite different from coding for J2ME - you probably
>> are better of writing things like the UI from scratch.
>>
>> That's my experience ...
> > 
> 
> 


-- 

Best Regards,
Daniel
---
Daniel Janev · Department Manager/Core Platform and Smart Home
ProSyst Software GmbH
1606 Sofia, Bulgaria · Vladajska Str. 48
Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17
Mobile Phone +359 (0)888 678 670
http://www.prosyst.com · d.ja...@prosyst.com
---
stay in touch with your product.
---

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



[android-developers] Re: Finding the data directory of an application

2009-01-29 Thread Chander Pechetty

you can use the second one in your activity.
1. getFilesDir().getAbsolutePath()
2. getFilesDir().getParentFile()
Check the javadocs for ContextWrapper

On Jan 29, 2:13 pm, "info.sktechnol...@gmail.com"
 wrote:
> Is there a preferred way to find the data directory of an application,
> other than starting with android.os.Environment.getDataDirectory()
> and appending "/data/" and the package name?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Exporting 3D model from Maya/Blender, what format to use it with android?

2009-01-29 Thread suhas gavas
  U can use ms3d model and can use NEHE tutorial (lesson 31)

On Thu, Jan 29, 2009 at 3:00 PM, sblantipodi
wrote:

>
> As subject...
> I want to export my 3D model from Maya/Blender and I want to render it
> using android...
> In what format I need to export my 3D model?
> >
>

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



[android-developers] Re: Porting JavaME Midlet to android.

2009-01-29 Thread tauntz

You may want to take a look at MicroEmulator or J2ME runner. They are
both projects aimed at running J2ME applications on Android without
any (significant) rewrite.

http://microemu.blogspot.com/2008/11/running-java-me-applications-on-android.html
and
http://www.netmite.com/android/index.html

Tauno

On Thu, Jan 29, 2009 at 11:33 AM, Daniel Janev  wrote:
>
>Hi Guys,
>
> I hope that in the next android release the DexFile (something like
> class loader) will work without any hacks. Having this "feature" will
> allow anyone to implement the MIDP/CLDC APIs over Android ones. Also
> having a simple backend system, which converts the Java classes into
> Android dex format will allow to run any MIDlet on the system.
>
> I really hope that Google will have this in the next release. Can
> someone from Google comment this? Will the DexFile work in the next release?
>
> sblantipodi wrote:
>> I'll simply abandon this unuseful platform :)
>> Android serves only to create other fragmentation...
>>
>>
>> On Jan 28, 7:49 pm, Noonien Soong  wrote:
>>> You will be able to use java code that does not access any of the J2ME
>>> APis.
>>> You will have to recode most of the System-related stuff.
>>>
>>> I think what you should do is take a step back and take a look at the
>>> notepad example if you haven't already. Really go though it step by
>>> step.
>>> Then start playing around with little example apps to see how things
>>> are done in android.
>>>
>>> Android really is quite different from coding for J2ME - you probably
>>> are better of writing things like the UI from scratch.
>>>
>>> That's my experience ...
>> >
>>
>>
>
>
> --
>
> Best Regards,
>Daniel
> ---
> Daniel Janev · Department Manager/Core Platform and Smart Home
> ProSyst Software GmbH
> 1606 Sofia, Bulgaria · Vladajska Str. 48
> Tel. +359 (0)2 952 35 81/109 · Fax +359 (0)2 953 26 17
> Mobile Phone +359 (0)888 678 670
> http://www.prosyst.com · d.ja...@prosyst.com
> ---
> stay in touch with your product.
> ---
>
> >
>

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

2009-01-29 Thread Kuba Lipiński

I'm answering myself:

So actually it works well. I was expecting the broadcast to be sent
more frequently, but it looks like my G1 is keeping the connection
open all the time. The easiest way to test the broadcast is to go to
settings and switch to 2G and back to 3G. The event is fired.

Cheers,

Kuba

On Jan 23, 8:12 pm, Kuba Lipiński  wrote:
> Hello,
>
> I would like my service to be started when the phone is connected to
> the Internet.
>
> I created a class MyReciever which extends BroadcastReceiver and
> starts my service when onReceive is called with intent
> android.net.conn.CONNECTIVITY_CHANGE as parameter.
>
> I added following lines to my application manifest:
>
>                                   android:enabled="true"
>                  android:priority = "0">
>                     
>                          android:name="android.net.conn.CONNECTIVITY_CHANGE" /
>
>                     
>                 
>
>     
>
>          android:name="android.permission.ACCESS_NETWORK_STATE" />
>         
>
> Unfortunatelly MyReciever.onReceive is never call when I establish the
> Internet connection using any different application. Why is that?
>
> Cheers,
>
> Kuba
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: maps not getting displayed

2009-01-29 Thread Charlie Collins

Exactly as RS stated, that error happens when the key isn't found, or
isn't correct.

Make sure you have a key, and it's in the right place, and so on:

http://code.google.com/android/toolbox/apis/mapkey.html

On Jan 29, 1:49 am, sankalp  wrote:
> hi group
>
> i was making a location based service applictaion but i was not
> getting maps rendered in to my mapview .
> i checked the ddms log i saw an error in mapactivty tags "couldnt get
> connection factory client"
>
> please can anyone help out of this .ASAP
>
> thnx
> sankalp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 is maximum height and width of image which can display?

2009-01-29 Thread jj

what is maximum height and width of image which can display?

When I try for 1000px height and 1000pix width it work, but for beyond
it,
it gives exception, appl force close.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: DEVICE_POWER permission denied for using goToSleep

2009-01-29 Thread Phill Midwinter
Is it set in the androidmanifest?

2009/1/29 mnj 

>
> Hi,
>
> I wanted to use the funcion goToSleep() in PowerManager Class to force
> the device to sleep. But I'm getting an exception and the application
> crashes when I call this function. I already have added the
> DEVICE_POWER permission in Androidmanifest.xml. When I checked the
> logs I could see below error
>
> "E/AndroidRuntime( 2158): Caused by: java.lang.SecurityException:
> Neither user 10
> 020 nor current process has android.permission.DEVICE_POWER."
>
> Has anyone faced this issue before. Does application have
> DEVICE_POWER permission. or is it disabled.
>
> Regards,
> Manoj
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.com

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



[android-developers] Re: Gesture detection

2009-01-29 Thread Phill Midwinter
I checked the API, you're right there's no OnUp()... but couldn't you use
OnFling() which would return when the motion is complete?
onFling(MotionEvente1,
MotionEvente2,
float velocityX, float velocityY)

2009/1/29 Moto 

>
> I currently have a class that handles some complex scrolling of a
> view... this class implements OnGestureListener and in that class I
> have no way of telling when the event OnUp() is triggered...
>
> I have all other touch event handlers that OnGestureListener provides
> except OnUp()
>
> Thanks..
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.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] ListView w/ImageView - memory utilisation

2009-01-29 Thread AusR

Hi,

I am displaying a listview where the view used for each row includes
an ImageView and TextView, with the image displayed dependant on the
contents of the TextView. the images are at this testing phase pngs
approx 600bytes each, dimensions of max 100x35 px.

I have noticed on both a large list and scrolling all the way through
(500+ items) or a small list (~20 items) and scrolling up and down, up
and down, I eventually reach an Out Of Memory error.

How can I overcome this by possibly 'unloading' the images (or row
item views) once they are no longer in view.

I have seen the Android Market do this on ling lists, where if you
scroll back up the list, the images need to be re-downloaded.

How is this implemented? What method is used?

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: Applications copy protection

2009-01-29 Thread Robin Bad

Thank you for your answers!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Reg playing youtube video in android

2009-01-29 Thread Harishkumar V
Dave,

I tried to play via mediaplayer example given in the sdk with the YouTube
video url (http://in.youtube.com/watch?v=l43Bbn2Xpwk),

In mediaplayer_video.java file,

path="http://in.youtube.com/watch?v=l43Bbn2Xpwk";

it failed  to play.
Any modifications to be done in the mediaplayer to stream youtube video.

But when i converted this youtube video into an mp4 or 3gp file and locally
try to play, it plays fine.

whats the difference between mediaplayer and videoview example given in the
sdk.

Thanks and Regards,
HarishKumar.V

On Thu, Jan 29, 2009 at 2:07 AM, Dave Sparks wrote:

>
> If you specifically want to play a YouTube video, you need to register
> as a YouTube developer to get the keys you need to access the Gdata
> feeds.
>
> I think that the Cupcake release will support a new intent for playing
> YouTube videos with the YouTube app, but it will be some time before
> that feature makes it into an SDK or actual device. That would remove
> the need for getting the developer keys.
>
> Aside from that, playing a YT video is no different than any other
> HTTP streamed video. You just pass the URL through setDataSource and
> the media player does the rest.
>
> On Jan 28, 1:42 am, harish  wrote:
> > Dear All,
> >
> > Using Mediaplayer (Api Demo) example, i was able to play a local video
> > file and also an video mp4 streamed over internet on my android
> > emulator using sdk in my development machine.
> >
> > When i run an youtube video from browser running in an emulator, it
> > asks for to download flash player.
> >
> > Is there any way to play youtube video using mediaplayer or any other
> > alternative methods in android.
> >
> > In emulator session, is it possile to play youtube video.
> >
> > Guys, help me in this. any reference or example of youtube video being
> > played in the emulator using sdk is available.
> >
> > Thanks and Regards,
> > HarishKumar.V
> >
>

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

2009-01-29 Thread Faber Fedor
On Thu, Jan 29, 2009 at 3:52 AM, JS  wrote:

>
> I like the blinking blue dot with the surrounding disc showing the
> accuracy.
>
> How do I implement such a dot in my custom Canvas?  I know I can
> subclass MyLocationOverlay class, but I need to draw the dot using my
> own data, etc.


That turns out to be so easy even I figured it out! :-)

Create an Overlay of your own and implement the draw() method, i.e.

private class ProximityOverlay extends Overlay {
public void draw(Canvas canvas, MapView mapview, boolean b) {
 // draw some stuff in here, like
 // canvas.drawCircle(point.x, point.y, radius, paint);
}
 }

then simply add this Overlay to the list of Overlays, probably in your
onCreate():

map.getOverlays().add(new ProximityOverlay());

That's it!  Android takes care of everything else.


-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com

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



[android-developers] Re: Not able to build Browser Source Code on android-sdk-windows-1.0_r1

2009-01-29 Thread Jean-Baptiste Queru

The browser is not currently buildable with the SDK as it uses private
APIs. Note that it also uses system permissions, so it can't be run on
a stock G1.

JBQ

On Wed, Jan 28, 2009 at 10:45 PM, Pratap  wrote:
>
> Hi All
>
> I am trying to build the Browser source code downloaded from the
> http://android.git.kernel.org/ site
> with android-sdk-windows-1.0_r1.
> I am getting a lot of compilation errors and it seems that many
> classes are missing in 1.0 which are being used by the Browser.
>
> I am stuck into this and not able to figure a way out.
> Let me know if I am missing anything.
> Waiting desperately 4 a reply.
>
> TIA
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

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



[android-developers] Re: Finding the data directory of an application

2009-01-29 Thread Mark Murphy

info.sktechnol...@gmail.com wrote:
> Is there a preferred way to find the data directory of an application,
> other than starting with android.os.Environment.getDataDirectory()
> and appending "/data/" and the package name?

Context#getFilesDir(). Bear in mind that Activity and Service are
subclasses of Context.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

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



[android-developers] Re: ListView w/ImageView - memory utilisation

2009-01-29 Thread Mark Murphy

AusR wrote:
> I am displaying a listview where the view used for each row includes
> an ImageView and TextView, with the image displayed dependant on the
> contents of the TextView. the images are at this testing phase pngs
> approx 600bytes each, dimensions of max 100x35 px.
> 
> I have noticed on both a large list and scrolling all the way through
> (500+ items) or a small list (~20 items) and scrolling up and down, up
> and down, I eventually reach an Out Of Memory error.
> 
> How can I overcome this by possibly 'unloading' the images (or row
> item views) once they are no longer in view.

Are you recycling the views that come back to you in getView() (or
bindView())?

I cover this technique in the later posts in this series:

http://androidguys.com/?s=fancy+listviews

Forgive the formatting problems, and bear in mind that the older posts
are for the M5 SDK and may require minor modifications to work on the
current Android SDK.

You might also look at Romain Guy's Shelves application, particularly
with an eye towards how he handles all of his book cover images, to see
if there is anything more you would need to do to make sure your images
get properly garbage collected.

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

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 is maximum height and width of image which can display?

2009-01-29 Thread jj

what is maximum height and width of image which can display?

When I try for 1000px height and 1000pix width it work, but for beyond
it,
it gives exception, appl force close.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 is maximum height and width of image which can display?

2009-01-29 Thread jj

what is maximum height and width of image which can display?

When I try for 1000px height and 1000pix width it work, but for beyond
it,
it gives exception, appl force close.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: what is maximum height and width of image which can display?

2009-01-29 Thread Stoyan Damov

Why would you want to draw a 1000x1000 image on 480x320 screen?


On Thu, Jan 29, 2009 at 2:05 PM, jj  wrote:
>
> what is maximum height and width of image which can display?
>
> When I try for 1000px height and 1000pix width it work, but for beyond
> it,
> it gives exception, appl force close.
> >
>

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



[android-developers] OutOfMemoryError when scrolling ListView

2009-01-29 Thread muckwarrior

I'm having problems with ListViews in my application. I thought
everything was fine until I noticed that if I scrolled up and down
through the list quickly a number of times, sooner or later the app
would crash with an OutOfMemoryError.

When I searched for the error I noticed a number of posts related to
loading images. As my list items included a small arrow png, I assumed
the problem lay here. However even after removing this and all other
drawables I had (gradient background and list separator) the problem
still remains.

Here's the stack trace

ERROR/dalvikvm-heap(2362): 66560-byte external allocation too large
for this process.
ERROR/(2362): VM won't let us allocate 66560 bytes
DEBUG/AndroidRuntime(2362): Shutting down VM
WARN/dalvikvm(2362): threadid=3: thread exiting with uncaught
exception (group=0x40013e28)
ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due
to uncaught exception
ERROR/AndroidRuntime(2362): java.lang.OutOfMemoryError: bitmap size
exceeds VM budget
ERROR/AndroidRuntime(2362): at android.graphics.Bitmap.nativeCreate
(Native Method)
ERROR/AndroidRuntime(2362): at android.graphics.Bitmap.createBitmap
(Bitmap.java:343)
ERROR/AndroidRuntime(2362): at android.view.View.buildDrawingCache
(View.java:5219)
ERROR/AndroidRuntime(2362): at android.view.View.getDrawingCache
(View.java:5112)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1355)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at
android.widget.AbsListView.dispatchDraw(AbsListView.java:1125)
ERROR/AndroidRuntime(2362): at android.widget.ListView.dispatchDraw
(ListView.java:2778)
ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
5422)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1420)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1418)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
5329)
ERROR/AndroidRuntime(2362): at android.widget.FrameLayout.draw
(FrameLayout.java:324)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1420)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.drawChild
(ViewGroup.java:1418)
ERROR/AndroidRuntime(2362): at android.view.ViewGroup.dispatchDraw
(ViewGroup.java:1192)
ERROR/AndroidRuntime(2362): at android.view.View.draw(View.java:
5329)
ERROR/AndroidRuntime(2362): at android.widget.FrameLayout.draw
(FrameLayout.java:324)
ERROR/AndroidRuntime(2362): at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1701)
ERROR/AndroidRuntime(2362): at android.view.ViewRoot.draw
(ViewRoot.java:980)
ERROR/AndroidRuntime(2362): at
android.view.ViewRoot.performTraversals(ViewRoot.java:829)
ERROR/AndroidRuntime(2362): at android.view.ViewRoot.handleMessage
(ViewRoot.java:1103)
ERROR/AndroidRuntime(2362): at android.os.Handler.dispatchMessage
(Handler.java:88)
ERROR/AndroidRuntime(2362): at android.os.Looper.loop(Looper.java:
123)
ERROR/AndroidRuntime(2362): at android.app.ActivityThread.main
(ActivityThread.java:3742)
ERROR/AndroidRuntime(2362): at
java.lang.reflect.Method.invokeNative(Native Method)
ERROR/AndroidRuntime(2362): at java.lang.reflect.Method.invoke
(Method.java:515)
ERROR/AndroidRuntime(2362): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
ERROR/AndroidRuntime(2362): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
ERROR/AndroidRuntime(2362): at dalvik.system.NativeStart.main
(Native Method)

I've had a look in DDMS and noticed that the percentage memory used in
the heap doesn't go above 70%. Also, doesn't the reported 66K seem
like a very small amount to be causing a crash?

Any help appreciated!

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



[android-developers] Re: Gesture detection

2009-01-29 Thread Moto

I currently use onFling() but this isn't called all the time.

You can have onScroll() event happening without onFling() action
following...  That's from my experience...   I assume onFling() is how
fast you do a swipe.  So because onFling() isn't called all the time
my code doesn't do what it should do.

What my code does:
after scrolling a view I need the onUp() to trigger a function which
aligns my view in a particular way acording to it's current scroll
value...

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



[android-developers] Help needed regarding Maps application in Emulator

2009-01-29 Thread swapnil . dalal

Hello all,

Can any one tell me how can I use the Maps application present on the
Emulator?
Do I have to do any settings before using that?

If I want to use or load Actual map by that application what all
things I have to do?


Regards;
Swapnil Dalal

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



[android-developers] Re: what is maximum height and width of image which can display?

2009-01-29 Thread Phill Midwinter
I suppose for something like the camera gallery, so you can view your photos
at full res?

2009/1/29 Stoyan Damov 

>
> Why would you want to draw a 1000x1000 image on 480x320 screen?
>
>
> On Thu, Jan 29, 2009 at 2:05 PM, jj  wrote:
> >
> > what is maximum height and width of image which can display?
> >
> > When I try for 1000px height and 1000pix width it work, but for beyond
> > it,
> > it gives exception, appl force close.
> > >
> >
>
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.com

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



[android-developers] Re: orange in R.color ?

2009-01-29 Thread Chander Pechetty

android:background="@android:drawable/list_selector_background" and
use it as indicated by Dianne above...

Cheers
Chander


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

2009-01-29 Thread Phill Midwinter
AH

That makes much more sense now. So, if OnFling isn't called, then you'd want
to use 
onSingleTapUp
(MotionEvente)

2009/1/29 Moto 

>
> I currently use onFling() but this isn't called all the time.
>
> You can have onScroll() event happening without onFling() action
> following...  That's from my experience...   I assume onFling() is how
> fast you do a swipe.  So because onFling() isn't called all the time
> my code doesn't do what it should do.
>
> What my code does:
> after scrolling a view I need the onUp() to trigger a function which
> aligns my view in a particular way acording to it's current scroll
> value...
>
> Thanks for your help...
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.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] Translators for German, Polish and Spanish

2009-01-29 Thread wescorp

Trafficman Maps is in need of translators for German, Polish and
Spanish for Trafficman Maps 1.0. Attribution as translator is offered
as compensation for use of your translation. If interested, please
email.

Cheers,
Wes

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

2009-01-29 Thread kolby

Dave,

you can play youtube video by launching a View intent with the youtube
video page url right now on the device (no cupcake or developer key
required). It will launch the youtube player.
The problem is, it doesn't work in the emulator, since there's no
youtube app.

Michael

On Jan 28, 3:37 pm, Dave Sparks  wrote:
> If you specifically want to play a YouTube video, you need to register
> as a YouTube developer to get the keys you need to access the Gdata
> feeds.
>
> I think that the Cupcake release will support a new intent for playing
> YouTube videos with the YouTube app, but it will be some time before
> that feature makes it into an SDK or actual device. That would remove
> the need for getting the developer keys.
>
> Aside from that, playing a YT video is no different than any other
> HTTP streamed video. You just pass the URL through setDataSource and
> the media player does the rest.
>
> On Jan 28, 1:42 am, harish  wrote:
>
> > Dear All,
>
> > Using Mediaplayer (Api Demo) example, i was able to play a local video
> > file and also an video mp4 streamed over internet on my android
> > emulator using sdk in my development machine.
>
> > When i run an youtube video from browser running in an emulator, it
> > asks for to download flash player.
>
> > Is there any way to play youtube video using mediaplayer or any other
> > alternative methods in android.
>
> > In emulator session, is it possile to play youtube video.
>
> > Guys, help me in this. any reference or example of youtube video being
> > played in the emulator using sdk is available.
>
> > Thanks and Regards,
> > HarishKumar.V
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Translators for German, Polish and Spanish

2009-01-29 Thread Peli

Hi Wes,

We could offer German, and have Polish and Spanish translators in our
team.

Is there a language you could offer in return?
Have you thought about using Launchpad for your translations?

Please visit our developer's forum so that we can discuss the details:
http://groups.google.com/group/openintents

Peli
www.openintents.org


On Jan 29, 3:42 pm, wescorp  wrote:
> Trafficman Maps is in need of translators for German, Polish and
> Spanish for Trafficman Maps 1.0. Attribution as translator is offered
> as compensation for use of your translation. If interested, please
> email.
>
> Cheers,
> Wes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Reg playing youtube video in android

2009-01-29 Thread Marco Nelissen
On Thu, Jan 29, 2009 at 4:47 AM, Harishkumar V wrote:

> Dave,
>
> I tried to play via mediaplayer example given in the sdk with the YouTube
> video url (http://in.youtube.com/watch?v=l43Bbn2Xpwk),


That's not the URL of a video, it's the URL of a webpage which has a flash
video embedded in to it.

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



[android-developers] Re: what is maximum height and width of image which can display?

2009-01-29 Thread Stoyan Damov

I still don't get it. The viewport is 480x320. Imagine if you are
trying to play Quake or Unreal Tournament and the game tries to draw
the entire level, even though only a tiny part of it is visible.

On Thu, Jan 29, 2009 at 4:39 PM, Phill Midwinter
 wrote:
> I suppose for something like the camera gallery, so you can view your photos
> at full res?
>
> 2009/1/29 Stoyan Damov 
>>
>> Why would you want to draw a 1000x1000 image on 480x320 screen?
>>
>>
>> On Thu, Jan 29, 2009 at 2:05 PM, jj  wrote:
>> >
>> > what is maximum height and width of image which can display?
>> >
>> > When I try for 1000px height and 1000pix width it work, but for beyond
>> > it,
>> > it gives exception, appl force close.
>> > >
>> >
>>
>>
>
>
>
> --
> Phill Midwinter
> Director
> Grant Midwinter Limited
> d: 0844 736 5234 x: 0
> m: 07538 082156
> e: ph...@grantmidwinter.com
>
> >
>

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



[android-developers] Re: what is maximum height and width of image which can display?

2009-01-29 Thread Phill Midwinter
That's a Z buffer.  A correct comparison would be running a game in
1280x1024 but only having an 800x600 capable screen... in which case the
game wouldn't display.

This is simply a 2d image, why not load it all into memory if you're going
to be dragging it around?

2009/1/29 Stoyan Damov 

>
> I still don't get it. The viewport is 480x320. Imagine if you are
> trying to play Quake or Unreal Tournament and the game tries to draw
> the entire level, even though only a tiny part of it is visible.
>
> On Thu, Jan 29, 2009 at 4:39 PM, Phill Midwinter
>  wrote:
> > I suppose for something like the camera gallery, so you can view your
> photos
> > at full res?
> >
> > 2009/1/29 Stoyan Damov 
> >>
> >> Why would you want to draw a 1000x1000 image on 480x320 screen?
> >>
> >>
> >> On Thu, Jan 29, 2009 at 2:05 PM, jj  wrote:
> >> >
> >> > what is maximum height and width of image which can display?
> >> >
> >> > When I try for 1000px height and 1000pix width it work, but for beyond
> >> > it,
> >> > it gives exception, appl force close.
> >> > >
> >> >
> >>
> >>
> >
> >
> >
> > --
> > Phill Midwinter
> > Director
> > Grant Midwinter Limited
> > d: 0844 736 5234 x: 0
> > m: 07538 082156
> > e: ph...@grantmidwinter.com
> >
> > >
> >
>
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.com

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



[android-developers] Re: OutOfMemoryError when scrolling ListView

2009-01-29 Thread muckwarrior

Never mind, I've managed to solve the problem myself with a hint from
the other similar thread that I didn't see before posting.

For anyone that encounters the same problem, I fixed it by using
convertView as explained here http://androidguys.com/?p=635

On Jan 29, 2:23 pm, muckwarrior  wrote:
> I'm having problems with ListViews in my application. I thought
> everything was fine until I noticed that if I scrolled up and down
> through the list quickly a number of times, sooner or later the app
> would crash with an OutOfMemoryError.
>
> When I searched for the error I noticed a number of posts related to
> loading images. As my list items included a small arrow png, I assumed
> the problem lay here. However even after removing this and all other
> drawables I had (gradient background and list separator) the problem
> still remains.
>
> Here's the stack trace
>
> ERROR/dalvikvm-heap(2362): 66560-byte external allocation too large
> for this process.
> ERROR/(2362): VM won't let us allocate 66560 bytes
> DEBUG/AndroidRuntime(2362): Shutting down VM
> WARN/dalvikvm(2362): threadid=3: thread exiting with uncaught
> exception (group=0x40013e28)
> ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due
> to uncaught exception
> ERROR/AndroidRuntime(2362): java.lang.OutOfMemoryError: bitmap size
> exceeds VM budget
> ERROR/AndroidRuntime(2362):     at android.graphics.Bitmap.nativeCreate
> (Native Method)
> ERROR/AndroidRuntime(2362):     at android.graphics.Bitmap.createBitmap
> (Bitmap.java:343)
> ERROR/AndroidRuntime(2362):     at android.view.View.buildDrawingCache
> (View.java:5219)
> ERROR/AndroidRuntime(2362):     at android.view.View.getDrawingCache
> (View.java:5112)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> (ViewGroup.java:1355)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> (ViewGroup.java:1192)
> ERROR/AndroidRuntime(2362):     at
> android.widget.AbsListView.dispatchDraw(AbsListView.java:1125)
> ERROR/AndroidRuntime(2362):     at android.widget.ListView.dispatchDraw
> (ListView.java:2778)
> ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
> 5422)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> (ViewGroup.java:1420)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> (ViewGroup.java:1192)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> (ViewGroup.java:1418)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> (ViewGroup.java:1192)
> ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
> 5329)
> ERROR/AndroidRuntime(2362):     at android.widget.FrameLayout.draw
> (FrameLayout.java:324)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> (ViewGroup.java:1420)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> (ViewGroup.java:1192)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.drawChild
> (ViewGroup.java:1418)
> ERROR/AndroidRuntime(2362):     at android.view.ViewGroup.dispatchDraw
> (ViewGroup.java:1192)
> ERROR/AndroidRuntime(2362):     at android.view.View.draw(View.java:
> 5329)
> ERROR/AndroidRuntime(2362):     at android.widget.FrameLayout.draw
> (FrameLayout.java:324)
> ERROR/AndroidRuntime(2362):     at
> com.android.internal.policy.impl.PhoneWindow$DecorView.draw
> (PhoneWindow.java:1701)
> ERROR/AndroidRuntime(2362):     at android.view.ViewRoot.draw
> (ViewRoot.java:980)
> ERROR/AndroidRuntime(2362):     at
> android.view.ViewRoot.performTraversals(ViewRoot.java:829)
> ERROR/AndroidRuntime(2362):     at android.view.ViewRoot.handleMessage
> (ViewRoot.java:1103)
> ERROR/AndroidRuntime(2362):     at android.os.Handler.dispatchMessage
> (Handler.java:88)
> ERROR/AndroidRuntime(2362):     at android.os.Looper.loop(Looper.java:
> 123)
> ERROR/AndroidRuntime(2362):     at android.app.ActivityThread.main
> (ActivityThread.java:3742)
> ERROR/AndroidRuntime(2362):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> ERROR/AndroidRuntime(2362):     at java.lang.reflect.Method.invoke
> (Method.java:515)
> ERROR/AndroidRuntime(2362):     at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:739)
> ERROR/AndroidRuntime(2362):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> ERROR/AndroidRuntime(2362):     at dalvik.system.NativeStart.main
> (Native Method)
>
> I've had a look in DDMS and noticed that the percentage memory used in
> the heap doesn't go above 70%. Also, doesn't the reported 66K seem
> like a very small amount to be causing a crash?
>
> Any help appreciated!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com

[android-developers] Re: MyLocation blinking dot

2009-01-29 Thread JS

Faber,

won't that just draw a simple circle?

What about making the dot blink like the default Google Maps on
android?

Thanks

On Jan 29, 5:01 am, Faber Fedor  wrote:
> On Thu, Jan 29, 2009 at 3:52 AM, JS  wrote:
>
> > I like the blinking blue dot with the surrounding disc showing the
> > accuracy.
>
> > How do I implement such a dot in my custom Canvas?  I know I can
> > subclass MyLocationOverlay class, but I need to draw the dot using my
> > own data, etc.
>
> That turns out to be so easy even I figured it out! :-)
>
> Create an Overlay of your own and implement the draw() method, i.e.
>
>     private class ProximityOverlay extends Overlay {
>         public void draw(Canvas canvas, MapView mapview, boolean b) {
>              // draw some stuff in here, like
>              // canvas.drawCircle(point.x, point.y, radius, paint);
>         }
>      }
>
> then simply add this Overlay to the list of Overlays, probably in your
> onCreate():
>
>     map.getOverlays().add(new ProximityOverlay());
>
> That's it!  Android takes care of everything else.
>
> --
>
> Faber Fedor
> Cloud Computing New Jerseyhttp://cloudcomputingnj.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapsApplication missing from source code?

2009-01-29 Thread Ludwig
The people from AndNav have put together an open source map application,
which you can find at http://code.google.com/p/osmdroid/.

HTH

Ludwig

2009/1/29 Dianne Hackborn 

> I don't think anyone will have time to put together such a thing.  There is
> lots of sample code showing how to use it.
>
> On Wed, Jan 28, 2009 at 8:07 PM, jsm  wrote:
>
>>
>> If thats the case, could you provide some samples of the
>> implementation to understand the views created, the search, etc.?
>>
>> On Jan 28, 11:01 pm, Jean-Baptiste Queru  wrote:
>> > It's not part of the Android platform, it's a Google-proprietary
>> > add-on that is not open-source.
>> >
>> > JBQ
>> >
>> >
>> >
>> > On Wed, Jan 28, 2009 at 8:39 AM, jsm  wrote:
>> >
>> > > Why is that closed? I mean the reasoning behind closing that app.
>> >
>> > > On Jan 28, 9:30 pm, Disconnect  wrote:
>> > >> Its closed source, just like gmail, contact/email sync, market, mp3
>> store,
>> > >> .. that might be it.
>> > >> (Anyone want to comment?)
>> > >> Oh, and the IM protocols (all of them) but not the framework. And -
>> for tmob
>> > >> users - the myfaves app.
>> >
>> > >> On Wed, Jan 28, 2009 at 11:24 AM, jsm  wrote:
>> >
>> > >> > Why is the com.google.android.apps.maps.MapsApplication missing
>> from
>> > >> > the open source project site?
>> > >> > Is it closed source?
>> >
>> > >> > Can someone from google clarify please?
>> >
>> > --
>> > Jean-Baptiste M. "JBQ" Queru
>> > Android Engineer, Google.
>>
>>
>
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
>
> >
>

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



[android-developers] Re: MyLocation blinking dot

2009-01-29 Thread Faber Fedor
On Thu, Jan 29, 2009 at 11:09 AM, JS  wrote:

>
> Faber,
>
> won't that just draw a simple circle?


Yes.  It was a simple example. You can put whatever drawing functionality in
there that you want.


> What about making the dot blink like the default Google Maps on
> android?


I dunno. Animate it.  There's something called "tweened animation" that
might work. I haven't worked with animation yet, so I don't know.

-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.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] VGA Out (for external monitor/projector)

2009-01-29 Thread Pastymage

http://www.bhphotovideo.com/c/product/586388-REG/3M_MPRO110_MPRO110_MICRO_PROFESSIONAL_PROJECTOR.html/BI/1239/kw/3MMPRO110

+ Dev Phone 1

How?

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



[android-developers] Re: Why Android?

2009-01-29 Thread Jon Smith

Thank you all very much for the information, It has all been of great
benefit.

If any one has any information to add, good or bad, please feel free
to do so here or to email me directly.

Thanks again

Jon

On Jan 22, 3:54 pm, Massimo Carli  wrote:
> Hi all,
> I have experience in J2ME and Symbian developing too. I'm also a Java
> programmer since 1995. At the moment I think Android is the best mobile
> platform for me because it's relatively easy to develop and permits a great
> integration with the device. I just have a doubt. Is maybe Android a
> "developer oriented" platform or can be also a "user oriented platform". I
> think that, at the moment, iPhone has something more but I hope that Android
> devices will arrive at the same level or more from the user experience point
> of view.
>
> Bye
> Max
>
> 2009/1/22 Jon Smith 
>
>
>
> > Thanks a lot,
>
> > Can anyone else add to this? Any input would be appreciated.
>
> > On 16 Jan, 20:46, "hmmm"  wrote:
> > > I did some programming in Symbian and now I'm doing someAndroidstuff and
> > > for meAndroidis much easier in comparison with Symbian.
> > > This is because Symbian has some real weird limitations and some real
> > > annoying stuff to remember like those push/pop stack things and no
> > > exceptions in constructors and that TDes family that's all real weird
> > whileAndroidis just plain Java. Even though sometimesAndroidis a little hard
> > > as for example with that awful lot of methods in a base View class still
> > I
> > > think it's easier to bake up something inAndroidthan in Symbian.
> > > Never did Windows Mobile though should be relatively easy too.
>
> > > - Original Message -
> > > From: 
> > > To: "AndroidDevelopers" 
> > > Sent: Friday, January 16, 2009 7:19 PM
> > > Subject: [android-developers] WhyAndroid?
>
> > > > I need to develop a network security auditing application for the use
> > > > on a Smartphone. As this is for my final year dissertation project, I
> > > > need some primary research and it would be really good to get feedback
> > > > on why I should chooseAndroidover any other Smartphone operating
> > > > system from people that have developed for other operating systems, or
> > > > from an official spokesperson.
>
> > > > Thanks in advance
>
> > > > Jon
>
> > > > I apologise if this is double posted, but my first post did not show.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why Android?

2009-01-29 Thread Jon Smith

Thank you all very much for the information, It has all been of great
benefit.

If any one has any information to add, good or bad, please feel free
to do so here or to email me directly.

Thanks again

Jon

On Jan 22, 3:54 pm, Massimo Carli  wrote:
> Hi all,
> I have experience in J2ME and Symbian developing too. I'm also a Java
> programmer since 1995. At the moment I think Android is the best mobile
> platform for me because it's relatively easy to develop and permits a great
> integration with the device. I just have a doubt. Is maybe Android a
> "developer oriented" platform or can be also a "user oriented platform". I
> think that, at the moment, iPhone has something more but I hope that Android
> devices will arrive at the same level or more from the user experience point
> of view.
>
> Bye
> Max
>
> 2009/1/22 Jon Smith 
>
>
>
> > Thanks a lot,
>
> > Can anyone else add to this? Any input would be appreciated.
>
> > On 16 Jan, 20:46, "hmmm"  wrote:
> > > I did some programming in Symbian and now I'm doing someAndroidstuff and
> > > for meAndroidis much easier in comparison with Symbian.
> > > This is because Symbian has some real weird limitations and some real
> > > annoying stuff to remember like those push/pop stack things and no
> > > exceptions in constructors and that TDes family that's all real weird
> > whileAndroidis just plain Java. Even though sometimesAndroidis a little hard
> > > as for example with that awful lot of methods in a base View class still
> > I
> > > think it's easier to bake up something inAndroidthan in Symbian.
> > > Never did Windows Mobile though should be relatively easy too.
>
> > > - Original Message -
> > > From: 
> > > To: "AndroidDevelopers" 
> > > Sent: Friday, January 16, 2009 7:19 PM
> > > Subject: [android-developers] WhyAndroid?
>
> > > > I need to develop a network security auditing application for the use
> > > > on a Smartphone. As this is for my final year dissertation project, I
> > > > need some primary research and it would be really good to get feedback
> > > > on why I should chooseAndroidover any other Smartphone operating
> > > > system from people that have developed for other operating systems, or
> > > > from an official spokesperson.
>
> > > > Thanks in advance
>
> > > > Jon
>
> > > > I apologise if this is double posted, but my first post did not show.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why Android?

2009-01-29 Thread Jon Smith

Thank you all very much for the information, It has all been of great
benefit.

If any one has any information to add, good or bad, please feel free
to do so here or to email me directly.

Thanks again

Jon

On Jan 22, 3:54 pm, Massimo Carli  wrote:
> Hi all,
> I have experience in J2ME and Symbian developing too. I'm also a Java
> programmer since 1995. At the moment I think Android is the best mobile
> platform for me because it's relatively easy to develop and permits a great
> integration with the device. I just have a doubt. Is maybe Android a
> "developer oriented" platform or can be also a "user oriented platform". I
> think that, at the moment, iPhone has something more but I hope that Android
> devices will arrive at the same level or more from the user experience point
> of view.
>
> Bye
> Max
>
> 2009/1/22 Jon Smith 
>
>
>
> > Thanks a lot,
>
> > Can anyone else add to this? Any input would be appreciated.
>
> > On 16 Jan, 20:46, "hmmm"  wrote:
> > > I did some programming in Symbian and now I'm doing someAndroidstuff and
> > > for meAndroidis much easier in comparison with Symbian.
> > > This is because Symbian has some real weird limitations and some real
> > > annoying stuff to remember like those push/pop stack things and no
> > > exceptions in constructors and that TDes family that's all real weird
> > whileAndroidis just plain Java. Even though sometimesAndroidis a little hard
> > > as for example with that awful lot of methods in a base View class still
> > I
> > > think it's easier to bake up something inAndroidthan in Symbian.
> > > Never did Windows Mobile though should be relatively easy too.
>
> > > - Original Message -
> > > From: 
> > > To: "AndroidDevelopers" 
> > > Sent: Friday, January 16, 2009 7:19 PM
> > > Subject: [android-developers] WhyAndroid?
>
> > > > I need to develop a network security auditing application for the use
> > > > on a Smartphone. As this is for my final year dissertation project, I
> > > > need some primary research and it would be really good to get feedback
> > > > on why I should chooseAndroidover any other Smartphone operating
> > > > system from people that have developed for other operating systems, or
> > > > from an official spokesperson.
>
> > > > Thanks in advance
>
> > > > Jon
>
> > > > I apologise if this is double posted, but my first post did not show.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to extract an image from a video

2009-01-29 Thread Raghu

Hi,

  I want to get thumbnail from a video. So I need to extract first
frame in the video. Please let me know how can I do that in Android.

Thanks in Advance,
Raghu

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



[android-developers] ListView with the CheckBoxPreference look

2009-01-29 Thread Dan Dromereschi

Hello,

I am trying to build a ListView that contains items that look exactly
like the CheckBoxPreference, an android.R.id.text1, an
android.R.id.text2 and a checkbox.

I am using a SimpleAdapter and I manage to either have only text1 and
the checkbox, or text1 and text2, but never all the 3 of them. Is
there something I am missing?

Thanks,

Dan

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



[android-developers] Install Android on PC possible?

2009-01-29 Thread Zi Yong Chua

Hi guys,

I am trying to install Android as a separate OS running on top of my
Windows 7/Ubuntu for development, not just running the emulator. May I
know if it is possible and did anyone managed to do it?

Cheers
Zi Yong

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



[android-developers] Audio chat

2009-01-29 Thread gunar

Hi!

I have a question? Can someone give me a direction where to look to
make an audio chat application?
I saw some threads related to audio streaming, also other related to
audio recording/playing.
How to setup a RTP/RTCP/RTSP session between two Android clients?

Best regards!
Adrian

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



[android-developers] Sending Multipart SMS

2009-01-29 Thread Chethan

Hi,

I am trying to send a multipart SMS using the following code. While
the SMS is being split into multiple parts and sent across, in the
receiver, I am seeing some junk characters (as if i am reading a
binary file). Obviously, I am not doing something correct. Can someone
(plusminus ) help?

// SMS SENDER

package com.test;

import java.util.ArrayList;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.gsm.SmsManager;
import android.util.Log;

public class SMSSender extends Activity {



@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
SmsManager smsManager = SmsManager.getDefault();
String destAddr = "5556", scAddr = null, mMessageText =
"This is a sample SMS which has more than 160 characters if it has
more characters, it will give an error as the standard SMS can contain
only 160 characters. This text does not appear";
PendingIntent sentIntent = null, deliveryIntent = null;
try {
ArrayList listOfIntents = new ArrayList
(0);
//PendingIntent il = PendingIntent.getBroadcast(this, 0, new Intent(),
0);
ArrayList messages = smsManager.divideMessage(mMessageText);

Log.v("", messages.toString());

for (int i=0; i < messages.size(); i++){

PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(),
0);
listOfIntents.add(pi);
}
smsManager.sendMultipartTextMessage(destAddr, null, messages,
listOfIntents, null);

} catch (Exception e) { Log.i("TEST", e.toString()); } } }


---

// SMS Receiver
package com.test;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.gsm.SmsMessage;
import android.util.Log;


public class SMSReceiver extends BroadcastReceiver {
private static final String TAG = "SMSReceiver";
static final String ACTION =
"android.provider.Telephony.SMS_RECEIVED";
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(ACTION)) {
StringBuilder buf = new StringBuilder();
Bundle bundle = intent.getExtras();
if (bundle != null) {
Object[] pdusObj = (Object[]) bundle.get("pdus");
SmsMessage[] messages = new SmsMessage[pdusObj.length];
for (int i = 0; ihttp://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android File System Build Error

2009-01-29 Thread igal_ch

Hi,

I started to work with the latest Android version for OMAP3430 (Zoom1)
platform by getting sources via "repo sync". The u-boot and kernel
images were built successfully but file system build encountered the
issue for vendor/ti/ldp1/buildspec.mk.default configuration (copied to
buildspec.mk)

make: *** No rule to make target `out/target/product/ldp1/obj/lib/
libopencore_player.so', needed by `out/target/product/ldp1/obj/
SHARED_LIBRARIES/libmediaplayerservice_intermediates/LINKED/
libmediaplayerservice.so'.  Stop.

Could you advise which Android version to use and how to get it via
repo?

Igal

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



[android-developers] opengl & gc

2009-01-29 Thread Steven Lagerweij

I've been playing with OpenGL but am unable to get a steady framerate
due to GC.

When rendering 100 tiles each frame (in ortho mode), the GC needs to
recover ~22000 objects every 3 seconds or so. Each collection is taking
around 110 ms. Of course this means quite a framerate dip.

...
D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 113ms
D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 113ms
D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 113ms
D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 114ms
...


The rendering loop I tested with is not making any objects and is very
simple;

while (super.running) {
gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
gl.glBindTexture(GL10.GL_TEXTURE_2D, tex);
for(x = 0 ; x < 100; x++) {
gl.glVertexPointer(2, GL10.GL_FIXED, 0, tileCoords[x]);
gl.glTexCoordPointer(2, GL10.GL_FIXED, 0, tileTexCoords[x]);
gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4);
}
egl.eglSwapBuffers(dpy, surface);
}

The calls to gl.glVertexPointer(...); and gl.glTexCoordPointer(...);
seem to be ones creating the most objects.

When I take those two calls outside the for and while loop (so rendering
the same tile at the same position a 100 times each frame), GC didn't
occur at all for the three minutes I waited.

So, is this supposed to be the case ? 
I also could not find sources for the implementation which is
"com.google.android.jsr239.GLImpl"? Anyone knows where to find those?




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



[android-developers] Pre populating emulator with sms message

2009-01-29 Thread reyjexter

Hi,

I'm developing an application that makes use of sms. How can I pre
populate the emulator when it starts so I can try reading its content?


-rey

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

2009-01-29 Thread merouz

1. Get The map key : please see ref:http://code.google.com/android/
reference/com/google/android/maps/MapView.html, there are two thing
that you should follow for using MapView
2. when using the MapActivity, insert his code :   , see ref :
http://code.google.com/android/reference/com/google/android/maps/MapActivity.html

i hope these can help you

thx,

james kachiro sarumaha




On Jan 29, 1:49 pm, sankalp  wrote:
> hi group
>
> i was making a location based service applictaion but i was not
> getting maps rendered in to my mapview .
> i checked the ddms log i saw an error in mapactivty tags "couldnt get
> connection factory client"
>
> please can anyone help out of this .ASAP
>
> thnx
> sankalp

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

2009-01-29 Thread Koffi

I got Cupcake images from http://nullwire.com/try_out_cupcake_yourself
 followed the instructions, it worked fined in the beginning, I
realized Maps was no longer  the home screen and API Demos and Maps
were missing from applications screen too and with 1.5 I can now
access SD Card & phone storage in the settings setting and see my
sdcard image loaded, I could not before in 1.0
I can switch between 1.0 and 1.5 by changing the system.img,
userdata.img and ramdisk.img in
 tools/lib/images
 Now with the images files from 1.5 in tools/lib/images the emulator
does not launch anymore it is stuck at the screen where the green
android logo is glowing indefinitely, when I revert back to the 1.0
img files the emulator works as usual.
Can anyone direct me as to why the emulator does not work with 1.5
anymore what might be the cause and a solution if there is one. I
removed the SDK and emulator completely even eclipse
I re downloaded and reinstalled eclipse, the ADT plugin, SDK and
emulator. Emulator works well with 1.0 but still does not work when
1.5 img files are loaded.

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



[android-developers] Add new contacts directly in "My Contacts".

2009-01-29 Thread DarkJJ

Hi all.

I want to create a new contact in the group "My Contacts", with name
and number phone like data.

I only have seen this example that how must i do this:
http://code.google.com/intl/es-ES/android/devel/data/contentproviders.html

But in this example, the new contacts are added in the list
"Favorites" and i dont like this to my app. If i change the value of
SCARRED the contact is or not is in this list.

¿How can i add new contacts directly in "My Contacts" ?...  i have
looked for information about this but i didnt find nothing to do , ¿is
posible this function?

Thanks.

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



[android-developers] Re: How to enable / disable Bluetooth

2009-01-29 Thread moose

use the getString or the putString method instead and then convert to
a boolean or integer.  I am having a problem myself.  doing a
getstring of this property always returns "1" whether the blue tooth
is on or not.

Anybody else see this behavoir?  Anyone have a solution to finding out
if the bluetooth is powered on or not? Am I missing some permissions?
The only permission i am currently using is
android.permission.WRITE_SETTINGS. Below is my code...

String bluetoothEn = android.provider.Settings.System.getString
(getContentResolver(), android.provider.Settings.System.BLUETOOTH_ON);
boolean blueToothEn = (bluetoothEn.equals("1"));

On Jan 8, 10:42 pm, bendavis78  wrote:
> Hi,  did you ever figure out how to do this?
>
> On Dec 1 2008, 8:18 pm, RM  wrote:
>
> > Hi folks,
>
> > I'm writing an app that will, among other things, disable Bluetooth.
> > To do this, I've set the "android.permission.BLUETOOTH_ADMIN", and
> > inside an onClick() listener I'm using the following:
>
> >   Settings.System.putInt(getContentResolver(),
> > Settings.System.BLUETOOTH_ON, 0);
>
> > However, this does nothing on the actual phone.
>
> > Further, using the corresponding getInt() function to readback the
> > status crashes the app:
>
> >   Settings.System.getInt(PowerProfile.this.getContentResolver(),
> > Settings.System.BLUETOOTH_ON, btStatus);
>
> > Can someone guide me as to what is wrong, and/or what is the proper
> > way to enable/disable Bluetooth?
>
> > Many thanks,
> > RM

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

2009-01-29 Thread moose


use the getString and putString method instead.  below is my code, but
I am having a problem that it always returns "1" (enabled) whether or
not the bluetooth is on...

 String bluetoothEn =
android.provider.Settings.System.getString(getContentResolver(),
android.provider.Settings.System.BLUETOOTH_ON);
 boolean blueToothEn = (bluetoothEn.equals("1"));

On Jan 23, 4:30 pm, MaxImUmZ  wrote:
> Use the WifiManager with getWifiEnabled and setWifiEnabled to do it
> for the wifi.  I have not found a way to do it for the bluetooth yet
> but only been working at it about an hour now
>
> On Dec 8 2008, 9:39 pm, Kah-Neth  wrote:
>
> > I am trying to use android.provider.Settings.System.getInt and putInt
> > to enable and disable bluetooth and enable/disable wifi as follows
> > android.provider.Settings.System.putInt(getContentResolver(),
> > android.provider.Settings.System.BLUETOOTH_ON,
> > enable);android.provider.Settings.System.putInt(getContentResolver(),
> > android.provider.Settings.System.WIFI_ON, enable);
> > However this does not seem to be working, does anyone have some advice
> > on how I should do 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] HTML links in a TextView inside a ListView

2009-01-29 Thread Steve

I've got a ListView where each item in the list is contains several
controls. One of the items is a checkbox, and I can check/uncheck it
without problems.  The other items are some TextViews and a WebView.
I've got autoLink turned on and linksClickable turned on, but I can't
get links to fire up the browser when I click on them.  This applies
to both TextView and WebView.  I've tried changing the parent to a
GridView instead of a ListView, playing with setFocusable(), and all
that, but to no avail.

Is it even possible to have interaction on the TextView-based elements
of a row in a ListView?  It seems like that *should* be possible, but
I've been banging my head against this problem for a few weeks with no
progress.  What's the secret?

Thanks!
Steve

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

2009-01-29 Thread Marco Nelissen
Did you try asking whoever it was that created the image that is not
working?


On Thu, Jan 29, 2009 at 12:23 AM, Koffi  wrote:

>
> I got Cupcake images from http://nullwire.com/try_out_cupcake_yourself
>  followed the instructions, it worked fined in the beginning, I
> realized Maps was no longer  the home screen and API Demos and Maps
> were missing from applications screen too and with 1.5 I can now
> access SD Card & phone storage in the settings setting and see my
> sdcard image loaded, I could not before in 1.0
> I can switch between 1.0 and 1.5 by changing the system.img,
> userdata.img and ramdisk.img in
>  tools/lib/images
>  Now with the images files from 1.5 in tools/lib/images the emulator
> does not launch anymore it is stuck at the screen where the green
> android logo is glowing indefinitely, when I revert back to the 1.0
> img files the emulator works as usual.
> Can anyone direct me as to why the emulator does not work with 1.5
> anymore what might be the cause and a solution if there is one. I
> removed the SDK and emulator completely even eclipse
> I re downloaded and reinstalled eclipse, the ADT plugin, SDK and
> emulator. Emulator works well with 1.0 but still does not work when
> 1.5 img files are loaded.
>
> >
>

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



[android-developers] Generating Touch screen events from remote host PC

2009-01-29 Thread newra...@gmail.com



I would like to inject the touch events from remote host PC.

Is there any way to achieve that?

I am sorry if the question asked before.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: HTML links in a TextView inside a ListView

2009-01-29 Thread Phill Midwinter
android:autoLink="web" - just to be sure, i'm going to try it within a
listview now

2009/1/29 Steve 

>
> I've got a ListView where each item in the list is contains several
> controls. One of the items is a checkbox, and I can check/uncheck it
> without problems.  The other items are some TextViews and a WebView.
> I've got autoLink turned on and linksClickable turned on, but I can't
> get links to fire up the browser when I click on them.  This applies
> to both TextView and WebView.  I've tried changing the parent to a
> GridView instead of a ListView, playing with setFocusable(), and all
> that, but to no avail.
>
> Is it even possible to have interaction on the TextView-based elements
> of a row in a ListView?  It seems like that *should* be possible, but
> I've been banging my head against this problem for a few weeks with no
> progress.  What's the secret?
>
> Thanks!
> Steve
>
> >
>


-- 
Phill Midwinter
Director
Grant Midwinter Limited
d: 0844 736 5234 x: 0
m: 07538 082156
e: ph...@grantmidwinter.com

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



[android-developers] Re: Why Android?

2009-01-29 Thread cindy

Does someone has iphone development experience? Can you share your
experience of developing iphone application?

On Jan 29, 8:44 am, Jon Smith  wrote:
> Thank you all very much for the information, It has all been of great
> benefit.
>
> If any one has any information to add, good or bad, please feel free
> to do so here or to email me directly.
>
> Thanks again
>
> Jon
>
> On Jan 22, 3:54 pm, Massimo Carli  wrote:
>
> > Hi all,
> > I have experience in J2ME and Symbian developing too. I'm also a Java
> > programmer since 1995. At the moment I think Android is the best mobile
> > platform for me because it's relatively easy to develop and permits a great
> > integration with the device. I just have a doubt. Is maybe Android a
> > "developer oriented" platform or can be also a "user oriented platform". I
> > think that, at the moment, iPhone has something more but I hope that Android
> > devices will arrive at the same level or more from the user experience point
> > of view.
>
> > Bye
> > Max
>
> > 2009/1/22 Jon Smith 
>
> > > Thanks a lot,
>
> > > Can anyone else add to this? Any input would be appreciated.
>
> > > On 16 Jan, 20:46, "hmmm"  wrote:
> > > > I did some programming in Symbian and now I'm doing someAndroidstuff and
> > > > for meAndroidis much easier in comparison with Symbian.
> > > > This is because Symbian has some real weird limitations and some real
> > > > annoying stuff to remember like those push/pop stack things and no
> > > > exceptions in constructors and that TDes family that's all real weird
> > > whileAndroidis just plain Java. Even though sometimesAndroidis a little 
> > > hard
> > > > as for example with that awful lot of methods in a base View class still
> > > I
> > > > think it's easier to bake up something inAndroidthan in Symbian.
> > > > Never did Windows Mobile though should be relatively easy too.
>
> > > > - Original Message -
> > > > From: 
> > > > To: "AndroidDevelopers" 
> > > > Sent: Friday, January 16, 2009 7:19 PM
> > > > Subject: [android-developers] WhyAndroid?
>
> > > > > I need to develop a network security auditing application for the use
> > > > > on a Smartphone. As this is for my final year dissertation project, I
> > > > > need some primary research and it would be really good to get feedback
> > > > > on why I should chooseAndroidover any other Smartphone operating
> > > > > system from people that have developed for other operating systems, or
> > > > > from an official spokesperson.
>
> > > > > Thanks in advance
>
> > > > > Jon
>
> > > > > I apologise if this is double posted, but my first post did not show.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to add scroll bar to linearlayout

2009-01-29 Thread cindy

I have build a UI using linearlayout. It displays fine if phone is in
vertical position. But when I switch my phone to horizontal position.
Some content is not displayed. Is there anyway to add a scroll bar to
linear layout?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ListView with the CheckBoxPreference look

2009-01-29 Thread James Yum
Hi Dan,
Can you post some code?

Cheers,
James

On Thu, Jan 29, 2009 at 6:31 AM, Dan Dromereschi
wrote:

>
> Hello,
>
> I am trying to build a ListView that contains items that look exactly
> like the CheckBoxPreference, an android.R.id.text1, an
> android.R.id.text2 and a checkbox.
>
> I am using a SimpleAdapter and I manage to either have only text1 and
> the checkbox, or text1 and text2, but never all the 3 of them. Is
> there something I am missing?
>
> Thanks,
>
> Dan
>
> >
>

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

2009-01-29 Thread James Yum
Hi Cindy,
You can try wrapping it in a ScrollView,

Cheers,
James

On Thu, Jan 29, 2009 at 10:15 AM, cindy  wrote:

>
> I have build a UI using linearlayout. It displays fine if phone is in
> vertical position. But when I switch my phone to horizontal position.
> Some content is not displayed. Is there anyway to add a scroll bar to
> linear layout?
> >
>

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



[android-developers] WebView.loadData does not always work quite right

2009-01-29 Thread Mark Nuetzmann

I have a simple webview client that gets the content from a url and
loads it into the WebView.  When the activity starts and the first
data is loaded into the WebView it works beautifully.  I can click the
href of the image returned in the url data and the WebView launches
the browser just fine.  However, if I then update the contents of the
WebView with another call to loadData, the WebView displays the new
data but you cannot click on anything in the WebView...

I do not see any logs like

Starting activity: Intent { action=android.intent.action.VIEW
categories={android.intent.category.BROWSABLE}
in the log viewer...

If I relaunch my activity, it again works the first time but not for
additional content.  Is there something else I am supposed to do to
get the WebView to support the clicking of hrefs in the data that was
loaded?

thanks, Mark

public class SampleWebviewClient extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

Button btn = (Button) findViewById(R.id.nexturl_btn);
btn.setOnClickListener(mOnClickNextUrl);

new Thread(mGetUrlData).start();
}

OnClickListener mOnClickNextUrl = new OnClickListener() {
@Override
public void onClick(View arg0) {
new Thread(mGetUrlData).start();
}
};

private List mQueuedUrls = new ArrayList();
private Runnable mGetUrlData = new Runnable() {
@Override
public void run() {
String data = getUrlData();
if (data != "") {
mQueuedUrls.add(data);
runOnUiThread(mUpdateImage);
}
}
};

private Runnable mUpdateImage = new Runnable() {
@Override
public void run() {
WebView webView = (WebView) findViewById(R.id.webkit);
if (webView != null) {
webView.loadData(mQueuedUrls.get(0), 
"text/html", "utf-8");
mQueuedUrls.remove(0);
}
}
};

public String getUrlData() {
   String data = ... get the data...
return data;
}
}


main.xml


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



 

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

2009-01-29 Thread Dave Sparks

Interesting, I didn't know that made it to the 1.0 release. Thanks!

On Jan 29, 6:48 am, kolby  wrote:
> Dave,
>
> you can play youtube video by launching a View intent with the youtube
> video page url right now on the device (no cupcake or developer key
> required). It will launch the youtube player.
> The problem is, it doesn't work in the emulator, since there's no
> youtube app.
>
> Michael
>
> On Jan 28, 3:37 pm, Dave Sparks  wrote:
>
> > If you specifically want to play a YouTube video, you need to register
> > as a YouTube developer to get the keys you need to access the Gdata
> > feeds.
>
> > I think that the Cupcake release will support a new intent for playing
> > YouTube videos with the YouTube app, but it will be some time before
> > that feature makes it into an SDK or actual device. That would remove
> > the need for getting the developer keys.
>
> > Aside from that, playing a YT video is no different than any other
> > HTTP streamed video. You just pass the URL through setDataSource and
> > the media player does the rest.
>
> > On Jan 28, 1:42 am, harish  wrote:
>
> > > Dear All,
>
> > > Using Mediaplayer (Api Demo) example, i was able to play a local video
> > > file and also an video mp4 streamed over internet on my android
> > > emulator using sdk in my development machine.
>
> > > When i run an youtube video from browser running in an emulator, it
> > > asks for to download flash player.
>
> > > Is there any way to play youtube video using mediaplayer or any other
> > > alternative methods in android.
>
> > > In emulator session, is it possile to play youtube video.
>
> > > Guys, help me in this. any reference or example of youtube video being
> > > played in the emulator using sdk is available.
>
> > > Thanks and Regards,
> > > HarishKumar.V
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: For launching a camera from appl which action requires?

2009-01-29 Thread James Yum

Hi,

The bitmap is returned in the extras bundle, e.g.:

Bundle extras = intent.getExtras();
Bitmap bitmap = (Bitmap) extras.get("data") ;

However, be aware that the quality of the image cannot be specified at
this time, but should be fixed in the future:

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

Cheers,
James

On Wed, Jan 28, 2009 at 10:10 PM, jj  wrote:
>
> For launching a camera from appl which action requires?
>
> If start a camera from my appl and captured image, how should I pick-up
> (retrieve) that current image to my appl from camera provider. what is
> process for this(which Uri).
> >

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



[android-developers] Re: what is maximum height and width of image which can display?

2009-01-29 Thread Dave Sparks

The application heap is limited to 16MB. For RGB565, that's a max of
8M pixels, not including the heap that the app uses for other objects.
Chances are, you are probably decoding from a JPEG, so you need room
for both the compressed and uncompressed version.

On Jan 29, 7:41 am, Phill Midwinter  wrote:
> That's a Z buffer.  A correct comparison would be running a game in
> 1280x1024 but only having an 800x600 capable screen... in which case the
> game wouldn't display.
>
> This is simply a 2d image, why not load it all into memory if you're going
> to be dragging it around?
>
> 2009/1/29 Stoyan Damov 
>
>
>
>
>
> > I still don't get it. The viewport is 480x320. Imagine if you are
> > trying to play Quake or Unreal Tournament and the game tries to draw
> > the entire level, even though only a tiny part of it is visible.
>
> > On Thu, Jan 29, 2009 at 4:39 PM, Phill Midwinter
> >  wrote:
> > > I suppose for something like the camera gallery, so you can view your
> > photos
> > > at full res?
>
> > > 2009/1/29 Stoyan Damov 
>
> > >> Why would you want to draw a 1000x1000 image on 480x320 screen?
>
> > >> On Thu, Jan 29, 2009 at 2:05 PM, jj  wrote:
>
> > >> > what is maximum height and width of image which can display?
>
> > >> > When I try for 1000px height and 1000pix width it work, but for beyond
> > >> > it,
> > >> > it gives exception, appl force close.
>
> > > --
> > > Phill Midwinter
> > > Director
> > > Grant Midwinter Limited
> > > d: 0844 736 5234 x: 0
> > > m: 07538 082156
> > > e: ph...@grantmidwinter.com
>
> --
> Phill Midwinter
> Director
> Grant Midwinter Limited
> d: 0844 736 5234 x: 0
> m: 07538 082156
> e: ph...@grantmidwinter.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to extract an image from a video

2009-01-29 Thread Dave Sparks

This is not possible with the 1.0 SDK. This feature will be available
in the Cupcake release.

On Jan 28, 11:16 pm, Raghu  wrote:
> Hi,
>
>       I want to get thumbnail from a video. So I need to extract first
> frame in the video. Please let me know how can I do that in Android.
>
> Thanks in Advance,
> Raghu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Audio chat

2009-01-29 Thread Marco Nelissen
You can't do that using the SDK at the moment. You might be able to hack
something together using native code, but you'd either have to use AMR or
provide your own encoder, and you'd also have to write your own rtsp or http
server or other communications protocol. That's probably beyond the scope of
this discussion group though.


On Thu, Jan 29, 2009 at 12:57 AM, gunar  wrote:

>
> Hi!
>
> I have a question? Can someone give me a direction where to look to
> make an audio chat application?
> I saw some threads related to audio streaming, also other related to
> audio recording/playing.
> How to setup a RTP/RTCP/RTSP session between two Android clients?
>
> Best regards!
> Adrian
>
> >
>

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

2009-01-29 Thread Dave Sparks

This is not really possible with 1.0 SDK. Someone has done a walkie-
talkie like program that records audio to a file and then streams it,
but not real-time audio.

The Cupcake release will add the capability to stream audio from the
mic into a Java app and stream audio from a Java app to the audio
output. However, there is no support for streaming audio over RTSP, so
you have a fair bit of work cut out for you.

On Jan 29, 12:57 am, gunar  wrote:
> Hi!
>
> I have a question? Can someone give me a direction where to look to
> make an audio chat application?
> I saw some threads related to audio streaming, also other related to
> audio recording/playing.
> How to setup a RTP/RTCP/RTSP session between two Android clients?
>
> Best regards!
> Adrian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Video resolution support

2009-01-29 Thread Dave Sparks

I don't know that there are any specific restrictions on the video
resolution for the software codecs. It's really a matter of whether
the CPU has adequate cycles to decode it in real-time.

Some of the codecs are hardware accelerated and they do have
restrictions about frame size, bit-rate, and fps. Each product will
have different capabilities based on the underlying hardware, so it's
not possible to give maximums.

We are going to try to establish a minimum performance benchmark for
all Android compatible devices in the near future.

On Jan 29, 12:52 am, Raghu D K  wrote:
> Hello All,
>
> What are the video resolutions supported by the PV codecs in the
> opencore module? Is there a manual or guide describing this?
>
> Warm Regards,
> Raghu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 File System Build Error

2009-01-29 Thread Dianne Hackborn
Hi, questions about working with the open source project should be in the
associated groups, such as android-platform or android-porting.

On Thu, Jan 29, 2009 at 8:30 AM, igal_ch  wrote:

>
> Hi,
>
> I started to work with the latest Android version for OMAP3430 (Zoom1)
> platform by getting sources via "repo sync". The u-boot and kernel
> images were built successfully but file system build encountered the
> issue for vendor/ti/ldp1/buildspec.mk.default configuration (copied to
> buildspec.mk)
>
> make: *** No rule to make target `out/target/product/ldp1/obj/lib/
> libopencore_player.so', needed by `out/target/product/ldp1/obj/
> SHARED_LIBRARIES/libmediaplayerservice_intermediates/LINKED/
> libmediaplayerservice.so'.  Stop.
>
> Could you advise which Android version to use and how to get it via
> repo?
>
> Igal
>
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Is it possible to run ADB shell command from inside an Android app

2009-01-29 Thread Anshul

I am trying to run an ADB shell command from inside an android app
using the JAVA's Runtime.getRunTime.exec API. I am getting an error
"ERROR/ProcessManager(1041): Error running adb: Permission denied".
Wanted to check if there is any permission that I need to request to
get it working or that running the adb shell command would not be
allowed from with in the Android app.

I am able to execute other linux commands like 'ls' from the android
app though.

Thanks,
-Anshul

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

2009-01-29 Thread Noonien Soong

Thank you for pointing that out.

So I get RESULT_CANCELED when the activity actually send something.
I guess its no big deal, but why not have a different return type for
an intent that doesn't return anything?

like RESULT_NONE, RESULT_DEFAULT or RESULT_VOID.

When I saw the return type, it was strange to see that it was
canceled. Had it been a 3rd category, it would have been a bit
clearer...




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



[android-developers] Re: Is it possible to run ADB shell command from inside an Android app

2009-01-29 Thread hmmm

I don't know the answer but interested why would you want to do that?

- Original Message - 
From: "Anshul" 
To: "Android Developers" 
Sent: Thursday, January 29, 2009 10:33 PM
Subject: [android-developers] Is it possible to run ADB shell command from 
inside an Android app


>
> I am trying to run an ADB shell command from inside an android app
> using the JAVA's Runtime.getRunTime.exec API. I am getting an error
> "ERROR/ProcessManager(1041): Error running adb: Permission denied".
> Wanted to check if there is any permission that I need to request to
> get it working or that running the adb shell command would not be
> allowed from with in the Android app.
>
> I am able to execute other linux commands like 'ls' from the android
> app though.
>
> Thanks,
> -Anshul
>
> > 


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



[android-developers] Re: Is it possible to run ADB shell command from inside an Android app

2009-01-29 Thread Bill Napier

There are a couple problems here.

1. The phone doesn't have the adb command installed on it and doesn't
need it.  adb shell is only to be able to run shell commands from a
computer on the phone.
2. Permission denied is the default (confusing and buggy) error code
returned when you try and execute a command that doesn't exist.

If you just want a shell run, try /system/bin/sh as the executable to run.

b

On Thu, Jan 29, 2009 at 11:33 AM, Anshul  wrote:
>
> I am trying to run an ADB shell command from inside an android app
> using the JAVA's Runtime.getRunTime.exec API. I am getting an error
> "ERROR/ProcessManager(1041): Error running adb: Permission denied".
> Wanted to check if there is any permission that I need to request to
> get it working or that running the adb shell command would not be
> allowed from with in the Android app.
>
> I am able to execute other linux commands like 'ls' from the android
> app though.
>
> Thanks,
> -Anshul
>
> >
>

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

2009-01-29 Thread 3D

Thank you both for your responses!  I think I will try just removing
these characters.

On Jan 28, 9:14 am, "Brad Gies"  wrote:
> Well.  the best thing to do would be to escape those characters at the
> server that sends the document, but if that is not possible then you could
> download the document into a Stream, escape them there, or even remove them,
> and then pass it to the SAX parser. Later, if you display the contents, you
> would have to unescape the contents before you display it.
>
> Sincerely,
>
> Brad Gies
>
> -
>
> Brad Gies
>
> 27415 Greenfield Rd, # 2,
>
> Southfield, MI, USA
>
> 48076
>
> www.bgies.com www.truckerphone.com
>
> www.EDI-Easy.com www.pricebunny.com
>
> -
>
> Moderation in everything, including abstinence
>
>   _  
>
> From: android-developers@googlegroups.com
> [mailto:android-develop...@googlegroups.com] On Behalf Of Tim Bray
> Sent: Tuesday, January 27, 2009 3:21 PM
> To: android-developers@googlegroups.com
> Subject: [android-developers] Re: SAXParser getting stuck on certain
> characters
>
> On Tue, Jan 27, 2009 at 12:10 PM, 3D  wrote:
>
> I'm using a SAXParser to parse an XML document and its getting stuck
> on certain symbols like the 'trademark' symbol and I think even double-
> quotes ".  I really don't need these characters so it would be fine if
> the parser just skips over these.  Instead it throws an exception and
> quits parsing the document.  What can I do?
>
> XML is very fussy about character encoding. If your supposedly XML doc has
> malformed characters (for example, if some UTF-8 got dropped into what you
> think was ASCII, or ISO-8859 into UTF-8), well, it's not XML, sorry, and the
> software won't let you do that.  This is controversial (many people have
> historically thought it's OK to ignore internationalization problems) but
> it's the way it is, you're stuck with it.  
>
> There are other parsers like TagSoup and one in xmllib2 that will let you
> bypass breakage and go on working, but they're pretty big chunks of code.
> -Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MediaPlayer seeking back

2009-01-29 Thread ed

I've been using androids MediaPlayer to stream from an http url and
have a question about seeking.  Currently, our urls expire after they
have been used once or a certain time out has expired to dissuade
scraping content.  Now, this obviously makes progressive streaming
past the buffer impossible with the exact same url as you need to open
a new http connection with the same mangled key, which we
intentionally don't allow.

However, MediaPlayer seems to do this when seeking before the current
position (i.e. seeking from 1:00 in the audio to 0:30).  As the file
has already been downloaded up to the current position I'm confused as
to why MediaPlayer is still trying to initate a new http connection in
this case?  The only thing I can think of is that MediaPlayer is
getting rid of audio its already played up to the current position,
and hence needs to restart the connection if you try to seek back on
the stream.  Is this correct, or is there something else going on?

Thanks,
Ed

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



[android-developers] Re: Why Android?

2009-01-29 Thread Julio Barros

I have some experience with the iPhone and am just starting to get my  
head around android.  I'm not sure what aspect/comparison you are most  
interested in.  The first most obvious difference is Java vs Objective- 
C.  I had done a lot of Java before I started on the iPhone.  If you  
have experience with a C style language Objective-C is not too bad.  
The next big comparison would be the extensive (mature but  
overwhelming) Cocoa Touch libraries and frameworks vs activities and  
the Android approach.

Julio
http://www.E-String.com

On Jan 29, 2009, at 11:08 AM, cindy wrote:

>
> Does someone has iphone development experience? Can you share your
> experience of developing iphone application?
>
> On Jan 29, 8:44 am, Jon Smith  wrote:
>> Thank you all very much for the information, It has all been of great
>> benefit.
>>
>> If any one has any information to add, good or bad, please feel free
>> to do so here or to email me directly.
>>
>> Thanks again
>>
>> Jon
>>
>> On Jan 22, 3:54 pm, Massimo Carli  wrote:
>>
>>> Hi all,
>>> I have experience in J2ME and Symbian developing too. I'm also a  
>>> Java
>>> programmer since 1995. At the moment I think Android is the best  
>>> mobile
>>> platform for me because it's relatively easy to develop and  
>>> permits a great
>>> integration with the device. I just have a doubt. Is maybe Android a
>>> "developer oriented" platform or can be also a "user oriented  
>>> platform". I
>>> think that, at the moment, iPhone has something more but I hope  
>>> that Android
>>> devices will arrive at the same level or more from the user  
>>> experience point
>>> of view.
>>
>>> Bye
>>> Max
>>
>>> 2009/1/22 Jon Smith 
>>
 Thanks a lot,
>>
 Can anyone else add to this? Any input would be appreciated.
>>
 On 16 Jan, 20:46, "hmmm"  wrote:
> I did some programming in Symbian and now I'm doing  
> someAndroidstuff and
> for meAndroidis much easier in comparison with Symbian.
> This is because Symbian has some real weird limitations and some  
> real
> annoying stuff to remember like those push/pop stack things and no
> exceptions in constructors and that TDes family that's all real  
> weird
 whileAndroidis just plain Java. Even though sometimesAndroidis a  
 little hard
> as for example with that awful lot of methods in a base View  
> class still
 I
> think it's easier to bake up something inAndroidthan in Symbian.
> Never did Windows Mobile though should be relatively easy too.
>>
> - Original Message -
> From: 
> To: "AndroidDevelopers" 
> Sent: Friday, January 16, 2009 7:19 PM
> Subject: [android-developers] WhyAndroid?
>>
>> I need to develop a network security auditing application for  
>> the use
>> on a Smartphone. As this is for my final year dissertation  
>> project, I
>> need some primary research and it would be really good to get  
>> feedback
>> on why I should chooseAndroidover any other Smartphone operating
>> system from people that have developed for other operating  
>> systems, or
>> from an official spokesperson.
>>
>> Thanks in advance
>>
>> Jon
>>
>> I apologise if this is double posted, but my first post did not  
>> show.
> >


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



[android-developers] Putting App for Testing on My Dev Phone

2009-01-29 Thread John Miller-George

I have gotten through signing up as an Android developer, joined
Android Market, and recieved and activated my Android Developer Phone.

I have my first draft application running in the emulator.

The documentation suggests testing it throughly on the device,
however, I don't want to put it up publicly in the Android Market
until I am satisfied with the app.

S...

1) Is there a way to privately post a testing app on Android Market?
If so, would somebody please point this newbie to the HOW-TO?

2) Is there a way to push my app onto my developer phone without using
Android Market? If so, would somebody please point this newbie to the
HOW-TO?

I'm having more fun working with this Android stuff than I have had in
years! As soon as I learn enough to contribute I'm going to be
overjoyed to share it.

JLMG

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



[android-developers] Disable Auto Rotate?

2009-01-29 Thread dorkinator

Hi, I'm fairly new to android development - I'm having trouble finding
documentation on how to disable the accelerometer/auto-rotate feature
for an app (i.e. when you turn the phone, everything 'corrects'
changing the layout).  Is it possible to disable in the emulator?

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



[android-developers] GPS coords to screen coords

2009-01-29 Thread João Oliveirinha
Hi,

I searched this mailing list to know the anwser for this but I cant find it.
I dont want to use a MapActivity/MapView.. I just want to draw gps traces on
a blank background so I cant use getProjection() from MapView.

How can I do this in a simple way?

Thanks and sorry for my poor english.

-- 
João Oliveirinha

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Putting App for Testing on My Dev Phone

2009-01-29 Thread Mark K


 You can use adb (Android Debug Bridge) to install applications onto
your phone. ie 'adb install c:\myproject\myapp.apk'. You should
familiarize yourself with the Android command line tools such as adb
and ddms, and not just rely on Eclipse. Don't forget to add the /tools
directory to your PATH.

  M



On Jan 29, 1:13 pm, John Miller-George 
wrote:
> I have gotten through signing up as an Android developer, joined
> Android Market, and recieved and activated my Android Developer Phone.
>
> I have my first draft application running in the emulator.
>
> The documentation suggests testing it throughly on the device,
> however, I don't want to put it up publicly in the Android Market
> until I am satisfied with the app.
>
> S...
>
> 1) Is there a way to privately post a testing app on Android Market?
> If so, would somebody please point this newbie to the HOW-TO?
>
> 2) Is there a way to push my app onto my developer phone without using
> Android Market? If so, would somebody please point this newbie to the
> HOW-TO?
>
> I'm having more fun working with this Android stuff than I have had in
> years! As soon as I learn enough to contribute I'm going to be
> overjoyed to share it.
>
> JLMG
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Disable Auto Rotate?

2009-01-29 Thread Dianne Hackborn
Use android:screenOrientation on your activity:

http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_screenOrientation

Fwiw, sensor-based rotation is not currently enabled by default so you
should never be seeing it unless your app specifically does it for itself.

On Thu, Jan 29, 2009 at 12:34 PM, dorkinator wrote:

>
> Hi, I'm fairly new to android development - I'm having trouble finding
> documentation on how to disable the accelerometer/auto-rotate feature
> for an app (i.e. when you turn the phone, everything 'corrects'
> changing the layout).  Is it possible to disable in the emulator?
>
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Video and Audio format Supported by Android

2009-01-29 Thread Eric

Hi Dave,

Please update us when the new pages are up.and where.

Thanks
Eric
Portable Electronics Ltd
www.hdmp4.com

On Jan 29, 7:38 am, Dave Sparks  wrote:
> We are getting ready to post some new pages in the SDK area that will
> cover this information.
>
> If you can't wait for that, do a search on this forum for codecs. It
> has been covered a number of times.
>
> On Jan 28, 2:33 am, Tom  wrote:
>
> > Hi All
>
> >  i want to knw what r the Audio and Video format r supported by
> > Android by Default .
>
> > is thier any plug-ins  needs to be add in to SDK .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it possible to run ADB shell command from inside an Android app

2009-01-29 Thread Dianne Hackborn
Also please note that shell commands are NOT part of the SDK.  If you rely
on them in your app, expect to break in the future.

On Thu, Jan 29, 2009 at 12:42 PM, Bill Napier  wrote:

>
> There are a couple problems here.
>
> 1. The phone doesn't have the adb command installed on it and doesn't
> need it.  adb shell is only to be able to run shell commands from a
> computer on the phone.
> 2. Permission denied is the default (confusing and buggy) error code
> returned when you try and execute a command that doesn't exist.
>
> If you just want a shell run, try /system/bin/sh as the executable to run.
>
> b
>
> On Thu, Jan 29, 2009 at 11:33 AM, Anshul  wrote:
> >
> > I am trying to run an ADB shell command from inside an android app
> > using the JAVA's Runtime.getRunTime.exec API. I am getting an error
> > "ERROR/ProcessManager(1041): Error running adb: Permission denied".
> > Wanted to check if there is any permission that I need to request to
> > get it working or that running the adb shell command would not be
> > allowed from with in the Android app.
> >
> > I am able to execute other linux commands like 'ls' from the android
> > app though.
> >
> > Thanks,
> > -Anshul
> >
> > >
> >
>
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Sending a message from Service to Activity

2009-01-29 Thread Noonien Soong

A couple of questions... See below:

On Dec 19 2008, 8:46 pm, "Dianne Hackborn" 
wrote:
> Yes, there are a number of options:
>
> (1) In your activity use registerReceiver() for your own custom action
> (scoped to your package), and broadcast to that from the service.  We aware
> that this opens you up to -any- application broadcasting to you through it
> unless you also define and require a signature-based permission.
>
> (2) Create a PendingIntent to send results back to your activity and give it
> to the service.  The service should be able to use to to send you data that
> you receive in onActivityResult().  Note that each time the result is
> delivered your activity will go through onPause() and onResume().
>

"...and give it to the service."  - How do I "give it to the
service?".

with intent.putExtra ? Since PendingIntent is a Parcelable?



> (3) Create a Handler in your activity, create a Messenger pointing to it,
> and give the Messenger to the service.  The service can then just deliver
> whatever messages it wants back to the activity.

"...and give it to the service."  (Same as above)

...with intent.putExtra ? Since a messenger is a Parcelable?

>
> (4) Easiest way: if your service and activity is running in the same process
> (I would expect this to be the common case), then follow the local service
> API demo where you can just directly call each other.  Or have a global
> pointing to your activity while it is running that the service looks at,
> etc.

A global ? As in "a global variable in the Application object?" I
somehow felt that was bad practice.




>
> For most app developers, I strong encourage that they have their service run
> in the same process as their activities, take advantage of that by using
> globals and direct calls between them, and end up with a much simpler
> situation to deal with and a much lighter-weight application (by avoiding
> having multiple processes running at the same time).
>
> On Fri, Dec 19, 2008 at 11:49 AM, Noonien Soong
> wrote:
>
>
>
>
>
> > I got a question related to this.
>
> > I have an activity and a service. Right now they communicate via 2
> > connections with 2 binders like this:
> > Activity binds to Service
> > Service sets up callback binding to Activity
> > Activity calls remote function in service over AIDL-thing ... ...
> > Service loads current data from sqlite DB.
> > Service starts thread and does some work.
> > Service saves the new state into the sqlite DB.
> > Work-Thread on Service is done.
> > now : Service sends a notice back to the Activity telling the activity
> > the operation has completed.
> > This is either done by a callback if the Activity is still up or with
> > the  Notification-functionality ( the little icon thing on top of the
> > screen ), if the activity is down.
> > ( note: when the activity goes down, the service learns of that fact.
> > so when the work-thread is done, I know about the state of the
> > Activity ).
>
> > now my question: Since the communication between my service and my
> > activity ( in either direction) is pretty simple ( just function
> > calls, no other data submitted), I was wondering if I could do the
> > thing simply by sending intents back and forth. I know how to send
> > intents from the Activity to the Service ( startService() ), but how
> > do I send intends the other way?
> > With  sendBroadcast(Intent intent)  from the Context - class?
> > I feel like if I could just send Intents back and forth it would make
> > things easier..
>
> > Or am I under a wrong impression here?
>
> > Any comments appreciated!
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Need help in running the android junit test case for andriod APIDemo in eclipse

2009-01-29 Thread Diego Torres Milano

This may help you 
http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html


On Jan 29, 1:55 am, "ying...@gmail.com"  wrote:
> Hi,
>
> I am trying to run Junit test case for the android APIDemo project
> under eclipse.
>
> I create an eclipse project from the APIDemo source, it compiles fine
> and then I did:
> 1. Debug->Run as Junit tests
>
> But I get this error:
> 'Lanuching AllTests' has encountered a problem.
> Cannot connect to VM.
>
> And I find this in the .log file in eclipse:
> !ENTRY org.eclipse.core.net 1 0 2009-01-28 15:03:52.799
> !MESSAGE System property http.nonProxyHosts has been set to
> local|*.local|169.25
> 4/16|*.169.254/16 by an external source. This value will be
> overwritten
> using th
> e values from the preferences
>
> !ENTRY org.eclipse.jdt.launching 4 120 2009-01-28 15:04:03.269
> !MESSAGE Cannot connect to VM
> !STACK 0
> java.net.SocketException: Socket closed
>         at java.net.PlainSocketImpl.socketAccept(Native Method)
>         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>         at java.net.ServerSocket.implAccept(ServerSocket.java:450)
>         at java.net.ServerSocket.accept(ServerSocket.java:421)
>         at
> org.eclipse.jdi.internal.connect.SocketTransportService.accept(Socket
> TransportService.java:95)
>         at
> org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTra
> nsportImpl.java:56)
>         at
> org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(
> SocketListeningConnectorImpl.java:135)
>         at
> org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable
> run(StandardVMDebugger.java:107)
>         at java.lang.Thread.run(Thread.java:613)
>
> !ENTRY org.eclipse.jdt.launching 4 120 2009-01-28 15:23:53.932
> !MESSAGE Cannot connect to VM
> !STACK 0
> java.net.SocketException: Socket closed
>         at java.net.PlainSocketImpl.socketAccept(Native Method)
>         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
>         at java.net.ServerSocket.implAccept(ServerSocket.java:450)
>         at java.net.ServerSocket.accept(ServerSocket.java:421)
>         at
> org.eclipse.jdi.internal.connect.SocketTransportService.accept(Socket
> TransportService.java:95)
>         at
> org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTra
> nsportImpl.java:56)
>         at
> org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(
> SocketListeningConnectorImpl.java:135)
>         at
> org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable
> run(StandardVMDebugger.java:107)
>         at java.lang.Thread.run(Thread.java:613)
>
> Thank you for any help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Putting App for Testing on My Dev Phone

2009-01-29 Thread Faber Fedor
On Thu, Jan 29, 2009 at 4:13 PM, John Miller-George <
john.l.millergeo...@gmail.com> wrote:

>
> 2) Is there a way to push my app onto my developer phone without using
> Android Market?


Yep.  Just plug it into your desktop and run your app!


> If so, would somebody please point this newbie to the
> HOW-TO?


http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware


-- 

Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com

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



[android-developers] Re: Want to have amr file still getting 3gp

2009-01-29 Thread AlexeyMot

The recorder uses MediaRecorder.setOutputFormat
(MediaRecorder.OutputFormat.THREE_GPP).

On Jan 29, 11:45 pm, "hmmm"  wrote:
> Hi,
>
> I want to record and AMR file using the standard Sound Recorder application. 
> So I use Intent.ACTION_GET_CONTENT_TYPE and use Intent.setType("audio/amr").
> I can see then that the Sound Recorder does create a MediaStore entry and 
> does create a file with the AMR extension.
> So then I get this file using adb pull. And I open this file and I see it's a 
> 3gp file, not an AMR file.
> I open it in a text editor and see 3gp signature in there.
> So then, even though I specify audio/amr mime type Android still creates a 
> 3gp file. Why so?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Sending a message from Service to Activity

2009-01-29 Thread Dianne Hackborn
On Thu, Jan 29, 2009 at 3:07 PM, Noonien Soong
wrote:

> "...and give it to the service."  - How do I "give it to the
> service?".
> with intent.putExtra ? Since PendingIntent is a Parcelable?


Yes the normal ways you would talk with a service -- you can put it in the
Intent if you are starting it, or you can pass it through a call in its
interface if you are binding.


> > (4) Easiest way: if your service and activity is running in the same
> process
> > (I would expect this to be the common case), then follow the local
> service
> > API demo where you can just directly call each other.  Or have a global
> > pointing to your activity while it is running that the service looks at,
> > etc.
> A global ? As in "a global variable in the Application object?" I
> somehow felt that was bad practice.


It's a convenient short-cut.  If you are philosophically opposed to such
things you can go the more formal route and make things harder on yourself.
:)

-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Maps and API Demos

2009-01-29 Thread Koffi

How do I get Maps and API Demos back in Cupcake?
Is there a different way to push data onto an emulated sd card
I use adb push  /sdcard/ but it is not putting
data on the card it gives me like a help screen will all the available
variation of "adb" when i use it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Maps and API Demos

2009-01-29 Thread Jean-Baptiste Queru

Questions about working with cupcake (from which there currently
exists no official SDK) should be on the android-platform mailing
list.

Anyway, the answer is "you can't".

JBQ

On Thu, Jan 29, 2009 at 3:35 PM, Koffi  wrote:
>
> How do I get Maps and API Demos back in Cupcake?
> Is there a different way to push data onto an emulated sd card
> I use adb push  /sdcard/ but it is not putting
> data on the card it gives me like a help screen will all the available
> variation of "adb" when i use it.
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

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