[android-developers] Re: Scan wireless networks periodically

2010-05-27 Thread ionel
Hi,

Use alarms

On May 26, 8:06 pm, Charly  wrote:
> Hi,
>
> I'm developing sort of a wireless scanner, so I need to scan every X
> seconds.
>
> I know I should use WifiManager and startScan() to get the networks
> and then register a receiver to receive the event once the scan has
> finished. However I'm having problems when trying to figure out how to
> scan periodically. It's more like a design problem.
>
> My solution so far has been to create a Service which takes care of
> the scanning, besides the main Activity. I think this is correct. So
> how could I tell this Service to scan every X seconds? I've thought it
> may have a Thread object, call its Scan method during tart_services()
> and then take it to sleep. Also I thought I could just get rid of the
> Service and run the Thread from the main Activity, but then I guess it
> would die whenever the Activity is not visible. None of then seem like
> a really good solution to me, and I think there must be an easier way
> to do this.
>
> Could anyone help me please?
>
> Thanks in advance.

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


[android-developers] Re: FYI EVO/Incredible ADB How-To

2010-05-27 Thread schwiz
you can just say use existing driver and pick android phone and then
adb in windows 7

On May 28, 1:36 am, Ted Chien  wrote:
> Check the SD card that comes with your EVO. There should be a "HTC
> Sync" folder for you to install the HTC Sync program and the USB
> driver.
>
> Ted
>
> On 5月28日, 上午6時27分, Art  wrote:
>
>
>
> > unsuccessful too. windows vista can't find a device driver for my evo.
> > eclipse tells me that i have the r3 usb driver package and i updated
> > my android_winusb.inf with the htc entries.
>
> > any suggestions?
>
> > thanks!
>
> > On May 27, 10:29 am, brianl  wrote:
>
> > > Tried your mod using the latest release r06, but was unsuccessful.
> > > Updated the android_winusb.inf file in both places, adb kill-server,
> > > adb start-server, adb devices, noEvo.  Restarted Windows, still noEvo.   
> > > Assume this should work w/ the latest release, and that I don't
> > > have to go back to r03.
>
> > > Any ideas?
>
> > > thanks!
>
> > > On May 21, 1:48 pm, Robert Green  wrote:
>
> > > > You need the r3 ADB driver and then you need to add this to the
> > > > android_winusb.inf to support these two devices:
>
> > > > ;
> > > > ;HTC Incredible
> > > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> > > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> > > > ;
> > > > ;HTCEVO
> > > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> > > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> > > > Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> > > > and your ADB Composite Device driver should install for both phones.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] official twitter app source

2010-05-27 Thread schwiz
I can't wait much longer the anticipation is killing me :)
Discuss

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

2010-05-27 Thread Ted Chien
Check the SD card that comes with your EVO. There should be a "HTC
Sync" folder for you to install the HTC Sync program and the USB
driver.

Ted


On 5月28日, 上午6時27分, Art  wrote:
> unsuccessful too. windows vista can't find a device driver for my evo.
> eclipse tells me that i have the r3 usb driver package and i updated
> my android_winusb.inf with the htc entries.
>
> any suggestions?
>
> thanks!
>
> On May 27, 10:29 am, brianl  wrote:
>
>
>
> > Tried your mod using the latest release r06, but was unsuccessful.
> > Updated the android_winusb.inf file in both places, adb kill-server,
> > adb start-server, adb devices, noEvo.  Restarted Windows, still noEvo.   
> > Assume this should work w/ the latest release, and that I don't
> > have to go back to r03.
>
> > Any ideas?
>
> > thanks!
>
> > On May 21, 1:48 pm, Robert Green  wrote:
>
> > > You need the r3 ADB driver and then you need to add this to the
> > > android_winusb.inf to support these two devices:
>
> > > ;
> > > ;HTC Incredible
> > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> > > ;
> > > ;HTCEVO
> > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> > > Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> > > and your ADB Composite Device driver should install for both phones.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Cannot Write file into SDCard

2010-05-27 Thread Indrajit Kumar

Try it with new API-8 and sdk r6
I think you will get your solution.



tOn 5/28/2010 11:17 AM, TreKing wrote:
On Thu, May 27, 2010 at 3:29 AM, jp > wrote:


It says that the parent directory of file does not exist:
data2/abc.text


OK, really, come on now. I don't think this can be any clearer ... if 
the parent directory doesn't exist ... maybe try creating the parent 
directory?


Directories are not created automatically for you, so if you want a 
file like "directory/file.ext" you have to make sure to create 
"directory" first, if it doesn't already exist.


-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
Technology never Ends, Learn Fast...

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

[android-developers] Re: How to go back from 2.2 to 2.1update (ERE27) on nexus one

2010-05-27 Thread Zsolt Vasvari
The two that I found and effected me:

- Can no longer play back .wav files, which is how Vonage sends me
voice mails.

- The photo of my most important contact has disappeared and even a
resync doesn't get it back.  In effect my phone's contact and the
cloud contact is out of sync.

Then there is the issue of text entry's strange behavior.  I have a
hard time typing this as
the scrolling is screwy and the text is scrolled out of the screen as
I type.


On May 28, 1:53 pm, Mark Carter  wrote:
> I would be interested to know which bugs you've found, please!
>
> On 28 May 2010 01:13, Zsolt Vasvari  wrote:
>
>
>
>
>
> > > I'm running the one downloaded from google's servers and it seems to
> > > be running fine... (I also thought it was official at the time)
>
> > Right, I got them off the Google server as well.  Of course that
> > gurantee that it's the same as the OTA, but seems official enough.
>
> > It runs fine for the most part, but there are a couple of bugs I
> > discovered that effect me.  Not a huge deal.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Skinning in Android

2010-05-27 Thread Ted Chien
You can skin your own applications using Styles and Themes:

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

If you are trying to skin the whole UI look and feel of the device
(not just your own applications), you need to root your device and
build your own rom for it.

Regards,
Ted Chien
--
http://www.linkedin.com/in/htchien


On 5月28日, 下午1時33分, subrat kumar panda 
wrote:
> Hello all,
> How to create user interface using skinning in android
>
> i don't know anything about skinning & also
> i am not found any document .
>
> anybody knows about the skinning will be appreciated.
>
> Thanks in advance,
>
> Best Regards
> Subrat Kumar Panda.
> India

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


[android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )

2010-05-27 Thread Ted Chien
Check the "HTC Sync" folder in the SD card that comes with your
Legend, install the HTC Sync program, then you will get the USB driver
installed in your system.

Ted


On 4月10日, 下午7時31分, ThomasWrobel  wrote:
> Just got a HTC Legend and am very keen to get into Android development
> (having previously been expirenced with eclipse/java/gwt).
>
> However, the USB ADB driver on the SDK doesnt support it, so I
> wondered how I could add it myself.
>
> I feebly tried adding;
>
> ; HTC Legend
> %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C01
> %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C97&MI_01
> %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF
>
> to the inf file. But it didnt help. (mainly because I have no clue
> what I was doing)
>
> Any help to get my Legend working as a debug device would be most
> appriciated! :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )

2010-05-27 Thread Ted Chien
I wonder why you would do it by yourself.

Check the SD card that comes with your Legend, you should be able to
find an installer program under the "HTC Sync" folder. Install the HTC
Sync program and it will also install the USB driver for all HTC
Android devices.

Regards,
Ted


On 4月10日, 下午7時31分, ThomasWrobel  wrote:
> Just got a HTC Legend and am very keen to get into Android development
> (having previously been expirenced with eclipse/java/gwt).
>
> However, the USB ADB driver on the SDK doesnt support it, so I
> wondered how I could add it myself.
>
> I feebly tried adding;
>
> ; HTC Legend
> %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C01
> %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C97&MI_01
> %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF
>
> to the inf file. But it didnt help. (mainly because I have no clue
> what I was doing)
>
> Any help to get my Legend working as a debug device would be most
> appriciated! :)

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

2010-05-27 Thread KK
I am calling it because the documentation tells so.

public void onPause ()

Since: API Level 3
Inform the view that the activity is paused. The owner of this view
must call this method when the activity is paused. Calling this method
will pause the rendering thread. Must not be called before a renderer
has been set.


If i don't call this the OpenGL rendering thread will keep on giving
the onDrawFrame calls.

regards
KK

On May 26, 11:06 pm, Indicator Veritatis  wrote:
> The first thing that pops out as odd, possibly related to your
> problem, is that as you describe it, you are callingonPause() and
> onResume() yourself. These are meant to be called by the system, not
> the API user (you). Are you really calling these yourself? If so, why?
>
> On May 26, 6:25 am, KK  wrote:
>
>
>
> > I am using OpenGL to do some rendering and whenever my rendering gets
> > paused I callonPauseofGLSurfaceViewand later when I resume
> > onResume ofGLSurfaceView. This was working fine till I upgraded my
> > Nexus One to Froyo today. After that the thread callingonPauseseems
> > to be blocked in that API. Anyone has any idea why this is happening?
> > Is there anything I need to change for this to work on Froyo?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 get the soft keyboard input with out edit text?

2010-05-27 Thread davidrobin
Thanks.
I am now using EditText to receive the result.
But how can I know the "final" string?
I mean, I can get the string each time when user click the soft
keyboard.
I want to know the final click on "Done" key.

