[android-developers] Re: how to dynamic create a imageview on widget?

2010-06-02 Thread Nithin

What do you mean by creating dynamic ImageView on a widget, ImageView
itself is a widget in "android.widget" package.

Nithin

On Jun 3, 9:43 am, "[G]"  wrote:
> hi all,
>
>    i want to  dynamic create imageview on a widget.  how can i do
> this?
>
> thanks a lot
>
> grays

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

2010-06-02 Thread Rajiv
You can also do it as:


WallpaperManager wlp = WallpaperManager.getInstance(*this*);

Drawable d = wlp.getDrawable();

textView.setBackgroundDrawable(d);
Regards,
Rajiv

On Thu, Jun 3, 2010 at 11:47 AM, Ericson, Anders <
anders.eric...@sonyericsson.com> wrote:

> Hi,
>
> In your "AndroidManifest.xml" you can add this to your activity:
> android:theme="@android:style/Theme.Wallpaper"
>
> /Anders
>
> -Original Message-
> From: android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] On Behalf Of AndroidNewbie
> Sent: den 3 juni 2010 05:49
> To: Android Developers
> Subject: [android-developers] Set wallpaper as background
>
> Hi ,
>
> I want to set current wallpaper as my application background . Any
> ideas to do it through XML or Java code ?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Android to PC communication trough USB

2010-06-02 Thread FrankG
Hello Dianne,

I would not agree with "USB connection is not intended for application
use".

IMHO the different vendors are forced to support MTP, Pictbridge and
the other
usb stuff also on their android mobiles and with certain apps.

Thanks !

  Frank


On 3 Jun., 00:33, Dianne Hackborn  wrote:
> At this point the USB connection is not intended for application use.  It is
> for developers.  You should NOT be writing apps that have users turn on this
> developer mechanism; that opens up security holes to them that they are
> likely not going to be aware of.  (Though we did add to the platform the
> notification about the USB debugging connection being activity just to help
> them know about this and encourage them to turn it off.)
>
>
>
>
>
> On Wed, Jun 2, 2010 at 6:24 AM, ftovalle  wrote:
> > thanks for your repply!
> > But, i saw some applications that run trough usb connection, and do
> > that communication very well. For example
> >https://gems.codaset.com/jens-riboe/droidatscreen.
> > This application shows a device screen in your pc, and do it trough
> > usb connection.
>
> > On 1 jun, 16:56, Bob Kerns  wrote:
> > > May I ask *why* you don't want to use HTTP?
>
> > > USB isn't really an option. The normal approach is to use the net. I
> > > understand completely that there can be disadvantages in different
> > > environments, however, very few of those disadvantages have any
> > > relationship to the HTTP protocol. My guess is that it's not really
> > > HTTP that you have a concern with, but some other aspects of
> > > networking, such as discovery, security, firewalls.
>
> > > There's plenty of reason to want a more predictable type of connection
> > > between a single user's PC an device. USB would seem to be it because
> > > of that nice wire, but it's not, due to lack of platform support.
>
> > > Perhaps a better alternative would be Bluetooth? Perhaps even HTTP
> > > over IP over Bluetooth...
>
> > > On Jun 1, 11:11 am, Felipe Ovalle  wrote:
>
> > > > Hello,
> > > > anybody knows a code example for communicate one android application to
> > a
> > > > desktop java application to do something like update one desktop mysql
> > > > database for example? I want this connection trough usb cable (i
> > think). I
> > > > don´t wanna make this connection trough http.
>
> > > > thanks!
>
> > > > --
> > > > Felipe Tomás Ovalle / ftovalle
> > > > Desarrollo de Sistemas Java, Android, Php
> > > > Tel. 54 341 155 052447 -www.ftovalle.com.ar-
> > > > Msn: ftova...@hotmail.com -
> > > > Skype: ftovalle
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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


[android-developers] read birth date from contact list in Android-1.6

2010-06-02 Thread Nemat
Hi..


How can we read birth date from contact list in SDK-1.6 and 1.5??
Any help will be appreciated...

Thanks in Advance
Nemat

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

2010-06-02 Thread Ericson, Anders
Hi,

In your "AndroidManifest.xml" you can add this to your activity:
android:theme="@android:style/Theme.Wallpaper"

/Anders

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of AndroidNewbie
Sent: den 3 juni 2010 05:49
To: Android Developers
Subject: [android-developers] Set wallpaper as background

Hi ,

I want to set current wallpaper as my application background . Any
ideas to do it through XML or Java code ?

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

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

2010-06-02 Thread Rahul
Hi,

Can you plz post some code so that all the developers could evaluate
the code and tell you the mistake you made. Hope that you have
generated the API key correctly.
 If you are looking for some sample code then you can mail me...

On Jun 3, 9:44 am, aswini  wrote:
> Hi ,
>
> I am new to this group; I would like to share my problems in this
> group. I am trying to develop small map application in android
> emulator.
> Initially I have generated the API key, by using that key I have
> tried to view the map in the android emulator window (I have 
> referredhttp://www.vogella.de/articles/Android/article.htmlthis site to
> develop the map application and find the current location). but I
> couldn’t view the map.
> So I have added the maps demo application which is there in the
> android SDK. Still I couldn’t see the map. Please guide me how do I
> find and verify API key
> Which I generated is correct? Initially at what map will display in
> the android emulator?
> Thanks in advance………
>
> Thanks and 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] Re: How to know the reason that causes the activity destroyed

2010-06-02 Thread Gibson
I guess one of the reason maybe due to the screen orientation changed?


On Jun 3, 6:53 am, Jiang  wrote:
> One of my Activity is restarted automatically (that is onDestroyed() is 
> called, and then onCreate(xxx) is called as well).
>
> And I found following matters before Acviity is destroyed:
>  - onLowMemory() is not called
>  - onConfigurationChanged(xxx) is not called
>  - inOnDestroy(), method isFinishing() returns false
>
> How to know the reason auses the activity destroyed?
>
> Thanks.
> -Jiang

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

2010-06-02 Thread Nithin

Can you become more clear, Map not displaying means, whether its
showing tiles or something else. What exactly happening when launching
your application ? Anyway, check you give proper permission, for
internet, for google map library and for getting location.

Nithin

On Jun 3, 9:44 am, aswini  wrote:
> Hi ,
>
> I am new to this group; I would like to share my problems in this
> group. I am trying to develop small map application in android
> emulator.
> Initially I have generated the API key, by using that key I have
> tried to view the map in the android emulator window (I have 
> referredhttp://www.vogella.de/articles/Android/article.htmlthis site to
> develop the map application and find the current location). but I
> couldn’t view the map.
> So I have added the maps demo application which is there in the
> android SDK. Still I couldn’t see the map. Please guide me how do I
> find and verify API key
> Which I generated is correct? Initially at what map will display in
> the android emulator?
> Thanks in advance………
>
> Thanks and 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] Re: Can't we add shared libraries without use of android ndk tools

2010-06-02 Thread karteek
Hi,
I used the following commands to create shared library
arm-none-linux-gnueabi-gcc -fpic -c sample.c
arm-none-linux-gnueabi-ld -T armelf_linux_eabi.xsc -shared -o
libmylib.so sample.o
Now it is working.
But problem is
If iam using any c functions like fgets,strcpy
It is unable to load my shared library
And the logcat is showing as
06-03 11:01:17.283: INFO/dalvikvm(226): Unable to dlopen(/data/data/
sct.widget/lib/libmylib.so): Cannot load library:
reloc_library[1244]:30 cannot locate 'fgets'...

I understand that while creating  libmylib.so we need to give support
of glibc that means we need to link it with our shared library
How can i do this please help me
Regards,
karteek.


On Jun 1, 8:01 pm, karteek  wrote:
> mah thanks for your reply
> 1 I checked in /data/data/mypackage/libs
>   my library is present in the above folder
> Second aproach you suggested me is
> I am able to work with ndk tools
> I observed both libraries that mean one my build and second one is
> through ndk tools
> i used nm tool to see what is in it.
> But i did not understand any thing i am pure in this terminology
> i am pasting the nm tool out put can u suggest any thing
> Thanks in advance.
> # nm libmylib.so //using arm tool chain
> 03d8 t $a
> 03a0 t $a
> 04e8 t $a
> 03a8 t $a
> 04ec t $a
> 03fc t $a
> 0450 t $a
> 0494 t $a
> 03ac t $a
> 03c0 t $a
> 03f4 t $d
> 8620 d $d
> 0440 t $d
> 8510 t $d
> 0488 t $d
> 850c t $d
> 8624 b $d
> 04f0 r $d
> 04e0 t $d
> 0508 r $d
> 8514 d $d
> 03bc t $d
> 0494 T Java_sct_notification_NotificationJNIActivity_getStrings
> 8518 a _DYNAMIC
> 8600 a _GLOBAL_OFFSET_TABLE_
>          w _Jv_RegisterClasses
> 0508 r __FRAME_END__
> 8514 d __JCR_END__
> 8514 d __JCR_LIST__
> 8628 A __bss_end__
> 8624 A __bss_start
> 8624 A __bss_start__
>          w __cxa_finalize@@GLIBC_2.4
> 03fc t __do_global_dtors_aux
> 8510 t __do_global_dtors_aux_fini_array_entry
> 8620 d __dso_handle
> 8628 A __end__
> 0508 A __exidx_end
> 0508 A __exidx_start
> 850c t __frame_dummy_init_array_entry
>          w __gmon_start__
> 8628 A _bss_end__
> 8624 A _edata
> 8628 A _end
> 04e8 T _fini
> 03a0 T _init
> 03d8 t call_gmon_start
> 8624 b completed.6049
> 0450 t frame_dummy
>
> Second one
> # nm libsctlib.so
> 0b94 t $a
> 0ba8 t $a
> 0bf4 t $a
> 0c1c t $a
> 0c68 t $a
> 0c94 t $a
> 0cac t $a
> 0d38 t $a
> 0d40 t $a
> 0d44 t $a
> 0d64 t $a
> 1114 t $a
> 111c t $a
> 1124 t $a
> 112c t $a
> 1260 t $a
> 12cc t $a
> 1394 t $a
> 14b0 t $a
> 14cc t $a
> 1524 t $a
> 15c8 t $a
> 15e8 t $a
> 1654 t $a
> 1684 t $a
> 19c0 t $a
> 1b68 t $a
> 1bc0 t $a
> 1bc8 t $a
> 1bd0 t $a
> 1bf8 t $a
> 1c00 t $a
> 1c1c t $a
> 1c2c t $a
> 1fa8 t $a
> 0b24 t $a
> 0b38 t $a
> 0b8c t $d
> 1110 t $d
> 1248 t $d
> 1670 t $d
> 1fa4 t $d
> 0b34 t $d
> 0b74 t $t
> 0b74 t $t
> 0b75 T Java_sct_notification_NotificationJNIActivity_getStrings
> 3128 a _DYNAMIC
> 31e8 a _GLOBAL_OFFSET_TABLE_
> 1b44 T _Unwind_Backtrace
> 0d40 T _Unwind_Complete
> 0d44 T _Unwind_DeleteException
> 1b20 T _Unwind_ForcedUnwind
> 0d38 T _Unwind_GetCFA
> 1bc8 T _Unwind_GetDataRelBase
> 0bf4 t _Unwind_GetGR
> 1bd0 t _Unwind_GetGR
> 1c00 T _Unwind_GetLanguageSpecificData
> 1c1c T _Unwind_GetRegionStart
> 1bc0 T _Unwind_GetTextRelBase
> 1ab4 T _Unwind_RaiseException
> 1ad8 T _Unwind_Resume
> 1afc T _Unwind_Resume_or_Rethrow
> 0c68 t _Unwind_SetGR
> 0ba8 T _Unwind_VRS_Get
> 1654 T _Unwind_VRS_Pop
> 0c1c T _Unwind_VRS_Set
> 0b94 t _Unwind_decode_target2
> 1b44 T ___Unwind_Backtrace
> 1b20 T ___Unwind_ForcedUnwind
> 1ab4 T ___Unwind_RaiseException
> 1ad8 T ___Unwind_Resume
> 1afc T ___Unwind_Resume_or_Rethrow
> 1124 T __aeabi_unwind_cpp_pr0
> 111c W __aeabi_unwind_cpp_pr1
> 1114 W __aeabi_unwind_cpp_pr2
> 3208 A __bss_end__
> 3208 A __bss_start
> 3208 A __bss_start__
>          w __cxa_begin_cleanup
>          w __cxa_call_unexpected
>          w __cxa_type_match
> 3208 D __data_start
> 3208 A __end__
> 2128 A __exidx_end
> 2018 A __exidx_start
> 12cc T __gnu_Unwind_Backtrace
>          w __gnu_Unwind_Find_exidx
> 14b0 T __gnu_Unwind_ForcedUnwind
> 1524 T __gnu_Unwind_RaiseException
> 19d4 T __gnu_Unwind_Restore_VFP
> 19e4 T __gnu_Unwind_Restore_VFP_D
> 19f4 T __gnu_Unwind_Restore_VFP_D_16_to_31
> 1a8c T __gnu_Unwind_Restore_WMMXC
> 1a04 T __gnu_Unwind_Restore_WMMXD
> 15e8 T __gnu_Unwind_Resume
> 15c8 T __gnu_Unwind_Resume_or_Rethrow
> 19dc T __gnu_Unwind_Save_VFP
> 19ec T __gnu_Unwind_Save_VFP_D
> 19fc T __gnu_Unwind_Save_VFP_D_16_to_31
>