On 5月27日, 下午11时09分, Mark Murphy  wrote:
> davidrobin wrote:
> > All I want is the final result of the input string.
>
> There is no "input string" without an EditText. At most, with onKeyUp()
> you might get individual key events (haven't tried that myself).
>
> If you want an input string, put an EditText in your layout.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 2.x Programming Books:http://commonsware.com/books

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


Re: [android-developers] Re: How to go back from 2.2 to 2.1update (ERE27) on nexus one

2010-05-27 Thread Mark Carter
I would be interested to know which bugs you've found, please!

On 28 May 2010 01:13, Zsolt Vasvari  wrote:

>
> > I'm running the one downloaded from google's servers and it seems to
> > be running fine... (I also thought it was official at the time)
>
> Right, I got them off the Google server as well.  Of course that
> gurantee that it's the same as the OTA, but seems official enough.
>
> It runs fine for the most part, but there are a couple of bugs I
> discovered that effect me.  Not a huge deal.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Cannot Write file into SDCard

2010-05-27 Thread TreKing
On Thu, May 27, 2010 at 3:29 AM, jp  wrote:

> It says that the parent directory of file does not exist: data2/abc.text
>

OK, really, come on now. I don't think this can be any clearer ... if the
parent directory doesn't exist ... maybe try creating the parent directory?

Directories are not created automatically for you, so if you want a file
like "directory/file.ext" you have to make sure to create "directory" first,
if it doesn't already exist.

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

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

[android-developers] Re: Cannot Write file into SDCard

2010-05-27 Thread Vinay S
Hi,

Try adding this code before you open the file

File root = Environment.getExternalStorageDirectory();
if (root.canWrite()){
gpxFilePath = new File(root, "abcd.txt");


}

-Vinay

On May 27, 1:29 pm, jp  wrote:
> Hi fellow developers, i'm having this issue of not being able write
> text file into the SDCard.
> I'm running the program through eclipse on a HTC magic version 2.1.
> i had the USB cable unplugged before i run the program.
> It says that the parent directory of file does not exist: data2/
> abc.text
>
> Can any1 help me on this, thanks in advance
>
> The button that trigger the saving
>
> btnSave.setOnClickListener(new View.OnClickListener() {
>
>                 public void onClick(View v) {
>                         try {
>
>                                    boolean success = (new
> File("data2")).mkdir();
>                                     if (success) {
>
>                                         Toast.makeText(Test.this,
> "Success", Toast.LENGTH_SHORT).show();
>
>                                     }
>
>                                 File gpxfile = new File("data2/
> abc.txt");
>
>                                 if(!gpxfile.exists()){
>                                         gpxfile.createNewFile();
>
>                                 FileWriter gpxwriter = new
> FileWriter(gpxfile);
>                                 BufferedWriter out = new
> BufferedWriter(gpxwriter);
>                                 out.write("b");
>                                 out.close();
>                                 Toast.makeText(Test.this, "Success2",
> Toast.LENGTH_SHORT).show();
>                                 }
>                         }
>                         catch (IOException e) {
>                                 Toast.makeText(Test.this, e+"",
> Toast.LENGTH_SHORT).show();
>                                 }
>                 }
>
>         });
>         }
>
> i did add this permission in the manifest file
>
>   android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

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

2010-05-27 Thread String
On May 28, 2:16 am, guich  wrote:

> When the alarm is dismissed, my app receive the events onClose and
> onDestroy.

Any time your activity isn't in the foreground, it may be removed from
the stack if the system thinks it needs the resources. This is a
normal part of the activity lifecycle, and I doubt that Alarm Clock is
doing anything different than any other app which might take the
foreground focus away from yours.

> I already saw other apps that survive after the alarm is triggered.

If their activities use fewer resources than yours - or if the system
has more free at the time - they may be less likely to be destroyed.
But the lesson is that you need to save state whenever your activity
loses focus, because there's no guarantee that focus will return
anytime soon.

String

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


[android-developers] Re: Scan wireless networks periodically

2010-05-27 Thread Vinay S
Hi,

Look at timers...

-Vinay

On May 26, 10:06 pm, Charly  wrote:
> Hi,
>
> I'm developing sort of a wireless scanner, so I need to scan every X
> seconds.
>
> I know I should use WifiManager and startScan() to get the networks
> and then register a receiver to receive the event once the scan has
> finished. However I'm having problems when trying to figure out how to
> scan periodically. It's more like a design problem.
>
> My solution so far has been to create a Service which takes care of
> the scanning, besides the main Activity. I think this is correct. So
> how could I tell this Service to scan every X seconds? I've thought it
> may have a Thread object, call its Scan method during tart_services()
> and then take it to sleep. Also I thought I could just get rid of the
> Service and run the Thread from the main Activity, but then I guess it
> would die whenever the Activity is not visible. None of then seem like
> a really good solution to me, and I think there must be an easier way
> to do this.
>
> Could anyone help me please?
>
> Thanks in advance.

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


[android-developers] VideoMemo: long file path cannot work

2010-05-27 Thread Magic
Hello,

I have an issue about the video playback.

If the file path is long, e.g
  mVideoView.setVideoPath("/data/data/com.ctt.android.epop/content/
test.3gp");
the video cannot be palyed.

While,if the path is shorter, e.g
 mVideoView.setVideoPath("/data/data/com.ctt.android.epop/test.3gp");
It is played well.

This issue is confirmed on Platform 2.0 simulator and Magic H/W.

Would you please provide some idea about this problem?
Thanks a lot.

Br,

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


[android-developers] Re: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )

2010-05-27 Thread K.L
How can I get the PID of SingleAdbInterface and
SingleBootLoaderInterface.

I got the two PIDs of android phone are

USB\VID_0BB4&PID_0FF9
USB\VID_0BB4&PID_0FF9&REV_0100

My PC can recognize the 'android phone' device now, but 'android adb
interface' under it got "Code 10" from device manager.



On Apr 15, 8:13 pm, ThomasWrobel  wrote:
> I just got an email from someone that said they got it working and
> very helpfully explained how;
>
> " Using your post, I got it working using the following:
>
> ;HTCLegend
> %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C97
> %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C97&MI_01
>
> Under the x86 section of the inf file.  You needed to change the PID
> to match thelegend."
>
> I cant test at the moment, but hope this helps people!
>
> On 14 apr, 23:10, Anders Widen  wrote:
>
>
>
>
>
>
>
> > I need the same thing, how do I modify the drivers to work withLegend.
> > I really need the hardware support to do Bluetooth.
>
> > On 10 Apr, 13:31, ThomasWrobel  wrote:
>
> > > Just got a HTCLegendand am very keen to get into Android development
> > > (having previously been expirenced with eclipse/java/gwt).
>
> > > However, the USB ADB driver on the SDK doesnt support it, so I
> > > wondered how I could add it myself.
>
> > > I feebly tried adding;
>
> > > ; HTCLegend
> > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C01
> > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C97&MI_01
> > > %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF
>
> > > to the inf file. But it didnt help. (mainly because I have no clue
> > > what I was doing)
>
> > > Any help to get myLegendworking as a debug device would be most
> > > appriciated! :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 the difference between code 'setContentView.(R.layout.main_layout);' and 'setContentView(R.layout.main_layout);'

2010-05-27 Thread Dixi
incorrect : setContentView.(R.layout.main_layout); in this .(dot) is a
mistake after setContentView

correct : setContentView(R.layout.main_layout);

On May 26, 10:00 pm, Oddin  wrote:
> On the android developer 
> page:http://developer.android.com/guide/topics/ui/declaring-layout.html
> Paragraph: Load the XML Resource
> is written such code to setup the layout from xml: setContentView.
> (R.layout.main_layout);
>
> So my question is: Is this extra . after setContentView is a mistake
> or it is a valid code, so if it is valid what the difference between :
>
> setContentView.(R.layout.main_layout);
> and
> setContentView(R.layout.main_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] Can I use the return matrix of getrotationmatrix() to translate the accelerate to world coordinate system

2010-05-27 Thread Saka
Hi everyone:
   I wanna translate the return values of Sensor.TYPE_ACCELEROMETER to
the world coordinate system,I did this in this way:

public void onSensorChanged(SensorEvent event) {

if (event.accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE)
return;

switch (event.sensor.getType()) {
case Sensor.TYPE_MAGNETIC_FIELD:
mags = event.values.clone();
break;
case Sensor.TYPE_ACCELEROMETER:
accels = event.values.clone();
break;
case Sensor.TYPE_ORIENTATION:
orent = event.values.clone();
break;
}

if (mags != null && accels != null) {
SensorManager.getRotationMatrix(inR, I, accels, mags);
for(int k=0;k<3;k++) {
a[0] = 
accels[0]*inR[0]+accels[1]*inR[1]+accels[2]*inR[2];//ax
a[1] = 
accels[0]*inR[3]+accels[1]*inR[4]+accels[2]*inR[5];//ay
a[2] = 
accels[0]*inR[6]+accels[1]*inR[7]+accels[2]*inR[8];//az

}

But I find I move the phone in any direction the ax and ay will all be
0,and the az is some value I can't understand, so is any body meet the
same problem,or the return matrix of the getrotationmatrix() is really
inaccurate when there is another accelerate besides g(gravity) so I
can translate the accelerate in this way.

any help will be very appreciated.

Saka

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: HTC desire couldn't connect to bluetooth device.

2010-05-27 Thread b2220333
I have succeeded in run bluetooth SPP in htc desire.
What the problem I overcome is I forget to change uuid in bluetooth
chat program.
Maybe you can try that,good luck~

On 5月26日, 下午2時13分, atlee  wrote:
> Hello,
> I have a application which connects to the paired bluetooth device. My
> application works fine on motorola milestone. But it's not working on
> HTC desire while connecting to paired bluetooth device.
> I have checked the logs then i found the SIM access uuid
> (112D--1000-8000-00805F9B34FB) which i pass get changed
> according to BT sniffer log which is as folloows
> 0x2d, 0x11, 0x11, 0x2d, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00,
> 0x80, 0x5f, 0x9b, 0x34, 0xfb
> so how can i resolved this problem.
> Is it a firmware issue of HTC desire? Can i upgrade the firmware with
> latest firmware version?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: USB drivers for HTC Legend ? (or, how to add your own to android_winusb.inf )

2010-05-27 Thread K.L
Where can I get the PIDs of SingleAdbInterface &
SingleBootLoaderInterface?

I got two in device manager

VID_0BB4&PID_0FF9
VID_0BB4&PID_0FF9&REV_0100.

The pc can recognize the 'Android Phone" now, but the "Android ADB
Interface" which under it was got "Code 10" from device manager.




On Apr 10, 7:31 pm, ThomasWrobel  wrote:
> Just got a HTCLegendand am very keen to get into Android development
> (having previously been expirenced with eclipse/java/gwt).
>
> However, the USB ADB driver on the SDK doesnt support it, so I
> wondered how I could add it myself.
>
> I feebly tried adding;
>
> ; HTCLegend
> %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C01
> %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C97&MI_01
> %SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF
>
> to the inf file. But it didnt help. (mainly because I have no clue
> what I was doing)
>
> Any help to get myLegendworking as a debug device would be most
> appriciated! :)

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


[android-developers] API call from browser

2010-05-27 Thread Rajnikant
Hi All,

I have list key note speech on launch of Android 2.2,

I want to try with few of its features, specifically making API call
from Browser.

Can somebody tell me, what could be the approach to make API call from
Browser?

any good ref. will be appreciated.

Thanks,
Rajnikant

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


[android-developers] Skinning in Android

2010-05-27 Thread subrat kumar panda
Hello all,
How to create user interface using skinning in android

i don't know anything about skinning & also
i am not found any document .

anybody knows about the skinning will be appreciated.

Thanks in advance,

Best Regards
Subrat Kumar Panda.
India

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


[android-developers] Re: TelephonyManager.listen() additive? API docs unclear.

2010-05-27 Thread Vinay S
Hi,

Both the ways what have listed are right..

You get the same output.. :)

-vinay

On May 28, 1:02 am, goosedroid  wrote:
> If I register LISTEN_SERVICESTATE with listener "A" using
> TelephonyManager.listen(), and then later I need to additionally
> listen another event like LISTEN_CALL_STATE *using the same
> listener* ... do I need to:
>
> (1) unregister listener A with LISTEN_NONE and re-register with both
> LISTEN_ flags:
>
> TelephonyManager t = ...;
> PhoneStateListener l = ...;
>
> t.listen( l, LISTEN_SERVICESTATE);
> ...
> time goes by
> ...
> t.listen( l, LIST_NONE);
> t.listen( l, LISTEN_SERVICE_STATE | LISTEN_CALL_STATE)
>
> (2) simply call listen again with listener A, and the new flag.
> t.listen( l, LISTEN_SERVICESTATE);
> t.listen( l, LISTEN_CALL_STATE);
>
> In other words, is listen() additive if you pass in the same listener
> with different LISTEN_ flags? The documentation is not clear.

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


[android-developers] Videoplayer source code

2010-05-27 Thread Nilly
Hi,

Does any one has link or source code for videoplayer which plays video
using gstreamer?
I have got one videoplayer.apk application from embinux site but i
dont have source code for that.
I am facing some problems.

- Orientation is landscape, I want to change it. In forums people
suggest to change the androidmanifest.xml and build .apk again.
- sometimes video is not getting played as

W/ActivityManager(  754): Activity destroy timeout for
HistoryRecord{436d3790 {com.android.camera/
com.android.camera.MovieView}}
I/ActivityManager(  754): Starting activity: Intent
{ action=android.intent.action.VIEW data=content://media/external/
video/media/4 comp={com.android.camera/com.android.camera.MovieView} }
I/WindowManager(  754): Setting rotation to 1, animFlags=0
I/WindowManager(  754): Config changed: { scale=1.0 imsi=0/0
locale=en_US touch=1 key=2/1/2 nav=3 orien=1 }
D/StatusBar(  754): updateResources
W/WindowManager(  754): App freeze timeout expired.
W/WindowManager(  754): Force clearing freeze: AppWindowToken{436e0170
token=HistoryRecord{436a83f0 {com.android.camera/
com.android.camera.MovieView}}}
D/dalvikvm(  754): GC freed 976 objects / 45200 bytes in 67ms
W/ActivityManager(  754): Launch timeout has expired, giving up wake
lock!
W/ActivityManager(  754): Activity idle timeout for
HistoryRecord{436a83f0 {com.android.camera/
com.android.camera.MovieView}}
D/dalvikvm(  915): GC freed 684 objects / 41568 bytes in 45ms
D/dalvikvm(  850): GC freed 242 objects / 9024 bytes in 54ms


Kindly let me know your views.
- Niral

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


[android-developers] Re: Contact Visibility

2010-05-27 Thread michaely
The problem is that the contact itself does not have visibility. The
visibility is dependent on which group the contact is a member of. You
don't see the contact in your list because by default the contact
manager only wants to show the contacts in the "My Contacts" group. In
your example if you go to your contact manager and go to the display
options and choose "All other contacts" on your Google account you
will see the newly added contact. This option will display the
contacts in that account that do not have any group membership.

You need to query the Group ids via ContactsContract.Groups and insert
a group id when creating a contact via
ContactsContract.CommonDataKinds.GroupMembership.

On May 6, 2:37 pm, Surendra  wrote:
> I have a small application that tries to insert a contact in Android
> 2.0 and it needs to link with every account type that can sync. This
> part of the code works fine but then the contact does not show up in
> the contacts app. The in_visible_group is set to 0 in the database.
>
> How do I set this variable to 1 so that my contact is visible in the
> contacts app. The following is my code
>
>                 ArrayList op_list = new
> ArrayList();
>                 int rawContactInsertOperationBackRefIndex = 0;
>
>                 AccountManager am = AccountManager.get(context);
>                 Account[] accounts = am.getAccounts();
>
>                 if(accounts != null && accounts.length > 0) {
>                         for(int i = 0; i < accounts.length; i++) {
>                                 if(!accounts[i].name.contains(":")) {
>
>                                         Log.i(TAG, "Adding contact of name = 
> "+accounts[i].name+";
> type = "+accounts[i].type);
>                                 // insert null account information (Android 
> will find it)
>
> op_list.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)
>
>                                                        
> .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE,
> accounts[i].type)
>
>                                                        
> .withValue(ContactsContract.RawContacts.ACCOUNT_NAME,
> accounts[i].name)
>                                                                        
> .build());
>
>                                 // insert new contact display name
>
> op_list.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)
>
>                                                        
> .withValueBackReference(Data.RAW_CONTACT_ID,
> rawContactInsertOperationBackRefIndex)
>
>                                                        
> .withValue(Data.MIMETYPE,
> StructuredName.CONTENT_ITEM_TYPE)
>
>                                                        
> .withValue(StructuredPostal.TYPE,
> StructuredPostal.TYPE_HOME)
>
>                                                        
> .withValue(StructuredName.DISPLAY_NAME,
> name)
>
>                                                        
> .withValue(StructuredName.GIVEN_NAME,
> name)
>                                                                        
> .build());
>
>                                 // insert formatted postal address
>
> op_list.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)
>
>                                                        
> .withValueBackReference(Data.RAW_CONTACT_ID,
> rawContactInsertOperationBackRefIndex)
>
>                                                        
> .withValue(Data.MIMETYPE,
> StructuredPostal.CONTENT_ITEM_TYPE)
>
>                                                        
> .withValue(StructuredPostal.FORMATTED_ADDRESS,
> postalAddress)
>                                                                        
> .build());
>
>                                 rawContactInsertOperationBackRefIndex =
> rawContactInsertOperationBackRefIndex + 3;
>                                 }
>                         }
>                 }
>
>                 ContentProviderResult[] results =
> context.getContentResolver().applyBatch(ContactsContract.AUTHORITY,
> op_list);
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


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