[android-developers] Creating streams for in memory data

2010-06-02 Thread qwesthead
We've a stream of data that gets created in byte array continuosly,
that gets generated in our code and that should be consumed from
another module that uses a third party library. The third party
library apis takes only Inputstream as a parameter in the API.

Is there a way I can write the bytes into inputstream? Is something
like UNIX named pipes is supported in Android? If so, is there a code
sample?

Thanks,
Qwest

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

2010-06-02 Thread Jiang
One of my Activity is restarted automatically (that is onDestroyed() is called, 
and then onCreate(xxx) is called as well).

And I found following matters before Acviity is destroyed:
 - onLowMemory() is not called
 - onConfigurationChanged(xxx) is not called
 - inOnDestroy(), method isFinishing() returns false

How to know the reason auses the activity destroyed?

Thanks.
-Jiang



  

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

[android-developers] Maven and Android

2010-06-02 Thread Nando Android
Hi all,

Is there any documentation out there that shows examples on how to start
Android projects with Maven?

I like Eclipse to develop and debug but I like to use Maven to create the
project and control which jars are on the repository and need to be fetched
from the Internet.

Any suggestions on this?

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] Map is not dispalying in the android emulator

2010-06-02 Thread aswini
Hi ,

I am new to this group; I would like to share my problems in this
group. I am trying to develop small map application in android
emulator.
Initially I have generated the API key, by using that key I have
tried to view the map in the android emulator window (I have referred
http://www.vogella.de/articles/Android/article.html this site to
develop the map application and find the current location). but I
couldn’t view the map.
So I have added the maps demo application which is there in the
android SDK. Still I couldn’t see the map. Please guide me how do I
find and verify API key
Which I generated is correct? Initially at what map will display in
the android emulator?
Thanks in advance………


Thanks and 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] how to dynamic create a imageview on widget?

2010-06-02 Thread [G]
hi all,

   i want to  dynamic create imageview on a widget.  how can i do
this?

thanks a lot

grays

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

2010-06-02 Thread PP
Hi Frank,

Thanks for the reply.

The build did not crash without the USB cable. Without the USB cable
connected to the host, i was able to get the Android boot screen.
I got the prebuilt images from the site, http://code.google.com/p/rowboat/.
Could there be some problem with the kernel image of the build?
Should i download the source and rebuild it ?

Regrads,,
Satish.

On Jun 2, 1:30 pm, FrankG  wrote:
> Did it crash without the cable ?
>
> From someone you got the flash tool, the details how to flash the
> devise and I assume
> also a orginal complete working build for this device.
>
> I would suggest you to a) run the device with the orginal build and
> save the kernel messages and then b) run your own build and save
> them and after that compare them to see what can be the problem.
>
> You should also check with modinfo the Kernel Objects (*.ko), maybe
> "vermagic"
> is modified through your Source Control System ?
>
> Good luck ! Frank
>
> On 1 Jun., 12:54, PP  wrote:
>
> > Hi All,
>
> > I have Omap3530 evm running Android 2.1. I want to install application
> > on the evm, so i connected the evm to the host through the USB OTG
> > cable, but the kernel is crashing. Kindly help me out in sorting this
> > issue. Find the log below:
>
> > OMAP3_EVM #
> > OMAP3_EVM #
> > OMAP3_EVM # setenv bootargs 'init=/init  console=ttyS0,115200n8 root=/
> > dev/mmcblk
> > 0p2 rw rootwait mem=256M noinitrd androidboot.console=ttyS0
> > mpurate=720'
> > OMAP3_EVM # setenv bootcmd 'mmcinit; fatload mmc 0 0x8010 uImage;
> > bootm 0x80
> > 10'
> > OMAP3_EVM # boot
> > reading uImage
>
> > 2489828 bytes read
> > ## Booting kernel from Legacy Image at 8010 ...
> >    Image Name:   Linux-2.6.32
> >    Image Type:   ARM Linux Kernel Image (uncompressed)
> >    Data Size:    2489764 Bytes =  2.4 MB
> >    Load Address: 80008000
> >    Entry Point:  80008000
> >    Verifying Checksum ... OK
> >    Loading Kernel Image ... OK
> > OK
>
> > Starting kernel ...
>
> > Uncompressing
> > Linux.
> > ...­.
> > ... done, booting the kernel.
> > Linux version 2.6.32 (r...@khasim-laptop) (gcc version 4.4.0 (GCC) )
> > #2 Thu May
> > 20 18:31:19 IST 2010
> > CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
> > CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
> > Machine: OMAP3 EVM
> > Memory policy: ECC disabled, Data cache writeback
> > OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp 720m )
> > SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x10
> > Reserving 4194304 bytes SDRAM for VRAM
> > Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
> > 65024
> > Kernel command line: init=/init console=ttyS0,115200n8 root=/dev/
> > mmcblk0p2 rw ro
> > otwait mem=256M noinitrd androidboot.console=ttyS0 mpurate=720
> > PID hash table entries: 1024 (order: 0, 4096 bytes)
> > Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
> > Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
> > Memory: 256MB = 256MB total
> > Memory: 250112KB available (4292K code, 825K data, 176K init, 0K
> > highmem)
> > Hierarchical RCU implementation.
> > NR_IRQS:402
> > Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
> > Reprogramming SDRC clock to 33200 Hz
> > GPMC revision 5.0
> > IRQ: Found an INTC at 0xfa20 (revision 4.0) with 96 interrupts
> > Total of 96 interrupts on 1 active controller
> > OMAP GPIO hardware version 2.5
> > OMAP clockevent source: GPTIMER1 at 32768 Hz
> > Console: colour dummy device 80x30
> > Calibrating delay loop... 499.92 BogoMIPS (lpj=1949696)
> > Mount-cache hash table entries: 512
> > CPU: Testing write buffer coherency: ok
> > regulator: core version 0.5
> > NET: Registered protocol family 16
> > Target VDD1 OPP = 6, VDD2 OPP = 3
> > omap3evmdc: Driver registration complete
> > OMAP DMA hardware revision 4.0
> > bio: create slab  at 0
> > SCSI subsystem initialized
> > usbcore: registered new interface driver usbfs
> > usbcore: registered new interface driver hub
> > usbcore: registered new device driver usb
> > i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
> > twl4030: PIH (irq 7) chaining IRQs 368..375
> > twl4030: power (irq 373) chaining IRQs 376..383
> > twl4030: gpio (irq 368) chaining IRQs 384..401
> > regulator: VMMC1: 1850 <--> 3150 mV normal standby
> > regulator: VDAC: 1800 mV normal standby
> > regulator: VAUX2_4030: 2800 mV normal standby
> > regulator: VPLL2: 1800 mV normal standby
> > regulator: VSIM: 1800 <--> 3000 mV normal standby
> > i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
> > i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
> > Switching to clocksource 32k_counter
> > musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
> > musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
> > musb_hdrc musb_hdrc: MUSB HDRC host driver
> > musb_hdrc musb_hdrc

[android-developers] Set wallpaper as background

2010-06-02 Thread AndroidNewbie
Hi ,

I want to set current wallpaper as my application background . Any
ideas to do it through XML or Java code ?

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


[android-developers] Re: AutoCompleteTextView woes

2010-06-02 Thread Zsolt Vasvari
> Use the dismiss method.

Doesn't work.  I tried that -- the only way dimiss works is if I do it
with a significant delay, perhaphs 0.25 sec.

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


[android-developers] Processing Camera Preview

2010-06-02 Thread Marc Lester Tan
Hi everybody,

I just want to ask what is the best way to do processing of preview frame from 
the Camera. Right now, I am doing it like this:

1. I put the byte[] from onPreviewFrame to a queue (limited to 10, for this 
example) until the queue is full.
2. ProcessingThread fetches from this queue for processing
3. ProcessingThread post updates to the UIThread for the result of the 
processing.

Is there other way or pattern to do this kind of scenario? Thanks in advance.

Regards,
Marc

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

2010-06-02 Thread Greg Donald
On Wed, Jun 2, 2010 at 8:58 PM, Shekhar  wrote:
> see adb logcat you will know

http://groups.google.com/group/android-developers/browse_thread/thread/74489da8dff151b3?hl=en#

Strange how you can see the original post, but not Mark's reply seven
minutes later..


-- 
Greg Donald
destiney.com | gregdonald.com

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


[android-developers] Re: How to tell which permission are required?

2010-06-02 Thread Shekhar
see adb logcat you will know

sandma...@libero.it wrote:
> Hi,
>
> I have a problem with an application, that refuses to start, and I think it
> may be because of missing permission(s). Is there any way to tell which
> permissions are required by an application in order to run?
>
> 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] Handling keyevents in the Background (Service)

2010-06-02 Thread Mani Droid
Dear all

Is it possible to handle the KeyEvents in the Service?

If possible, please guide me.


Thanks in Advance


Regards
Mani

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

[android-developers] Sprint Hero Android 2.1 Lost Copy Protected Apps Access

2010-06-02 Thread Craigo
Can somebody please confirm that the Spring Hero used to have access
to copy protected apps, however, after the upgrade to Android 2.1,
they now don't?

If this does get confirmed, is there any alternative to just removing
the copy protection?  Eg: If a user purchased a copy protected app,
then they upgraded to Android 2.1 (which wipes the phone), they can't
reinstall the copy protected app they purchased?

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: Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread kevin0228ca
Oh thanks, I have it now.
I was not declaring a min sdk, so  are all false as
it should be before sdk 1.6. Now I set it to be all true, and the
images are loaded correctly.
There are quite a lot of topics with this issue, next time I'll search
the posts first. 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: HttpUrlConnection and Sleeping Phones

2010-06-02 Thread Indicator Veritatis
I think you are going to have to be more informative than that to be
helpful. Not that it is your fault: the suggestion of 'wakelock' was a
good one. It is just that the online documentation for
PowerManager.WakeLock is not as thorough as that for, say for example,
Activity.

Why, as one example of a major omission, the documentation for the
acquire() method says, "Makes sure the device is on at the level you
asked when you created the wake lock", but no Constructor is
documented. Nor is there any mention of a Factory method. So how is
the user supposed to figure out HOW to ask for the level???

So since the documentation didn't mention it, I will mention it here:
the answer is in the class WakeLock is nested in(PowerManager), which
has the method 'newWakeLock()'. This is what does the creation
referred to so obliquely in the doc for 'acquire()'.

On Jun 2, 2:23 pm, Mike dg  wrote:
> Are you using a wakelock?
>
> On Jun 2, 4:10 pm, Daniel Lew  wrote:> I've run into a 
> bizarre situation and I'm not sure how to solve it.
>
> > The app I'm working on has a regular pull update that occurs every so
> > often in the background.  When the phone is on, it works.  When the
> > phone is using wifi, it works.  However, if the phone is sleeping and
> > connected only to 3G, it only *sometimes* works.  Other times,
> > HttpUrlConnection.getInputStream() returns null (after a lengthy
> > timeout, though it's not based on any timeout setting...  it just
> > seems to randomly time out at some point).  There are no exceptions
> > thrown and no logs indicate any trouble, except that my connection
> > goes completely ignored.
>
> > Does anyone know why this might be 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] Augmented reality problem with Android 2.2 only, Openg Surface View and Surface View for Camera. 3D Not Rendering.

2010-06-02 Thread dlzerocool
Hello,

At moment I'm developing an Augmented Reality game, so I'm using the
Hardware Camera and a Surface View to show camera preview.

Everything works fine from what I've been able to test from
Android 1.5 to android 2.1
What goes wrong is in Android 2.2
If I leave the layer from 3D rendering and Camera on the same ordre
than for the previous androids then I don't have the 3D on the screen,
apparently it's drawing it on the back (behind the camera surface).

So Here is the pastebin of the code I have to change (switch the too
layer order in the current layout), also added as attached file.
http://pastebin.com/gyVd0nWR

I've searched for an answer, and have been talking on IRC #android-dev
but apparently it's not very common issue.

What is strange is that there's no release note about 2.2 that this
views have been changed or something else.

The issue is quite easy, but that means I've to have 2 versions on the
market of the same applications.

I hope someone will be able to find why this strange behavior happen
with 2.2

Thank you.

Best regards.

Yvan.

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

2010-06-02 Thread fadden
On Jun 1, 11:32 am, mohammed sabri  wrote:
> We need Arabic support pleeas  ):

http://b.android.com/5597

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread Mark Murphy
kevin0228ca wrote:
> I read that WVGA will load from drawable-hdpi and HVGA will load from
> drawable-mdpi.

That is not strictly accurate.

First, WVGA and HVGA are technically unrelated to screen density. It is
possible to have medium- or high-density screens of either WVGA or HVGA
size.

The emulator, by default, will create HVGA as medium-density and WVGA as
high-density.

> When I tested with 2 emulators both running 2.1, each
> with HVGA and WVGA. It turns out that they are both reading the image
> in mdpi. If I deleted the image in mdpi then they read from hdpi.
> Can someone answer why emulator with WVGA is reading from drawable-
> mdpi? 

Do you have a proper  element?

All of this was just covered on this list within the past 48 hours...

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

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

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


Re: [android-developers] Re: Kill an app / package in API 8 (Froyo)

2010-06-02 Thread Dianne Hackborn
On Wed, Jun 2, 2010 at 1:18 AM, Lee  wrote:

> killBackgroundProcesses works (you need a permission for it), but it
> merely restarts the background services, so it's a little poorly
> named.
>

Actually it does exactly what it says -- it kills a process.  If an
application has a service that it wants to keep running, the normal behavior
of the system kicks in to restart the service for the app.  As the
documentation says, this allows the app to do the same thing is the out of
memory killer (killing processes) without breaking applications by causing
their services to be stopped when they don't expect (or unregister their
alarms or the other things that fully stopping an app does).

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

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

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

Re: [android-developers] Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread Dianne Hackborn
WVGA may be either mdpi (large screen) or hdpi (normal screen).

On Wed, Jun 2, 2010 at 3:37 PM, kevin0228ca  wrote:

> Hi everyone.
> I read about in the google documents that the 3 folders corresponds to
> different screen types and that android would select the image from
> different folders automatically according to the screen type.
> I read that WVGA will load from drawable-hdpi and HVGA will load from
> drawable-mdpi. When I tested with 2 emulators both running 2.1, each
> with HVGA and WVGA. It turns out that they are both reading the image
> in mdpi. If I deleted the image in mdpi then they read from hdpi.
> Can someone answer why emulator with WVGA is reading from drawable-
> mdpi? 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
>



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

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

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

[android-developers] Why is emulator with WVGA loading image from drawable-mdpi?

2010-06-02 Thread kevin0228ca
Hi everyone.
I read about in the google documents that the 3 folders corresponds to
different screen types and that android would select the image from
different folders automatically according to the screen type.
I read that WVGA will load from drawable-hdpi and HVGA will load from
drawable-mdpi. When I tested with 2 emulators both running 2.1, each
with HVGA and WVGA. It turns out that they are both reading the image
in mdpi. If I deleted the image in mdpi then they read from hdpi.
Can someone answer why emulator with WVGA is reading from drawable-
mdpi? thanks

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


Re: [android-developers] Re: Managing a suite of applications

2010-06-02 Thread Dianne Hackborn
Also the Froyo aapt has an option to change the manifest package name at
build time.  This new aapt option should work with any version of the
platform.

On Wed, Jun 2, 2010 at 4:41 AM, Mark Murphy  wrote:

> blcooley wrote:
> > I don't have a good answer for this, but I did go through the same
> > thing as you. I recently published 6 apps on the same codebase with a
> > few differing assets. I did it by refactoring in Eclipse, just like
> > you mentioned.
> >
> > On May 25, 3:51 pm, Jonathan Johnson  wrote:
> >> I asked this on Stackoverflow, and got my first tumbleweed, so I
> >> thought I would give it a chance here. :)
> >>
> >> I'm building a suite of applications, meaning that I have a single set
> >> of code that gets customized via a single change of an API key. This
> >> means that all of the applications have the same activities, same
> >> behaviors, but different icons, package names, and application names
> >> depending on the client I am building for.
> >>
> >> Unfortunately, I haven't figured out a clean way to do this. Because
> >> the package name is what the Android Marketplace uses, I've been
> >> changing it to com.nilobject.productname.clientname. However, this
> >> changes the package for all of the activities to no longer be in the
> >> package of the application, since they live in
> >> "com.nilobject.productname." Additionally, the autogenerated "R"
> >> moves, so all of the references to R in com.nilobject.productname
> >> break.
> >>
> >> Has anyone else dealt with this problem? I'm using Eclipse for
> >> development. Should I just refactor the activities with each build to
> >> be in the same package? Is there a system for this that I don't know
> >> about?
>
> Look at the new "library project" facility added in the latest edition
> of the Android development tools, as it may fit your needs.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Consulting: http://commonsware.com/consulting
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

2010-06-02 Thread Dianne Hackborn
At this point the USB connection is not intended for application use.  It is
for developers.  You should NOT be writing apps that have users turn on this
developer mechanism; that opens up security holes to them that they are
likely not going to be aware of.  (Though we did add to the platform the
notification about the USB debugging connection being activity just to help
them know about this and encourage them to turn it off.)

On Wed, Jun 2, 2010 at 6:24 AM, ftovalle  wrote:

> thanks for your repply!
> But, i saw some applications that run trough usb connection, and do
> that communication very well. For example
> https://gems.codaset.com/jens-riboe/droidatscreen.
> This application shows a device screen in your pc, and do it trough
> usb connection.
>
>
>
> On 1 jun, 16:56, Bob Kerns  wrote:
> > May I ask *why* you don't want to use HTTP?
> >
> > USB isn't really an option. The normal approach is to use the net. I
> > understand completely that there can be disadvantages in different
> > environments, however, very few of those disadvantages have any
> > relationship to the HTTP protocol. My guess is that it's not really
> > HTTP that you have a concern with, but some other aspects of
> > networking, such as discovery, security, firewalls.
> >
> > There's plenty of reason to want a more predictable type of connection
> > between a single user's PC an device. USB would seem to be it because
> > of that nice wire, but it's not, due to lack of platform support.
> >
> > Perhaps a better alternative would be Bluetooth? Perhaps even HTTP
> > over IP over Bluetooth...
> >
> > On Jun 1, 11:11 am, Felipe Ovalle  wrote:
> >
> > > Hello,
> > > anybody knows a code example for communicate one android application to
> a
> > > desktop java application to do something like update one desktop mysql
> > > database for example? I want this connection trough usb cable (i
> think). I
> > > don´t wanna make this connection trough http.
> >
> > > thanks!
> >
> > > --
> > > Felipe Tomás Ovalle / ftovalle
> > > Desarrollo de Sistemas Java, Android, Php
> > > Tel. 54 341 155 052447 -www.ftovalle.com.ar-
> > > Msn: ftova...@hotmail.com -
> > > Skype: ftovalle
> >
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Default Paint size too small on new device; is there a better source?

2010-06-02 Thread Dianne Hackborn
It's not a bug; you need to go through the Context/Resource to find the
correct app scaling, and a plain constructor does not have this so can not
take such things into account.

You should define attributes like text sizes in resources, where you can use
units like "dp" and use those values to set your size.  This is essentially
how TextView works, where it gets a style array of the attributes (size,
color, etc) it uses to initialize its paint.

On Wed, Jun 2, 2010 at 8:30 AM, String wrote:

> I think it is a bug, personally. Paint has a similar problem with
> measureText(); it doesn't account for different screen densities
> correctly.
>
> My solution is similar to Kostya's: I handle it manually using the
> reported density of the display.
>
> String
>
> On Jun 2, 1:38 pm, Kostya Vasilyev  wrote:
> > Eric,
> >
> > I ran into same issues with my app.
> >
> > First of all, small text can be made more readable by calling
> > paint.setAntiAlias(true);
> >
> > Second, I do my own text scaling based on the device's screen density.
> > Something like: textSize = unscaledSize * screenDensity / 160.0f. Note
> > that default density for pre-1.6 devices is 160 dpi.
> >
> > Screen density is available as canvas.getDensity(), which first appeared
> > in API 4 (Android 1.6).
> >
> > Since I want my app run on Android 1.5, I wrote a simple helper method
> > using Java reflection that works on all versions of Android.
> >
> > public static int getScreenDensity(Canvas canvas) {
> > if (gScreenDensity == 0) {
> > gScreenDensity = 160;
> >
> > Class canvasClass = canvas.getClass();
> > try {
> > Method getDensityMethod = canvasClass.getMethod("getDensity");
> > gScreenDensity = (Integer) getDensityMethod.invoke(canvas);
> >
> > } catch (NoSuchMethodException x) {
> > } catch (InvocationTargetException x) {
> > } catch (IllegalArgumentException e) {
> > } catch (IllegalAccessException e) {
> > }
> > }
> >
> > return gScreenDensity;
> >
> > }
> >
> > static int gScreenDensity = 0;
> >
> > Hope this helps.
> >
> > 02.06.2010 16:24, eehouse пишет:
> >
> >
> >
> >
> >
> > > My app uses a custom View that does a lot of text drawing.  To ensure
> > > my text is always readable I've been using the result of calling
> > > getTextSize() on a newly-created Paint() instance as the minimum
> > > size.  Docs say calling 'new Paint()' sets attributes like text size
> > > to default values.
> >
> > > One of my European users just got a Motorola Milestone phone and
> > > reports that some text is unreadably small.  I believe I've duplicated
> > > this using the WVGA854 skin in a 2.1 emulator.  Run in that emulator
> > > my app's smallest TextViews look fine, but the text I'm drawing myself
> > > using Paint instances where I haven't changed the text size from the
> > > default is too small.  I confirmed this by commenting out all
> > > setTextSize() calls in my View subclass: the text becomes too small to
> > > read comfortably.
> >
> > > It feels like a bug to me that the default text size on Paint can be
> > > significantly smaller than default TextView size on some devices.  Is
> > > it a known bug?
> >
> > > In the meantime, can someone suggest a way to size Paint text so that
> > > it's readable on any device regardless of screen resolution?  I
> > > believe there are APIs to translate inches to pixels, so perhaps I
> > > could hard-code a size in inches.  Or I could measure the laid-out
> > > height of a TextView and store that as an invisible preference.  But
> > > is there a better way, say an API I haven't found?  (I suspect it'd be
> > > enough if Paint were like TextView in allowing you to specify the
> > > units in which text size is set, but it doesn't.)
> >
> > > Thanks,
> >
> > > --Eric
> >
> > --
> > Kostya Vasilev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.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
>



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

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

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

Re: [android-developers] KeyEvent definitions / meanings?

2010-06-02 Thread Dianne Hackborn
Those key codes come from standard keyboards and we currently don't have a
platform meaning assigned to them.

There is not a dedicated keycode to dismiss an IME; the back button does
that.

On Wed, Jun 2, 2010 at 10:18 AM, nuvibob  wrote:

> Can someone point me to documentation with the definitions / meanings
> (i.e., what action is expected to be performed) for the KeyEvents?
>
> Aside from the obviouse KEYCODE_A to KEYCODE_Z, etc. there are some
> that I don't understand and I cannot find any mention anywhere on the
> web ?!
>
> Specifically the following, but generally all of them:
>
>
> KEYCODE_EXPLORER
> KEYCODE_ENVELOPE
>
>
> Also, is there a meta-key to dismiss the keyboard via an injected
> KeyEvent?
>
> -thanks in advance,
>  Bob
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: Petitions to Google

2010-06-02 Thread asicwizard
Thank-you Xavier for adding the library-projects facility to the SDK
tools r6.

http://developer.android.com/guide/developing/other-ide.html#libraryProject

Hopefully people will start using that to build different versions of
their apps (free vs paid etc) and they can put their pre-processors
away.

On May 20, 11:16 am, Xavier Ducrohet  wrote:
> We just released it this morning with the 2.2 SDK.
>
> On Thu, May 20, 2010 at 8:42 AM, Greg Donald  wrote:
> > On Wed, May 19, 2010 at 10:49 PM, Xavier Ducrohet  wrote:
> >> We will introduce a new build mechanism that will allow you to easily
> >> share code and resources across 2+ application projects that will be
> >> much better at handling this case.
>
> > This is great news.  Would you care to ballpark a rough ETA for us?
>

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

2010-06-02 Thread Leigh McRae
Thank you for the response.  I gave it a try and it reports the same.  
The screen is locked in portrait mode and the bottom, I would guess 72 
pixels, are black.  The rest of the screen is being drawn correctly.  It 
also works on the other larger modes.


Leigh

On 6/2/2010 5:32 PM, social hub wrote:

can u try

Display display = getWindowManager().getDefaultDisplay().getMetrics(dm);
dm.heightPixels. this gives absolute height. I think this is what you 
are after.


On Wed, Jun 2, 2010 at 4:25 PM, Leigh McRae 
> wrote:


Hello,

I created an emulator using API level 5 and skin WQVGA432.  I would
expect the display size would be 240x432 but I get 240x360 using the
following code.

Display display = getWindowManager().getDefaultDisplay();

int w = display.getWidth();
int h = display.getHeight();

Also I believe I have the auto-scaling off using the following.



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

To unsubscribe from this group, 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 


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


Re: [android-developers] AutoCompleteTextView static data. Slow performance.

2010-06-02 Thread TreKing
On Tue, Jun 1, 2010 at 7:27 AM, Oleksandr Stashuk
wrote:

> Is there any way to speed this up?