2010-05-27 Thread Tomáš Hubálek
For my country there is no authorized processor. Because of Google's
approach we are criticizing here.

I would love to use Google's immediately.

I spent 350USD (phone and market entry fee) to start developing for Android
and I would like to get my investment back. I hoped Google will help me by
allowing to sell apps internationally.

But they don't... :-(

Tom

On May 28, 2010 2:17 AM, "Chi Kit Leung"  wrote:

For Point 5, I think you cannot submit any apps to android market with the
license key activation required as a free app.
The policy are restricted the developers to use their "authorize" payment
processor.

2010/5/26 Tomáš Hubálek 

> What makes me crazy about Amir's vision:
>
>
> >
> > 1) Not all applications as suitable for AdSupported business model. I
> > can't imagine how Home ...
>



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

-- 

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

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

2010-05-27 Thread John Gaby
I resolved the problem.  For anyone else who might run into this
issue, the answer is that your in your custom ViewGroup, you need to
ensure that the measureChildren method is called within your onMeasure
routine.  In addition, all of the child windows need to have a valid
ViewGroup.LayoutParams set which specify the correct with and height
of the control.  Without this, the TextView (and possibly other
controls) will not handle the alignment options correctly.

On May 27, 2:14 pm, John Gaby  wrote:
> I have a TextView control which is being placed in a custom ViewGroup
> which places the control at a certain position and size.  I want to
> center the text vertically within that control.  I am making the call:
>
> tv.setGravity(Gravity.CENTER_VERTICAL);
>
> but the text still remains aligned to the top of the TextView box
> (note that if I set it to be centered horizontally, that works).
>
> Now if I take that same TextView and simply set it as the main view
> (e.g. setContentView(tv)), the vertical centering works fine.  Is
> there something that my custom ViewGroup must do to get the vertical
> centering to work?
>
> Thanks.

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


Re: [android-developers] How to run CameraTests on Android?

2010-05-27 Thread Sachin Nikam
Nothing from command line.

On Device goto DevTools->Instrumentation.
There is a Tests for Camera Application.
Click on that it will start what it has to do :)



On Thu, May 27, 2010 at 5:28 PM, sachinikam  wrote:

> I have built CameraTests present in packages/apps/Camera/tests and
> installed CameraTests.apk on device.
> From adb shell tried running below command:
> adb shell am instrument -w com.android.camera.tests/
> com.android.camera.CameraStressTestRunner
>
> Got the following error:-
> android.util.AndroidException: INSTRUMENTATION_FAILED:
> com.android.camera.tests/com.android.camera.CameraStressTestRunner
> INSTRUMENTATION_STATUS: id=ActivityManagerService
> INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for:
> ComponentInfo{com.android.camera.tests/
> com.android.camera.CameraStressTestRunner}
> INSTRUMENTATION_STATUS_CODE: -1
>
> Can anybody help here?
>
> Regards,
> Sachin Nikam.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Have a nice time !!!

Cheers,
Sachin.

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

[android-developers] Alarm Clock quitting my application

2010-05-27 Thread guich
Hi folks,

I have an application that runs fine. However, if i set the alarm
clock's alarm, it happens this:

1. The alarm is triggered
2. My application gets dimmed and the clock appears on top of it
3. When i close the alarm, my application CLOSES TOO

When the alarm is dismissed, my app receive the events onClose and
onDestroy.

I already saw other apps that survive after the alarm is triggered.
Any clues of what may be wrong?

thanks

guich

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


[android-developers] Stanford researchers looking for a programmer in Silicon Valley to write code for two Android apps

2010-05-27 Thread Eric Hekler
Dear programmers,

Our group, led by Dr. Abby King of the Stanford Prevention Research
Center-School of Medicine and Dr. Banny Banerjee of the Stanford Design
Program, is looking to hire a programmer with experience developing for the
Android platform.  Specifically, we are looking for someone with experience
in Java, PHP, and SQL Database.

We are developing a mobile-phone based platform that passively monitors
individuals’ behaviors and promotes increased physical activity and
decreased sedentary behaviors.  We have already developed the conceptual
framework for two different intervention applications and have also created
a starting framework for gathering data from the built-in accelerometers of
Android-based phones.

*We are looking for a programmer to write the code for the
programs prototyped by the transdisciplinary team.*   The Android-based
applications include several elements: 1) background assessment of activity
(we can share code on what we’ve already developed for this); 2) live
wallpaper that is linked to a user’s behavior; and 3) a mixture of Push and
Pull interaction for providing feedback and increased interactivity between
the user and the application.  Our design team has already developed most of
the graphic artwork and we are developing flow diagrams and other general
instructions for a programmer to use to code.

All interested individuals should contact, Dr. Eric Hekler at
ehek...@stanford.edu (650-721-2516).  Please include your resume. Payment is
commensurate with experience.  We are looking to hire someone ASAP

-- 
Eric Hekler, Ph.D.
Post Doctoral Research Fellow
Stanford Prevention Research Center
Medical School Office Building: Mail Code 5411
251 Campus Drive
Stanford, CA 94305-5411
Office # (650) 721-2516
Fax:  650-725-6247
Email: ehek...@stanford.edu

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

[android-developers] Not able to place the custom view to dialog

2010-05-27 Thread Jeruliu
I'm suffering from this for a week, i was trying to use the famous
SeekBarPreference in a dialog - 
http://android.hlidskialf.com/blog/code/android-seekbar-preference

I copied the class from above link into my project.
Then created the xml as brightness.xml:


http://schemas.android.com/apk/res/
android"
 android:id="@+id/layout_root"
 android:orientation="horizontal"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:padding="10dp"
 >
   


Finally I try to integrate it as custom dialog:
Dialog dialog = new Dialog(mContext);

dialog.setContentView(R.layout.brightness);
dialog.setTitle("Custom Dialog");
dialog.show();

But always getting error: "Error inflating class
java.lang.reflect.Constructor" at this line

"http://groups.google.com/group/android-developers?hl=en


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

2010-05-27 Thread Chi Kit Leung
For Point 5, I think you cannot submit any apps to android market with the
license key activation required as a free app.
The policy are restricted the developers to use their "authorize" payment
processor.

2010/5/26 Tomáš Hubálek 

> What makes me crazy about Amir's vision:
>
> 1) Not all applications as suitable for AdSupported business model. I
> can't imagine how Home Screen widgets can be paid from Ads. There is
> too small space where to show ads that I believe it is impossible.
>
> 2) I can imagine applications where Ad Supported is most efficient way
> how to monetize your app via Ads - social networks, references,
> location based apps. Not many apps on AM can't use this business
> model.
>
> 3) According my friends revenue from Ads is currently very low. I can
> imagine that somebody pays one or two bucks for my widget but I can't
> imagine how many adds I have to display to get two bucks. How long
> time I have to wait until initial investment to Android Dev Phone and
> Android Market Entry fee returns back? And what is worse I have to buy
> another phone as my current Android Dev Phone 1 is currently
> antiquated and Froyo will probably never be at this phone.
>
> 4) In my country (Czech Republic) there is necessary additional
> bureaucracy to be AdSense member. Even if earn 1 USD per month I have
> to sign on as VAT payer with quarterly reports to government and quite
> complicated administrative. This is our local specific but it may be
> in other countries too. This is the reason that I can't even try
> AdSense in my app.
>
> 5) So only viable way how to monetize my apps is to develop
> alternative licencing method (licence keys paid via PayPal). This has
> disadvantages for both me and Google. I have to spend time on non
> productive work instead of improving my app. Every other developer has
> to reinvent similar wheel. Money transfer fees goes to PayPal instead
> of Google. There is no commission for Google. This business model may
> violate current (and future) application content guidelines. I have to
> solve somehow situation that Google prohibits this licencing model in
> future but I have to be fair to users that already paid. Etc.
>
> I hope that Google understands concerns mentioned here and they will
> open paid applications to the world.
>
> Tom
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

[android-developers] What is the default user agent string for Android 2.2 Froyo?

2010-05-27 Thread Darth
As the title suggests, can someone list it?
Thanks

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


[android-developers] Re: FYI EVO/Incredible ADB How-To

2010-05-27 Thread Art
I finally got it working! I learned to use Windows' Computer
Management to install the inf file.



On May 27, 3:52 pm, Robert Green  wrote:
> Did you try to force the driver for the device?  I've had to do that
> for a phone or two.
>
> On May 27, 12:29 pm, brianl  wrote:
>
>
>
> > Tried your mod using the latest release r06, but was unsuccessful.
> > Updated the android_winusb.inf file in both places, adb kill-server,
> > adb start-server, adb devices, noEvo.  Restarted Windows, still no
> >Evo.   Assume this should work w/ the latest release, and that I don't
> > have to go back to r03.
>
> > Any ideas?
>
> > thanks!
>
> > On May 21, 1:48 pm, Robert Green  wrote:
>
> > > You need the r3 ADB driver and then you need to add this to the
> > > android_winusb.inf to support these two devices:
>
> > > ;
> > > ;HTC Incredible
> > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> > > ;
> > > ;HTCEVO
> > > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> > > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> > > Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> > > and your ADB Composite Device driver should install for both phones.
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: FYI EVO/Incredible ADB How-To

2010-05-27 Thread Art
unsuccessful too. windows vista can't find a device driver for my evo.
eclipse tells me that i have the r3 usb driver package and i updated
my android_winusb.inf with the htc entries.

any suggestions?

thanks!


On May 27, 10:29 am, brianl  wrote:
> Tried your mod using the latest release r06, but was unsuccessful.
> Updated the android_winusb.inf file in both places, adb kill-server,
> adb start-server, adb devices, noEvo.  Restarted Windows, still noEvo.   
> Assume this should work w/ the latest release, and that I don't
> have to go back to r03.
>
> Any ideas?
>
> thanks!
>
> On May 21, 1:48 pm, Robert Green  wrote:
>
>
>
> > You need the r3 ADB driver and then you need to add this to the
> > android_winusb.inf to support these two devices:
>
> > ;
> > ;HTC Incredible
> > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> > ;
> > ;HTCEVO
> > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> > Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> > and your ADB Composite Device driver should install for both phones.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: UnknownHostException

2010-05-27 Thread chaitanya
Yeh even I tried checking whether their is a problem with my
application, but even then the browser doesn't work. So there might be
an issue with the network