Don't use such a large list. Try breaking up the one massive list into
something you can index. For example, instead of 1 list of ~2000 items, you
can have 26 lists of about 80 items indexed by the first character in each
address (more if you're using numbers, I guess).

Then when the user starts typing, get the first character they've typed and
get the corresponding list for that character (simple map lookup) and set
that much smaller list as the data source for the auto complete text view.

Disclaimer: I've not done anything with AutoCompleteTextViews so this may or
may not be actually possible =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

Re: [android-developers] Emulator screen size is wrong

2010-06-02 Thread social hub
can u try

Display display = getWindowManager().getDefaultDisplay().getMetrics(dm);
dm.heightPixels. this gives absolute height. I think this is what you are
after.

On Wed, Jun 2, 2010 at 4:25 PM, Leigh McRae
wrote:

> Hello,
>
> I created an emulator using API level 5 and skin WQVGA432.  I would
> expect the display size would be 240x432 but I get 240x360 using the
> following code.
>
> Display display = getWindowManager().getDefaultDisplay();
>
> int w = display.getWidth();
> int h = display.getHeight();
>
> Also I believe I have the auto-scaling off using the following.
>
>  android:resizeable="false"
> android:normalScreens="true"
> android:largeScreens="true"
> android:anyDensity="true"
> android:smallScreens="false">
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Emulator screen size is wrong

2010-06-02 Thread Leigh McRae
Hello,

I created an emulator using API level 5 and skin WQVGA432.  I would
expect the display size would be 240x432 but I get 240x360 using the
following code.

Display display = getWindowManager().getDefaultDisplay();

int w = display.getWidth();
int h = display.getHeight();

Also I believe I have the auto-scaling off using the following.



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

2010-06-02 Thread Mike dg
Are you using a wakelock?

On Jun 2, 4:10 pm, Daniel Lew  wrote:
> I've run into a bizarre situation and I'm not sure how to solve it.
>
> The app I'm working on has a regular pull update that occurs every so
> often in the background.  When the phone is on, it works.  When the
> phone is using wifi, it works.  However, if the phone is sleeping and
> connected only to 3G, it only *sometimes* works.  Other times,
> HttpUrlConnection.getInputStream() returns null (after a lengthy
> timeout, though it's not based on any timeout setting...  it just
> seems to randomly time out at some point).  There are no exceptions
> thrown and no logs indicate any trouble, except that my connection
> goes completely ignored.
>
> Does anyone know why this might be 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


Re: [android-developers] How to tell which permission are required?

2010-06-02 Thread Mark Murphy
sandma...@libero.it wrote:
> Hi, 
> 
> I have a problem with an application, that refuses to start, and I think it 
> may be because of missing permission(s). Is there any way to tell which 
> permissions are required by an application in order to run?

There will be errors in LogCat when you lack a permission. Use adb
logcat, DDMS, or the DDMS perspective in Eclipse to look for these messages.

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


[android-developers] How to tell which permission are required?

2010-06-02 Thread sandma...@libero.it
Hi, 

I have a problem with an application, that refuses to start, and I think it 
may be because of missing permission(s). Is there any way to tell which 
permissions are required by an application in order to run?

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: ACTION_VIEW sefaults is no application installed for mimetype

2010-06-02 Thread jdeslip
Ooops.  I figured this out.  It was actually catching the problem fine
but crashing during my txt2 writing.

-Jack

On Jun 2, 1:01 pm, jdeslip  wrote:
> Hi All,
>
> I have an app that downloads a pdf from a server and tries to open it
> with an itent:
>
> Intent intent = new Intent();
> intent.setAction(android.content.Intent.ACTION_VIEW);
> File file = new File(filepath+filename);
> intent.setDataAndType(Uri.fromFile(file), "application/pdf");
> try {
>       startActivity(intent);} catch (ActivityNotFoundException e) {
>
>        final Exception ef = e;
>        txt2.post(new Runnable() {
>            public void run() {
>                 txt2.setText(" "+ef);
>            }
>        });
>
> }
>
> Everything works great if any applications are installed on the device
> that will open a pdf.  But, if no apps are installed, this part of the
> code just segfaults (my catching of the exception apparently does not
> work).
>
> Here is the logcat output
>
> I/ActivityManager(   61): Starting activity: Intent
> { act=android.intent.action.VIEW dat=file:///sdcard/arXiv/tmp.pdf
> typ=application/pdf }
> W/dalvikvm(  322): threadid=7: thread exiting with uncaught exception
> (group=0x4001d800)
> E/AndroidRuntime(  322): FATAL EXCEPTION: Thread-9
> E/AndroidRuntime(  322): java.lang.NullPointerException
> E/AndroidRuntime(  322):        at
> com.commonsware.android.arXiv.singleitemwindow
> $1.run(singleitemwindow.java:243)
> W/ActivityManager(   61):   Force finishing activity
> com.commonsware.android.arXiv/.singleitemwindow
>
> So, my question is can I somehow determine if any app is available for
> application/pdf mimetype ahead of time.  Or, can I prevent the code
> from dying here and tell the user to install a pdf reader app?
>
> -Jack

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


[android-developers] HttpUrlConnection and Sleeping Phones

2010-06-02 Thread Daniel Lew
I've run into a bizarre situation and I'm not sure how to solve it.

The app I'm working on has a regular pull update that occurs every so
often in the background.  When the phone is on, it works.  When the
phone is using wifi, it works.  However, if the phone is sleeping and
connected only to 3G, it only *sometimes* works.  Other times,
HttpUrlConnection.getInputStream() returns null (after a lengthy
timeout, though it's not based on any timeout setting...  it just
seems to randomly time out at some point).  There are no exceptions
thrown and no logs indicate any trouble, except that my connection
goes completely ignored.

Does anyone know why this might be 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] ACTION_VIEW sefaults is no application installed for mimetype

2010-06-02 Thread jdeslip
Hi All,

I have an app that downloads a pdf from a server and tries to open it
with an itent:

Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File(filepath+filename);
intent.setDataAndType(Uri.fromFile(file), "application/pdf");
try {
  startActivity(intent);
} catch (ActivityNotFoundException e) {
   final Exception ef = e;
   txt2.post(new Runnable() {
   public void run() {
txt2.setText(" "+ef);
   }
   });
}

Everything works great if any applications are installed on the device
that will open a pdf.  But, if no apps are installed, this part of the
code just segfaults (my catching of the exception apparently does not
work).

Here is the logcat output

I/ActivityManager(   61): Starting activity: Intent
{ act=android.intent.action.VIEW dat=file:///sdcard/arXiv/tmp.pdf
typ=application/pdf }
W/dalvikvm(  322): threadid=7: thread exiting with uncaught exception
(group=0x4001d800)
E/AndroidRuntime(  322): FATAL EXCEPTION: Thread-9
E/AndroidRuntime(  322): java.lang.NullPointerException
E/AndroidRuntime(  322):at
com.commonsware.android.arXiv.singleitemwindow
$1.run(singleitemwindow.java:243)
W/ActivityManager(   61):   Force finishing activity
com.commonsware.android.arXiv/.singleitemwindow

So, my question is can I somehow determine if any app is available for
application/pdf mimetype ahead of time.  Or, can I prevent the code
from dying here and tell the user to install a pdf reader app?

-Jack

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

2010-06-02 Thread AusR
I just had a look at the GDATA API.
http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html

(notice the version 2 in the url - nice - has android support)

The getting started instructions read:
For help setting up the client library, see the Getting Started Guide.
To use the Java client library, you must be running Java 1.5. After
downloading the client library, you'll find the classes you need to
get started in the java/lib/gdata-calendar-1.0.jar and java/lib/
gdataclient-1.0.jar jar files.

Result: I downloaded the client library and the above mentioned jars
don't exist, I can't even find the CalendarService class?

What am I doing wrong. Did I follow the wrong Data API Developer's
Guide ?



On May 26, 10:28 pm, Mike dg  wrote:
> It is suck... sigh
> -miked g
>
> On May 26, 5:07 pm, String  wrote:
>
>
>
> > On May 26, 6:12 pm, arnoldl  wrote:
>
> > > Is there a valid way to read write to thecalendarOFFLINE ??
>
> > Cache your updates. Sync the next time there's a network connection.
>
> > IOW, operate under the assumption that theCalendarAPI isn't
> > available on-device, and design your app accordingly. I know, it's not
> > how the unpublished API has been working, but it is how many other
> > APIs do work, and devs create useful apps for them nonetheless.
>
> > String

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


[android-developers] Re: How to take a photo and return a big image

2010-06-02 Thread guich
   private String getRealPathFromURI(Uri contentUri)
   {
  String [] proj={MediaStore.Images.Media.DATA};
  Cursor cursor = managedQuery(contentUri,proj,null,null,null);
  int column_index =
cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
  cursor.moveToFirst();
  return cursor.getString(column_index);
   }

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

2010-06-02 Thread guich
Well, since i don't believe there's a solution for the problem, at
least i got something better. Still using approach #1, but now i
delete the file from the Gallery.

  Uri uri = data.getData();
  String ipath = getRealPathFromURI(uri);
  File f = new File(ipath);
  InputStream is = new FileInputStream(f);
  FileOutputStream os = new
FileOutputStream(targetPhotoName);
  byte[] buf = new byte[4096];
  int r;
  while ((r = is.read(buf)) > 0)
 os.write(buf,0,r);
  is.close();
  os.close();
  // delete the original photo
  f.delete();
  getContentResolver().delete(uri,null,null);
  // return to TotalCross
  Launcher4A.pictureTaken(0,null);

HTH if noone helps me. ;-)

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


[android-developers] Display Widget inside activity?

2010-06-02 Thread Tommy
Hey everyone,

I was wondering if there is a way to show a widget that I have created
inside an activity. I have a weather widget and I also have an app I
am working on that I would like to include weather reports in. Is
there a way I can just re-use the widget code and make it show inside
the weather activity?

Thanks for your time and help,

Tommy

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

2010-06-02 Thread guich
Hi,

I have a simple task (simple in other platforms, not in Android :-( ):
take a photo and return its pathname to the caller.

I searched a lot the net and tried many variants to the code. I'm
aware of the "thumbnail image" bug and am trying to bypass it.

The following code works, but its somewhat dificult to get the photo:
the guy has to go to the media picker, click menu button, select
"camera capture", take the photo, click back, and finally select the
photo from the list. The good thing: the photo returned is BIG.

  Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
  intent.setType("image/*");
  startActivityForResult(intent, TAKE_PHOTO);

   protected void onActivityResult(int requestCode, int resultCode,
Intent data)
   {
  switch (requestCode)
  {
 case TAKE_PHOTO:
if (resultCode == RESULT_OK)
   try
   {
  Uri uri = data.getData();
  java.io.InputStream is =
getContentResolver().openInputStream(uri);
  java.io.FileOutputStream os = new
java.io.FileOutputStream(targetPhotoName);
  byte[] buf = new byte[4096];
  int r;
  while ((r = is.read(buf)) > 0)
 os.write(buf,0,r);
  is.close();
  os.close();
  Launcher4A.pictureTaken(0,null);
   }
   catch (Exception e)
   {
  String stack = Log.getStackTraceString(e);
  AndroidUtils.debug(stack);
   }
   break;
  }

I also saw a code that (in theory) would do exactly what i need:

  sourcePhotoName = Environment.getExternalStorageDirectory() +
java.io.File.separator + "tmpPhoto.jpg";
  targetPhotoName = s;
  Intent i = new
Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  Uri uri = Uri.fromFile(new java.io.File(sourcePhotoName));
  i.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
  startActivityForResult(i, TAKE_PHOTO);

   protected void onActivityResult(int requestCode, int resultCode,
Intent data)
   {
  switch (requestCode)
  {
 case TAKE_PHOTO:
if (resultCode == RESULT_OK)
   try
   {
  java.io.InputStream is = new
FileInputStream(sourcePhotoName);
  java.io.FileOutputStream os = new
java.io.FileOutputStream(targetPhotoName);
  byte[] buf = new byte[4096];
  int r;
  while ((r = is.read(buf)) > 0)
 os.write(buf,0,r);
  is.close();
  os.close();
   }
   catch (Exception e)
   {
  String stack = Log.getStackTraceString(e);
  AndroidUtils.debug(stack);
   }
   break;
  }
   }


It works (almost) as expected: the camera application is shown, and
after the photo is taken, the photo is returned to the application.
However, it has two problems:

1. If i pass a folder inside my application's directory, when i press
"done" button, the camera application does not return; it stays in the
same screen until i press cancel. Seems that the camera application
does not have permissions to write to my folder.
2. The image returned from this code is the SMALL IMAGE (THUMBNAIL).

So, i now have a code that works and return a big image, but is
somewhat burocratic to the guy to use (and also can lead to errors, if
he selects the wrong picture), and a code that does what i want but
returns a small picture.

I'm using a HTC G2 with Android 1.6, and i have to use it because 1.6
is the requirement for my system.

Ok, now the question: is there something i can do in code #2 to make
it return the big picture?

thanks and regards,

  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] Re: Themes, Styles and Items [How to create skins for apps?]

2010-06-02 Thread Moto
No idea what you mean about so what...

The thing is I want my background to point to something like
colorListItemBottom.  Than each created Theme could change the color
property of colorListItemBottom.


On May 30, 10:37 am, helmi.mir...@gmail.com wrote:
> So what ?
> Powered by Telkomsel BlackBerry®
>
> -Original Message-
> From: Moto 
>
> Sender: android-developers@googlegroups.com
> Date: Sun, 30 May 2010 07:33:10
> To: Android Developers
> Reply-To: android-developers@googlegroups.com
> Subject: [android-developers] Re: Themes, Styles and Items [How to create
>         skins for apps?]
>
> Bump?...
>
> On May 27, 6:57 pm, Moto  wrote:
> > 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 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Android Emulator and LTE technology :)

2010-06-02 Thread Mike dg
Please pass your cat to my mom and we can talk bizness :) Long term
expectency of Android is ++ this year for less than 4 Gs!

On Jun 2, 11:56 am, Károly Holczhauser  wrote:
> Hi Guys!
>
>  Can anyone tell me how can I develop an application witch is using the
> newest 4G technology ( LTE ) ? I living in Hungary were still not available,
> maybe some year :) but I really would like to write an program witch using
> LTE to send and receive dates.
>  If anybody has some idea please tell me.
>
>                 Thank you so much: Károly

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

2010-06-02 Thread Abdul Mateen
Ok Perfect, Got it Thanks for the answer.
On Wed, Jun 2, 2010 at 10:42 PM, Mark Murphy wrote:

> Abdul Mateen wrote:
> > Sorry I found much , but could not any video for of the android session.
>
> Second bullet on that page is:
>
> "Wed June 2: Enterprise, Android"
>
> Yesterday's videos were released about mid-day Pacific time. Please have
> a little patience.
>
> --
> 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
>



-- 
Regards,
Abdul Mateen,
Software Engineer at Rounded Labs Ltd.
Linux Administrator at Addictive Mobility Inc
Mobile : +92-333-3265875.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Failing JUnit tests, not breaking my Ant script like I expect?

2010-06-02 Thread Xavier Ducrohet
failonerror only checks the return code of the app it's running.

In this case adb runs correctly so your test doesn't break.

Note however that while adb is not able to return the error code of
the shell command it's running on the device, it's also not the issue
in this case.
"am instrument" does not fail to run, and therefore doesn't return a
bad error code.

What we would need is a program that reads the output of "adb shell am
instrument..." and triggers an error based on the output.

On Wed, Jun 2, 2010 at 9:15 AM, whitemice  wrote:
> My continuous integration server runs an Ant script, which calls
> something like:
> /tests/ant run-tests
>
> My JUnit tests run, but with errors:
> run-tests:
>     [echo] run-tests-helper.
>     [echo] Running tests ...
>     [exec]
>     [exec] com.zedray.stuff.FooBarTest:
>     [exec] com.zedray.stuff.FooBarTest:.INSTRUMENTATION_RESULT:
> shortMsg=Some error in your code.
>     [exec] INSTRUMENTATION_RESULT:
> longMsg=java.security.InvalidParameterException: Some error in your
> code
>     [exec] INSTRUMENTATION_CODE: 0
>
> The errors are OK, but my build script keeps going (eventually
> publishing my broken app to my testers - bad!).  What I would expect
> is for the instrimentaiton to throw a build error, so my continuous
> integration server (TeamCity in this case) realises that something has
> gone wrong and reports a broken build.  The "failonerror" is already
> set in the relevant macrodef, so I'm not sure what else I can do?
>
>  /tests/build.xml 
> 
>    
>    
>    
>        Running tests ...
>        
>            
>            
>               
>            
>            
>               
>               
>            
>            
>        
>    
> 
>
> Any ideas/suggestions on how to fix this?
>
> Regards
> Mark
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

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


Re: [android-developers] Google IO 2010 videos

2010-06-02 Thread Mark Murphy
Abdul Mateen wrote:
> Sorry I found much , but could not any video for of the android session.

Second bullet on that page is:

"Wed June 2: Enterprise, Android"

Yesterday's videos were released about mid-day Pacific time. Please have
a little patience.

-- 
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] Google IO 2010 videos

2010-06-02 Thread Abdul Mateen
Sorry I found much , but could not any video for of the android session.

On Wed, Jun 2, 2010 at 9:23 PM, Mark Murphy  wrote:

> Cleverson wrote:
> > Where are the Google IO 2010 videos?
>
> http://code.google.com/events/io/2010/sessions.html
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://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
>



-- 
Regards,
Abdul Mateen,
Software Engineer at Rounded Labs Ltd.
Linux Administrator at Addictive Mobility Inc
Mobile : +92-333-3265875.

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

[android-developers] KeyEvent definitions / meanings?

2010-06-02 Thread nuvibob
Can someone point me to documentation with the definitions / meanings
(i.e., what action is expected to be performed) for the KeyEvents?

Aside from the obviouse KEYCODE_A to KEYCODE_Z, etc. there are some
that I don't understand and I cannot find any mention anywhere on the
web ?!

Specifically the following, but generally all of them:


KEYCODE_EXPLORER
KEYCODE_ENVELOPE


Also, is there a meta-key to dismiss the keyboard via an injected
KeyEvent?

-thanks in advance,
 Bob

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


[android-developers] Re: Speech Recognition

2010-06-02 Thread GregM
Someone please answer this question!

On May 24, 7:35 pm, minhaz  wrote:
> Hi
>
> In my emulator isRecognitionAvailable method from SpeechRecognizer
> class returns false and also when i run VoiceRecognition.java sample
> code on API level 8 platform 2.2 i got "Recognizer not present"
> message. Any idea hints whats going on?
>
> If problem is Speech recognition is not available in my emulator then
> how to install it in my virtual device?
>
> regards,
>
> /minhaz
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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] how to obtain email address?

2010-06-02 Thread HeHe
does anybody know how to programmatically obtain the email address
configured on an android phone? that is the one which was used to
activate the phone?

thanks in advance for the know-how.

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


[android-developers] Re: Android finishActivity()

2010-06-02 Thread asicwizard
I am a little confused by what you are trying accomplish here.

You are starting ActivityB and not finishing ActivityA.
When you hit the back button you want it to finish ActivityB but NOT
return to ActivityA?

If you didn't want ActivityA anymore, why didn't you finish it?

If you want to keep ActivityA around until ActivityB finishes then
implement an @override onResume method in ActivityA to finish it when
pops back to the top of the activity stack.

-hgb

On Jun 1, 8:29 pm, mike  wrote:
> hi guys,
>
> i have 2 activities. (Activity A and Activity B).
>
> Main Activity A is the Starting Activity. Activity B will run on top
> of Activity B and is a Blur View.
>
> when i'm redirecting to the Activity B i'm not finishing activity A.
>
> I'm Starting Activity B like this
>
> startActivityForResult(intent, 107);
>
> so when i press back button from Activity B i'm doing this (Simply i
> want to exit from the Application)
>
>         @Override
>         public boolean onKeyDown(int keyCode, KeyEvent event) {
>                 // TODO Auto-generated method stub
>                 if (keyCode == KeyEvent.KEYCODE_BACK) {
>                         finish();
>                         finishActivity(107);
>                         Intent intent = new Intent(this, Menu.class);
>                         startActivity(inten);
>                         return true;
>                 }
>                 return false;
>         }
>
> but when i press back button it displays the Activity A again???
>
> how can i fix this. once i press back button i want to exit from the
> application.
>
> regards,
> Mike

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


[android-developers] Re: AutoCompleteTextView woes

2010-06-02 Thread Kumar Bibek
Use the dismiss method.

For dismissing,  dismissDropDown()
For showing,  showDropDown()

Thanks and Regards,
Kumar Bibek

On Jun 2, 6:05 am, Zsolt Vasvari  wrote:
> If I programatically set the value of an AutoCompleteTextView using
> setText() and the view happens to have focus, the drop down will show
> automatically.  Is there an officially senctioned way of prevent this
> from happening?
>
> Right now, I hacked around the problem by clearing the adapter first,
> but it's a horrible kludge and it's probably a bug in
> AutoCompleteTextView that it actually works:
>
> ArrayAdapter adapterSave =
> (ArrayAdapter)textView.getAdapter();
> textView.setAdapter((ArrayAdapter)null);
> textView.setText(text);
> textView.setAdapter(adapterSave);
>
> Is there a better way?

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

2010-06-02 Thread Mark Murphy
Cleverson wrote:
> Where are the Google IO 2010 videos? 

http://code.google.com/events/io/2010/sessions.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://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


[android-developers] Google IO 2010 videos

2010-06-02 Thread Cleverson
Hi,

Where are the Google IO 2010 videos? So many Android-related cool
sessions and they'll be restricted just the fortunate guys who were
there? I'm looking forward to watch them.

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] Load https requests with Webview.

2010-06-02 Thread psaltamontes
Hello,

I'm trying to load https requests with a Webkit object but It shows
only a blank page, with http requests I don't have problems, It shows
the page correctly.

I have look the source code of the browser, in
http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=tree;f=src/com/android/browser;h=93374db498bf603472d0c9f83b4a9a6fbf9f592e;hb=9fadc3a1966adaf27751a78ad5b3e5a653ca38c1

but I don't understand how the browser process the https requests. I
think that the class BrowserActivity process the http and https
requests but I don't see how to do it. Somebody could explain how the
browser process the https request? It uses a Webview object to show
the response of the https requests?

Thank you.

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


[android-developers] Re: Wifi remains without events

2010-06-02 Thread Urizev
No, I am developing and testing the application in a Dev G1 device.

On 2 jun, 17:45, Kostya Vasilyev  wrote:
> Is this the Moto Droid / Milestone by any chance?
>
> 02.06.2010 19:29, Urizev пишет:
>
>
>
>
>
> > Hi,
>
> > I have developed an application which manages the WiFi. It has no GUI
> > and it only tries to connect to a specific WiFi network. I achieved it
> > successfully but it has a weird error:
>
> > Sometimes the WiFi system seems to be hung. It stops sending broadcast
> > events and it does not connect. But when I reset the WiFi router it
> > begins to work again. I do not know if it is a known error. I thought
> > it could be a router problem but I discard that because I check it
> > with several router models.
>
> > If you need more details, please, contact me.
>
> > Thank you very much!
>
> > Regards!
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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] Failing JUnit tests, not breaking my Ant script like I expect?

2010-06-02 Thread whitemice
My continuous integration server runs an Ant script, which calls
something like:
/tests/ant run-tests

My JUnit tests run, but with errors:
run-tests:
 [echo] run-tests-helper.
 [echo] Running tests ...
 [exec]
 [exec] com.zedray.stuff.FooBarTest:
 [exec] com.zedray.stuff.FooBarTest:.INSTRUMENTATION_RESULT:
shortMsg=Some error in your code.
 [exec] INSTRUMENTATION_RESULT:
longMsg=java.security.InvalidParameterException: Some error in your
code
 [exec] INSTRUMENTATION_CODE: 0

The errors are OK, but my build script keeps going (eventually
publishing my broken app to my testers - bad!).  What I would expect
is for the instrimentaiton to throw a build error, so my continuous
integration server (TeamCity in this case) realises that something has
gone wrong and reports a broken build.  The "failonerror" is already
set in the relevant macrodef, so I'm not sure what else I can do?

 /tests/build.xml 




Running tests ...



   


   
   






Any ideas/suggestions on how to fix this?

Regards
Mark

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


[android-developers] Re: HoW can we pass the two string values of one activity to another activity

2010-06-02 Thread Kumar Bibek
Pass them as simple strings using the intent. Or you can pass String
arrays also.

putExtra(String  name, String[]  value);
putExtra(String  name, String  value)

And you have there get counterparts as well.

Thanks and Regards,
Kumar Bibek

On Jun 2, 7:33 pm, Dixit Wadhwani  wrote:
> first.java
> ...
>                                 String[] items={"one","two"};
>                                 Bundle map = new Bundle();
>                                 map.putStringArray("link",items);
>                                 Intent myintent = new 
> Intent(view.getContext(),two.class);
>                                 myintent.putExtras(map);
>                                 startActivityForResult(myintent,0);
> 
>
> second.java
> .
>
>                                Bundle map=this.getIntent().getExtras();
>                                String links=map.getString("link");
> ..
>
> tell me that how can i get the two string values
> from one activity to another onesuch as links[0]="one"; and 
> links[1]="two";
>
> please help me

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


[android-developers] Android Emulator and LTE technology :)

2010-06-02 Thread Károly Holczhauser
Hi Guys!

 Can anyone tell me how can I develop an application witch is using the
newest 4G technology ( LTE ) ? I living in Hungary were still not available,
maybe some year :) but I really would like to write an program witch using
LTE to send and receive dates.
 If anybody has some idea please tell me.

Thank you so much: Károly

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

2010-06-02 Thread Lamia Hannoun
Well they all use HTTPCLIENT procedure, i'm using this kind of
communication(HttpTransportSE) with my service here's a sample:
*try* {

SoapObject request = *new* SoapObject(*NAMESPACE*, *METHOD_NAME*);

 request.addProperty("value", 2);

 SoapSerializationEnvelope envelope =
*new*SoapSerializationEnvelope(SoapEnvelope.
*VER11*);

envelope.dotNet=*true*;

envelope.setOutputSoapObject(request);

HttpTransportSE androidHttpTransport = *new* HttpTransportSE(*URL*);

androidHttpTransport.call(*SOAP_ACTION*, envelope);

SoapObject result = (SoapObject)envelope.getResponse();

} *catch* (Exception e) {

}

My question is how can i adapt the solution already given with this
method.Has anyone called a service by HTTPS  using the same thg

Thx .


2010/6/2 Kostya Vasilyev 

> Lamia,
>
> I believe this is because you're testing your code with a self-signed
> certificate on the server.
>
> There is some information on how to make it work here:
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/1ac2b851e07269ba
>
> Note that disabling certificate checks altogether is just for testing - for
> production use, you should consider buying a server certificate and
> re-enabling certificate checking in your code.
>
> -- Kostya
>
> 02.06.2010 18:41, Lamia Hannoun пишет:
>
> Well I only changed my wcf url, but i had the same error  "Not trusted
> server certificate" Could u plz help me !!
> thx
>
> 2010/5/31 Nando Scheidecker 
>
>> All you have to do is to specify https.
>>
>> For instance:
>>
>> HTTPRequestHelper helper = new HTTPRequestHelper(myResponseHandler);
>> helper.performPost("https://localhost/service";, user, pass, null, null);
>>
>>  On Mon, May 31, 2010 at 12:56 AM, Lamia Hannoun > > wrote:
>>
>>>  Well i tried to change my app.config file and it works but i had this
>>> issue with the certificate, i have this exception when i try to execute any
>>> method "Could not establish trust relationship for the SSL/TLS secure
>>> channel with authority 'localhost'." I foudn some tricks to make it work on
>>> C# project but i'm actually calling my wcf from android application.Plz how
>>> can i do it ? Does anyone got the same problem before???
>>> Thx
>>>   2010/5/28 Lamia Hannoun 
>>>
 Hello!  Any help  plz !

 2010/5/28 Lamia Hannoun 

  Hi!