On Apr 25, 6:29 am, ls02  wrote:
> On Apr 24, 3:15 am, Bob Kerns  wrote:
>
> > Things to look at:
>
> > 1) What DNS servers are used by the phones, vs the PC's you're
> > comparing with?
>
> The same DNS server is used by both phones and PC/Macs as they are all
> on the same corporate WiFi network.
>
>
>
> > 2) Do all the DNS servers on the list work equally well?
>
> Again, all clients (PCs/Macs/iTabs/various smarphones and other WiFi
> devices) use the same WiFi network.
>
> > 3) Is the wifi connection flaky? This will often show up as DNS
> > failures, since DNS lookups are typically the first bit of network
> > activity an application does.
>
> I cannot speak for that. I have not heard about complains that people
> cannot access any network resources over WiFi.
>
> > 4) Are the phones sometimes disconnecting from the WiFi network
> > entirely, and going over the phone network instead? This would
> > normally work OK, except be slower, but a DNS lookup in the middle of
> > a switchover might fail.
>
> I don't thow this. We use regular HttpUrlConnection class for all
> network calls on Android. I don't know if there are cases when the
> call goes over 3G network.
>
> One thinbg I wan to stress that killing and then restarting the app
> ussually clears this state and network calls start working again.
>
>
>
>
>
> > On Apr 23, 8:50 am, ls02  wrote:
>
> > > I am not using emulator. I am using real Android phones and many types
> > > of them. The problem happens both in debug mode and in real mode with
> > > phone not connected to computer.
>
> > > On Apr 23, 11:45 am, Kumar Bibek  wrote:
>
> > > > This is an intermittent problem. Restarting the emulator would
> > > > normally solve this. My best guess would be your abd server is not
> > > > functioning properly.
>
> > > > Thanks and Regards,
> > > > Kumar Bibek
>
> > > > On Apr 23, 7:42 pm, Sebastian  wrote:
>
> > > > > I have the same problem. Im running an app in the emulator or on my G1
> > > > > device and sometimes there is an UnknowHostException thrown. But if i
> > > > > check if the host is available (for example over ping) then there is
> > > > > no problem.
>
> > > > > The app is also working correctly, if I close the emular and/or
> > > > > eclipse an restart the app. Then i works well again.
>
> > > > > On 23 Apr., 15:08, ls02  wrote:
>
> > > > > > The app is running on different Android devices and all of them
> > > > > > exhibit this issue. It has nothing to do with network as I said I 
> > > > > > can
> > > > > > successfully excute the same network call on the same network from 
> > > > > > PC
> > > > > > or Mac.
>
> > > > > > On Apr 23, 8:15 am, Kumar Bibek  wrote:
>
> > > > > > > Well, if it happens sometimes, then your network has a problem. 
> > > > > > > When
> > > > > > > it happens, just to make sure that other apps also are affected by
> > > > > > > this, just open some page on the browser. You will be then sure 
> > > > > > > that
> > > > > > > this is not affecting your app only, but the emulator or the 
> > > > > > > network
> > > > > > > has a problem.
>
> > > > > > > Thanks and Regards,
> > > > > > > Kumar Bibek
>
> > > > > > > On Apr 23, 5:07 pm, ls02  wrote:
>
> > > > > > > > From time to time I get java.net.UnknownHostException when 
> > > > > > > > calling
> > > > > > > > HttpURLConnection.connect. Obviously the server does exist and 
> > > > > > > > I can
> > > > > > > > successfully execute the same URL on my PC browser. The problem 
> > > > > > > > does
> > > > > > > > not happen always, only sometimes. But if it does happen 
> > > > > > > > ussually I
> > > > > > > > need to restart the app so that I can connect to server again. I
> > > > > > > > specify host name not IP address, I cannot use IP address.
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the 
> > > > > > > > Google
> > > > > > > > Groups "Android Developers" group.
> > > > > > > > To post to this group, send email to 
> > > > > > > > android-developers@googlegroups.com
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > android-developers+unsubscr...@googlegroups.com
> > > > > > > > For more options, visit this group 
> > > > > > > > athttp://groups.google.com/group/android-developers?hl=en
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the Google
> > > > > > > Groups "Android Developers" group.
> > > > > > > To post to this group, send email to 
> > > > > > > android-developers@googlegroups.com
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > android-developers+unsubscr...@googlegroups.com
> > > > > > > For more options, visit this group 
> > > > > > > athttp://groups.google.com/group/android-developers?hl=en
>
> > > > > > --
> > > > > > You received this message b

[android-developers] MediaPlayer provides wrong duration on audio streaming

2010-05-27 Thread Demian Alonso
Hi everyone,
  I am having the following problem: I am using Android's MediaPlayer to
play an mp3 through an HTTP connection. The audio is played correctly, but
the MediaPlayer returns an incorrect duration (calling
mediaPlayer.getDuration() ). Depending on the mp3 the duration is either
shorter or longer.

  The code that plays the audio is the following:

mediaPlayer = new MediaPlayer();
mediaPlayer.setOnCompletionListener(this);
mediaPlayer.setOnErrorListener(this);
mediaPlayer.setOnPreparedListener(this);
mediaPlayer.setOnBufferingUpdateListener(this);
mediaPlayer.setDataSource("a valid URL");
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mediaPlayer.prepareAsync();


  The strange part is that I can reproduce the problem using the default
android's music player. If I access the file directly with Android's
browser, a simple music player opens up and it show the same wrong duration.
If I copy the mp3 directly to the phone and play it directly from there,
then it shows the correct duration.

  The server returns this response:

HTTP/1.1 200 OK
Date:  Thu, 27 May 2010 20:59:48 GMT
Content-Type: audio/mpeg
Server: aa
Content-Encoding: gzip
Transfer-Encoding: chunked


  Does anyone has a similar problem? Or can anyone give me a clue about what
I might be missing to add so the MediaPlayer can fetch the correct duration?

  Thanks in advance :)

-- 
Demian P. Alonso (demianalo...@gmail.com)
-- A conclusion is simply the place where someone got tired of thinking.

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

Re: [android-developers] Re: How do I attach onItemClickListener to this?

2010-05-27 Thread Mark Murphy
Matt wrote:
> Additionally I call from my activity like this.  I have tried
> overriding onClickListener from both my activity and from the
> SeparatedListAdapter class up top with no success.

You don't override onClickListener. In fact, you can't @Override
onClickListener, as there is no such method.

If you were implementing a ListActivity, you could override
onListItemClick().

Otherwise, you call setOnItemClickListener() on the ListView, supplying
it with a listener object.

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

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

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


Re: [android-developers] eglmakecurrent() is return false. when porting hadware.

2010-05-27 Thread Leigh McRae
Check all of your egl functions for errors when creating your context 
and surface.  I know on the Milestone that the eglChooseConfig function 
is broken and you will have enum the configs and choose one yourself.  I 
wrote some code that is a loop that does a best choice selection and 
marks configs that don't work.


Leigh

On 5/25/2010 10:22 AM, graphics_beginer wrote:

Ask to be excused ,  can't speak english very well. 

i don't know why eglmakecurrent() is return false.

operating emulator is no problem.
when on hardware, eglmakecurrent() is return false.


i guess
   

getHolder().setType(SurfaceHolder.SURFACE_TYPE_GPU);
 

is problem.



but i'm not find solutionfor 7 days.T.T


help me plz .

   


--
Leigh McRae
www.lonedwarfgames.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 do I attach onItemClickListener to this?

2010-05-27 Thread Matt
Additionally I call from my activity like this.  I have tried
overriding onClickListener from both my activity and from the
SeparatedListAdapter class up top with no success.


import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
//import android.widget.SimpleAdapter;