>
> I have a biiig issue, I'm developping an android app that access my wcf
> using soap and basichttp for now on everythg seems working perfectly but 
> now
> i'm wondering if i can access to my wcf using https :s i read some 
> articles
> that say that it's impossible and complicated.
>
> Plz is there anyway to resolve that issue  Plz help.
>
> 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
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>
>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget -- 
> http://kmansoft.wordpress.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
>

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

2010-06-02 Thread Kostya Vasilyev

Is this the Moto Droid / Milestone by any chance?

02.06.2010 19:29, Urizev пишет:

Hi,

I have developed an application which manages the WiFi. It has no GUI
and it only tries to connect to a specific WiFi network. I achieved it
successfully but it has a weird error:

Sometimes the WiFi system seems to be hung. It stops sending broadcast
events and it does not connect. But when I reset the WiFi router it
begins to work again. I do not know if it is a known error. I thought
it could be a router problem but I discard that because I check it
with several router models.

If you need more details, please, contact me.

Thank you very much!

Regards!

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Preparing webapp for i-Jetty / using dx tool

2010-06-02 Thread Chris
Hi,

Has anyone successfully converted their web app to work with i-Jetty?
I seem to be unable... My first problem is trying to run the dx tool
with argument given in i-Jetty's pom.xml file (I'm trying to mimic
their process since I get errors when trying to run pom.xml with maven
eclipse plugin).  I run dx from command line:

> dx --dex --verbose --position=lines --output=.\classes.dex --core-library 
> .\com\test\ijetty\hello\HelloWorld.class

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: .\com\test\ijetty\hello\HelloWorld.class:
file not found
at com.android.dx.util.FileUtils.readFile(FileUtils.java:55)
at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
133)
at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
108)
at com.android.dx.command.dexer.Main.processOne(Main.java:247)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:
183)
at com.android.dx.command.dexer.Main.run(Main.java:139)
at com.android.dx.command.dexer.Main.main(Main.java:120)
at com.android.dx.command.Main.main(Main.java:89)
1 error; aborting

Can someone help me out?

Thanks,
Chris

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

2010-06-02 Thread Kostya Vasilyev

Lamia,

I believe this is because you're testing your code with a self-signed 
certificate on the server.


There is some information on how to make it work here:

http://groups.google.com/group/android-developers/browse_thread/thread/1ac2b851e07269ba

Note that disabling certificate checks altogether is just for testing - 
for production use, you should consider buying a server certificate and 
re-enabling certificate checking in your code.


-- Kostya

02.06.2010 18:41, Lamia Hannoun ?:
Well I only changed my wcf url, but i had the same error  "Not trusted 
server certificate" Could u plz help me !!

thx

2010/5/31 Nando Scheidecker >


All you have to do is to specify https.

For instance:

HTTPRequestHelper helper = new HTTPRequestHelper(myResponseHandler);
helper.performPost("https://localhost/service";, user, pass, null,
null);

On Mon, May 31, 2010 at 12:56 AM, Lamia Hannoun
mailto:lamia.hann...@gmail.com>> wrote:

Well i tried to change my app.config file and it works but i
had this issue with the certificate, i have this exception
when i try to execute any method "Could not establish trust
relationship for the SSL/TLS secure channel with authority
'localhost'." I foudn some tricks to make it work on C#
project but i'm actually calling my wcf from android
application.Plz how can i do it ? Does anyone got the same
problem before???
Thx
2010/5/28 Lamia Hannoun mailto:lamia.hann...@gmail.com>>

Hello!  Any help  plz !

2010/5/28 Lamia Hannoun mailto:lamia.hann...@gmail.com>>

Hi!
I have a biiig issue, I'm developping an android app
that access my wcf using soap and basichttp for now on
everythg seems working perfectly but now i'm wondering
if i can access to my wcf using https :s i read some
articles that say that it's impossible and complicated.
Plz is there anyway to resolve that issue  Plz help.
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


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

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, 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 



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Default Paint size too small on new device; is there a better source?

2010-06-02 Thread String
I think it is a bug, personally. Paint has a similar problem with
measureText(); it doesn't account for different screen densities
correctly.

My solution is similar to Kostya's: I handle it manually using the
reported density of the display.

String

On Jun 2, 1:38 pm, Kostya Vasilyev  wrote:
> Eric,
>
> I ran into same issues with my app.
>
> First of all, small text can be made more readable by calling
> paint.setAntiAlias(true);
>
> Second, I do my own text scaling based on the device's screen density.
> Something like: textSize = unscaledSize * screenDensity / 160.0f. Note
> that default density for pre-1.6 devices is 160 dpi.
>
> Screen density is available as canvas.getDensity(), which first appeared
> in API 4 (Android 1.6).
>
> Since I want my app run on Android 1.5, I wrote a simple helper method
> using Java reflection that works on all versions of Android.
>
> public static int getScreenDensity(Canvas canvas) {
> if (gScreenDensity == 0) {
> gScreenDensity = 160;
>
> Class canvasClass = canvas.getClass();
> try {
> Method getDensityMethod = canvasClass.getMethod("getDensity");
> gScreenDensity = (Integer) getDensityMethod.invoke(canvas);
>
> } catch (NoSuchMethodException x) {
> } catch (InvocationTargetException x) {
> } catch (IllegalArgumentException e) {
> } catch (IllegalAccessException e) {
> }
> }
>
> return gScreenDensity;
>
> }
>
> static int gScreenDensity = 0;
>
> Hope this helps.
>
> 02.06.2010 16:24, eehouse пишет:
>
>
>
>
>
> > My app uses a custom View that does a lot of text drawing.  To ensure
> > my text is always readable I've been using the result of calling
> > getTextSize() on a newly-created Paint() instance as the minimum
> > size.  Docs say calling 'new Paint()' sets attributes like text size
> > to default values.
>
> > One of my European users just got a Motorola Milestone phone and
> > reports that some text is unreadably small.  I believe I've duplicated
> > this using the WVGA854 skin in a 2.1 emulator.  Run in that emulator
> > my app's smallest TextViews look fine, but the text I'm drawing myself
> > using Paint instances where I haven't changed the text size from the
> > default is too small.  I confirmed this by commenting out all
> > setTextSize() calls in my View subclass: the text becomes too small to
> > read comfortably.
>
> > It feels like a bug to me that the default text size on Paint can be
> > significantly smaller than default TextView size on some devices.  Is
> > it a known bug?
>
> > In the meantime, can someone suggest a way to size Paint text so that
> > it's readable on any device regardless of screen resolution?  I
> > believe there are APIs to translate inches to pixels, so perhaps I
> > could hard-code a size in inches.  Or I could measure the laid-out
> > height of a TextView and store that as an invisible preference.  But
> > is there a better way, say an API I haven't found?  (I suspect it'd be
> > enough if Paint were like TextView in allowing you to specify the
> > units in which text size is set, but it doesn't.)
>
> > Thanks,
>
> > --Eric
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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] Wifi remains without events

2010-06-02 Thread Urizev
Hi,

I have developed an application which manages the WiFi. It has no GUI
and it only tries to connect to a specific WiFi network. I achieved it
successfully but it has a weird error:

Sometimes the WiFi system seems to be hung. It stops sending broadcast
events and it does not connect. But when I reset the WiFi router it
begins to work again. I do not know if it is a known error. I thought
it could be a router problem but I discard that because I check it
with several router models.

If you need more details, please, contact me.

Thank you very much!

Regards!

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


[android-developers] Re: Bluetooth socket to non Android device

2010-06-02 Thread Chris
I got it working, the problem was that I needed to pair with the
device first (for some reason it kept an incorrect PIN and wouldn't
pair).  Here is a snippet

BluetoothDevice device;
BluetoothSocket tmpsock = null;
int port = 1;
...
try
{
Method m = device.getClass().getMethod("createRfcommSocket", new
Class[] { int.class });
tmpsock = (BluetoothSocket)m.invoke(device, port);
Log.d(TAG, "CONNECTING...");
tmpsock.connect();
...
}
catch (Exception e)
{
Log.e(TAG, "Failed to connect", e);
...
}

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

2010-06-02 Thread Lamia Hannoun
Well I only changed my wcf url, but i had the same error  "Not trusted
server certificate" Could u plz help me !!
thx

2010/5/31 Nando Scheidecker 

> All you have to do is to specify https.
>
> For instance:
>
> HTTPRequestHelper helper = new HTTPRequestHelper(myResponseHandler);
> helper.performPost("https://localhost/service";, user, pass, null, null);
>
>   On Mon, May 31, 2010 at 12:56 AM, Lamia Hannoun  > wrote:
>
>>   Well i tried to change my app.config file and it works but i had this
>> issue with the certificate, i have this exception when i try to execute any
>> method "Could not establish trust relationship for the SSL/TLS secure
>> channel with authority 'localhost'." I foudn some tricks to make it work on
>> C# project but i'm actually calling my wcf from android application.Plz how
>> can i do it ? Does anyone got the same problem before???
>> Thx
>>2010/5/28 Lamia Hannoun 
>>
>>> Hello!  Any help  plz !
>>>
>>> 2010/5/28 Lamia Hannoun 
>>>
>>>  Hi!

 I have a biiig issue, I'm developping an android app that access my wcf
 using soap and basichttp for now on everythg seems working perfectly but 
 now
 i'm wondering if i can access to my wcf using https :s i read some articles
 that say that it's impossible and complicated.

 Plz is there anyway to resolve that issue  Plz help.

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

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

[android-developers] HoW can we pass the two string values of one activity to another activity

2010-06-02 Thread Dixit Wadhwani
first.java
...
String[] items={"one","two"};
Bundle map = new Bundle();
map.putStringArray("link",items);
Intent myintent = new 
Intent(view.getContext(),two.class);
myintent.putExtras(map);
startActivityForResult(myintent,0);


second.java
.

   Bundle map=this.getIntent().getExtras();
   String links=map.getString("link");
..


tell me that how can i get the two string values
from one activity to another onesuch as links[0]="one"; and links[1]="two";

please help me

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


Re: [android-developers] Re: Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Mark Murphy
Dominik Erbsland wrote:
> thanks for the hint.
> I have changed the inner class and put the clicklistener for the inner
> class as a whole - but I still have the same problem like before.

That's because you didn't change anything that matters. Your onClick()
method is still referring to the *last value* of "cheat". You need to
adjust onClick() to refer to the one you need, not the last one.

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

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

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


Re: [android-developers] About the mapview listener

2010-06-02 Thread TreKing
On Tue, Jun 1, 2010 at 8:14 PM, zhou haitao  wrote:

> Please give me some suggestion.


Have you looked through the Maps API documentation?

-
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: Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Dominik Erbsland
thanks for the hint.
I have changed the inner class and put the clicklistener for the inner
class as a whole - but I still have the same problem like before.

private class OrderAdapter extends ArrayAdapter implements
OnClickListener {

private ArrayList items;
private Cheat cheat;

public OrderAdapter(Context context, int textViewResourceId,
ArrayList items) {
super(context, textViewResourceId, items);
this.items = items;
}

public View getView(int position, View convertView, ViewGroup
parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.fulltext_search, null);
}

try {
cheat = items.get(position);
if (cheat != null) {

TextView tvGameName = (TextView) 
v.findViewById(R.id.tvGameName);
TextView tvSystem = (TextView) 
v.findViewById(R.id.tvSystem);
TextView tvCheatTitle = (TextView)
v.findViewById(R.id.tvCheatTitle);
TextView tvCheatText = (TextView)
v.findViewById(R.id.tvCheatText);

if (tvGameName != null) {

tvGameName.setText(cheat.getGameName());

tvGameName.setOnClickListener(this);
}

if (tvSystem != null) {
tvSystem.setText("(" + 
cheat.getSystemName() + ")");

tvSystem.setOnClickListener(this);
}

if (tvCheatTitle != null) {
String styledTitle = 
cheat.getCheatTitle();

tvCheatTitle.setText(Html.fromHtml(styledTitle),
TextView.BufferType.SPANNABLE);

tvCheatTitle.setOnClickListener(this);
}

if (tvCheatText != null) {
String styledText = 
cheat.getCheatText();
styledText = 
styledText.replaceAll("", " - ");
styledText = 
styledText.replaceAll("", " - ");
styledText = 
styledText.replaceAll("", "");


tvCheatText.setText(Html.fromHtml(styledText),
TextView.BufferType.SPANNABLE);

tvCheatText.setOnClickListener(this);
}

}

} catch (Exception e) {
Log.e("FulltextSearchResult.getView ERROR:", 
e.getMessage());
}
return v;
}

public void onClick(View paramView) {
Intent explicitIntent = new 
Intent(FulltextSearchResult.this,
CheatView.class);
explicitIntent.putExtra("cheatId", cheat.getCheatId());
explicitIntent.putExtra("cheatTitle", 
cheat.getCheatTitle());
explicitIntent.putExtra("gameId", cheat.getGameId());
explicitIntent.putExtra("gameName", 
cheat.getGameName());
explicitIntent.putExtra("systemId", 
cheat.getSystemId());
explicitIntent.putExtra("systemName", 
cheat.getSystemName());
startActivity(explicitIntent);
}
}














On 2 Jun., 13:39, Mark Murphy  wrote:
> Dominik Erbsland wrote:
> > I have a ListActivity which is being filled via an internal class
> > "OrderAdapter" - while the list is being populated I set various
> > OnClickListeners on the TextView elements which should open the same
> > view with different parameter values per line. My problem I have is
> > that no matter which entry in the list I click I will always get to a
> > view with the same parameter ID (it's always the ID of the last line
> > in the list) - even though the output of the ID varies if I output it
> > to the TextView.
>
> > Here is the code of the internal class which populates the list in the
> > ListActivity:
> > [code]
> >    private class OrderAdapter extends ArrayAdapter {
>
> >  

[android-developers] Call AT command / RIL / ATResponseParser

2010-06-02 Thread arnouf
Hi all,

I would like to send some AT commands, from my Android application, to
the RIL available on a phone.

I read a lot of things about this :
- it's not possible
- it's possible
- There are some API not documented about telephony which allow this

How does it it work exactly?
There is a RIL (a sort of library available in library level - related
to the Android Anatomy). This RIL provides some information related to
telephony connection or data connection.
If I need to call this real :
- can I do it directly from my Java code?
- do I have to implement a C library (using JNI / NDK) calling RIL ?

I think there is always a solution, so ...I'll read your answer.

Thanks a lot for your help.

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


Re: [android-developers] Changing screens - switching between layouts?

2010-06-02 Thread TreKing
On Tue, Jun 1, 2010 at 7:34 AM, Serdel  wrote:

> Is this the correct way of organizing such an app in android or should I
> take another approach - if I should, please give a more detailed advice on
> how to do this.
>

Usually you represent each screen with a new Activity class that
encapsulates what that screen does. So instead of changing the content view
you start a new activity. Look into startActivity() and
startActivityForResult().

-
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: Email via seanhodges.co.uk website

2010-06-02 Thread Sean Hodges
Hello herrmie,

What problems are you having? My post included some example code, is
it this code you're having trouble with, or is it with adding the
library to your project? Adding a library is relatively
straightforward, although I admit I found it a bit confusing when I
was starting off with Android programming. The steps are detailed
here: 
http://developer.android.com/intl/fr/guide/appendix/faq/commontasks.html#addexternallibrary

If your project is open-source, send me a link to it and I'll download
the source and try compiling from here. If not, perhaps you could give
me an idea of what you're trying to achieve, and I'll look into
putting together an example project for you.

Regards,

Sean


On Wed, Jun 2, 2010 at 2:16 PM,   wrote:
> Hello Sean,
>
> sorry that I am writing you, but I have read your post on the android 
> developer group about importing external jar files 
> (http://groups.google.com/group/android-developers/browse_thread/thread/eac4b8a9ad12374/6008cc4c1ed33fb3?lnk=gst&q=jericho#6008cc4c1ed33fb3).
>  I want to use jericho too, but I have the problem with the import. How does 
> it work? I have tried a lot but nothing fits. Please help me, it is very 
> urgent.
>
> Thanks a lot and greets,
> herrmie
>

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

2010-06-02 Thread Mark Murphy
ftovalle wrote:
> thanks for your repply!
> But, i saw some applications that run trough usb connection, and do
> that communication very well. For example 
> https://gems.codaset.com/jens-riboe/droidatscreen.
> This application shows a device screen in your pc, and do it trough
> usb connection.

dr...@screen does not use a general-purpose mechanism for this. Rather,
it uses the same tools that DDMS uses for screenshots.

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

Android App Developer Books: http://commonsware.com/books

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


[android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread ftovalle
Thanks for you repply!


On 1 jun, 15:16, Alexander Kipar  wrote:
> Hi,
> There isn't a "system" way to do this, but there aer some tricks.
> You could use ADB to forward PC port to Device port and create, for
> example, Socket connection between them.
>
> On Jun 1, 9:11 pm, Felipe Ovalle  wrote:
>
> > Hello,
> > anybody knows a code example for communicate one android application to a
> > desktop java application to do something like update one desktop mysql
> > database for example? I want this connection trough usb cable (i think). I
> > don´t wanna make this connection trough http.
>
> > thanks!
>
> > --
> > Felipe Tomás Ovalle / ftovalle
> > Desarrollo de Sistemas Java, Android, Php
> > Tel. 54 341 155 052447 -www.ftovalle.com.ar-
> > Msn: ftova...@hotmail.com -
> > Skype: ftovalle
>
>

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


[android-developers] Re: Android to PC communication trough USB

2010-06-02 Thread ftovalle
thanks for your repply!
But, i saw some applications that run trough usb connection, and do
that communication very well. For example 
https://gems.codaset.com/jens-riboe/droidatscreen.
This application shows a device screen in your pc, and do it trough
usb connection.



On 1 jun, 16:56, Bob Kerns  wrote:
> May I ask *why* you don't want to use HTTP?
>
> USB isn't really an option. The normal approach is to use the net. I
> understand completely that there can be disadvantages in different
> environments, however, very few of those disadvantages have any
> relationship to the HTTP protocol. My guess is that it's not really
> HTTP that you have a concern with, but some other aspects of
> networking, such as discovery, security, firewalls.
>
> There's plenty of reason to want a more predictable type of connection
> between a single user's PC an device. USB would seem to be it because
> of that nice wire, but it's not, due to lack of platform support.
>
> Perhaps a better alternative would be Bluetooth? Perhaps even HTTP
> over IP over Bluetooth...
>
> On Jun 1, 11:11 am, Felipe Ovalle  wrote:
>
> > Hello,
> > anybody knows a code example for communicate one android application to a
> > desktop java application to do something like update one desktop mysql
> > database for example? I want this connection trough usb cable (i think). I
> > don´t wanna make this connection trough http.
>
> > thanks!
>
> > --
> > Felipe Tomás Ovalle / ftovalle
> > Desarrollo de Sistemas Java, Android, Php
> > Tel. 54 341 155 052447 -www.ftovalle.com.ar-
> > Msn: ftova...@hotmail.com -
> > Skype: ftovalle
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Default Paint size too small on new device; is there a better source?

2010-06-02 Thread Kostya Vasilyev

Eric,

I ran into same issues with my app.

First of all, small text can be made more readable by calling 
paint.setAntiAlias(true);


Second, I do my own text scaling based on the device's screen density. 
Something like: textSize = unscaledSize * screenDensity / 160.0f. Note 
that default density for pre-1.6 devices is 160 dpi.


Screen density is available as canvas.getDensity(), which first appeared 
in API 4 (Android 1.6).


Since I want my app run on Android 1.5, I wrote a simple helper method 
using Java reflection that works on all versions of Android.


public static int getScreenDensity(Canvas canvas) {
if (gScreenDensity == 0) {
gScreenDensity = 160;

Class canvasClass = canvas.getClass();
try {
Method getDensityMethod = canvasClass.getMethod("getDensity");
gScreenDensity = (Integer) getDensityMethod.invoke(canvas);
} catch (NoSuchMethodException x) {
} catch (InvocationTargetException x) {
} catch (IllegalArgumentException e) {
} catch (IllegalAccessException e) {
}
}

return gScreenDensity;
}

static int gScreenDensity = 0;

Hope this helps.

02.06.2010 16:24, eehouse пишет:

My app uses a custom View that does a lot of text drawing.  To ensure
my text is always readable I've been using the result of calling
getTextSize() on a newly-created Paint() instance as the minimum
size.  Docs say calling 'new Paint()' sets attributes like text size
to default values.

One of my European users just got a Motorola Milestone phone and
reports that some text is unreadably small.  I believe I've duplicated
this using the WVGA854 skin in a 2.1 emulator.  Run in that emulator
my app's smallest TextViews look fine, but the text I'm drawing myself
using Paint instances where I haven't changed the text size from the
default is too small.  I confirmed this by commenting out all
setTextSize() calls in my View subclass: the text becomes too small to
read comfortably.

It feels like a bug to me that the default text size on Paint can be
significantly smaller than default TextView size on some devices.  Is
it a known bug?

In the meantime, can someone suggest a way to size Paint text so that
it's readable on any device regardless of screen resolution?  I
believe there are APIs to translate inches to pixels, so perhaps I
could hard-code a size in inches.  Or I could measure the laid-out
height of a TextView and store that as an invisible preference.  But
is there a better way, say an API I haven't found?  (I suspect it'd be
enough if Paint were like TextView in allowing you to specify the
units in which text size is set, but it doesn't.)

Thanks,

--Eric

   



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Default Paint size too small on new device; is there a better source?

2010-06-02 Thread eehouse
My app uses a custom View that does a lot of text drawing.  To ensure
my text is always readable I've been using the result of calling
getTextSize() on a newly-created Paint() instance as the minimum
size.  Docs say calling 'new Paint()' sets attributes like text size
to default values.

One of my European users just got a Motorola Milestone phone and
reports that some text is unreadably small.  I believe I've duplicated
this using the WVGA854 skin in a 2.1 emulator.  Run in that emulator
my app's smallest TextViews look fine, but the text I'm drawing myself
using Paint instances where I haven't changed the text size from the
default is too small.  I confirmed this by commenting out all
setTextSize() calls in my View subclass: the text becomes too small to
read comfortably.

It feels like a bug to me that the default text size on Paint can be
significantly smaller than default TextView size on some devices.  Is
it a known bug?

In the meantime, can someone suggest a way to size Paint text so that
it's readable on any device regardless of screen resolution?  I
believe there are APIs to translate inches to pixels, so perhaps I
could hard-code a size in inches.  Or I could measure the laid-out
height of a TextView and store that as an invisible preference.  But
is there a better way, say an API I haven't found?  (I suspect it'd be
enough if Paint were like TextView in allowing you to specify the
units in which text size is set, but it doesn't.)

Thanks,

--Eric

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

2010-06-02 Thread Sean Hodges
Mike,

You've done half the work already, except there is a little confusion
on the purpose of the finishActivity() method. That method only works
the other way around (closing Activity B from Activity A).

What you need to do now is send a "result" back to Activity A telling
it to call finish(). See the "Returning a Result from a Screen"
section here: 
http://developer.android.com/intl/fr/guide/appendix/faq/commontasks.html#opennewscreen

In Activity B, you simple want to do:

if (keyCode == KeyEvent.KEYCODE_BACK) {
setResult(RESULT_CANCELED);
finish();
}

and in Activity A, you want to handle the result callback:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_CANCELED) {
finish();
}
}



On Wed, Jun 2, 2010 at 12:46 PM, mike  wrote:
> hi NightGospel,,
>
> what exactly did u meant??? could you please give me a sample???
>
> regards,
> Randika
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Change Developer Account

2010-06-02 Thread Eddie Ringle
Renaming the apk will do nothing, you would have to at least change
the package name.

On Jun 2, 1:36 am, Brad Gies  wrote:
> My guess is that it won't work. I unpublished an app several months ago,
> and it still shows in my developer account.
>
> I think you will have to rename your .apk, publish the new one and then
> modify the old one and add a message encouraging users to download the
> new one. You can always give them a dialog box with a link to get the
> new one.
>
> On 01/06/2010 10:55 PM, String wrote:
>
>
>
>
>
> > On Jun 1, 9:05 pm, Breon Nagy  wrote:
>
> >> I work for a mobile development company.  We deployed an app to the
> >> Market under the client's developer account.  We now want to transfer
> >> the app to a different developer account.
>
> > Have you tried unpublishing the app (from the first account), then
> > publishing it anew from the second? I don't really expect that to
> > work :^), but there's nothing to lose by trying. Ordinarily, the
> > Developer Console won't let you upload an app whose package name
> > collides with an existing Market entry, but I'm not sure what happens
> > if the first one is unpublished.
>
> > Don't worry if it doesn't work; you can always republish from the
> > first account, and all you'll have lost will be a few minutes'
> > downloads.
>
> >> One idea we had was publish both.  The existing one would get a nag
> >> screen that tells the user that this app is no longer supported and
> >> directs them to download the new version.
>
> > Otherwise, a solution like this is probably your best option. The
> > Market isn't set up for real enterprise-level application lifecycle
> > management, not by a long shot.
>
> > String
>
> --
> Sincerely,
>
> Brad Gies
> ---
> Bistro Bot - Bistro 
> Blurbhttp://www.bgies.comhttp://www.bistroblurb.comhttp://www.bistrobot.com
> ---
>
> Never doubt that a small group of thoughtful, committed people can
> change the world. Indeed. It is the only thing that ever has - Margaret Mead- 
> Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: SocketTimeoutException: Read Timed Out Occurs Only via Mobile

2010-06-02 Thread opok
Hello, I have the same issue, and it occurs only in mobile network not
wifi, very strange.
Can you tell me what exactly you did to fix that?