public class ListSample extends Activity {


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// create our list and custom adapter
Separated_List_Adapter adapter = new
Separated_List_Adapter(this);
adapter.addSection("Array test", new
ArrayAdapter(this,R.layout.list_item, new String[] { "First
item", "Item two" }));
adapter.addSection("Array test", new
ArrayAdapter(this,R.layout.list_item, new String[] { "First
item", "Item two" }));

ListView list = new ListView(this);
list.setAdapter(adapter);
this.setContentView(list);

   }

}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Where can I get an installable Froyo image for my Android Market Device Seeding Program Nexus One?

2010-05-27 Thread Zsolt Vasvari


On May 26, 6:15 pm, Al Sutton  wrote:
>  (and, for you, there will probably be a
> delay while Vodafone approve it).

I don't think the carrier has anything to with it since it's just a
stock phone without a carrier custimzation.

As far as the carrier "sees" it, it's just another bundle of data
traffic and won't and cannot stop it.  The same way as they cannot
stop you from installing an update to any app you downloaded from the
Market.

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


[android-developers] Re: How to get the history cache of android default browser

2010-05-27 Thread Zsolt Vasvari
My guess is if this is not exposed by a ContentProvider, you cannot.

On May 27, 5:55 am, Xiangyu Liu  wrote:
> Hi, I am just an Android beginner, I am trying to get all the
> histories of android default browser. Can anyone give me an example or
> steps on it?
>
> Thanks
>
> Xiangyu

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 go back from 2.2 to 2.1update (ERE27) on nexus one

2010-05-27 Thread Zsolt Vasvari

> I'm running the one downloaded from google's servers and it seems to
> be running fine... (I also thought it was official at the time)

Right, I got them off the Google server as well.  Of course that
gurantee that it's the same as the OTA, but seems official enough.

It runs fine for the most part, but there are a couple of bugs I
discovered that effect me.  Not a huge deal.

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


Re: [android-developers] Re: Strange behavior when launching app from Market

2010-05-27 Thread Mark Murphy
Rico Yao wrote:
> That app (Launchalot) is a launcher app (i.e. it just launches other
> apps).  I'm not saying that Launchalot doesn't have multiple instances
> of itself created if launched from the Market or notifications bar.  It
> probably does. 

Anyone who puts Launchalot on the Market should have their head examined.

:-)

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

_Android Programming Tutorials_ Version 2.0 Available!

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


Re: [android-developers] Re: Strange behavior when launching app from Market

2010-05-27 Thread Rico Yao
On Thu, May 27, 2010 at 2:43 PM, TreKing  wrote:

> On Thu, May 27, 2010 at 4:20 PM, Rico  wrote:
>
>> When you say "default", do you mean it's the default setting in the app
>> being launched, or the app that is launching?
>>
>
> Default behavior for the Android system. Unless otherwise specified via
> launch mode flags, different intents result in different instances of an
> Activity, AFAIK.
>
> I've played around with launcher code samples that others have posted,
>
> and they don't do that.  Example:
>
>
>> http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot/
>
>
> Don't do what? Result in different instances? I highly doubt you ran this
> from the Android Market or from the notification area, so how could you
> tell?
>

That app (Launchalot) is a launcher app (i.e. it just launches other apps).
 I'm not saying that Launchalot doesn't have multiple instances of itself
created if launched from the Market or notifications bar.  It probably does.
 What I'm saying is that when you launch apps through Launchalot, it doesn't
create multiple instances of the apps it's launching.  I was just trying to
point out that it should be possible for the Market to launch apps in the
same way as Launchalot same way and avoid this issue.


>
> I can see why the notification bar needs to behave differently from other
>> launch points, but it seems me that the Market should not behave this way.
>
>
> I don't know, I didn't make the Market app =P
>

Thanks. I wasn't specifically directing that at you.  Rather, I was hoping
someone else who knows about the Market app could comment.


>
> -
>
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Themes, Styles and Items [How to create skins for apps?]

2010-05-27 Thread Moto
example of declared Themes, note the changes in the pointing color...
How do I use this than so that my view points to the item
"colorListItemBottom"??



@color/color_semi_white




@color/color_semi_black



On May 27, 6:51 pm, Moto  wrote:
> I guess this is new topic... :(
>
> On May 27, 3:20 pm, Moto  wrote:
>
> > I'm currently trying to create skins for my app, and the simplest way
> > to do it, it seems is by creatingThemesfor each skin.  I'm getting
> > confused with how to use a specified item which points to a declared
> > color from my Theme to a particular shape I create via xml.
>
> > I hope I make sense...
>
> > Thanks for any help I can get!
> > -Moto
>
>

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


Re: [android-developers] I would like to ask some qu estions : 【About the process of app's activation】【Abou t the copy protection of Android Market】

2010-05-27 Thread TreKing
On Tue, May 25, 2010 at 3:13 AM, kazumi_umayahara wrote:

> Q1. Is it the problem as the specific of Android Market that multiple
> activation
>   occurs when the app is activated with above process?
>   If it's no problem, is the cause the app "ABC" which I downloaded?
> Q2. Is there any way to avoid the multiple activation in designing of
> apps?
>

See this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/c46cc62f6c2b73d8/5cf1de771978a1f8



> Now I release an app to Android Market with setting copy protection to"OFF". 
> But
> I want to update next version with setting copy protection to "ON".
>

Don't waste your time - I've never used it but based on all the posts on
these groups and the Market "Support" Forum, it'll cause you more problems
than it's really worth.


> Q3. Are these cases solved at present?
>

Nope.


> Q4. Is there any material about the copy protection of Android Market?
>

Not that I know of, besides searching Google of course.

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

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

[android-developers] Re: FYI EVO/Incredible ADB How-To

2010-05-27 Thread Robert Green
Did you try to force the driver for the device?  I've had to do that
for a phone or two.

On May 27, 12:29 pm, brianl  wrote:
> Tried your mod using the latest release r06, but was unsuccessful.
> Updated the android_winusb.inf file in both places, adb kill-server,
> adb start-server, adb devices, no Evo.  Restarted Windows, still no
> Evo.   Assume this should work w/ the latest release, and that I don't
> have to go back to r03.
>
> Any ideas?
>
> thanks!
>
> On May 21, 1:48 pm, Robert Green  wrote:
>
>
>
> > You need the r3 ADB driver and then you need to add this to the
> > android_winusb.inf to support these two devices:
>
> > ;
> > ;HTC Incredible
> > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> > ;
> > ;HTCEVO
> > %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> > %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> > Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> > and your ADB Composite Device driver should install for both phones.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Themes, Styles and Items [How to create skins for apps?]

2010-05-27 Thread Moto
I guess this is new topic... :(

On May 27, 3:20 pm, Moto  wrote:
> I'm currently trying to create skins for my app, and the simplest way
> to do it, it seems is by creatingThemesfor each skin.  I'm getting
> confused with how to use a specified item which points to a declared
> color from my Theme to a particular shape I create via xml.
>
> I hope I make sense...
>
> Thanks for any help I can get!
> -Moto

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Bottom of one LinearLayout being hidden by other LinearLayout?

2010-05-27 Thread brucko
Hi Mike,

It appears you may be running out of room. RelativeLayout is drawing
your first LinearLayout and then placing the other on top. My
understanding is that Relative Layout (and FrameLayout) maintain a Z-
ordering of children essentially each child is on a layer above the
previous and will obscure previous children unless you tell it to do
otherwise. You got lucky with your portrait layout.

You could consider trying the following :

1/ Declare your button bar linear layout aligning it with the parent
bottom.

2/ Declare your other LinearLayout next aligning it's top with the
parent and bottom with the button bar.

3/ make this second linear layout scrollable with
android:isScrollContainer="true"

http://developer.android.com/intl/de/reference/android/view/View.html#attr_android:isScrollContainer

The idea is that your top linear layout will scroll if there is
insufficient room and your layout will be more flexible to cope with
more devices.

If this doesn't work try a ScrollView.


http://developer.android.com/intl/de/reference/android/widget/ScrollView.html

Don't let any of this put you off RelativeLayout. They are extremely
powerful and help to reduce the depth/levels of your view hierarchy.
In fact, you might consider using a second relative layout which would
allow you to get rid of all those nested LinearLayouts with one
Relative Layout. They are trickier but definitely worth it.

http://developer.android.com/intl/de/resources/articles/layout-tricks-efficiency.html

Best Regards,

Geoff

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


[android-developers] Re: new froyo service: android.app.backup. Available in Emulator?

2010-05-27 Thread brian
Ravi,
Thanks for the suggestion.  Tried the sample code in the emulator,
same result.  AFAIK, the onBackup() callback never happens ...
-b

On May 27, 4:47 am, praneet pandit  wrote:
> Hey,
> try out the sample code in your 2.2. sdk for how to go about backup
> agent 
> usage.http://developer.android.com/intl/fr/resources/samples/BackupRestore/...
>
> regards,
> Ravi - The PPite
> PathPartner Tech,
>
> On May 26, 1:14 am, brian  wrote:
>
>
>
> > Is it possible to test the new Backup api in the emulator?
>
> > I wrote a simple BackupAgent, but it never seems to be called...
>
> >http://developer.android.com/reference/android/app/backup/package-sum...

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


[android-developers] Zooming in on any view

2010-05-27 Thread Kasra Rahjerdi
Hello!
I'm trying to figure out a way to use zoom-in features similar to
those present in WebView in a standard View. My application's users
include those with bad eye-sight and I would like to allow them to
zoom-in on different parts of the screen and then zoom back out. I
don't think this there is any method available to do this currently
but I would like some direction on how to make this myself.
I am planning on creating a dialog similar to that in the 1.5 Browser
but I have no idea how to make that actually zoom-in/zoom-out of the
screen. Is my only option to dynamically increase only the size of
text used in the application?

Thanks,
Kasra

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

2010-05-27 Thread Philip H.
I think you're confusing a few things.  The Launcher is the screen
that comes up when you pull the tab up from the bottom (or press the
grid button on eclair or froyo).  It doesn't have 'screens' since it's
just a list of all the apps that are installed.

The Home Screen is the main page where you can place any app icons or
widgets.  This screen scrolls left or right with a swipe.

I believe you're asking how to add screens to the home screen.  If
you're trying to make an app that adds screens, then the answer is
that you can't.  If you're just trying to add more screens to your own
device since you'd like more space, then you could try installing a
modded version of the OS.

On May 24, 7:30 pm, wu  wrote:
> Dear all:
>      In cupcake, the workspace contains 3 screens of cells. How to
> make the number of screens a little more? Such as 5 or 7 screens.
>      I've tried to change SCREEN_COUNT in launcher.java and add codes
> like  to launcher.xml, but it
> didn't work.
>      My emulator screen resolution is 800*480.
>
>      THX...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 go back from 2.2 to 2.1update (ERE27) on nexus one

2010-05-27 Thread Mark Carter
On May 27, 10:29 pm, TreKing  wrote:
> > I manually updated that
> > phone with "signed-passion-FRF50-from-ERE27.1e519a24.zip" this file.
>
> I would qualify manually updating your firmware with some zip file off the
> internet as unofficial.

That might have been the one which was temporarily available on
google's servers.

I'm running the one downloaded from google's servers and it seems to
be running fine... (I also thought it was official at the time)

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


[android-developers] Re: startForeground() broken on Incredible

2010-05-27 Thread Peter Jeffe
On May 27, 3:05 pm, Nathan  wrote:
> I could see that there could be a family of bugs in services on the
> Incredible. I'm hoping to meet with someone local who has one.

Yes, any service that expects to have foreground priority because it's
called startForeground() will be sorely disappointed on the
Incredible.  It's a huge problem for us.  Can someone from Google
comment on whether this is a known issue?  Obviously I'll submit a bug
report but you know how that goes.

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


Re: [android-developers] Re: Strange behavior when launching app from Market

2010-05-27 Thread TreKing
On Thu, May 27, 2010 at 4:20 PM, Rico  wrote:

> When you say "default", do you mean it's the default setting in the app
> being launched, or the app that is launching?
>

Default behavior for the Android system. Unless otherwise specified via
launch mode flags, different intents result in different instances of an
Activity, AFAIK.

I've played around with launcher code samples that others have posted,

and they don't do that.  Example:

http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot/


Don't do what? Result in different instances? I highly doubt you ran this
from the Android Market or from the notification area, so how could you
tell?

I can see why the notification bar needs to behave differently from other
> launch points, but it seems me that the Market should not behave this way.


I don't know, I didn't make the Market app =P

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

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

[android-developers] Re: HTC desire couldn't connect to bluetooth device.

2010-05-27 Thread DonFrench
See if "manually" unpairing the paired device before running your app,
using Settings>Wireless>Bluetooth has any effect.  I had a similar
problem but in my case, I had two paired devices with the same device
name and it was trying to connect to the wrong device.

On May 25, 11:13 pm, atlee  wrote:
> Hello,
> I have a application which connects to the paired bluetooth device. My
> application works fine on motorola milestone. But it's not working on
> HTC desire while connecting to paired bluetooth device.
> I have checked the logs then i found the SIM access uuid
> (112D--1000-8000-00805F9B34FB) which i pass get changed
> according to BT sniffer log which is as folloows
> 0x2d, 0x11, 0x11, 0x2d, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00,
> 0x80, 0x5f, 0x9b, 0x34, 0xfb
> so how can i resolved this problem.
> Is it a firmware issue of HTC desire? Can i upgrade the firmware with
> latest firmware version?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 the difference between code 'setContentView.(R.layout.main_layout);' and 'setContentView(R.layout.main_layout);'

2010-05-27 Thread jean-guy
The extra . is a mistake.

On May 26, 10:00 am, Oddin  wrote:
> On the android developer 
> page:http://developer.android.com/guide/topics/ui/declaring-layout.html
> Paragraph: Load the XML Resource
> is written such code to setup the layout from xml: setContentView.
> (R.layout.main_layout);
>
> So my question is: Is this extra . after setContentView is a mistake
> or it is a valid code, so if it is valid what the difference between :
>
> setContentView.(R.layout.main_layout);
> and
> setContentView(R.layout.main_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: No permissions set altough permissions requested

2010-05-27 Thread Dirk Vranckaert
TreKing,

Thanks for your reply.
So currently I already have one application available in the market,
written for 1.5 and higher. It requires internet access so that is
specified in the manifest file. Upon installation is does only ask for
'Network Connection'.
Altough the applet I am writing is written also for 1.5 and higher and
suddenly more access is requested upon install (access that is not
specified in the manifest and not used!).

Any explanation how this may be possible?

On 27 mei, 23:15, TreKing  wrote:
> On Thu, May 27, 2010 at 2:37 PM, Dirk Vranckaert
> wrote:
>
> > Can anyone have a look and tell me what I do wrong or is it just a bug?
>
> Some permissions, like the SD card one, were introduced after 1.5. To
> maintain backward compatibility, apps built for 1.5 are automatically
> granted these permissions since they didn't need them before.
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


[android-developers] Re: Making the Java assert statement work

2010-05-27 Thread fadden
On May 26, 11:30 am, A Curious Developer  wrote:
> How do I make the Java assert statement work? By "work" I mean that a
> failed assertion should either stop program execution or at least log
> the failure. Currently, neither happens. I understand there is a run-
> time option to enable this (-ea), but I don't know where to specify
> it. Changing "Preferences\Java\Installed JREs\Edit JRE\Default VM
> Arguments" has no effect, probably because those settings are not used
> for the Android execution.

"Controlling the Embedded VM":

  
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/embedded-vm-control.html;hb=HEAD

For phones where root isn't available, there's a semi-supported
"debug.assert=1" property that turns assertions on, mostly.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-dev posts from a number of authors winding up in gay sex channel

2010-05-27 Thread goosedroid
Why is this happening.

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

2010-05-27 Thread Rico
Thanks for the response.

When you say "default", do you mean it's the default setting in the
app being launched, or the app that is launching?

I've played around with launcher code samples that others have posted,
and they don't do that.  Example:
http://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot/

I can see why the notification bar needs to behave differently from
other launch points, but it seems me that the Market should not behave
this way.  I know that many of my users use the Market as their main
launcher for downloaded apps because it's a cleaner UI, and they can
read the full app names (app names are cut off in the app drawer and
home screens if they are too long).



On May 27, 1:20 pm, TreKing  wrote:
> On Wed, May 26, 2010 at 10:00 PM, Rico  wrote:
> > That's just one random example, it seems all apps behave like this when
> > launched as described above.
>
> Yes, this is the default behavior. Launching an app from a different means
> results in a new instance of it. App drawer vs open from Market vs launch
> for notification window, for example.

By "default", what exactly do you mean?  It seems to be that

>
> Is there something I can do to prevent this behavior?  Thanks.
>
>
>
> Try playing around with the singleTask flag.
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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


Re: [android-developers] Disable preference focus

2010-05-27 Thread TreKing
On Tue, May 25, 2010 at 9:25 AM, Danny van Geel  wrote:

> As this preference is merely to show activity status
>

I'm curious - why are you showing progress in the preference screen? As a
preference activity no less? This doesn't make sense to me.

I'm not sure about doing what you want - it seems like something minor that
you probably shouldn't waste time on anyway...

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

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

Re: [android-developers] Re: Android Library Project

2010-05-27 Thread Mark Carter
Its got positives and negatives.

Bear in mind that the resources in android.R are not overridable.

There was an example given earlier where things get messy (when library
nesting is allowed):

If library A depends on library B. Project C depends on both A and B then
things get a little confusing when A overrides some resources in B: i.e. C
would see some B resources where A might be expected.

What happens when a project defines a java class with the same
fully-qualified name as in one of its libraries? Short answer: exception (in
Eclipse)

On 26 May 2010 21:14, Andrew Brampton  wrote:

> On 26 May 2010 19:58, Mark Carter  wrote:
> > On 26 May 2010 20:33, Xavier Ducrohet  wrote:
> >>
> >> The problem is not so much generating the R class, it's making sure
> >> the library project is compiled with this "composite" R class made of
> >> all the projects (main + libs).
> >
> > Is it essential for the library project to be compiled with the composite
> R
> > class?
> > At each level in the library hierarchy, the R class would only include
> the
> > resources of its own project and any descendant libraries. You could
> enforce
> > that no two projects in the hierarchy define the same resource (otherwise
> > give a compiler error).
> >
>
> By compiling the library with the composite R you are allowing your
> application to override a resource used by the library. Which I think
> is a very good thing.
>
> Andrew
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] No permissions set altough permissions requested

2010-05-27 Thread TreKing
On Thu, May 27, 2010 at 2:37 PM, Dirk Vranckaert
wrote:

> Can anyone have a look and tell me what I do wrong or is it just a bug?
>

Some permissions, like the SD card one, were introduced after 1.5. To
maintain backward compatibility, apps built for 1.5 are automatically
granted these permissions since they didn't need them before.

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

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

[android-developers] Center text vertically

2010-05-27 Thread John Gaby
I have a TextView control which is being placed in a custom ViewGroup
which places the control at a certain position and size.  I want to
center the text vertically within that control.  I am making the call:

tv.setGravity(Gravity.CENTER_VERTICAL);

but the text still remains aligned to the top of the TextView box
(note that if I set it to be centered horizontally, that works).

Now if I take that same TextView and simply set it as the main view
(e.g. setContentView(tv)), the vertical centering works fine.  Is
there something that my custom ViewGroup must do to get the vertical
centering to work?

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] Spreading the word about Android (in Dublin) anyone?

2010-05-27 Thread CAT
If  there's any group member, either from UK or Ireland, or able to
travel (they'll pay your trip if you have a great topic to offer ;-)
please feel free to offer a talk to IrishDev:
epicenter 2010 has at least one Android slot left.

iPhone, Windows Phone 7 and Java ME are sheduled or announced, Android
(2.2 ?!) still unrepresented.
It may not be Google's own gig, but if one Mobile platform was missing
from an extremely heterogenous event(even seclusive and "draconic"
Apple is presented at an independent conference ;-) it is none of
those to blame...

Reply here is welcome or directly to my address, but if you're
seriously interested, please rather write ba...@irishdev.com first.
Just let him know, Werner told you. I'm not paid for this, maybe a
free Guiness ;-)
Just want to have as many cool technologies show their act as
possible.

wer...@cat

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


Re: [android-developers] My app in the Market: What does "FC on new install" mean?

2010-05-27 Thread TreKing
On Wed, May 26, 2010 at 12:43 PM, cloudycity  wrote:

> I have no idea what FC means.


"Force Closed" - IOW, your app crashed and the user had to shut it down.

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

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

[android-developers] TelephonyManager.listen() additive? API docs unclear.

2010-05-27 Thread goosedroid
I posted this before but the mod moved it to gay sex movies group.
Hopefully it doesn't happen again.

If I register LISTEN_SERVICESTATE with listener "A" using
TelephonyManager.listen(), and then later I need to additionally
listen another event like LISTEN_CALL_STATE *using the same
listener* ... do I need to:
(1) unregister listener A with LISTEN_NONE and re-register with both
LISTEN_ flags:
TelephonyManager t = ...;
PhoneStateListener l = ...;
t.listen( l, LISTEN_SERVICESTATE);
...
time goes by
...
t.listen( l, LIST_NONE);
t.listen( l, LISTEN_SERVICE_STATE | LISTEN_CALL_STATE)
(2) simply call listen again with listener A, and the new flag.
t.listen( l, LISTEN_SERVICESTATE);
t.listen( l, LISTEN_CALL_STATE);
In other words, is listen() additive if you pass in the same listener
with different LISTEN_ flags? The documentation is not clear.

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


[android-developers] Cross compile error

2010-05-27 Thread தங்கமணி அருண்
Hi,

I am trying to cross compile one of the Linux source package.

Here is my compiler flags and variables
-
export
PATH=$PATH:/home/arun/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin

LD=arm-eabi-ld
AR=arm-eabi-ar
STRIP=arm-eabi-strip
RANLIB=arm-eabi-ranlib
CC=arm-eabi-gcc
CXX=arm-eabi-g++
CPPFLAGS="-I/home/arun/mydroid/bionic/libstdc++/include
-I/home/arun/mydroid/bionic/libc/include
-I/home/arun/mydroid/bionic/libc/arch-arm/include/
-I/home/arun/mydroid/external/jpeg
-I/home/arun/mydroid/bionic/libc/kernel/common
-I/home/arun/mydroid/bionic/libc/kernel/arch-arm
-I/home/arun/mydroid/bionic/libm/include
-I/home/arun/mydroid/bionic/libm/include/arch/arm
-I/home/arun/mydroid/bionic/libm/arm -I/home/arun/mydroid/bionic/libm"

CFLAGS="-nostdlib"

LDFLAGS=-Wl,--entry=main,--no-undefined,-rpath-link="-L/home/arun/mydroid/out/target/product/imx51_BBG/obj/STATIC_LIBRARIES/libjpeg_intermediates/
-L/home/arun/mydroid/development/ndk/build/platforms/android-3/arch-arm/usr/lib/
-L/home/arun/mydroid/out/target/product/imx51_BBG/system/lib"

LIBS="-lc -lgcc -lm -ldl -lstdc++
-L/home/arun/mydroid/out/target/product/imx51_BBG/obj/STATIC_LIBRARIES/libjpeg_intermediates
-ljpeg"
-
Then i execute "*./configure*". It went well.

But while doing "*make*" c and c++ souces are compiled properly.

At the linking stage i got this error

*/home/arun/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld:
crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status*

Kindly help on this. I tried using different options. Not proper ending.


Thanks
Arun

-- 
அன்புடன்
அருண்
--
http://ubuntu-tam.org
http://lists.ubuntu.com/ubuntu-l10n-tam
http://lists.ubuntu.com/ubuntu-tam
--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: CANNOT manage to get ADB working whatever I do.

2010-05-27 Thread Bob Kerns
So far as I can tell, from watching the message traffic going by, your
only option is to upgrade to another OS, or downgrade to XP32.

I've successfully used Vista 64 and Windows 7 64. I believe Linux
would also be an option.

You may be able to run a VMWare virtual machine and do it.  I've
succeeded at that for another hardware product (non-Android, non-
phone, but also running an embedded Java environment), who initially
did not supply Vista 64-bit drivers. The VMWare USB support is
surprisingly good and robust. (Surprising, since getting the
interaction with the host OS right seems rather difficult to me, but
it's flawlessly handled everything I've thrown at it -- disk drives,
built-in SD card slots, mobile devices...). So if changing your OS (or
using a different computer with a different OS) isn't a good option,
it may well be worth your spending the time and effort to try it.

If a VM works for you, and you don't want to pay for a Windows license
for your VM -- once you've confirmed that it works in the VM, you
could try it in a Linux VM.

If you get it working in a VM, it'd be great if you came back here and
posted your success. I've seen quite a few instances of this question
-- in fact, more instances of this question than I've seen copies of
XP 64 in the wild outside server rooms.

Good luck!

On May 25, 8:20 am, HLL  wrote:
> Hay everyone,
>
> I Want to start developing for android and for some reason whatever I
> do I can not make ADB show up my Nexus One.
>
> Both on and off in development mode
> Both SD Mount and without SD Mount
> Both With usb tethering on and off
>
> for all "adb devices"(windows XP64bit) show no device (service started
> successfully, device recognized in Device Manager correctly).
>
> Tried reinstalling drivers, tried uninstalling drivers
> completely(using 3rd party software) and reinstalling, tried different
> versions of the usb driver (up to the one before the last - that came
> with the 2.1 sdk)
> NOTHING...
> It seems online that this issue reoccurs on different devices, but all
> of them seemed to solve with one of the above solutions, Which none
> worked for me.
>
> It does not look like a hardware problem, because EVERYTHING else that
> is USB'ed works correctly.
>
> Any non-already tried idea would be appreciated.
>
> Regards,
> Hillel

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


[android-developers] MapView Overlay Location Way Off

2010-05-27 Thread jtkendall
Hi,

I'm new to the Android platform (and Java) and I'm trying to get
MapView to show my overlays as well as my current (hardcoded for the
emulator) location. It shows the current location correctly; the
second location that it's supposed to show is just down the street
from the current location (a block or two away), but is rendered about
40 miles away (pic: http://twitpic.com/1rkk4u/full).

I would post my code here, but I know that discussion groups like this
don't generally show the code in a readable format, so I posted it at:
http://gist.github.com/416082.

I'm not sure if I'm just calling something too early/late, or if I'm
missing something completely. Any help would be appreciated.

Thanks,

Josh.

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


[android-developers] Script to Capture Android Instrumentation Output and Convert to XML

2010-05-27 Thread greg
Hi guys I've developed a script to capture android instrumentation
tests from a device or emulator and convert it to ant Junit XML format
for reporting in your C.I. system of choice.

The script is pretty simple and has a few minor bugs but works all in
all.

I've released it to open source as it was just an aside, I will be
using it and tidying it as time goes on, but everyone is welcome to
contribute.

I hope it helps

find the project here
http://code.google.com/p/android-junit-xml-reporter/

usage:
1) make sure you have already deployed your tests to your device.
2) place the file androidxmltestreporter.py in the root directory of
your test-project
3)then call ./androidxmltestreporter.py -p {instrumentation test
package}

the xml will be spat out into the a folder called target, under your
root folder.


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


[android-developers] Streaming encoded video via RTP 2

2010-05-27 Thread Robin Marx
This is actually a post that belongs in this thread :
http://groups.google.com/group/android-developers/browse_thread/thread/e677b894b4c502d9/5eb4d892c12a8393

But since it is closed I will open a new thread. If a moderator could
add this post to the above thread and re-open it, that would be
appreciated.

As you can read in the other thread, no real solutions were given to
the streaming of RTP video problem I posted about a year ago. Since
then, I've been getting a lot of mails from people who are trying to
do the same thing and I always have to give them the same answer.
Tired of re-typing the same mail, I'm posting our experiences here for
reference.


I'm going to disappoint you from the start: we did NOT find a full
solution to the problem. We were able to stream audio and video from
the phone to a desktop pc and decode/play it there, but the other way
around was impossible. Our project switched to a Windows XP mobile
tablet pc.

I'll explain what we did to stream to the PC. The method with the
socket to send the data to native code worked perfectly. Then, in
native code, we needed to buffer the data, extract h.263 frames, which
we could then pack into RTP packets and send over the network.

This works because android tries to save the video as an .mp4 file,
which is basically just a container for unmodified h.263 data. Android
writes almost all the mp4 data at the END of the file, so don't
trouble yourself with that if you're constantly streaming the video.
All you need to do is cut off the first few bytes of .mp4 data at the
very beginning (can't remember the exact number, but it's always a
fixed number of header bytes). After this, it's all just h.263 data.
This is a well documented format which you can write a simple parser
for yourself. All we did was buffer and parse the frames to retrieve
the size in bytes of the current frame. If this amount of bytes was
present in the buffer, we knew we had read a full frame and could send
it in an RTP packet.

(I have some of our code for parsing the h.263 data. You can contact
me if you want this code. But attention! it won't be directly usable
code as it is an excerpt from our framework and is just intended to
give you the general idea and insight in how h.263 data can be
interpreted).

It should be clear that this is if you capture video ONLY. If you
would capture audio and video in the same capturer, the h.263 data
would be interjected with audio data in an undefined manner (unless
google documented it somewhere, but this was not the case at the time
we think). It is possible to capture audio seperately however and use
the same logic as we did for the video stream. The big problem then
will be to sync audio and video, especially if you want to use RTP for
transmission.


We did all this natively on android in C++ because we wanted to test
our RTP library and network parameters. If you just want to send video
to your pc, you can just parse the h.263 frames on your computer to
feed to a decoder and don't bother yourself with putting everything in
RTP packets on android. Then you can just use a TCP socket connected
to the server PC and send all video data directly to it. However, this
should only be used in research or personal project settings and is
not fit for commercial or serious applications!

This all is still a non-optimal method which will have some delay and
processing overhead, so don't expect miracles.


As for the receiving of video on the android, we simply couldn't get
it working. Android can only play video FILES, so the only way to do
this would be to write the received data to a file and fake android
into playing it. And here is the big problem: we could ignore the .mp4
data for sending the data, but for playing a file... android really
needs the data. And this means we would have to fake it, a very
troublesome process. We didn't even finish our attempts at faking mp4
header data.

There is a possibility to play video from a stream of RTSP which you
should definitely look into if you don't need to control SIP or RTP
data yourself but just want to playback video.


I hope this was informative and if there are any more questions you
can always contact me at my email address. Happy coding!

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

2010-05-27 Thread brianl
Tried your mod using the latest release r06, but was unsuccessful.
Updated the android_winusb.inf file in both places, adb kill-server,
adb start-server, adb devices, no Evo.  Restarted Windows, still no
Evo.   Assume this should work w/ the latest release, and that I don't
have to go back to r03.

Any ideas?

thanks!



On May 21, 1:48 pm, Robert Green  wrote:
> You need the r3 ADB driver and then you need to add this to the
> android_winusb.inf to support these two devices:
>
> ;
> ;HTC Incredible
> %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
> %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01
> ;
> ;HTCEVO
> %SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
> %CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01
>
> Add those lines at the end of both [Google.NTx86] and [Google.NTamd64]
> and your ADB Composite Device driver should install for both phones.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] wifi hotspot in 2.2

2010-05-27 Thread cygnus
Hi, does anyone know where i can find information on:
a. how the os handles the AP functionality (providing security/
authentication to clients, hostapd equivalence?)
b. what is required of the wifi chip side (driver and firmware) to
qualify for this functionality?

I looked at developer.android.com but could not find anything except
for the hotspot part on the 2.2 announcement. The reference guide
seems to not be yet updated and only provides info for normal wi-fi
STA functionality.

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

2010-05-27 Thread GroundZero
I need to sync some data from a phone with a server in the cloud. To
do so, it appears I must create an Account via the AccountManager. If
I do this is there anyway to keep the authtoken private (e.g. not
accessible to other apps). I understand the value of sharing
authentication with services such as Gmail, Facebook, etc; however,
the data I am trying to sync is sensitive and for security and
performance reasons (e.g. limiting calls, etc.) I would like to
control access to the associated APIs. Any help or suggestions would
be greatly 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: SurfaceView Lifecycle - Switching between a Layout and a SurfaceView

2010-05-27 Thread Mun
Hi,

Did you manage to find an answer to this yet?

I'm experiencing the same problem such that my surfaceview gets
destroyed, (after calling setContentView to load another layout) but
never gets created again!

Thanks,

Mun

On May 9, 10:37 pm, tobias429  wrote:
> I've built an application that switches between two screens - a
> LinearLayout and a SurfaceView - via the application.setContentView()
> method.
>
> When switching between the two screens, the surface of the SurfaceView
> gets destroyed, and never created new again.
>
> Here is what I do:
>
> During my application, I switch between the two screens via calling
> setContentView() from my application.
>
> My SurfaceView starts a thread that renders the view, once the surface
> is created. This works fine the first time I'm doing this:
> 1. Create the SurfaceView
> 2. Get a handle of the surfaceHolder, and add my SurfaceView as a
> surfaceHolder callback
> 3. Call setContentView(SurfaceViewScreen) from my app, to bring the
> SurfaceView screen to the front
>
> This now nicely calls onSurfaceCreated() in my SurfaceView.
>
> Based on a user action, I later call setContentView(Layout) to display
> my standard Layout again. This nicely calls the onSurfaceDestroyed()
> mehod of my SurfaceView.
>
> The problem is now, that if I change back again to the SurfaceView via
> calling application.setContentView(SurfaceView), the surface never
> gets re-created, i.e. neither does onSurfaceCreated() get called, nor
> does my view render correctly, as in the according thread
> surfaceHolder.getCanvas() returns null.
>
> What am I doing wrong?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: SPP bluetooth

2010-05-27 Thread Robert Armstrong
I am looking to present the device (HTC Desire) to a PC as a Human
Interface Device (HID).

The idea is to use "socket = btserver.accept()" to open up a pipe to
the PC, and then I implement the HID protocol across the pipe.

I have changed the UUID to reflect its a HID
("1124--1000-8000-00805F9B34FB") and the PC is recognising it
as a HID. Good start.

Using a breakpoint I have confirmed the "socket = btserver.accept()"
is being reached.

However when I click on "Next" on the PC (to start "Registering a HID
device ot this system. Please Wait.") the PC reports "Registration
Failed".

Breakpoints after the "socket = btserver.accept()" show that the
accept does not complete and instead timesout after the 120 seconds.

Is this a valid approach, or does the HID need implemented in the
Android / Linux operating system? If I am flogging a dead horse, what
is the alternative approach? Does it invlove writing some drivers on a
PC and opening up some sort of generic pipe between the PC and
handset?


Here's the relevant logcat trace:-

05-26 22:47:46.000: WARN/ActivityManager(75): Launch timeout has
expired, giving up wake lock!
05-26 22:47:46.029: WARN/ActivityManager(75): Activity idle timeout
for HistoryRecord{46525e78
com.paad.bluetoothtexting/.BluetoothTexting}
05-26 22:47:49.110: INFO//system/bin/btld(11841): # USerial_Ioctl:
BT_Wake, 0x8003 
05-26 22:47:49.160: WARN/BTLD(11842): info:x0
05-26 22:47:49.160: INFO/BTL-IFS(11842): send_ctrl_msg: [BTL_IFS CTRL]
send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 14)
05-26 22:47:49.160: DEBUG/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_up()
05-26 22:47:49.160: INFO/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_up:
dummy_handle = 272
05-26 22:47:49.160: DEBUG/ADAPTER(11855):
adapter_get_device(00:1B:FB:CE:61:EF)
05-26 22:47:49.160: ERROR/BluetoothEventLoop.cpp(75): pollData[0] is
revented, check next one
05-26 22:47:49.160: ERROR/BluetoothEventLoop.cpp(75): event_filter:
Received signal org.bluez.Device:PropertyChanged from /org/bluez/11855/
hci0/dev_00_1B_FB_CE_61_EF
05-26 22:47:49.210: WARN/BTLD(11842): ccb timer ticks: 2147483648
05-26 22:47:50.640: INFO/BTL-IFS(11842): send_ctrl_msg: [BTL_IFS CTRL]
send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 14)
05-26 22:47:50.640: DEBUG/DTUN_HCID_BZ4(11855):
dtun_dm_sig_link_down()
05-26 22:47:50.640: INFO/DTUN_HCID_BZ4(11855): dtun_dm_sig_link_down
device = 0xfbb0 handle = 272 reason = 19
05-26 22:47:50.640: ERROR/BluetoothEventLoop.cpp(75): pollData[0] is
revented, check next one
05-26 22:47:50.640: ERROR/BluetoothEventLoop.cpp(75): event_filter:
Received signal org.bluez.Device:PropertyChanged from /org/bluez/11855/
hci0/dev_00_1B_FB_CE_61_EF
05-26 22:47:50.660: DEBUG/BluetoothA2dpService(75): Received intent
Intent { act=android.bluetooth.device.action.ACL_DISCONNECT ED (has
extras) }
05-26 22:47:51.217: INFO//system/bin/btld(11841): # USerial_Ioctl:
BT_Sleep, 0x8004 


Thanks in advance,
Rab

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


[android-developers] SeekBarPreference ClassCastException why?

2010-05-27 Thread Jeruliu
Hi All,

I'm suffering from this for a week, i was trying to use the famous
SeekBarPreference in a

dialog - http://android.hlidskialf.com/blog/code/android-seekbar-preference

I copied the class from above link into my project.
Then created the xml as brightness.xml:


http://schemas.android.com/apk/res/
android"
  android:id="@+id/layout_root"
  android:orientation="horizontal"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:padding="10dp"
  >



Finally I try to integrate it as custom dialog:
Dialog dialog = new Dialog(mContext);

dialog.setContentView(R.layout.brightness);
dialog.setTitle("Custom Dialog");
dialog.show();

But always getting error: "Error inflating class
java.lang.reflect.Constructor" at this line

"http://groups.google.com/group/android-developers?hl=en


[android-developers] How do I attach onItemClickListener to this?

2010-05-27 Thread Matt
I need to call onItemClickListener from my activity and have it return
the text of the item.  I am having a hard time wrapping my head around
this.  I have tried several examples but can't seem to pull it off.  I
was wondering if someone could lend an idea on what I'm doing wrong.

Thanks,
Matt

import java.util.LinkedHashMap;
import java.util.Map;

import android.content.Context;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Adapter;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.SimpleAdapter.ViewBinder;

public class Separated_List_Adapter extends BaseAdapter {
public final Map sections = new
LinkedHashMap();
public final ArrayAdapter headers;
public final static int TYPE_SECTION_HEADER = 0;

public Separated_List_Adapter(Context context) {
headers = new ArrayAdapter(context,
R.layout.list_header);
}

public void addSection(String section, Adapter adapter) {
this.headers.add(section);
this.sections.put(section, adapter);
}

public Object getItem(int position) {
for(Object section : this.sections.keySet()) {
Adapter adapter = sections.get(section);
int size = adapter.getCount() + 1;

// check if position inside this section
if(position == 0) return section;
if(position < size) return adapter.getItem(position -
1);

// otherwise jump into next section
position -= size;
}
return null;
}

public int getCount() {
// total together all sections, plus one for each section
header
int total = 0;
for(Adapter adapter : this.sections.values())
total += adapter.getCount() + 1;
return total;
}

public int getViewTypeCount() {
// assume that headers count as one, then total all
sections
int total = 1;
for(Adapter adapter : this.sections.values())
total += adapter.getViewTypeCount();
return total;
}

public int getItemViewType(int position) {
int type = 1;
for(Object section : this.sections.keySet()) {
Adapter adapter = sections.get(section);
int size = adapter.getCount() + 1;

// check if position inside this section
if(position == 0) return TYPE_SECTION_HEADER;
if(position < size) return type +
adapter.getItemViewType(position - 1);

// otherwise jump into next section
position -= size;
type += adapter.getViewTypeCount();
}
return -1;
}

public boolean areAllItemsSelectable() {
return false;
}

public boolean isEnabled(int position) {
return (getItemViewType(position) != TYPE_SECTION_HEADER);
}
   @Override
public View getView(int position, View convertView, ViewGroup
parent) {
int sectionnum = 0;
for(Object section : this.sections.keySet()) {
Adapter adapter = sections.get(section);
int size = adapter.getCount() + 1;

// check if position inside this section
if(position == 0) return headers.getView(sectionnum,
convertView, parent);
if(position < size) return adapter.getView(position - 1,
convertView, parent);

// otherwise jump into next section
position -= size;
sectionnum++;
}
return null;
}

@Override
public long getItemId(int position) {
return position;
}
}

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


[android-developers] Process gets killed

2010-05-27 Thread DummieAndroiddeveloper
i am trying to connect to a server through an android fone but th
epplication gets killed as soon as HTTP_POST is called.

here's the code snippet:

HttpClient client = new DefaultHttpClient();
 HttpPost post = new HttpPost(address);