On May 12, 6:33 am, Jeffrey  wrote:
> I've been experiencing something similar using HttpClient (also using
> URLConnection):
>
> java.net.SocketTimeoutException: The operation timed out
>
> The quick fix seems to be retrying the connection, but I'd like to
> think there's a better way of handling it.
>
> On May 4, 1:26 am, Paul Tongyoo  wrote:
>
>
>
>
>
> > Hi all--
>
> > I'm receiving "SocketTimeoutException: Read Timed Out" errors in my client
> > app when attempting to post image data to a central server over HTTPS.
> > What's odd is that I cannot reproduce the error when posting data from my
> > local machine (via the emulator) to the same server.  Increasing the
> > SO_TIMEOUT value seems to only prolong the amount of time it takes for the
> > timeout exception to occur.  I am very new to using the Apache HTTP API -
> > what am I missing?
>
> > HttpClient httpClient = new DefaultHttpClient();
> > HttpConnectionParams.setSoTimeout(httpClient.getParams(), 15000);
> > HttpConnectionParams.setConnectionTimeout(httpClient.getParams(), 15000);
> > HttpPost post = new HttpPost("https://";);
>
> > ...
>
> > HttpResponse response = httpClient.execute(post);  // Exception occurs here
>
> > ...
>
> > httpClient.getConnectionManager().shutdown();  // Closes the connection
> > successfully?
>
> > TIA
> > Paul
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Android finishActivity()

2010-06-02 Thread mike
hi NightGospel,,

what exactly did u meant??? could you please give me a sample???

regards,
Randika

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


[android-developers] Re: Android finishActivity()

2010-06-02 Thread NightGospel
Hi Mike,

I mean you can register one BroadcastReceiver in A to receive the
broadcast taht is sent from B.

For example,

public class A extends Activity{

public void onCreate(Bundle b){
.
.
.
registerFinishedReceiver();
}

private void registerFinishedReceiver(){
IntentFilter filter = new
IntentFilter("idv.nightgospel.action.FINISH");
registerReceiver(finishedReceiver, filter);
}

public void onDestroy(){
super.onDestroy();
unregisterReceiver(finishedReceiver);  // never forget to
unregister receivers
}

BroadcastReceiver finishedReceiver = new BroadcastReceiver(){
public void onReceive(Context context, Intent intent){
A.this.finish();   //  we finish Activity A here when
receiving the broadcast
}
};
}

public class B extends Activity{
.
.
.
public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
if (keyCode == KeyEvent.KEYCODE_BACK) {
Intent intent = new
Intent("idv.nightgospel.action.FINISH");
sendBroadcast(intent);  //  we send broadcast
here to tell A, you should
//  finish yourself
finish();
return true;
}
return false;
}
}

The above sample codes are what I mean.

NightGospel

On 6月2日, 下午7時07分, mike  wrote:
> hi NightGospel,
>
> what exactly did u mean? could u please give me a sample?
>
> regrads,
> Randika
>
> On Jun 2, 3:48 pm, NightGospel  wrote:
>
>
>
> > Hi Mike,
>
> > How about sending a broadcast to A when pushing back button in B ?
>
> > NightGospel
>
> > On 6月2日, 下午5時03分, mike  wrote:
>
> > > hi kamiseq,
>
> > > so then how can i finish the Activity A from Activity B???
>
> > > can't use finishActivity()
>
> > > regards,
> > > Randika

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

2010-06-02 Thread Mark Murphy
Ashok Jeevan wrote:
> Hi,
> I just wrote a test app and deployed it via Google Api 2.2 emulator
> version 8. The emulator is running and the Android logo comes. But after
> that, no progress.
> 
> When I checked the log, it shows a MountService with message 'waiting
> too long for mReady!'
> 
> What should be done inorder to boot the emulator?

It should just start up. Note that the first time you boot an AVD, it
will take longer than the second and subsequent times. Depending on the
speed of your PC, this may take several minutes.

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

Android Consulting: http://commonsware.com/consulting

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

2010-06-02 Thread Mark Murphy
blcooley wrote:
> I don't have a good answer for this, but I did go through the same
> thing as you. I recently published 6 apps on the same codebase with a
> few differing assets. I did it by refactoring in Eclipse, just like
> you mentioned.
> 
> On May 25, 3:51 pm, Jonathan Johnson  wrote:
>> I asked this on Stackoverflow, and got my first tumbleweed, so I
>> thought I would give it a chance here. :)
>>
>> I'm building a suite of applications, meaning that I have a single set
>> of code that gets customized via a single change of an API key. This
>> means that all of the applications have the same activities, same
>> behaviors, but different icons, package names, and application names
>> depending on the client I am building for.
>>
>> Unfortunately, I haven't figured out a clean way to do this. Because
>> the package name is what the Android Marketplace uses, I've been
>> changing it to com.nilobject.productname.clientname. However, this
>> changes the package for all of the activities to no longer be in the
>> package of the application, since they live in
>> "com.nilobject.productname." Additionally, the autogenerated "R"
>> moves, so all of the references to R in com.nilobject.productname
>> break.
>>
>> Has anyone else dealt with this problem? I'm using Eclipse for
>> development. Should I just refactor the activities with each build to
>> be in the same package? Is there a system for this that I don't know
>> about?

Look at the new "library project" facility added in the latest edition
of the Android development tools, as it may fit your needs.

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

Android Consulting: http://commonsware.com/consulting

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


Re: [android-developers] Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Mark Murphy
Dominik Erbsland wrote:
> I have a ListActivity which is being filled via an internal class
> "OrderAdapter" - while the list is being populated I set various
> OnClickListeners on the TextView elements which should open the same
> view with different parameter values per line. My problem I have is
> that no matter which entry in the list I click I will always get to a
> view with the same parameter ID (it's always the ID of the last line
> in the list) - even though the output of the ID varies if I output it
> to the TextView.
> 
> Here is the code of the internal class which populates the list in the
> ListActivity:
> [code]
>   private class OrderAdapter extends ArrayAdapter {
> 
>   private ArrayList items;
>   private Cheat cheat;
> 
>   public OrderAdapter(Context context, int textViewResourceId,
> ArrayList items) {
>   super(context, textViewResourceId, items);
>   this.explicitIntent = new Intent[items.size()];
>   this.items = items;
>   }
> 
>   public View getView(int position, View convertView, ViewGroup
> parent) {
>   View v = convertView;
>   if (v == null) {
>   LayoutInflater vi = (LayoutInflater)
> getSystemService(Context.LAYOUT_INFLATER_SERVICE);
>   v = vi.inflate(R.layout.fulltext_search, null);
>   }
> 
>   try {
>   cheat = items.get(position);
>   if (cheat != null) {
> 
>   TextView tvGameName = (TextView) 
> v.findViewById(R.id.tvGameName);
>   TextView tvSystem = (TextView) 
> v.findViewById(R.id.tvSystem);
>   TextView tvCheatTitle = (TextView)
> v.findViewById(R.id.tvCheatTitle);
>   TextView tvCheatText = (TextView)
> v.findViewById(R.id.tvCheatText);
> 
>   if (tvGameName != null) {
>   
> tvGameName.setText(cheat.getGameName());
>   
> tvGameName.setOnClickListener(new OnClickListener() {
> 
>   public void 
> onClick(View v) {
>   Intent 
> explicitIntent = new Intent(FulltextSearchResult.this,
> CheatView.class);
>   
> explicitIntent.putExtra("cheatId", cheat.getCheatId());
>   
> explicitIntent.putExtra("cheatTitle", cheat.getCheatTitle());
>   
> explicitIntent.putExtra("gameId", cheat.getGameId());
>   
> explicitIntent.putExtra("gameName", cheat.getGameName());
>   
> explicitIntent.putExtra("systemId", cheat.getSystemId());
>   
> explicitIntent.putExtra("systemName", cheat.getSystemName());
>   
> startActivity(explicitIntent);
>   }
> 
>   });
>   }
> 
>   if (tvSystem != null) {
>   tvSystem.setText("(" + 
> cheat.getSystemName() + ")");
>   tvSystem.setOnClickListener(new 
> OnClickListener() {
> 
>   public void 
> onClick(View v) {
>   Intent 
> explicitIntent = new Intent(FulltextSearchResult.this,
> CheatView.class);
>   
> explicitIntent.putExtra("cheatId", cheat.getCheatId());
>   
> explicitIntent.putExtra("cheatTitle", cheat.getCheatTitle());
>   
> explicitIntent.putExtra("gameId", cheat.getGameId());
>   
> explicitIntent.putExtra("gameName", cheat.getGameName());
>   
> explicitIntent.putExtra("systemId", cheat.getSystemId());
>   
> explicitIntent.putExtra("systemName", cheat.getSystemName());
>   
> startActivity(explicitIntent);
>   

[android-developers] Re: Managing a suite of applications

2010-06-02 Thread blcooley
I don't have a good answer for this, but I did go through the same
thing as you. I recently published 6 apps on the same codebase with a
few differing assets. I did it by refactoring in Eclipse, just like
you mentioned.

On May 25, 3:51 pm, Jonathan Johnson  wrote:
> I asked this on Stackoverflow, and got my first tumbleweed, so I
> thought I would give it a chance here. :)
>
> I'm building a suite of applications, meaning that I have a single set
> of code that gets customized via a single change of an API key. This
> means that all of the applications have the same activities, same
> behaviors, but different icons, package names, and application names
> depending on the client I am building for.
>
> Unfortunately, I haven't figured out a clean way to do this. Because
> the package name is what the Android Marketplace uses, I've been
> changing it to com.nilobject.productname.clientname. However, this
> changes the package for all of the activities to no longer be in the
> package of the application, since they live in
> "com.nilobject.productname." Additionally, the autogenerated "R"
> moves, so all of the references to R in com.nilobject.productname
> break.
>
> Has anyone else dealt with this problem? I'm using Eclipse for
> development. Should I just refactor the activities with each build to
> be in the same package? Is there a system for this that I don't know
> about?
>
> Thanks for any ideas and help!

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


[android-developers] Re: CANNOT manage to get ADB working whatever I do.

2010-06-02 Thread Per
you can fetch it directly from HTC:
http://www.htc.com/www/supportdownloadlist.aspx?p_id=312&act=sd&cat=all


On 1 Jun., 14:29, HLL  wrote:
> Worth a shoot, could you upload this thing? cuz i don't have this
> thing on my card that came with the device...
>
> On Jun 1, 9:29 am, Per  wrote:
>
> > I initially had the same problem (HTC Desire, which I believe is
> > 99.9%=Nexus One) on Win32 (Vista, XP). SDK USB driver didn't work.
> > I came across a recommendation to install the HTCSync exe that was on
> > the SD card - and that did it.
>
> > I assume that something equivalent exists for the N1?
>
> > BR
> > Per
>
> > On 25 Maj, 17:20, 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] 2.2 Google Api emulator not booting up

2010-06-02 Thread Ashok Jeevan
Hi,
I just wrote a test app and deployed it via Google Api 2.2 emulator version
8. The emulator is running and the Android logo comes. But after that, no
progress.

When I checked the log, it shows a MountService with message 'waiting too
long for mReady!'

What should be done inorder to boot the emulator?

Ashok Jeevan

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

[android-developers] Problem with multiple Intents in a ListView populated via subclass

2010-06-02 Thread Dominik Erbsland
I have a ListActivity which is being filled via an internal class
"OrderAdapter" - while the list is being populated I set various
OnClickListeners on the TextView elements which should open the same
view with different parameter values per line. My problem I have is
that no matter which entry in the list I click I will always get to a
view with the same parameter ID (it's always the ID of the last line
in the list) - even though the output of the ID varies if I output it
to the TextView.

Here is the code of the internal class which populates the list in the
ListActivity:
[code]
private class OrderAdapter extends ArrayAdapter {

private ArrayList items;
private Cheat cheat;

public OrderAdapter(Context context, int textViewResourceId,
ArrayList items) {
super(context, textViewResourceId, items);
this.explicitIntent = new Intent[items.size()];
this.items = items;
}

public View getView(int position, View convertView, ViewGroup
parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi = (LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.fulltext_search, null);
}

try {
cheat = items.get(position);
if (cheat != null) {

TextView tvGameName = (TextView) 
v.findViewById(R.id.tvGameName);
TextView tvSystem = (TextView) 
v.findViewById(R.id.tvSystem);
TextView tvCheatTitle = (TextView)
v.findViewById(R.id.tvCheatTitle);
TextView tvCheatText = (TextView)
v.findViewById(R.id.tvCheatText);

if (tvGameName != null) {

tvGameName.setText(cheat.getGameName());

tvGameName.setOnClickListener(new OnClickListener() {

public void 
onClick(View v) {
Intent 
explicitIntent = new Intent(FulltextSearchResult.this,
CheatView.class);

explicitIntent.putExtra("cheatId", cheat.getCheatId());

explicitIntent.putExtra("cheatTitle", cheat.getCheatTitle());

explicitIntent.putExtra("gameId", cheat.getGameId());

explicitIntent.putExtra("gameName", cheat.getGameName());

explicitIntent.putExtra("systemId", cheat.getSystemId());

explicitIntent.putExtra("systemName", cheat.getSystemName());

startActivity(explicitIntent);
}

});
}

if (tvSystem != null) {
tvSystem.setText("(" + 
cheat.getSystemName() + ")");
tvSystem.setOnClickListener(new 
OnClickListener() {

public void 
onClick(View v) {
Intent 
explicitIntent = new Intent(FulltextSearchResult.this,
CheatView.class);

explicitIntent.putExtra("cheatId", cheat.getCheatId());

explicitIntent.putExtra("cheatTitle", cheat.getCheatTitle());

explicitIntent.putExtra("gameId", cheat.getGameId());

explicitIntent.putExtra("gameName", cheat.getGameName());

explicitIntent.putExtra("systemId", cheat.getSystemId());

explicitIntent.putExtra("systemName", cheat.getSystemName());

startActivity(explicitIntent);
}

});
}


  1   2   >