 HttpResponse response = client.execute(post);
 String g=response.toString();

It gives me the following error:

[2010-05-27 11:05:11 - HelloAndroid] ActivityManager: Starting: Intent
{ action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER}
comp={com.example.helloandroid/
com.example.helloandroid.HelloAndroid} }
[2010-05-27 11:05:11 - HelloAndroid] ActivityManager: [1]
Killed  am start -n com


i have given the appropriate permission fro connection to internet as
well in the AndroidManifest.xml file but still the application gets
killed.:
android:permission="android.permission.INTERNET"

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

2010-05-27 Thread kish
Hi I am trying to find the number of rectangles per sec in three
different size rectangles. I did find it though. But the only problem
is that I see all the rectangles after it ran the program completely.
But I would like to have rectangles drawn, when I call
canvas.drawRect(rec1,paint); function.

I am also looking to keep the old rectangles on the screen while new
ones are drawn.

I tried with lots of different options nothing worked. To display the
rectangles

Can anybody show me the direction to which way to go ?

Thanks in advance.

Cheers
Kishore Srimat

package com.Benchmark.Rectangle;
import java.util.TimerTask;
import android.R.anim;
import android.app.Activity;
import android.app.AlertDialog;
import android.graphics.drawable.shapes.*;
import android.os.Bundle;
import android.content.Context;
import android.graphics.*;
import android.view.View;
import android.view.animation.Animation;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class Benchmark_Rectangle extends Activity {
DemoView demoview;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
demoview = new DemoView(this);
setContentView(demoview);
}

int getRandom(int min1 , int max1)
{
return  (int) ((int)(Math.round(Math.random()*(max1-min1)))
+min1);
}

private class DemoView extends View{
public DemoView(Context context){
super(context);
}

@Override protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
long beforedrawing = 0;
// remember: y increases from top to bottom
// x increases from left to right
int i = 0;
int left = getLeft();
int top = getTop();
int right = getRight();
int bottom = getBottom();
Paint paint = new Paint();
paint.setStyle(Paint.Style.FILL);
// make the entire canvas white
paint.setColor(Color.WHITE);
canvas.drawPaint(paint);
int LoNumber = 0;
int HiNumber = 255;

long startwithoutrect = System.currentTimeMillis();
for(i=0;i<=1; i++)
{
  int myRandomNumber_Ra = getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rr=  getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rg = getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rb = getRandom(LoNumber,HiNumber);
  paint.setARGB(myRandomNumber_Ra, myRandomNumber_Rr,
myRandomNumber_Rg, myRandomNumber_Rb);
 int sizex= 50;
 int sizey = 50;
 int x = getRandom(left, right-sizex);
 int y = getRandom(top, bottom-sizey);
}
long stopwithoutrect = System.currentTimeMillis();
//
**//
long startwithlargerect = System.currentTimeMillis();
for(i=0;i<=1; i++)
{
  int myRandomNumber_Ra = getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rr=  getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rg = getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rb = getRandom(LoNumber,HiNumber);
  paint.setARGB(myRandomNumber_Ra, myRandomNumber_Rr,
myRandomNumber_Rg, myRandomNumber_Rb);
  int sizex=right;//320;
  int sizey = bottom;//430;
  int x = getRandom(left, right-sizex);
  int y = getRandom(top, bottom-sizey);
  Rect rec1 = new Rect(x/*left*/, y/*top*/, x + 
sizex/*right*/, y
+ sizey/*bottom*/);
//if(sx != 0 && sy != 0)
  canvas.drawRect(rec1,paint);
//  Animation = new Benchmark_Rectangle();
//  Animation.Initalise(Bitmap.decodeResource(res,
R.drawable.idle), 200, 150, 5, 5);

 }
long stopwithlargerect = System.currentTimeMillis();
//
**//
long startwithmediumrect = System.currentTimeMillis();
for(i=0;i<=1; i++)
{
  int myRandomNumber_Ra = getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rr=  getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rg = getRandom(LoNumber,HiNumber);
  int myRandomNumber_Rb = getRandom(LoNumber,HiNumber);
  paint.setARGB(myRandomNumber_Ra, myRandomNumber_Rr,
myRandomNumber_Rg, myRand

[android-developers] AVI playback not supported in 2.1?

2010-05-27 Thread cpcarroll71
I've searched in more places than I can count and all I'm finding is
just more questions and no answers. I have a Samsung Moment with the
official 2.1 update and since then I can no longer play MPEG-4 videos
with the .avi extension. I had no problems playing them in 1.5 and
never had to convert the videos that I downloaded to get them to play.
Please tell me someone knows what is going on and that there will be a
fix for this. I've had 3 different Moments since March and countless
problems with them. This is just another problem to add to the list of
things keeping me from even liking this phone. Anyone?

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


[android-developers] Emma Instrumentation Code and How it works

2010-05-27 Thread Srimanta
Hi,

I am new to this emma world! Just trying to figure out what code emma
injects to the class that is instrumented and where? I read in this
forum that Emma injects some byte code after each basic block. Can
anyone answer me the following questions

1) What exact byte code is injected at the end of each basic block?
2) What is the impact of those byte codes in term of performance,
security and JVM?
3) I saw someone said byte code injection changes the line numbers in
the class file and has some impact in the JVM in terms of variable
location, stack table etc. What are those impacts to JVM due to these
injections?
4) Is there any behavioral change of instrumented classes while
interacting certain classes which are instrumented within same/
different package or using methods of other external or internal
classes which are not instrumented compare to their original class
behavior which earlier was not instrumented and worked fine?
5) Can any instrumented class cause improper behavior to the existing
application and what are those probable impacts?
6) Can we use certain instrumented class in production env and is
there any risk of malfunctioning of the application in production
system?
7) Is there any security issue using instrumented class in production?

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


[android-developers] Listening to Clipboard... How to detect a "copy"

2010-05-27 Thread AuxOne
I'm interested in writing an application that extends the
functionality of the Android clipboard. Basically, when the user tries
to perform a "copy" (as in copy->paste) I want my application or
Service to perform a function on the copied text.

Is this possible?

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


[android-developers] filter html and alert baised on criteria entered

2010-05-27 Thread Matthew
I'm trying to find a way to automatically search html code for a
criteria that shows up each time then bring the app to the front and
also send notification

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


[android-developers] Created files in external storage on Archos 5 invisible on Windows Explorer

2010-05-27 Thread fpdiver
I apologise in advance if I am breaking protocol or posting to the
wrong group. Please feel free to move this post to somewhere more
appropriate if required.

I am developing for the 160 Gb Archos 5 Internet tablet. Not ideal as
a development platform I know, but customer requirements mean we have
no choice. It is running Android 1.6. I have updated the device
firmware to the most recent available. Updating the version of Android
is not an option at this point.

Part of my app's requirement is to write information out to .txt files
on the external storage directory so that these can be copied over the
USB connection to a Windows XP PC using the Mobile media device (MTP)
mode.

I have followed all instructions I have come across carefully, eg I
check that the storage is available using the technique described at
http://developer.android.com/guide/topics/data/data-storage.html#filesExternal.
However, althoug the files are created succesfully on the device (I
can browse them and open them using the device's File Explorer - they
are fine), when I connect the device to a Windows XP computer none of
the directories or files I created appear and the size of their parent
files suggest they do not exist.

I have tried running over the ADB, checked logcat, tried a (signed)
release version and even written a second test application which just
creates a folder (this behaves the same, ie it creates the folder but
this is not visible in Windows Explorer) - nothing anywhere gives me
any suggestion as to what the problem might be. If anyone has heard of
this before or has any ideas as to what else | could try to fix it
please get in touch! We do not have any other devices to test on at
the moment, although I hope to remedy this soon, customer permitting.

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


[android-developers] Distinct query in managedQuery

2010-05-27 Thread JMJ-23
Hello, I've a problem programming a managedQuery consult. I want
unique results when I do a managed query. For example I do this query:
cursor=this.ManagedQuery(Uri, proyection,selection, null, orderBy) but
I have how results repeat results. where I can write that I want a
distint query in this consult?. Can you help me?
A lot of thanks.

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


Re: [android-developers] Gallery not Recycling Views

2010-05-27 Thread Romain Guy
This is a known "bug" (it's not a bug really, we just never had the
time to implement recycling in Gallery) but we have no ETA for a fix.

On Wed, May 26, 2010 at 8:31 PM, Aamir Shah  wrote:
> I am using the Hello Gallery code as an example. Views are not being
> recycled as I scroll left and right.
>
> I added log output at the getView method, and I get a constant output
> of null. Anyone know the reason why?
>
> Here is the code:
>
> public class HelloGallery extends Activity {
>
>       �...@override
>        public void onCreate(Bundle savedInstanceState) {
>            super.onCreate(savedInstanceState);
>
>
>            Gallery g = new Gallery(this);
>            g.setAdapter(new ImageAdapter(this));
>
>            setContentView(g);
>        }
>
>        public class ImageAdapter extends BaseAdapter {
>            int mGalleryItemBackground;
>            private Context mContext;
>
>            private Integer[] mImageIds = {
>                    R.drawable.sample_1,
>                    R.drawable.sample_2,
>                    R.drawable.sample_3,
>                    R.drawable.sample_4,
>                    R.drawable.sample_5,
>                    R.drawable.sample_6,
>                    R.drawable.sample_7
>            };
>
>            public ImageAdapter(Context c) {
>                mContext = c;
>
>            }
>
>            public int getCount() {
>                return mImageIds.length;
>            }
>
>            public Object getItem(int position) {
>                return position;
>            }
>
>            public long getItemId(int position) {
>                return position;
>            }
>
>            public View getView(int position, View convertView, ViewGroup
> parent) {
>                System.out.println(convertView); //should occasionally not be
> null
>                ImageView i = new ImageView(mContext);
>
>                i.setImageResource(mImageIds[position]);
>                i.setLayoutParams(new Gallery.LayoutParams(150, 100));
>                i.setScaleType(ImageView.ScaleType.FIT_XY);
>                i.setBackgroundResource(mGalleryItemBackground);
>
>                return i;
>
>
>            }
>        }
>
> Thanks,
> Aamir
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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

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


Re: [android-developers] Example "Tab Layout" wont work in "http://developer.android.com/resources/tutorials/views/hello-tabwidget.html"

2010-05-27 Thread Heru Prasetia
Hi drex, I have the same problem too. I think the solution is on
AndroidManifest.xml

You must write activity xml tag for three Activity Class

So, AndroidManifest.xml change into this :


http://schemas.android.com/apk/res/android";
  package="tablayout.main"
  android:versionCode="1"
  android:versionName="1.0">



 

  















drex wrote:
> Hi Guys!!
>
> I'm new in android and also in java. This is my second day in work
> learning android and java. Yesterday i successfully installed android
> using eclipse. I tried the sample "Tab Layout" posted in "http://
> developer.android.com/resources/tutorials/views/hello-tabwidget.html".
> I had done exactly what is written for me to do. I was able it to run
> in my eclipse but when my emulator loads it pops an error saying
> "application sample tab has stopped unexpectedly. Please try again".
> Ive tried debugging it using the eclipse debugger, it shows an error
> which i don't understand, showing a tree explorer of its errors. Hope
> i could attached the screen shots of the errors.
>
> If someone of you guys has a sample of table layout, can you please
> send it to my email address.
>
> Thanks,
>
> "don't worry about a thing, coz every little thing i gonna be alright"
> - bob marley
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: new froyo service: android.app.backup. Available in Emulator?

2010-05-27 Thread praneet pandit
Hey,
try out the sample code in your 2.2. sdk for how to go about backup
agent usage.
http://developer.android.com/intl/fr/resources/samples/BackupRestore/index.html

regards,
Ravi - The PPite
PathPartner Tech,

On May 26, 1:14 am, brian  wrote:
> Is it possible to test the new Backup api in the emulator?
>
> I wrote a simple BackupAgent, but it never seems to be called...
>
> http://developer.android.com/reference/android/app/backup/package-sum...

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


[android-developers] Possible to have private authtoken stored for Account which has been created via AccountManager?

2010-05-27 Thread GroundZero
I would like to sync some data with a server in the cloud. To do so,
it appears I must create an Account via the AccountManager. If I do
this is there anyway to keep the authtoken private (e.g. not
accessible to other apps). I understand the value of sharing
authentication with services such as Gmail, Facebook, etc; however,
the data I am trying to sync is sensitive and I would like to control
access to secure APIs. Any help or suggestions would be greatly
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] Looking for Android GUI Design Tools and Resources

2010-05-27 Thread Weikang Wan
I used DroidDraw, however, it had bugs that might destroy previous
work. I'd like to hear more experienced android developers what is
good workflow for designing layout files from scratch. Is there any
good gui resources for android development. Thanks in adance!

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

2010-05-27 Thread aswini
Hi ,
 I am new to this forum, i am trying to access the internet in the
android emulator(Eclaire version). if i try to connect the browser it
shows "no network connection, browser cannot load this page because
there is no internet connection".

then i tried following option

1. Set the default proxy from Windows > Preferences > Android >
Launch.

2.Added  '-http-proxy  in the default emulator option.

 = http://username:passw...@10.100.130.2:4208

proxy ip iaddress is =10.100.130.2
port is 4208


3.Set the proxy on the emulator from Settings > Wireless controls >
Mobile Networks > Access Point Names > Telkila > ...

i have set the proxy address and port number.

 now i tried to connect the browser , it shows web page not available
and also  It has given some suggestion, i
listed below
1.check to make sure your device has a signal and data connection
2. reload this web page later
3. view a chached copy of the web page form google

how can i solve this problem.
thanks in andvance

with regards
Aswini

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


[android-developers] Notepad Tutorial, Error just after imported the project

2010-05-27 Thread sylvain.artois
Hello,

I'm new with Android, and when I tryied to load the NotepadV2 tutorial
sources, Eclipse create this error :

The method onCreateContextMenu(ContextMenu, View, ContextMenuInfo) of
type Notepadv2 must override or implement a supertype method

So I change the target, pass emulator from 1.5 to 1.6, but no effect.

Maybe I forgot to upload something ?

I'd like to dev for the Android 1.5 version, because I'm a happy User
of LG GW620, and I want to test apps on this phone.

Everyone ideas ?

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


[android-developers] AGPS APIs in Android 2.1

2010-05-27 Thread Shekhar
Hi,

Can anybody provide the details of the apis, specific to AGPS
functionality in Android 2.1

what additional APIs are added in 2.1 SDK for providing AGPS
functionaly.

Thanks in Advance

Shekhar

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


[android-developers] How to get the history cache of android default browser

2010-05-27 Thread Xiangyu Liu
Hi, I am just an Android beginner, I am trying to get all the
histories of android default browser. Can anyone give me an example or
steps on it?

Thanks

Xiangyu

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


  1   2   3   >