[android-developers] How to detect the app is cracked?

2010-06-03 Thread peter
Not that I care but I am just curious - I would also like to place a
ads banner to the app if it detects the app the user running is a
cracked app.

I know in iPhone I can do it by checking the info.plist etc.

Any idea?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-03 Thread zhou haitao
Yes,I have read the Maps API level 4 carefully,but I didn't find the right
event listener!

On Wed, Jun 2, 2010 at 10:01 PM, TreKing  wrote:

>  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

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

2010-06-03 Thread Jiang
Yes, you are righe. My issue is fixed after I added the following line to 
Activity in AndroidManifest.xml:

android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale"


--- 10年6月3日,周四, Gibson  写道:

发件人: Gibson 
主题: [android-developers] Re: How to know the reason that causes the  activity 
destroyed
收件人: "Android Developers" 
日期: 2010年6月3日,周四,下午1:41

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



  

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

an your hardware is from where ?

What you see finally on the device without usb cable ?

Good luck !

  Frank

On 3 Jun., 06:02, PP  wrote:
> 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 <-

Re: [android-developers] Re: How to get the point from click the google map

2010-06-03 Thread zhou haitao
 Thanks for your answer! I just want to implement the function just like
Google Map (point on map get the start point).I use the OnTouchListener to
listen this event.But when I point on map ,the map can't move,room,I can
only touch on a Stationary map.
Shall I use other listeners?But I didn't find the proper the listener.
 On Wed, Jun 2, 2010 at 9:39 AM, fjfdeztoro  wrote:

> hello, I am not so sure about what is your problem, so if your problem
> is detect which pixels has been touched:
>
> (This code is not compiled, could have some errors, is just like an
> idea)
> class Map extends MapView
> {
>public boolean onTouchEvent(MotionEvent ev)
>{
>   int coor_x = ev.getX();
>   int coor_y = ev.getY();
>
>   //And if you want get the geografic point represented by these
> pixels:
>   GeoPoint point = this.getProjection().fromPixels(coor_x,
> coor_y);
>
>
>   return super.onTouchEvent(ev);
>}
> }
>
> Was that the solution to your problem?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2010-06-03 Thread Nithin

Thanks carlos..

On May 28, 6:43 pm, Carlos Silva  wrote:
> On Fri, May 28, 2010 at 14:41, Nithin  wrote:
> > Hi,
>
> > I have a editText. In this, I want to set two ImeOptions as
>
> > textInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
> > textInput.setImeOptions(EditorInfo.IME_ACTION_DONE);
>
>  textInput.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI
> | EditorInfo.IME_ACTION_DONE);
>
> > But I can't do this, as it will overwrite and only the last one will
> > take. How can I do these two actions.
>
> > Nithin
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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


R: Re: [android-developers] How to build calculator?

2010-06-03 Thread sandma...@libero.it
>Messaggio originale
>Da: mmur...@commonsware.com
>Data: 01/06/2010 15.28
>A: 
>Ogg: Re: [android-developers] How to build calculator?
>
>Here is the project tree for the Calculator app, complete with resources
>and manifest:
>http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git;a=tree

I've understood the problems: calculator project needs API 1.6 or higher, and 
this link refers to actual Android (2.1 or 2.2)

Is there any similar address to download Android 1.5 calc, i.e. are Android 
1.5 projects available for download?

Thanks

Ciao

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


[android-developers] select text in Edittext box

2010-06-03 Thread Manu
whenever i use the methods getselectionstart and getselectionend on a
edittext widget ,i get both the integers equal to zero,could anyone
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 graphical capabilities

2010-06-03 Thread Neilz
My apps are functionally good, and in my time learning android I have
covered most features. But one thing my apps lack is graphical
coolness... you know the type of thing the top branded apps have, and
particularly those from the iPhone which are always very impressive.

I want to improve my graphical skills for layouts, menus, galleries,
interactive buttons - the kind of stuff that makes your apps look
great, as well as performing well.

What should I look at? Where should I start?

Any links, tips, welcome!

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


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

2010-06-03 Thread Lee
Thanks for the extra info and apologies for falsely slandering your
API naming :)

I was under the impression that the UI activities of a package were in
the same process as it's services ? So I had noticed the UI was not
affected and therefore assumed the services were being targetted
specifically.

Probably I should move to the beginners board for a period :)

Lee

On Jun 2, 11:41 pm, Dianne Hackborn  wrote:
> 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


[android-developers] problem installing my app on real device

2010-06-03 Thread alariq
Hello, All

I am developing application using Eclipse. My friend has HTC Hero and
I am trying to run my application on it, but it says that the
application could not be installed.
I did the steps which are described in Android DevGuide. I.e. exported
my app with the generated key.
Am i right assuming that this is enough? As i understand eclipse signs
and aligns application automatically when selecting Export.

my app uses sdk version 3 i.e. 1.5

Thanks in advance.

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


[android-developers] "Developer Console" page of Market not work correctly on Chromium browser

2010-06-03 Thread Alger, Lin
The "Developer Console" page of Android market not work on Chromium
browser. Some hyperlink item on this page are un-clickable, such as
"Upload Upgrade", "Replace this image", and "add language". However
it's work correctly on Fire-Fox browser. I don't know how to report
this issue to Chromium developing team, please help me to report this
issue.

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


[android-developers] Bluetooth Hfg and A2dp profiles are not getting automatically reconnected after android system restart on android2.1

2010-06-03 Thread Ashwin
Hi,

The scenario is mentioned below.

1. Connect a Bluetooth stereo headset onto the android 2.1 platform.
Play an audio stream.

2. Switch off the android device while the audio is streaming and
then
restart the android device again.

3. After the android device is restarted it starts to connect onto
the
stereo headset but it fails.
On investigating the above issue it is found that the reconnection
onto the headset is initiated but fails as it is not able to get the
UUID's from the device cache. A snippet of the logs concerning the
above behavior is given below.

D/BT HSHFP(  128): pulled 00:1A:80:C9:F8:F3 off auto-connect queue
D/BT HSHFP(  128): Headset state 0 -> 1, result = 1
D/Exchange(  219): BootReceiver onReceive
D/EAS SyncManager(  219): !!! EAS SyncManager, onCreate
W/BackupManagerService(   58): dataChanged but no participant
pkg='com.android.providers.settings' uid=1001
D/BT HSHFP(  128): Saved priority 00:1A:80:C9:F8:F3 = 1000
D/BT HSHFP(  128): SDP UUID: TYPE_UNKNOWN null
D/BT HSHFP(  128): Headset state 1 -> 0, result = 0

Have you come across this issue and is there any way to fix the same?

Regards
Ashwin

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

2010-06-03 Thread Ted Neward
Assume I have an app that, although 95% of the time it will be used by a
single user, will occasionally be passed to a supervisor or somebody similar
who will do a logout/login/do-some-activity/logout cycle before handing it
back to the original employee using the device. On a "logout", I'd like to
kill/finish all the running activities (allowing them to do their cleanup),
then essentially "start fresh" without having to litter all the activities
with calls to specifically test to see if we've done a logout since the last
time we were brought to the front of the user's attention.

Alternatively, I could just kill the process (I'm assuming a System.exit()
works), but that would have the undesirable effect of bringing the user back
to the Home screen and forcing them to select the app, which from a UX
perspective feels awkward and amateurish.

There's also the diagnostician in me that wants to be able to find all open
Activities and finish() them if we get a low-memory signal, but that's
really a distant second to the above use case.

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

> -Original Message-
> From: android-developers@googlegroups.com [mailto:android-
> develop...@googlegroups.com] On Behalf Of Romain Guy
> Sent: Wednesday, June 02, 2010 1:26 AM
> To: android-developers@googlegroups.com
> Subject: Re: [android-developers] Re: List of all instantiated
> Activities
> 
> Let's step back a little bit. Ted, what is it you are trying to do?
> 
> On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot
>  wrote:
> > I already made something similar (limited to the current activity)
> and
> > I did not find another way to access the activity instance.
> > To limit errors, I made my modifications in life cycle callbacks and
> > users have to inherit my Activity classes (I made a full set for
> > convenience, there are 9 Activity types) instead of the standard
> ones.
> > You could place your code in onCreate, if they inherit your class
> they
> > can't miss it.
> > Of course the developer still have to ensure it does not miss an
> > inheritance change but it's easier than adding a snippet of code
> > everywhere and more object friendly.
> >
> > On 2 juin, 08:35, "Ted Neward"  wrote:
> >> Anybody know an easy way for an app to find all the instances of all
> the
> >> Activities currently alive in the current process?
> >>
> >> Yes, I could register each one into a static List<> someplace from
> the
> >> constructor of each Activity, but that requires developers to
> remember to
> >> put that code into every Activity constructor, which is going to
> eventually
> >> miss one or two (not to mention keep the Activity alive longer than
> it
> >> should be, though that could be fixed by holding WeakReferences
> instead of
> >> strong ones, but that still misses the point), and that's going to
> mean one
> >> or two escape the list. I'd prefer to have a way to see all of them
> from
> >> Android's/Dalvik's point of view.
> >>
> >> Ted Neward
> >>
> >> Java, .NET, XML Services
> >>
> >> Consulting, Teaching, Speaking, Writing
> >>
> >>  http://www.tedneward.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-
> develop...@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
> >
> 
> 
> 
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
> 
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-
> develop...@googlegroups.com
> To unsubscribe from this group, 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] problem installing my app on real device

2010-06-03 Thread �罱
1.Can you see your phone in the devices view? If you can't maybe you should
install a driver first.
2.Maybe you had installed the same app with different sign.At this case you
can uninstall the old app first.
3.Check your setting of setting -> application ->  UnknownSources is ON when
you try to install a debug app on the phone.
4.Have you seen the zipalign.exe part of the SDK document?
Can you show the log of Console?
-元のメッセージ-
差出人: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] 代理人 alariq
送信日時: 2010年6月3日 17:59
宛先: Android Developers
件名: [android-developers] problem installing my app on real device

Hello, All

I am developing application using Eclipse. My friend has HTC Hero and
I am trying to run my application on it, but it says that the
application could not be installed.
I did the steps which are described in Android DevGuide. I.e. exported
my app with the generated key.
Am i right assuming that this is enough? As i understand eclipse signs
and aligns application automatically when selecting Export.

my app uses sdk version 3 i.e. 1.5

Thanks in advance.

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

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

2010-06-03 Thread Ted Neward
Yeah. Don't use Maven.

 

I don't know if Android artifacts are published to the Maven repos yet; I've
not heard anyone as of yet doing so, and I think doing so might be in
violation of Google's license agreement that you clicked when you installed
the SDK tools. (IANAL.) And considering that most of the Android tool set
still comes from Google and is versioned pretty strongly and obviously, what
advantage do you see to Maven, particularly since Maven insists on being its
own build tool and would conflict in many ways with the Ant task that Google
gives you?

 

You would probably have much better results using Apache Ivy, if you really
wanted build-time dependency management, but even then that's only going to
be for the non-Google artifacts.

 

Ted Neward

Java, .NET, XML Services

Consulting, Teaching, Speaking, Writing

http://www.tedneward.com

 

 

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Nando Android
Sent: Wednesday, June 02, 2010 9:51 PM
To: android-developers@googlegroups.com
Subject: [android-developers] Maven and 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

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

2010-06-03 Thread Nithin
You can do this in a number of ways as, by extending Overlay,
override, onTouch() or onTap() or extend ItemizedOverlay and use
onTap() in that..

Nithin

On Jun 3, 12:11 pm, zhou haitao  wrote:
> Yes,I have read the Maps API level 4 carefully,but I didn't find the right
> event listener!
>
> On Wed, Jun 2, 2010 at 10:01 PM, TreKing  wrote:
> >  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
>
>

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

2010-06-03 Thread psaltamontes
I need to use a HTTPClient object to send / recieve the https
request / response?
and send the response to the webview object?

Somebody has send https requests and has received the response
correctly?

I have seen posts that speak about POST requests with https, but I
want to use GET requests.

What I need?

Thanks.


On 2 jun, 18:19, psaltamontes  wrote:
> 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, 
> inhttp://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
>
> 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: Android Dev Phone with 2.x?

2010-06-03 Thread Tomáš Hubálek
I'm trying to put this question to the top again as I would like to
know the answer from Google. For me as owner of ADP1 is starts more
and more important as I don't believe in official Froyo port for ADP1.

Thanks
Tom

On 21 kvě, 06:57, Tomáš Hubálek  wrote:
> Nexus One is not (contrary to Dev phones) available in our country (Czech
> Republic, EU member!). And probably never will be... :-(
>
> Tom
>
> On May 21, 2010 12:58 AM, "Eddie Ringle"  wrote:
>
> I think the Nexus One counts as the current unofficial Android
> Developer Phone. (Unofficial in that it hasn't been given that title
> officially)
>
> On May 14, 9:36 am, Tomáš Hubálek  wrote:
>
> > Hello,
>
> > I'm owner of ADP1 (1...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email 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: Omap 3530 evm

2010-06-03 Thread PP
Hi Frank,

Without the USB cable i am able to see the android home screen and
play around like a normal android mobile, the kernel crashes only when
i insert the usb cable.
It is a Omap3530 EVM from Mistral solotions.

Regards,
Satish.

On Jun 3, 12:38 pm, FrankG  wrote:
> Hi Satish,
>
> an your hardware is from where ?
>
> What you see finally on the device without usb cable ?
>
> Good luck !
>
>   Frank
>
> On 3 Jun., 06:02, PP  wrote:
>
> > 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 haveOmap3530evm 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
> > > > usbco

[android-developers] Sensor data poll mechanism

2010-06-03 Thread sandhya
Hi,

Per the current implementation in SensorManager, the SensorThread is
polling data per below code,

final int sensor = sensors_data_poll(values, status, timestamp);

it then checks the sensor type if it is registered and processes the
data further.

For an application which has registered for only one sensor, still to
get that particular sensor data, SensorThread has to execute for
atleast N-1 loop most of the time.

Can anybody provide the insight as to, why SensorThread is waiting to
check the sensor type to be returned by the HAL instead of sending
sensor information which is currently registered by that application.
Wouldn't that increase the performance?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 different screen densities - problem with Justin Mattson's advice from Google IO talk

2010-06-03 Thread Geefer
Hi,
I listened to the video of Justin Mattson's talk on supporting
multiple screen densities and implemented his recommendation to
support Android 1.5 devices onwards by using the following drawable
directories for the program's icon (and other drawables):
 drawable-hdpi (hi density icon)
 drawable-ldpi (lo density icon)
 drawable-mdpi-v3 (med density icon for 1.5)
 drawable-mdpi (med density icon for 1.6 onwards)

However when I try to compile this in Eclipse using the 2.2 sdk tools,
compiling for 1.6,  I get the errors:

res\drawable-mdpi-v3\icon.png:0: error: Resource entry icon is already
defined.
res\drawable-mdpi\icon.png:0: Originally defined here.

I have had to go back to drawable-hdpi-v4, drawable-ldpi-v4, drawable-
mdpi and drawable (with a copy of icon in drawable-mdpi) which is how
I handled it before I heard the talk. By the way I only had to copy
the icon into drawable since I upgraded to the 2.2 sdk where the
packager logic seems to have changed.

Does anyone have any thoughts on what I have done wrong? Have others
been successful with the -v3 approach?
Thanks, 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 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-03 Thread guich
no one? :-(

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


RE: [android-developers] Android graphical capabilities

2010-06-03 Thread Ericson, Anders
Hi,

I recently wrote a tutorial on how to do a cool 3D list. You can find the 
latest part on:

http://blogs.sonyericsson.com/developerworld/category/tutorials/

There you can also find a tutorial on how to do a cool zoom written by a 
colleague of mine.

/Anders

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
Sent: den 3 juni 2010 10:38
To: Android Developers
Subject: [android-developers] Android graphical capabilities

My apps are functionally good, and in my time learning android I have
covered most features. But one thing my apps lack is graphical
coolness... you know the type of thing the top branded apps have, and
particularly those from the iPhone which are always very impressive.

I want to improve my graphical skills for layouts, menus, galleries,
interactive buttons - the kind of stuff that makes your apps look
great, as well as performing well.

What should I look at? Where should I start?

Any links, tips, welcome!

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: "Developer Console" page of Market not work correctly on Chromium browser

2010-06-03 Thread NightGospel
Hi Alger,

How about this?
http://www.google.com/support/forum/p/Android+Market?hl=en

You can post a question there.

NightGospel

On 6月3日, 下午5時02分, "Alger, Lin"  wrote:
> The "Developer Console" page of Android market not work on Chromium
> browser. Some hyperlink item on this page are un-clickable, such as
> "Upload Upgrade", "Replace this image", and "add language". However
> it's work correctly on Fire-Fox browser. I don't know how to report
> this issue to Chromium developing team, please help me to report this
> issue.

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


[android-developers] Gmail access from android application

2010-06-03 Thread Danny Schimke
Hi,

I am a new android user and I decided to start learning about
developing Android apps.

I am searching for a way to access Gmail. My goal is to get unread
messages from labels and auto notificate the user. I have seen, there
is a Gmail.java class. But it's not part of current Android SDK, was
it part of a previous version and is depricated?

I've read you can use a ContentObserver for observe if the mail
database has changed, using the content://gmail-ls... uri. Is this
still a valid way?

Are there examples of open source apps which access Gmail to learn
from them, or some tutorials in the web?

Thank you very much!
-Danny Schimke

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

2010-06-03 Thread Rajiv
You can implement this in your application by using following way:
1) You need a class that handle all the application (Say Handller)
 In Handller class you can create a method that create List and add list
into it.
 For example
 Class Handller{
  List list;
  //Some Housekeeping
  setActiveActivity(Activity activity){
   if(list.equals(null)){
//create list
   }
   else{
list.add(activity)
   }
  }
  List getActivity(){
   return list;
  }

 }
2) You need an Activity (say ActiveActivity) that extends Activity
 ex:
  public class ActiveActivity extends Activity {
 protected void onResume() {
 super.onResume();

 Handller.setActiveActivity(this);  //you need to take an instance
of Handler Class.
 }
 }

3) Now you can add all your activity in list by extending ActiveActivity.
 ex.
 public class ActivityA extends ActiveActivity {
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(...);
 }
4) You can get All Activities by using Handler getActivity().



Regards,
Rajiv

On Thu, Jun 3, 2010 at 2:39 PM, Ted Neward  wrote:

> Assume I have an app that, although 95% of the time it will be used by a
> single user, will occasionally be passed to a supervisor or somebody
> similar
> who will do a logout/login/do-some-activity/logout cycle before handing it
> back to the original employee using the device. On a "logout", I'd like to
> kill/finish all the running activities (allowing them to do their cleanup),
> then essentially "start fresh" without having to litter all the activities
> with calls to specifically test to see if we've done a logout since the
> last
> time we were brought to the front of the user's attention.
>
> Alternatively, I could just kill the process (I'm assuming a System.exit()
> works), but that would have the undesirable effect of bringing the user
> back
> to the Home screen and forcing them to select the app, which from a UX
> perspective feels awkward and amateurish.
>
> There's also the diagnostician in me that wants to be able to find all open
> Activities and finish() them if we get a low-memory signal, but that's
> really a distant second to the above use case.
>
> Ted Neward
> Java, .NET, XML Services
> Consulting, Teaching, Speaking, Writing
> http://www.tedneward.com
>
>  > -Original Message-
> > From: android-developers@googlegroups.com [mailto:android-
> > develop...@googlegroups.com] On Behalf Of Romain Guy
> > Sent: Wednesday, June 02, 2010 1:26 AM
> > To: android-developers@googlegroups.com
> > Subject: Re: [android-developers] Re: List of all instantiated
> > Activities
> >
> > Let's step back a little bit. Ted, what is it you are trying to do?
> >
> > On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot
> >  wrote:
> > > I already made something similar (limited to the current activity)
> > and
> > > I did not find another way to access the activity instance.
> > > To limit errors, I made my modifications in life cycle callbacks and
> > > users have to inherit my Activity classes (I made a full set for
> > > convenience, there are 9 Activity types) instead of the standard
> > ones.
> > > You could place your code in onCreate, if they inherit your class
> > they
> > > can't miss it.
> > > Of course the developer still have to ensure it does not miss an
> > > inheritance change but it's easier than adding a snippet of code
> > > everywhere and more object friendly.
> > >
> > > On 2 juin, 08:35, "Ted Neward"  wrote:
> > >> Anybody know an easy way for an app to find all the instances of all
> > the
> > >> Activities currently alive in the current process?
> > >>
> > >> Yes, I could register each one into a static List<> someplace from
> > the
> > >> constructor of each Activity, but that requires developers to
> > remember to
> > >> put that code into every Activity constructor, which is going to
> > eventually
> > >> miss one or two (not to mention keep the Activity alive longer than
> > it
> > >> should be, though that could be fixed by holding WeakReferences
> > instead of
> > >> strong ones, but that still misses the point), and that's going to
> > mean one
> > >> or two escape the list. I'd prefer to have a way to see all of them
> > from
> > >> Android's/Dalvik's point of view.
> > >>
> > >> Ted Neward
> > >>
> > >> Java, .NET, XML Services
> > >>
> > >> Consulting, Teaching, Speaking, Writing
> > >>
> > >>  http://www.tedneward.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-
> > develop...@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > > http://groups.google.com/group/android-developers?hl=en
> > >
> >
> >
> >
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@andr

Re: [android-developers] Re: Omap 3530 evm

2010-06-03 Thread Anil Sasidharan
Hi Satish,

  You can download pre-built Android images from our
website for OMAP3EVM Rev-D and Rev-G boards. Please check the
following URL.

  http://www.mistralsolutions.com/assets/downloads/android.php

Try this image on your hardware and let me know if you still see
issues with USB cable.

Warm Regards,
Anil

On Thu, Jun 3, 2010 at 3:21 PM, PP  wrote:
> Hi Frank,
>
> Without the USB cable i am able to see the android home screen and
> play around like a normal android mobile, the kernel crashes only when
> i insert the usb cable.
> It is a Omap3530 EVM from Mistral solotions.
>
> Regards,
> Satish.
>
> On Jun 3, 12:38 pm, FrankG  wrote:
>> Hi Satish,
>>
>> an your hardware is from where ?
>>
>> What you see finally on the device without usb cable ?
>>
>> Good luck !
>>
>>   Frank
>>
>> On 3 Jun., 06:02, PP  wrote:
>>
>> > 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 haveOmap3530evm 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

[android-developers] What about this problem?

2010-06-03 Thread Paolo
Hi there,

I've a big problem with the Camera in my ap. I don't know if it
depends from me or not.

After I have taken more or less ten pictures with my app continuously,
the camera is crashed, and the device is become very slow. It's also
impossible to start the camera built-in or any other apps that use
camera.

>From the log:

06-03 12:40:52.510: INFO/ActivityManager(70): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x1020
cmp=com.android.camera/.Camera bnds=[5,410][115,528] }
06-03 12:40:52.550: INFO/ActivityManager(70): Start proc
com.android.camera for activity com.android.camera/.Camera: pid=15556
uid=10017 gids={1015, 1006, 2001, 3003}
06-03 12:40:52.590: INFO/dalvikvm(15556): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=38)
06-03 12:40:52.600: INFO/WindowManager(70): Setting rotation to 1,
animFlags=0
06-03 12:40:52.630: INFO/ActivityManager(70): Config changed:
{ scale=1.0 imsi=222/10 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=2
layout=34}
06-03 12:40:52.690: VERBOSE/RenderScript_jni(140): surfaceChanged
06-03 12:40:52.690: VERBOSE/RenderScript(140): setSurface 800 480
0x38b828
06-03 12:40:52.690: ERROR/Surface(140): surface (id=0, identity=6482)
is invalid, err=-19 (No such device)
06-03 12:40:52.690: ERROR/Surface(140): surface (id=0, identity=6482)
is invalid, err=-19 (No such device)
06-03 12:40:52.700: INFO/dalvikvm(15556): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=40)
06-03 12:40:52.721: VERBOSE/RenderScript(131): setSurface 800 480
0x11be40
06-03 12:40:53.000: DEBUG/dalvikvm(15556): GC freed 1417 objects /
95952 bytes in 41ms
06-03 12:40:53.030: DEBUG/CameraService(52): CameraService::connect E
(pid 15556, client 0x6eb78)
06-03 12:40:53.090: ERROR/Surface(140): invalid token (-1, identity=0)
or client (0x0)
06-03 12:40:53.090: ERROR/Adreno200-EGL(140): egliGetNativeWindowSize:
unable to dequeue native buffer
06-03 12:40:53.090: ERROR/Surface(140): invalid token (-1, identity=0)
or client (0x0)
06-03 12:40:53.090: ERROR/Adreno200-EGL(140): egliGetNativeWindowSize:
unable to dequeue native buffer
06-03 12:40:53.090: ERROR/RenderScript(140): EGL/Surface mismatch  EGL
(0 x 0)  SF (800 x 480)
06-03 12:40:53.230: ERROR/RenderScript(140): Pending GL Error,
0x417cb0
06-03 12:40:53.280: VERBOSE/RenderScript_jni(140): surfaceDestroyed
06-03 12:40:53.280: VERBOSE/RenderScript(140): setSurface 0 0 0x0
06-03 12:40:57.618: WARN/WindowManager(70): App freeze timeout
expired.
06-03 12:40:57.618: WARN/WindowManager(70): Force clearing freeze:
AppWindowToken{44bac7a8 token=HistoryRecord{44b9a8e8
com.android.camera/.Camera}}


>From my apps I can see that it is block on "surfaceCreate()"

public void surfaceCreated(SurfaceHolder holder) {
Log.d("DEBUG", "surfaceCreated");
mCamera = Camera.open();
Log.d("DEBUG", "Camera open()");
}

I test my app on N1.

Please help me to undertand this. Thanks to all.

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


[android-developers] Two articles on Android app development

2010-06-03 Thread Ivan
Fellow developers!

I wrote two articles about Android app development, based on my own
experience. I think they might be interesting to you.

One is called "Developing an App with a Background Service (using
IPC)"
http://mindtherobot.com/blog/37/android-architecture-tutorial-developing-an-app-with-a-background-service-using-ipc/

The second one: "Intro to Loopers and Handlers"
http://mindtherobot.com/blog/159/android-guts-intro-to-loopers-and-handlers/

Hope the articles are useful to you. Any feedback is appreciated.

-Ivan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-03 Thread Jason Tomlinson
You can also browse the Manifest permission list,
http://developer.android.com/reference/android/Manifest.permission.html

On Jun 2, 9:15 pm, Greg Donald  wrote:
> 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/threa...
>
> 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: Android graphical capabilities

2010-06-03 Thread Neilz
Hi Anders.

Thanks for these, they look great, just the sort of thing I'm after.

I notice that it isn't available for my older Hero with 1.5. Is this
not compatible with 1.5? How would you resolve that if you wanted your
app to reach all devices?

On Jun 3, 11:37 am, "Ericson, Anders"
 wrote:
> Hi,
>
> I recently wrote a tutorial on how to do a cool 3D list. You can find the 
> latest part on:
>
> http://blogs.sonyericsson.com/developerworld/category/tutorials/
>
> There you can also find a tutorial on how to do a cool zoom written by a 
> colleague of mine.
>
> /Anders
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
> Sent: den 3 juni 2010 10:38
> To: Android Developers
> Subject: [android-developers] Android graphical capabilities
>
> My apps are functionally good, and in my time learning android I have
> covered most features. But one thing my apps lack is graphical
> coolness... you know the type of thing the top branded apps have, and
> particularly those from the iPhone which are always very impressive.
>
> I want to improve my graphical skills for layouts, menus, galleries,
> interactive buttons - the kind of stuff that makes your apps look
> great, as well as performing well.
>
> What should I look at? Where should I start?
>
> Any links, tips, welcome!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> 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] Problem when turning the phone

2010-06-03 Thread Patrick
Hallo!

I currently have the following issue: when my app is running and the
phone is turned from a vertical into a horizontal position (or back)
all the stuff I changed in the UI is reseted to the plain layout.xml.
I mean the views that changed their visibility are back to the
original one and even the text of textviews is reseted to the value
specified in the layout.xml. Is there a way or concept that I missed
to tell activities (or the UI elements) to keep their status?

Thanks
Patrick

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Layout margin left/right issue in 2.2?

2010-06-03 Thread mp6800
Some more info on this - Turns out it /does/ affect top & bottom as
well as left & right.  I posted screenshots and a sample Eclipse
project here:

http://www.anddev.org/view-layout-resource-problems-f27/layout-margin-issues-in-2-2-t14746.html

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


[android-developers] Call a service hosted in a windows service from Android

2010-06-03 Thread Lamia Hannoun
Hello!

I hosted my service WCF (.net) using a windows service,  i can access to the
service from any browser but when i tried to call it from android it doesn't
respond. it works fine before the hosting procedure (i used host client by
default on Visual Studio).
The url that i try to attempt is http://10.0.2.2/.. from android
emulator, and installed my webservice in the same local machine(endpoints
address http://localhost.).

Thx for any help !!

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

Re: [android-developers] Problem when turning the phone

2010-06-03 Thread Rajiv
Hi,

You can reseted the value of the Text by using onConfigurationChanged method
of the Activity.
ex.
 public void onConfigurationChanged(Configuration newConfig) {
 super.onConfigurationChanged(newConfig);
 //setContent
 }

If you dont want Landscape mode(Horizontal to Vertical) changes you need to
add *android:screenOrientation="portrait"*  to the particular activity in
the manifest file.
 Ex.
  

Regards,
Rajiv
On Thu, Jun 3, 2010 at 6:02 PM, Patrick  wrote:

> Hallo!
>
> I currently have the following issue: when my app is running and the
> phone is turned from a vertical into a horizontal position (or back)
> all the stuff I changed in the UI is reseted to the plain layout.xml.
> I mean the views that changed their visibility are back to the
> original one and even the text of textviews is reseted to the value
> specified in the layout.xml. Is there a way or concept that I missed
> to tell activities (or the UI elements) to keep their status?
>
> Thanks
> Patrick
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Jeff
I am having an interesting problem and would appreciate any advice. My
app uses WebView as its primary view. Using a javascript hook, it can
launch the camera so the user can take a picture. The camera is
launched using

Intent i = new
Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);

When the camera starts, it makes sense to use landscape mode, so the
user naturally turns the phone on its side. After the user takes a
picture, control returns to my launching Activity (actually, my
Acitivity gets restarted because it usually gets destroyed to free up
memory for the camera on my Moto Droid). When my WebView gets
recreated, I restore its state from the Bundle I saved in
onSaveInstanceState().

Now everything looks ok, except the phone is still in landscape mode.
However, when the user turns the phone upright bringing back into
portrait mode, my WebView takes up only half of the screen. Somewhere
along the way, the scale of my WebView got lost. This seems like such
a minor issue, but it is driving me crazy.

Does anyone have an idea why this might be happening? What is the
correct way to preserve the scale of my WebView? I am hesitant to hard
code any scale factors because what looks good on my device may not be
the same for another.

Thanks,
Jeff

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

2010-06-03 Thread Ericson, Anders
The reference app on market has minSdkVersion set to 4 (=1.6) and the main 
reason is to enable the support for different screen sizes (mdpi, ldpi, hdpi). 
The code itself has very little (if any) dependencies to 1.6 specific APIs. You 
can always download the code and just rename the directories for the drawables, 
that should be enough to get it to work on a 1.5 device.

We'll look into supporting 1.5 for the reference app as well. 

/Anders

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
Sent: den 3 juni 2010 14:21
To: Android Developers
Subject: [android-developers] Re: Android graphical capabilities

Hi Anders.

Thanks for these, they look great, just the sort of thing I'm after.

I notice that it isn't available for my older Hero with 1.5. Is this
not compatible with 1.5? How would you resolve that if you wanted your
app to reach all devices?

On Jun 3, 11:37 am, "Ericson, Anders"
 wrote:
> Hi,
>
> I recently wrote a tutorial on how to do a cool 3D list. You can find the 
> latest part on:
>
> http://blogs.sonyericsson.com/developerworld/category/tutorials/
>
> There you can also find a tutorial on how to do a cool zoom written by a 
> colleague of mine.
>
> /Anders
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
> Sent: den 3 juni 2010 10:38
> To: Android Developers
> Subject: [android-developers] Android graphical capabilities
>
> My apps are functionally good, and in my time learning android I have
> covered most features. But one thing my apps lack is graphical
> coolness... you know the type of thing the top branded apps have, and
> particularly those from the iPhone which are always very impressive.
>
> I want to improve my graphical skills for layouts, menus, galleries,
> interactive buttons - the kind of stuff that makes your apps look
> great, as well as performing well.
>
> What should I look at? Where should I start?
>
> Any links, tips, welcome!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en
>
>

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

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


Re: [android-developers] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Rajiv
Hi Jeff,

I think your Browser won't get refressed.
You need to make changes in *onConfigurationChanged* in that Activity.

Regards,
Rajiv


On Thu, Jun 3, 2010 at 6:41 PM, Jeff  wrote:

> I am having an interesting problem and would appreciate any advice. My
> app uses WebView as its primary view. Using a javascript hook, it can
> launch the camera so the user can take a picture. The camera is
> launched using
>
> Intent i = new
> Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
>
> When the camera starts, it makes sense to use landscape mode, so the
> user naturally turns the phone on its side. After the user takes a
> picture, control returns to my launching Activity (actually, my
> Acitivity gets restarted because it usually gets destroyed to free up
> memory for the camera on my Moto Droid). When my WebView gets
> recreated, I restore its state from the Bundle I saved in
> onSaveInstanceState().
>
> Now everything looks ok, except the phone is still in landscape mode.
> However, when the user turns the phone upright bringing back into
> portrait mode, my WebView takes up only half of the screen. Somewhere
> along the way, the scale of my WebView got lost. This seems like such
> a minor issue, but it is driving me crazy.
>
> Does anyone have an idea why this might be happening? What is the
> correct way to preserve the scale of my WebView? I am hesitant to hard
> code any scale factors because what looks good on my device may not be
> the same for another.
>
> Thanks,
> Jeff
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Jeff Thorn
Hi Rajiv,
What changes should I make? I am saving the state in onSaveInstanceState and
I am restoring the state in onCreate. I would think that the Bundle I saved
the state to should preserve all the WebView settings, but that does not
appear to be the case.

Jeff

On Thu, Jun 3, 2010 at 9:19 AM, Rajiv  wrote:

> Hi Jeff,
>
> I think your Browser won't get refressed.
> You need to make changes in *onConfigurationChanged* in that Activity.
>
> Regards,
> Rajiv
>
>
> On Thu, Jun 3, 2010 at 6:41 PM, Jeff  wrote:
>
>> I am having an interesting problem and would appreciate any advice. My
>> app uses WebView as its primary view. Using a javascript hook, it can
>> launch the camera so the user can take a picture. The camera is
>> launched using
>>
>> Intent i = new
>> Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
>>
>> When the camera starts, it makes sense to use landscape mode, so the
>> user naturally turns the phone on its side. After the user takes a
>> picture, control returns to my launching Activity (actually, my
>> Acitivity gets restarted because it usually gets destroyed to free up
>> memory for the camera on my Moto Droid). When my WebView gets
>> recreated, I restore its state from the Bundle I saved in
>> onSaveInstanceState().
>>
>> Now everything looks ok, except the phone is still in landscape mode.
>> However, when the user turns the phone upright bringing back into
>> portrait mode, my WebView takes up only half of the screen. Somewhere
>> along the way, the scale of my WebView got lost. This seems like such
>> a minor issue, but it is driving me crazy.
>>
>> Does anyone have an idea why this might be happening? What is the
>> correct way to preserve the scale of my WebView? I am hesitant to hard
>> code any scale factors because what looks good on my device may not be
>> the same for another.
>>
>> Thanks,
>> Jeff
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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: Maven and Android

2010-06-03 Thread ko5tik
http://code.google.com/p/maven-android-plugin/

You can always take android jar,  and just deploy it ti your local
repo.
(or use system scope)

reme,ber that  android jars contains just a a stubs,  suitable to
compile against but nithing
more.   you will have to heavy mock your test classes ( jmockit is a
tool )

Sample for maven and android:

http://github.com/ko5tik/jsonserializer




On Jun 3, 6:50 am, Nando Android  wrote:
> 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] Re: Android to PC communication trough USB

2010-06-03 Thread asicwizard
Using MySQL With Java

http://dev.mysql.com/usingmysql/java/

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?

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

2010-06-03 Thread Rajiv
Hi Jeff,
When you change the Phones orientations Activity onConfigurationChanged
method got called, so you need to make changes in there.
for ex.
public void onConfigurationChanged(Configuration newConfig) {
 super.onConfigurationChanged(newConfig);
 //get Instance of the Browser say browser
 //set Content to the Browser
}

Regards,
Rajiv

On Thu, Jun 3, 2010 at 6:54 PM, Jeff Thorn  wrote:

> Hi Rajiv,
> What changes should I make? I am saving the state in onSaveInstanceState
> and I am restoring the state in onCreate. I would think that the Bundle I
> saved the state to should preserve all the WebView settings, but that does
> not appear to be the case.
>
> Jeff
>
>   On Thu, Jun 3, 2010 at 9:19 AM, Rajiv  wrote:
>
>>   Hi Jeff,
>>
>> I think your Browser won't get refressed.
>> You need to make changes in *onConfigurationChanged* in that Activity.
>>
>> Regards,
>> Rajiv
>>
>>
>> On Thu, Jun 3, 2010 at 6:41 PM, Jeff  wrote:
>>
>>> I am having an interesting problem and would appreciate any advice. My
>>> app uses WebView as its primary view. Using a javascript hook, it can
>>> launch the camera so the user can take a picture. The camera is
>>> launched using
>>>
>>> Intent i = new
>>> Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
>>>
>>> When the camera starts, it makes sense to use landscape mode, so the
>>> user naturally turns the phone on its side. After the user takes a
>>> picture, control returns to my launching Activity (actually, my
>>> Acitivity gets restarted because it usually gets destroyed to free up
>>> memory for the camera on my Moto Droid). When my WebView gets
>>> recreated, I restore its state from the Bundle I saved in
>>> onSaveInstanceState().
>>>
>>> Now everything looks ok, except the phone is still in landscape mode.
>>> However, when the user turns the phone upright bringing back into
>>> portrait mode, my WebView takes up only half of the screen. Somewhere
>>> along the way, the scale of my WebView got lost. This seems like such
>>> a minor issue, but it is driving me crazy.
>>>
>>> Does anyone have an idea why this might be happening? What is the
>>> correct way to preserve the scale of my WebView? I am hesitant to hard
>>> code any scale factors because what looks good on my device may not be
>>> the same for another.
>>>
>>> Thanks,
>>> Jeff
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
> --
>  You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Regarding enter key on virtual keyboard

2010-06-03 Thread ameya dandekar
Hi,
I am currently working on sdk 1.5, in which i want capture the Click event
of Enter key on Virtual Keypad.
My requirement is, for my Username/Password Login screen. Click on Username
field. Cursor is displayed in Text entry box. Click on Enter key on Virtual
Keypad. Cursor should be displayed in Password field. Take the cursor in
Password field. Click on Enter key on Virtual Keypad. Virtual Keypad should
be closed.
I am testing the app on HTC Magic.

Regards,
Ameya.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Handling Orientation Changes that occur in another Activity

2010-06-03 Thread greg
You didn't mention if you've defined separate layout-land and layout-
port for your activity.

On Jun 3, 9:11 am, Jeff  wrote:
> I am having an interesting problem and would appreciate any advice. My
> app uses WebView as its primary view. Using a javascript hook, it can
> launch the camera so the user can take a picture. The camera is
> launched using
>
> Intent i = new
> Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
>
> When the camera starts, it makes sense to use landscape mode, so the
> user naturally turns the phone on its side. After the user takes a
> picture, control returns to my launching Activity (actually, my
> Acitivity gets restarted because it usually gets destroyed to free up
> memory for the camera on my Moto Droid). When my WebView gets
> recreated, I restore its state from the Bundle I saved in
> onSaveInstanceState().
>
> Now everything looks ok, except the phone is still in landscape mode.
> However, when the user turns the phone upright bringing back into
> portrait mode, my WebView takes up only half of the screen. Somewhere
> along the way, the scale of my WebView got lost. This seems like such
> a minor issue, but it is driving me crazy.
>
> Does anyone have an idea why this might be happening? What is the
> correct way to preserve the scale of my WebView? I am hesitant to hard
> code any scale factors because what looks good on my device may not be
> the same for another.
>
> Thanks,
> Jeff

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

2010-06-03 Thread Jeff Thorn
Yes, I understand that. But my problem is that I don't want to make any
changes! :)  Yet somehow, the scale is changing somewhere along the line
between and I don't know the correct way to set it back. I don't want to
hard code any scale settings.


On Thu, Jun 3, 2010 at 9:39 AM, Rajiv  wrote:

> Hi Jeff,
> When you change the Phones orientations Activity onConfigurationChanged
> method got called, so you need to make changes in there.
> for ex.
> public void onConfigurationChanged(Configuration newConfig) {
>  super.onConfigurationChanged(newConfig);
>  //get Instance of the Browser say browser
>  //set Content to the Browser
> }
>
> Regards,
> Rajiv
>
> On Thu, Jun 3, 2010 at 6:54 PM, Jeff Thorn  wrote:
>
>> Hi Rajiv,
>> What changes should I make? I am saving the state in onSaveInstanceState
>> and I am restoring the state in onCreate. I would think that the Bundle I
>> saved the state to should preserve all the WebView settings, but that does
>> not appear to be the case.
>>
>> Jeff
>>
>>   On Thu, Jun 3, 2010 at 9:19 AM, Rajiv  wrote:
>>
>>>   Hi Jeff,
>>>
>>> I think your Browser won't get refressed.
>>> You need to make changes in *onConfigurationChanged* in that Activity.
>>>
>>> Regards,
>>> Rajiv
>>>
>>>
>>> On Thu, Jun 3, 2010 at 6:41 PM, Jeff  wrote:
>>>
 I am having an interesting problem and would appreciate any advice. My
 app uses WebView as its primary view. Using a javascript hook, it can
 launch the camera so the user can take a picture. The camera is
 launched using

 Intent i = new
 Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);

 When the camera starts, it makes sense to use landscape mode, so the
 user naturally turns the phone on its side. After the user takes a
 picture, control returns to my launching Activity (actually, my
 Acitivity gets restarted because it usually gets destroyed to free up
 memory for the camera on my Moto Droid). When my WebView gets
 recreated, I restore its state from the Bundle I saved in
 onSaveInstanceState().

 Now everything looks ok, except the phone is still in landscape mode.
 However, when the user turns the phone upright bringing back into
 portrait mode, my WebView takes up only half of the screen. Somewhere
 along the way, the scale of my WebView got lost. This seems like such
 a minor issue, but it is driving me crazy.

 Does anyone have an idea why this might be happening? What is the
 correct way to preserve the scale of my WebView? I am hesitant to hard
 code any scale factors because what looks good on my device may not be
 the same for another.

 Thanks,
 Jeff

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

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

2010-06-03 Thread grace
Hi,

I want  to change the background of the optionmenuitem and have my
custom theme for the menu items
is it possible??
pls help..


thanx in advance,
Grace.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Handling Orientation Changes that occur in another Activity

2010-06-03 Thread Jeff Thorn
I have not defined these settings. I just want the WebView to fill the
entire screen. Until the camera is launched, the default layout and scaling
settings work just fine.

It looks like somewhere the Scale setting gets changed from 1.5 to 1.0 after
I call WebView.restoreState(). I don't want to hard code anything so I am
not sure of the best way to change it back.


On Thu, Jun 3, 2010 at 9:51 AM, greg  wrote:

> You didn't mention if you've defined separate layout-land and layout-
> port for your activity.
>
> On Jun 3, 9:11 am, Jeff  wrote:
> > I am having an interesting problem and would appreciate any advice. My
> > app uses WebView as its primary view. Using a javascript hook, it can
> > launch the camera so the user can take a picture. The camera is
> > launched using
> >
> > Intent i = new
> > Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
> >
> > When the camera starts, it makes sense to use landscape mode, so the
> > user naturally turns the phone on its side. After the user takes a
> > picture, control returns to my launching Activity (actually, my
> > Acitivity gets restarted because it usually gets destroyed to free up
> > memory for the camera on my Moto Droid). When my WebView gets
> > recreated, I restore its state from the Bundle I saved in
> > onSaveInstanceState().
> >
> > Now everything looks ok, except the phone is still in landscape mode.
> > However, when the user turns the phone upright bringing back into
> > portrait mode, my WebView takes up only half of the screen. Somewhere
> > along the way, the scale of my WebView got lost. This seems like such
> > a minor issue, but it is driving me crazy.
> >
> > Does anyone have an idea why this might be happening? What is the
> > correct way to preserve the scale of my WebView? I am hesitant to hard
> > code any scale factors because what looks good on my device may not be
> > the same for another.
> >
> > Thanks,
> > Jeff
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 to enable onItemClick for custom list view

2010-06-03 Thread prachi
Hey hiii all


I hav a list view,each list item has a text view and a button.

My onItemClick() for list item is not responding.But if i remove the
button from list item it is responding..

Pl helppp bcoz i want both to function  :(:(:(


Any help would be appreciated:):):)

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


[android-developers] Screen switch callback?

2010-06-03 Thread Dmitry Suzdalev
Hi!

I wonder if there's a way to know that user started switching from one virtual 
screen to another (i.e. at home screen)? And also i'd be interested to know 
when this switch ends :)

Maybe some callback or event or whatever it can be :)

Quick grepping through API docs and googling didn't reveal anything, so hoping 
for your advice here, thanks :)

Cheers,
Dmitry.

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

2010-06-03 Thread Shane Isbell
On Thu, Jun 3, 2010 at 2:13 AM, Ted Neward  wrote:

>  Yeah. Don’t use Maven.
>
>
>
> I don’t know if Android artifacts are published to the Maven repos yet;
> I’ve not heard anyone as of yet doing so, and I think doing so might be in
> violation of Google’s license agreement that you clicked when you installed
> the SDK tools. (IANAL.) And considering that most of the Android tool set
> still comes from Google and is versioned pretty strongly and obviously, what
> advantage do you see to Maven, particularly since Maven insists on being its
> own build tool and would conflict in many ways with the Ant task that Google
> gives you?
>
Maven does have uses for Android projects. For example, for SlideME, I had
the case of needing to release different variations of the client
(community, regional variations, etc).  Maven, with the plugins from Masa,
was a very nifty way to shift around the resources files, do interpolations
of variables in the Android manifest, signing with different keys and
pushing all the different generated variations of the apk to a maven repo.

>
>
> You would probably have much better results using Apache Ivy, if you really
> wanted build-time dependency management, but even then that’s only going to
> be for the non-Google artifacts.
>
>
>
> Ted Neward
>
> Java, .NET, XML Services
>
> Consulting, Teaching, Speaking, Writing
>
> http://www.tedneward.com
>
>
>
>
>
> *From:* android-developers@googlegroups.com [mailto:
> android-develop...@googlegroups.com] *On Behalf Of *Nando Android
> *Sent:* Wednesday, June 02, 2010 9:51 PM
> *To:* android-developers@googlegroups.com
> *Subject:* [android-developers] Maven and 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
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Shane Isbell (Founder of ZappMarket)
http://twitter.com/sisbell
http://twitter.com/zappstore
http://zappmarket.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] how to enable onItemClick for custom list view

2010-06-03 Thread Ericson, Anders
Hi,

The way it works is that if your list item (or a part of your list item) is 
clickable (like the button) it will "steal" the touch event from the ListView, 
so the ListView will not be able to call onItemClick().

One way to solve it is to set a click listener to the button in each item view. 
This can be done from the adaptor. Though you need to make sure you don't leak 
listeners. You can for example set the same listener to all items and figure 
out exactly what item was pressed by tagging the item-views with the position, 
and then checking the tag in the onClick() callback.

/Anders

-Original Message-
From: android-developers@googlegroups.com 
[mailto:android-develop...@googlegroups.com] On Behalf Of prachi
Sent: den 3 juni 2010 15:58
To: Android Developers
Subject: [android-developers] how to enable onItemClick for custom list view

Hey hiii all


I hav a list view,each list item has a text view and a button.

My onItemClick() for list item is not responding.But if i remove the
button from list item it is responding..

Pl helppp bcoz i want both to function  :(:(:(


Any help would be appreciated:):):)

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 create kind of admob banner or scrolling text?

2010-06-03 Thread dillipk
Hello,
  Is there any widget which would help me to create kind of admob
banner or scrolling text at the top of my app?

Thanks,
DK

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


[android-developers] SMS database access

2010-06-03 Thread Nando Android
Hello all,

I believe the Java API does not give full access to the SMS database and
other databases.

Is there any way to have root access to some of those databases such as SMS
and phone settings so that I can fetch some information out of it?

Thanks

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

Re: [android-developers] Re: Handling Orientation Changes that occur in another Activity

2010-06-03 Thread peeyush varshney
Hi Jeff,

Whenever you change the configuration of device. you ll get
onConfigurationChanged() call madatory. there you need to change the layout
if you define different layout for landscape and portrait mode else system
will take care.
No need for onConfigurationChanged().



On Thu, Jun 3, 2010 at 7:26 PM, Jeff Thorn  wrote:

> I have not defined these settings. I just want the WebView to fill the
> entire screen. Until the camera is launched, the default layout and scaling
> settings work just fine.
>
> It looks like somewhere the Scale setting gets changed from 1.5 to 1.0
> after I call WebView.restoreState(). I don't want to hard code anything so I
> am not sure of the best way to change it back.
>
>
> On Thu, Jun 3, 2010 at 9:51 AM, greg  wrote:
>
>> You didn't mention if you've defined separate layout-land and layout-
>> port for your activity.
>>
>> On Jun 3, 9:11 am, Jeff  wrote:
>> > I am having an interesting problem and would appreciate any advice. My
>> > app uses WebView as its primary view. Using a javascript hook, it can
>> > launch the camera so the user can take a picture. The camera is
>> > launched using
>> >
>> > Intent i = new
>> > Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
>> >
>> > When the camera starts, it makes sense to use landscape mode, so the
>> > user naturally turns the phone on its side. After the user takes a
>> > picture, control returns to my launching Activity (actually, my
>> > Acitivity gets restarted because it usually gets destroyed to free up
>> > memory for the camera on my Moto Droid). When my WebView gets
>> > recreated, I restore its state from the Bundle I saved in
>> > onSaveInstanceState().
>> >
>> > Now everything looks ok, except the phone is still in landscape mode.
>> > However, when the user turns the phone upright bringing back into
>> > portrait mode, my WebView takes up only half of the screen. Somewhere
>> > along the way, the scale of my WebView got lost. This seems like such
>> > a minor issue, but it is driving me crazy.
>> >
>> > Does anyone have an idea why this might be happening? What is the
>> > correct way to preserve the scale of my WebView? I am hesitant to hard
>> > code any scale factors because what looks good on my device may not be
>> > the same for another.
>> >
>> > Thanks,
>> > Jeff
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
Thank & Regards
Peeyush Varshney

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

[android-developers] Do scheduled alarms persist between app upgrades?

2010-06-03 Thread Mark Wyszomierski
Hi,

My app schedules an alarm, like:

  AlarmManager mgr = (AlarmManager)context.getSystemService(
  Context.ALARM_SERVICE);
  mgr.setRepeating(...);

with the alarm scheduled, what happens if I release a new version of
my app, and the user upgrades the app? Will this alarm be removed? Or
will it be left untouched, and fired as expected?

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] Exchange server usage and settings

2010-06-03 Thread Nando Android
Hello all,

Is there any way to log how the Exchange server is being used on the device?

What can be obtained about Corporate email traffic and usage?

Is it possible to change settings programatically for those accounts?

Say, a domain is changed or a server is changed. Can I do those settings
changes?

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

2010-06-03 Thread Mike dg
There are undocumented content providers that allow "access" to SMS
databases. However they are subject to change, and can, and do differ
between devices.

On Jun 3, 10:41 am, Nando Android  wrote:
> Hello all,
>
> I believe the Java API does not give full access to the SMS database and
> other databases.
>
> Is there any way to have root access to some of those databases such as SMS
> and phone settings so that I can fetch some information out of it?
>
> Thanks

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


Re: [android-developers] Re: SMS database access

2010-06-03 Thread Nando Android
What does allow for access to SMS regardless? Would that require program the
underlining SDK instead of doing it via the Java API?

I would like to have an agent on the phone that has access to that SMS
database.

Is it possible to do so?

Thanks.

On Thu, Jun 3, 2010 at 8:58 AM, Mike dg  wrote:

> There are undocumented content providers that allow "access" to SMS
> databases. However they are subject to change, and can, and do differ
> between devices.
>
> On Jun 3, 10:41 am, Nando Android  wrote:
> > Hello all,
> >
> > I believe the Java API does not give full access to the SMS database and
> > other databases.
> >
> > Is there any way to have root access to some of those databases such as
> SMS
> > and phone settings so that I can fetch some information out of it?
> >
> > Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2010-06-03 Thread Brad Gies
Try using the real IP address of your machine. That works (for me at 
least).


On 03/06/2010 5:50 AM, Lamia Hannoun wrote:

Hello!
I hosted my service WCF (.net) using a windows service,  i can access 
to the service from any browser but when i tried to call it from 
android it doesn't respond. it works fine before the hosting procedure 
(i used host client by default on Visual Studio).
The url that i try to attempt is http://10.0.2.2/.. from android 
emulator, and installed my webservice in the same local 
machine(endpoints address http://localhost .).

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


--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://www.bgies.com
http://www.bistroblurb.com
http://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

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


[android-developers] Focus rect in home widgets (aka launcher widgets)

2010-06-03 Thread TAKEphONE
Hi all,

I have a home widget with 4x2 ImageButton controls in it.

All works great besides one thing - when I use the dpad to navigate to
the widget, it seems to be working, but there is no focus rectangle
drawn around the ImageButton that seems to have the focus.

If I press the center dpad button, the action assigned to the
ImageButtons that is supposed to have the focus does get launched, but
there is no rectangle drawn.

What am I missing here ?

The other widgets I use do have the focus rect within them...

Here is an extract from my code:



http://schemas.android.com/apk/res/android";>




   

 

 

 

  





TIA

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


Re: [android-developers] Call a service hosted in a windows service from Android

2010-06-03 Thread Lamia Hannoun
U mean using it instead of using 10.0.2.2 or in the adress endpoint of the
wcf, i did the first option it didn't work :s :s

2010/6/3 Brad Gies 

> Try using the real IP address of your machine. That works (for me at
> least).
>
>
> On 03/06/2010 5:50 AM, Lamia Hannoun wrote:
>
>> Hello!
>> I hosted my service WCF (.net) using a windows service,  i can access to
>> the service from any browser but when i tried to call it from android it
>> doesn't respond. it works fine before the hosting procedure (i used host
>> client by default on Visual Studio).
>> The url that i try to attempt is http://10.0.2.2/.. from android
>> emulator, and installed my webservice in the same local machine(endpoints
>> address http://localhost .).
>> Thx for any help !!
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
> --
> Sincerely,
>
> Brad Gies
> ---
> Bistro Bot - Bistro Blurb
> http://www.bgies.com
> http://www.bistroblurb.com
> http://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
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Load https requests with Webview.

2010-06-03 Thread psaltamontes
Nobody know how the browser process the https requests?

This is a fragment of the source code of the BrowserActivity class :

(onCreate method)
.
.
.

 if (urlData.isEmpty()) {
if (mSettings.isLoginInitialized()) {
webView.loadUrl(mSettings.getHomePage());
} else {
waitForCredentials();
}
} else {
if (extra != null) {
urlData.setPostData(extra
.getByteArray(Browser.EXTRA_POST_DATA));
}
urlData.loadIn(webView);
.
.
.

There is an UrlData object, it has a loadIn method. I think that with
this method load the content of the requests. I don't know where I can
found information about this class. I have search with Google about
UrlData class but I don't find information. Somebody know this class?

Thanks.

On 3 jun, 11:30, psaltamontes  wrote:
> I need to use a HTTPClient object to send / recieve the https
> request / response?
> and send the response to the webview object?
>
> Somebody has send https requests and has received the response
> correctly?
>
> I have seen posts that speak about POST requests with https, but I
> want to use GET requests.
>
> What I need?
>
> Thanks.
>
> On 2 jun, 18:19, psaltamontes  wrote:
>
>
>
> > 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, 
> > inhttp://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
>
> > 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.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

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

2010-06-03 Thread Lamia Hannoun
I tried also to change the adress of my endpoints :s but it didn't work :(.
I want to know if i changed the adresse of my service (different that
loacalhost) it will work perfectly isn't it, this pb is only caused by
this local address ??? Am i right? Has anyone test this before? cuz till now
i'm developping don't have a server yet to use its address!!
Thx

2010/6/3 Lamia Hannoun 

> U mean using it instead of using 10.0.2.2 or in the adress endpoint of the
> wcf, i did the first option it didn't work :s :s
>
> 2010/6/3 Brad Gies 
>
> Try using the real IP address of your machine. That works (for me at
>> least).
>>
>>
>> On 03/06/2010 5:50 AM, Lamia Hannoun wrote:
>>
>>> Hello!
>>> I hosted my service WCF (.net) using a windows service,  i can access to
>>> the service from any browser but when i tried to call it from android it
>>> doesn't respond. it works fine before the hosting procedure (i used host
>>> client by default on Visual Studio).
>>> The url that i try to attempt is http://10.0.2.2/.. from android
>>> emulator, and installed my webservice in the same local machine(endpoints
>>> address http://localhost .).
>>> Thx for any help !!
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>> --
>> Sincerely,
>>
>> Brad Gies
>> ---
>> Bistro Bot - Bistro Blurb
>> http://www.bgies.com
>> http://www.bistroblurb.com
>> http://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
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Augmented Reality framework to display geoloc point

2010-06-03 Thread olivier
Hi,

I have to integrate to my app an augmented reality framework to
display some geolocalised point.

Does it exist a framework or an open source project ?

I have looked to NyARToolKit but it does not seem to have the fonction
I need.

Regards,

Oliveir

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-03 Thread Daniel Lew
Well, I can tell you the process...

1. AlarmManager fires an intent to a Service.

2. That Service creates an HttpUrlConnection.

3. That connection fails every other time.

Not sure what more information you would need to be helpful.  I'm not
using a wakelock currently, but I guess I'm not sure why that's
necessarily relevant - I can see that the connection is being
attempted via my logging, so the device's CPU is on.  However, I will
try it and see if that fixes anything.

-Daniel

On Jun 2, 7:42 pm, Indicator Veritatis  wrote:
> 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] No value being returned with ksoap calling web service

2010-06-03 Thread benjamin schultz
I have a .Net Web Service which returns a single integer value. When i
call upon it from my application, no value is returned. Nothing at all
really happens. I set up breakpoints and watched it's progress and it
seems the problem is coming from when i get to this line:

androidHttpTransport.call(SOAP_ACTION, envelope);

I have a hunch that my URL string is the problem. I've tried replacing
the "localhost" in my URL string with my local and network ip with no
luck. Whenever i replace the localhost with the ip in my browser i get
Server Cannot Access or Unable to Connect pages. Does anyone know a
solution to this problem?

Here's my class calling my web service:

public class CGCountTest extends Activity {

TextView testTV;

private static final String NAMESPACE = "http://passport-america.com/
webservices/";
private static final String URL = "http://localhost:11746/
Service1.asmx";
private static final String SOAP_ACTION = "http://www.passport-
america.com/webservices/getCGCount";
private static final String METHOD_NAME = "getCGCount";

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.soap_test);

TextView testTV = (TextView)findViewById(R.id.testTV);

  SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new
HttpTransportSE(URL);

try {
androidHttpTransport.call(SOAP_ACTION, 
envelope);
SoapObject 
result=(SoapObject)envelope.getResponse();

String resultData = result.toString();
testTV.setText(resultData);
}
catch(Exception e)
{
//testTV.setText(e.getMessage());
}
}
}

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

2010-06-03 Thread psaltamontes
Ups, I think another little problem, I'm using Android 1.5 and maybe
the actual browser has another source code...


On 3 jun, 17:32, psaltamontes  wrote:
> Nobody know how the browser process the https requests?
>
> This is a fragment of the source code of the BrowserActivity class :
>
> (onCreate method)
> .
> .
> .
>
>  if (urlData.isEmpty()) {
>                 if (mSettings.isLoginInitialized()) {
>                     webView.loadUrl(mSettings.getHomePage());
>                 } else {
>                     waitForCredentials();
>                 }
>             } else {
>                 if (extra != null) {
>                     urlData.setPostData(extra
>                             .getByteArray(Browser.EXTRA_POST_DATA));
>                 }
>                 urlData.loadIn(webView);
> .
> .
> .
>
> There is an UrlData object, it has a loadIn method. I think that with
> this method load the content of the requests. I don't know where I can
> found information about this class. I have search with Google about
> UrlData class but I don't find information. Somebody know this class?
>
> Thanks.
>
> On 3 jun, 11:30, psaltamontes  wrote:
>
>
>
> > I need to use a HTTPClient object to send / recieve the https
> > request / response?
> > and send the response to the webview object?
>
> > Somebody has send https requests and has received the response
> > correctly?
>
> > I have seen posts that speak about POST requests with https, but I
> > want to use GET requests.
>
> > What I need?
>
> > Thanks.
>
> > On 2 jun, 18:19, psaltamontes  wrote:
>
> > > 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, 
> > > inhttp://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
>
> > > 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.- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

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


[android-developers] Re: Android Library Project

2010-06-03 Thread Didier Girard
Xavier,
I was just in front of the same problem.
If you could just add a note about restarting eclipse in the following
page it could help a lot :
http://developer.android.com/guide/developing/eclipse-adt.html
Thanks in advance,
Didier


On May 23, 9:06 pm, Xavier Ducrohet  wrote:
> When you do the link between the main project and the library (as
> shown 
> here:http://developer.android.com/images/developing/adt-props-libRef.png),
> try to simply restart Eclipse (I know it's annoying) and the link
> should happen.
>
> The library source folder will appear in your main project as a new
> source folder named after your library project name with a [Android
> Library] tag after it. I'm trying to attach a small screenshot that
> shows the connection.
>
> Xav
>
>
>
>
>
> On Sun, May 23, 2010 at 11:53 AM, Michael A.  wrote:
> > Just to note that I am fully up to date with both the SDK and Eclipse
> > plugins, so that does not appear to be the problem.
>
> > On May 23, 8:45 pm, "Michael A."  wrote:
> >> Yes - I realize that. It just doesn't work in my setup. :-(
>
> >> I can see the R.java file from the library gets included in the
> >> generated content, but i don't get access to the classes in the
> >> library project. Very frustrating.
>
> >> Regards,
>
> >> Michael A.
>
> >> On May 23, 7:24 pm, Lance Nanek  wrote:
>
> >> > The only time I've seen that "Could not find "
> >> > warning was in the same situation as mentioned above, when the project
> >> > being run used an Eclipse, Java Build Path, Project dependency on the
> >> > other project.
>
> >> > If you want to double check that you don't have that, right click on
> >> > the project being run, choose Properties from the menu that pops up,
> >> > then choose Java Build Path on the left, then choose the Projects tab.
> >> > Make sure you don't have any Android projects listed there. With this
> >> > new library feature you don't specify the Android projects you depend
> >> > on in the Java Build Path section of the Properties. You do it in the
> >> > Android section of the Properties.
>
> >> > On May 23, 7:14 am, "Michael A."  wrote:
>
> >> > > I'm seeing exactly the same problem as Mark Carter.
>
> >> > > I've followed the instructions on the reference pages exactly (at
> >> > > least as far as I can make out). The app project compiles fine and is
> >> > > able to use and inherit classes in the library project, but trying to
> >> > > run the (non-library) project in the emulator throws up the "Could not
> >> > > find .apk!" line right after installing the
> >> > > non-library app.
>
> >> > > This is using Eclipse. Exporting a signed apk for the non-library
> >> > > project does not seem to work either.
>
> >> > > It seems like the library is not being imported into the apk, but it
> >> > > is not at all obvious why it is not working as everything is working
> >> > > fine in the developer view.
>
> >> > > Regards,
>
> >> > > Michael A.
>
> >> > > On May 22, 10:15 pm, Xavier Ducrohet  wrote:
>
> >> > > > There is something very strange here.
>
> >> > > > What is MyLibrary.apk?
>
> >> > > > I think you may be a bit confused with what libraries are.
>
> >> > > > Library projects are handled at compilation time. They are *NOT* 
> >> > > > meant
> >> > > > to be export as APK (I don't even know how you managed to create
> >> > > > MyLibrary.apk because the tools don't let you do it).
>
> >> > > > When you compile an application project that depends on a library, 
> >> > > > the
> >> > > > code and resources of the library are included in the app project's
> >> > > > apk when you compile it.
>
> >> > > > Xav
>
> >> > > > On Sat, May 22, 2010 at 4:21 AM, Mark Carter 
> >> > > >  wrote:
> >> > > > > When trying to launch an activity, the console gives:
>
> >> > > > > Uploading MyApp.apk onto device 'emulator-5554'
> >> > > > > Installing MyApp.apk...
> >> > > > > Success!
> >> > > > > Could not find MyLibrary.apk!
> >> > > > > Starting activity com.mycompany.MyActivity on device
> >> > > > > ActivityManager: Starting: Intent { act=android.intent.action.MAIN
> >> > > > > cat=[android.intent.category.LAUNCHER] cmp=com.mycompany/
> >> > > > > com.mycompany.MyActivity }
> >> > > > > Attempting to connect debugger to 'com.mycompany' on port 8612
>
> >> > > > > And then the activity fails to start (ClassNotFoundException).
>
> >> > > > > This seems to be because of the line:
>
> >> > > > > Could not find MyLibrary.apk!
>
> >> > > > > Any ideas?
>
> >> > > > > On May 22, 11:49 am, Mark Carter  wrote:
> >> > > > >> Great to see the new Android Library Project feature in ADT 0.9.7.
>
> >> > > > >>http://developer.android.com/guide/developing/eclipse-adt.html#librar...
>
> >> > > > >> However, some things aren't clear to me yet:
>
> >> > > > >> 1. In the library project, what does versionCode, versionName,
> >> > > > >> packageName now mean? I assume nothing???
> >> > > > >> 2. The docs state that activities, services etc need to be 
> >> > > > >> declared in
> >> > > > >> 

Re: [android-developers] APIs to access email accounts or SMS/MMS messages

2010-06-03 Thread Nando Android
I am interested on that too.

But what I want to do is to know how many SMS messages were sent and
received.

That is, I need to know stats. Is it possible?

Thanks.

On Mon, May 24, 2010 at 6:54 PM, sojan P.R.  wrote:

> What you want to do..reading emails and doing something automatically? I
> think it is not possible from application level.
> You can listen to an sms port for that..just look some push registery
> samples.
>
> If you only want to show the SMS in your application ...i think it is
> better to open the installed client using intents.
>
>
> On Mon, May 24, 2010 at 5:47 PM, Mark Murphy wrote:
>
>> San wrote:
>> > Does anyone know if there is an API available to access all SMS
>> > messages as well as emails in the inbox?
>>
>> There is nothing in the Android SDK for either of these.
>>
>> While there are applications frequently available on Android devices for
>> these functions (SMS, Email, Gmail), device manufacturers can and do
>> replace them with other applications. Also, users can elect to download
>> and install their own email clients (e.g., K9).
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: 4-6 June 2010: http://guruloft.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
>

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

[android-developers] Code repository to learn by examples

2010-06-03 Thread Nando Android
All,

Is there any source code repository for Android apps so one can learn by
example?

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] Where is ACCESS_COARSE_UPDATES permission ?

2010-06-03 Thread arnouf
Hi all,

I want to use the following method from TelephonyManager :
public List getNeighboringCellInfo ()

Documentation says :
Since: API Level 3
Returns the neighboring cell information of the device.
Returns
List of NeighboringCellInfo or null if info unavailable.
Requires Permission: (@link
android.Manifest.permission#ACCESS_COARSE_UPDATES}

But I don't find this permission and when I add it in my manifest I
get a warning message "Unknown permission".

For now, this method returns an empty list..;

Any idea ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Layout margin left/right issue in 2.2?

2010-06-03 Thread Romain Guy
You are using negative margins, which has an unspecified behavior.

On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
> Some more info on this - Turns out it /does/ affect top & bottom as
> well as left & right.  I posted screenshots and a sample Eclipse
> project here:
>
> http://www.anddev.org/view-layout-resource-problems-f27/layout-margin-issues-in-2-2-t14746.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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


[android-developers] Froyo Wi-Fi hotspot mode and server apps

2010-06-03 Thread asicwizard
How do I find the IP address of my Android device when it is in
Froyo's Wi-Fi hotspot mode? My Ubuntu netbook finds the SSID:
AndroidAP. When I connect to Froyo's DHCP server it assigns my netbook
an IP address of 10.42.43.1 Broadcast 10.42.43.255 Mask 255.255.255.0

If I run a server app on my Android -- say an FTP server for instance
--, what IP address would I give the client running on my netbook?

I would hope that Froyo supports server apps in Wi-Fi hotspot mode the
same way as it supports server apps in Wi-Fi DHCP client mode. Does
it? How is it supported in the SDK? We can change the SSID and
security. Can we change the broadcast channel?

h...@louie-ux:~$ iwconfig wlan0
wlan0 IEEE 802.11bg  ESSID:"AndroidAP"
  Mode:Managed  Frequency:2.437 GHz  Access Point:
00:23:76:97:38:7C
  Bit Rate=24 Mb/s   Tx-Power=20 dBm
  Retry  long limit:7   RTS thr:off   Fragment thr:off
  Power Management:off
  Link Quality=70/70  Signal level=-37 dBm  Noise level=-95
dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Layout margin left/right issue in 2.2?

2010-06-03 Thread mp6800
Thanks for the reply.  What about the positive margins?  They're doing
the same thing (going too far in 2.2)


On Jun 3, 12:26 pm, Romain Guy  wrote:
> You are using negative margins, which has an unspecified behavior.
>
>
>
>
>
> On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
> > Some more info on this - Turns out it /does/ affect top & bottom as
> > well as left & right.  I posted screenshots and a sample Eclipse
> > project here:
>
> >http://www.anddev.org/view-layout-resource-problems-f27/layout-margin...
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

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


Re: [android-developers] Re: Layout margin left/right issue in 2.2?

2010-06-03 Thread Romain Guy
They're not going too far. From what I can tell, your layout was
relying on a broken behavior in previous versions of Android.

On Thu, Jun 3, 2010 at 9:33 AM, mp6800  wrote:
> Thanks for the reply.  What about the positive margins?  They're doing
> the same thing (going too far in 2.2)
>
>
> On Jun 3, 12:26 pm, Romain Guy  wrote:
>> You are using negative margins, which has an unspecified behavior.
>>
>>
>>
>>
>>
>> On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
>> > Some more info on this - Turns out it /does/ affect top & bottom as
>> > well as left & right.  I posted screenshots and a sample Eclipse
>> > project here:
>>
>> >http://www.anddev.org/view-layout-resource-problems-f27/layout-margin...
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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


Re: [android-developers] Call a service hosted in a windows service from Android

2010-06-03 Thread Brad Gies
It should work fine using localhost for the service address. Just use 
the real IP address of your machine when calling the service from Android.


Are you calling it from the emulator or from a cell phone? How are you 
connected to your PC from your Android app? I just want to be sure I am 
understanding what you are doing. If I understand correctly, your WCF 
service is on your PC and you can access it using your browser (also on 
your PC) using localhost. When you call the WCF service from Android you 
are not finding it, or it's not returning. If that's the case then from 
a Windows command line prompt do "ipconfig /all", find your machines IP 
address (in my case it's 192.168.1.103 and use that instead of localhost 
when you are calling the service from your Android app.


If I'm misunderstanding, please clarify :).

Good luck.


On 03/06/2010 8:33 AM, Lamia Hannoun wrote:
I tried also to change the adress of my endpoints :s but it didn't 
work :(. I want to know if i changed the adresse of my service 
(different that loacalhost) it will work perfectly isn't it, this pb 
is only caused by this local address ??? Am i right? Has anyone test 
this before? cuz till now i'm developping don't have a server yet 
to use its address!!

Thx

2010/6/3 Lamia Hannoun >


U mean using it instead of using 10.0.2.2 or in the adress
endpoint of the wcf, i did the first option it didn't work :s :s

2010/6/3 Brad Gies mailto:rbg...@gmail.com>>

Try using the real IP address of your machine. That works (for
me at least).


On 03/06/2010 5:50 AM, Lamia Hannoun wrote:

Hello!
I hosted my service WCF (.net) using a windows service,  i
can access to the service from any browser but when i
tried to call it from android it doesn't respond. it works
fine before the hosting procedure (i used host client by
default on Visual Studio).
The url that i try to attempt is http://10.0.2.2/..
from android emulator, and installed my webservice in the
same local machine(endpoints address http://localhost
 .).
Thx for any help !!
-- 
You received this message because you are subscribed to

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

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


-- 
Sincerely,


Brad Gies
---
Bistro Bot - Bistro Blurb
http://www.bgies.com 
http://www.bistroblurb.com 
http://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

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

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

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


--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://www.bgies.com
http://www.bistroblurb.com
http://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

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

[android-developers] Re: Do scheduled alarms persist between app upgrades?

2010-06-03 Thread arnouf
Hi,

The alarm is registered in system. So, it isn't removed.

BR

On Jun 3, 4:53 pm, Mark Wyszomierski  wrote:
> Hi,
>
> My app schedules an alarm, like:
>
>   AlarmManager mgr = (AlarmManager)context.getSystemService(
>       Context.ALARM_SERVICE);
>   mgr.setRepeating(...);
>
> with the alarm scheduled, what happens if I release a new version of
> my app, and the user upgrades the app? Will this alarm be removed? Or
> will it be left untouched, and fired as expected?
>
> Thanks

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


[android-developers] Re: How to create kind of admob banner or scrolling text?

2010-06-03 Thread arnouf
Use a RelativeLayout for your app and a specific layout aligned on
bottom of your main layout.
So you're banner is based at the bottom :)
Now to scrolling a text inside this banner : use animation, it's the
simplest.

Best

On Jun 3, 4:36 pm, dillipk  wrote:
> Hello,
>   Is there any widget which would help me to create kind of admob
> banner or scrolling text at the top of my app?
>
> Thanks,
> DK

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


[android-developers] Re: how to change the background of the menuitem

2010-06-03 Thread arnouf
Hi,

OptionMenu can't be personnalized :( You must implement your own menu
if you want a specific background for example.

Regards

On Jun 3, 3:54 pm, grace  wrote:
> Hi,
>
> I want  to change the background of the optionmenuitem and have my
> custom theme for the menu items
> is it possible??
> pls help..
>
> thanx in advance,
> Grace.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 create kind of admob banner or scrolling text?

2010-06-03 Thread Romain Guy
There's even easier, just use the marquee feature of TextView.

On Thu, Jun 3, 2010 at 9:40 AM, arnouf  wrote:
> Use a RelativeLayout for your app and a specific layout aligned on
> bottom of your main layout.
> So you're banner is based at the bottom :)
> Now to scrolling a text inside this banner : use animation, it's the
> simplest.
>
> Best
>
> On Jun 3, 4:36 pm, dillipk  wrote:
>> Hello,
>>   Is there any widget which would help me to create kind of admob
>> banner or scrolling text at the top of my app?
>>
>> Thanks,
>> DK
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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


Re: [android-developers] Re: HttpUrlConnection and Sleeping Phones

2010-06-03 Thread Brad Gies

Daniel,

The fact that the CPU is working and the phone is not asleep when the 
HttpUrlConnection starts doesn't mean it's going to still be that way by 
the time it finishes That's why you need the wakelock while the 
HttpUrlConnection is running.. to make sure it can finish. Just make 
sure to release the wakelock when it's done.


On 03/06/2010 8:41 AM, Daniel Lew wrote:

Well, I can tell you the process...

1. AlarmManager fires an intent to a Service.

2. That Service creates an HttpUrlConnection.

3. That connection fails every other time.

Not sure what more information you would need to be helpful.  I'm not
using a wakelock currently, but I guess I'm not sure why that's
necessarily relevant - I can see that the connection is being
attempted via my logging, so the device's CPU is on.  However, I will
try it and see if that fixes anything.

-Daniel

On Jun 2, 7:42 pm, Indicator Veritatis  wrote:
   

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?
 
   


--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://www.bgies.com
http://www.bistroblurb.com
http://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

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 create kind of admob banner or scrolling text?

2010-06-03 Thread arnouf
right ! the marquee ! I forgot it ! :) (it's just avoiding to use
animation, not to place your component at bottom)

On Jun 3, 6:42 pm, Romain Guy  wrote:
> There's even easier, just use the marquee feature of TextView.
>
>
>
>
>
> On Thu, Jun 3, 2010 at 9:40 AM, arnouf  wrote:
> > Use a RelativeLayout for your app and a specific layout aligned on
> > bottom of your main layout.
> > So you're banner is based at the bottom :)
> > Now to scrolling a text inside this banner : use animation, it's the
> > simplest.
>
> > Best
>
> > On Jun 3, 4:36 pm, dillipk  wrote:
> >> Hello,
> >>   Is there any widget which would help me to create kind of admob
> >> banner or scrolling text at the top of my app?
>
> >> Thanks,
> >> DK
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

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


[android-developers] Re: How to create kind of admob banner or scrolling text?

2010-06-03 Thread dillipk
Thanks for your replies..

The problem with using marquee is, the TextView has to be in focus all
the time.

My requirement is I have multiple controls in the same activity and
the text scrolling should be continuing through out .

How do I apply animation to a TextView in simplest way..?

Thanks,
DK

On Jun 3, 12:53 pm, arnouf  wrote:
> right ! the marquee ! I forgot it ! :) (it's just avoiding to use
> animation, not to place your component at bottom)
>
> On Jun 3, 6:42 pm, Romain Guy  wrote:
>
> > There's even easier, just use the marquee feature of TextView.
>
> > On Thu, Jun 3, 2010 at 9:40 AM, arnouf  wrote:
> > > Use a RelativeLayout for your app and a specific layout aligned on
> > > bottom of your main layout.
> > > So you're banner is based at the bottom :)
> > > Now to scrolling a text inside this banner : use animation, it's the
> > > simplest.
>
> > > Best
>
> > > On Jun 3, 4:36 pm, dillipk  wrote:
> > >> Hello,
> > >>   Is there any widget which would help me to create kind of admob
> > >> banner or scrolling text at the top of my app?
>
> > >> Thanks,
> > >> DK
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them

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


[android-developers] Error generating final archive

2010-06-03 Thread Matthew Patience
I am trying to add some updates to an already released application but
something has happened with my workspace that prevents me from Running
or Exporting the application. I keep getting the following:


Error generating final archive: duplicate entry: res/drawable-hdpi/
icon.pngTwitocTwoUnknownAndroid Packaging Problem

You think it would be an easy fix but I looked into the HDPI drawables
folder and there were no doubles. I even went as far as to delete the
entire folder and the error still appears.


Anyone got any clever ideas?

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


[android-developers] Re: How to create kind of admob banner or scrolling text?

2010-06-03 Thread Matthew Patience
I should walk through here more often. I had no idea TextView had a
marquee feature, Nice!


On Jun 3, 12:42 pm, Romain Guy  wrote:
> There's even easier, just use the marquee feature of TextView.
>
>
>
> On Thu, Jun 3, 2010 at 9:40 AM, arnouf  wrote:
> > Use a RelativeLayout for your app and a specific layout aligned on
> > bottom of your main layout.
> > So you're banner is based at the bottom :)
> > Now to scrolling a text inside this banner : use animation, it's the
> > simplest.
>
> > Best
>
> > On Jun 3, 4:36 pm, dillipk  wrote:
> >> Hello,
> >>   Is there any widget which would help me to create kind of admob
> >> banner or scrolling text at the top of my app?
>
> >> Thanks,
> >> DK
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

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


[android-developers] issue with dynamic Multi selection alter dialog

2010-06-03 Thread Jake
hi there,

i wanted to create a dynamic multi selection alert dialog, currently
it only supports for hard coded values i think ?... i have tried
several ways and very much unsuccessful till now ..

i am fetching the values in JSON format and converting to JSONArray.
but how to input this to builder.setMultiChoiceItems, because it takes
only itemId from xml, cursor, or charsequence. i tried all ways i can
think of for chaging the array to charsequence.. eclipse did not
showed the error but app crashed in android throwing the cast
exception ...

below is the code, any help / suggestion would highly help !!
thankyou!.. (i am new to both java and andriod)


Button buttonFriends = (Button)
findViewById(R.id.buttonFriends);

JSONObject friends =
jObject.getJSONObject("friends");
JSONArray friendsArray =
friends.names();
   CharSequence[] friendsNames = null;
for (int i=0; i <
friendsArray.length(); i++) {

if(friends.getString(friendsArray.getString(i)) != null) {
//friendsNames[i] =
friends.getString(friendsArray.getString(i));
}
}


  buttonFriends.setOnClickListener(new
OnClickListener() {

@Override
public void onClick(View arg0) {
// TODO Auto-generated 
method stub



AlertDialog.Builder 
builder = new
AlertDialog.Builder(checkin.this);

builder.setTitle("Select your friends");

builder.setMultiChoiceItems(friendsNames, null, new
DialogInterface.OnMultiChoiceClickListener() {

@Override
public void 
onClick(DialogInterface arg0, int arg1,

boolean arg2) {
// TODO 
Auto-generated method stub

}
});
AlertDialog alert = 
builder.create();
alert.show();
}

});

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


[android-developers] Re: Layout margin left/right issue in 2.2?

2010-06-03 Thread mp6800
Ah, so I /am/ doing something wrong.  What is the proper way to center
align with an offset?  I've yet to find anything in the docs.


On Jun 3, 12:35 pm, Romain Guy  wrote:
> They're not going too far. From what I can tell, your layout was
> relying on a broken behavior in previous versions of Android.
>
>
>
>
>
> On Thu, Jun 3, 2010 at 9:33 AM, mp6800  wrote:
> > Thanks for the reply.  What about the positive margins?  They're doing
> > the same thing (going too far in 2.2)
>
> > On Jun 3, 12:26 pm, Romain Guy  wrote:
> >> You are using negative margins, which has an unspecified behavior.
>
> >> On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
> >> > Some more info on this - Turns out it /does/ affect top & bottom as
> >> > well as left & right.  I posted screenshots and a sample Eclipse
> >> > project here:
>
> >> >http://www.anddev.org/view-layout-resource-problems-f27/layout-margin...
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> romain...@android.com
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

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


Re: [android-developers] APIs to access email accounts or SMS/MMS messages

2010-06-03 Thread Yuvi
Hi,

to get the received sms take a look here:
http://www.anddev.org/novice-tutorials-f8/recognize-react-on-incoming-sms-t295.html
Unfortunately there is no analogous way to listen for sent messages...AFAIK.


Yuvi

On Thu, Jun 3, 2010 at 6:02 PM, Nando Android wrote:

> I am interested on that too.
>
> But what I want to do is to know how many SMS messages were sent and
> received.
>
> That is, I need to know stats. Is it possible?
>
> Thanks.
>
>
> On Mon, May 24, 2010 at 6:54 PM, sojan P.R.  wrote:
>
>> What you want to do..reading emails and doing something automatically? I
>> think it is not possible from application level.
>> You can listen to an sms port for that..just look some push registery
>> samples.
>>
>> If you only want to show the SMS in your application ...i think it is
>> better to open the installed client using intents.
>>
>>
>> On Mon, May 24, 2010 at 5:47 PM, Mark Murphy wrote:
>>
>>> San wrote:
>>> > Does anyone know if there is an API available to access all SMS
>>> > messages as well as emails in the inbox?
>>>
>>> There is nothing in the Android SDK for either of these.
>>>
>>> While there are applications frequently available on Android devices for
>>> these functions (SMS, Email, Gmail), device manufacturers can and do
>>> replace them with other applications. Also, users can elect to download
>>> and install their own email clients (e.g., K9).
>>>
>>> --
>>> Mark Murphy (a Commons Guy)
>>> http://commonsware.com | http://github.com/commonsguy
>>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>>
>>> Android Training in NYC: 4-6 June 2010: http://guruloft.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
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
YuviDroid
http://android.yuvalsharon.net

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

[android-developers] Re: HTC Incredible suffering a reset while service running.

2010-06-03 Thread Nathan
After a few weeks, I've narrowed this down somewhat. But what to do,
I'm not sure.

I suspected that frequent notification updates were clogging up the
phone. As another developer pointed out, the Incredible won't give
foreground priority to services that follow that procedure - this
could be related.

Since my application doesn't reboot the phone, I suspect that

I've tried all kinds of things to reduce the notifications:
1. Not calling AsyncTask.publishProgress more than every six seconds -
logical to do.
2. Rejecting an event in if it is more than six seconds old.
3. Not updating the notification if it has been updated within the
last few seconds.
Finally,
4. Use an atomic boolean as a semaphore to not call publishProgress if
a previous onProgressUpdate has not completed.

The only thing that has worked was when I had a bug that caused the
updates not to be sent at all. In that case, a beta tester managed to
run the service for 24 hours and download 2 gigs in small pieces.
There was absolutely no indication of status - it said 1/215000 the
whole time, but it stayed alive. Put the update back in, and it can't
run for very long.

There is some bug on the Incredible related to notifications from
services. I don't know how to avoid hitting it yet.

Does anyone have any insights?

One of my beta testers might be within travel range to hook up a
debugger, but I'm not sure even that will help.

For reference, this is what I do for updating the notification:

// update the text on the ongoing notification
message = mDownloadExplanation +  label + " " + num + " 
/ " +
total;

RemoteViews contentView = mNotification.contentView;

contentView.setProgressBar(R.id.download_progress_horizontal,
total,
num, false);

contentView.setTextViewText(R.id.download_progress_explanation,
message);

long now = System.currentTimeMillis();
if(now-mNotification.when>MINTIMEBETWEENUPDATES)
{
mNotification.when = System.currentTimeMillis();


mNotificationManager.notify(DOWNLOAD_PROGRESS_ID, mNotification);
}
mUpdateInProgress.set(false);

I've been disappointed enough to consider not using a Service for this
at all, but it still seems like a good fit - for everything but the
incredible.

Nathan

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

2010-06-03 Thread psaltamontes
I'm very lucky. I have found this link with a solution that works.

http://r3gis.fr/blog/index.php?post/2009/11/17/Android-WebView-and-ssl-self-signed-certificates&pub=1

I hope this will be useful to somebody.

On 3 jun, 17:55, psaltamontes  wrote:
> Ups, I think another little problem, I'm using Android 1.5 and maybe
> the actual browser has another source code...
>
> On 3 jun, 17:32, psaltamontes  wrote:
>
>
>
> > Nobody know how the browser process the https requests?
>
> > This is a fragment of the source code of the BrowserActivity class :
>
> > (onCreate method)
> > .
> > .
> > .
>
> >  if (urlData.isEmpty()) {
> >                 if (mSettings.isLoginInitialized()) {
> >                     webView.loadUrl(mSettings.getHomePage());
> >                 } else {
> >                     waitForCredentials();
> >                 }
> >             } else {
> >                 if (extra != null) {
> >                     urlData.setPostData(extra
> >                             .getByteArray(Browser.EXTRA_POST_DATA));
> >                 }
> >                 urlData.loadIn(webView);
> > .
> > .
> > .
>
> > There is an UrlData object, it has a loadIn method. I think that with
> > this method load the content of the requests. I don't know where I can
> > found information about this class. I have search with Google about
> > UrlData class but I don't find information. Somebody know this class?
>
> > Thanks.
>
> > On 3 jun, 11:30, psaltamontes  wrote:
>
> > > I need to use a HTTPClient object to send / recieve the https
> > > request / response?
> > > and send the response to the webview object?
>
> > > Somebody has send https requests and has received the response
> > > correctly?
>
> > > I have seen posts that speak about POST requests with https, but I
> > > want to use GET requests.
>
> > > What I need?
>
> > > Thanks.
>
> > > On 2 jun, 18:19, psaltamontes  wrote:
>
> > > > 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, 
> > > > inhttp://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a...
>
> > > > 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.- Ocultar texto de la cita -
>
> > > - Mostrar texto de la cita -- Ocultar texto de la cita -
>
> > - Mostrar texto de la cita -- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

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

2010-06-03 Thread Neilz
Hi Anders.

Do you have the code for part 3 available?

The first two are great, but really it's not so great without the
finishing touches from part 3!

On Jun 3, 2:18 pm, "Ericson, Anders" 
wrote:
> The reference app on market has minSdkVersion set to 4 (=1.6) and the main 
> reason is to enable the support for different screen sizes (mdpi, ldpi, 
> hdpi). The code itself has very little (if any) dependencies to 1.6 specific 
> APIs. You can always download the code and just rename the directories for 
> the drawables, that should be enough to get it to work on a 1.5 device.
>
> We'll look into supporting 1.5 for the reference app as well.
>
> /Anders
>
> -Original Message-
> From: android-developers@googlegroups.com 
> [mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
> Sent: den 3 juni 2010 14:21
> To: Android Developers
> Subject: [android-developers] Re: Android graphical capabilities
>
> Hi Anders.
>
> Thanks for these, they look great, just the sort of thing I'm after.
>
> I notice that it isn't available for my older Hero with 1.5. Is this
> not compatible with 1.5? How would you resolve that if you wanted your
> app to reach all devices?
>
> On Jun 3, 11:37 am, "Ericson, Anders"
>  wrote:
> > Hi,
>
> > I recently wrote a tutorial on how to do a cool 3D list. You can find the 
> > latest part on:
>
> >http://blogs.sonyericsson.com/developerworld/category/tutorials/
>
> > There you can also find a tutorial on how to do a cool zoom written by a 
> > colleague of mine.
>
> > /Anders
>
> > -Original Message-
> > From: android-developers@googlegroups.com 
> > [mailto:android-develop...@googlegroups.com] On Behalf Of Neilz
> > Sent: den 3 juni 2010 10:38
> > To: Android Developers
> > Subject: [android-developers] Android graphical capabilities
>
> > My apps are functionally good, and in my time learning android I have
> > covered most features. But one thing my apps lack is graphical
> > coolness... you know the type of thing the top branded apps have, and
> > particularly those from the iPhone which are always very impressive.
>
> > I want to improve my graphical skills for layouts, menus, galleries,
> > interactive buttons - the kind of stuff that makes your apps look
> > great, as well as performing well.
>
> > What should I look at? Where should I start?
>
> > Any links, tips, welcome!
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > 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


Re: [android-developers] Code repository to learn by examples

2010-06-03 Thread TreKing
On Thu, Jun 3, 2010 at 11:03 AM, Nando Android wrote:

> Is there any source code repository for Android apps so one can learn by
> example?


You mean aside from the samples in the documentation and the source code
itself?

-
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] Using a ListView and an Adapter: How to use notifyDataSetChanged()?

2010-06-03 Thread Mariano Kamp
Hi.

Just watched Google IO's "World Of ListView" presentation [1]. Awesome
stuff. I think every Android dev should watch it.

One gotcha for me was to use BaseAdapter.notifyDataSetChanged[2]. I checked
code that I have written more than a year ago and found that I did try to
use that, but commented it out with '// doesn't work' and I use requery()
instead. That is of course much slower.

I now tried to find out why I wrote that it didn't work and hoped that I am
meanwhile so much wiser that it would be easier to understand the proper use
of the API. So much for ambition:  The effect I see is that the list is not
updated after I call notifyDataSetChanged(), but works with requery() and I
am not so much wiser ;-(

What could be the issue here? I use a ResourceCursorAdapter and only
implemented the bindView() Method. This method is called when I call
notifyDataSetChanged() on the RCAdapter. However the method is called with a
cursor that contains the stale data.

Now there was a second gotcha from the presentation that I couldn't really
place. It was said that the data should be committed on the GUI thread too
(before calling notifyDataSetChanged()). I couldn't place it then, but I now
suspect that this may be the issue here. So the rule would be to do the
commit() on the Cursor on the UI thread?
I do the updates to the database using a Service. This Service runs in the
background, sometimes the app is in the foreground at the same time, but
most often not. So I don't see how I should commit something in a UI thread?
Is this the issue here? There are two different Cursors and I could only use
notifyDataSetChanged when it would be the same cursor, otherwise requery()
is correct?

Is that it? Any ideas?

Is somebody going to write a book "The Android SDK - The missing manual"?
;-)

Cheers,
Mariano

[1]
http://code.google.com/events/io/2010/sessions/world-of-listview-android.html
[2]
http://developer.android.com/reference/android/widget/BaseAdapter.html#notifyDataSetChanged()

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Sprint Hero Android 2.1 Lost Copy Protected Apps Access

2010-06-03 Thread Guy Cole
I have copy protected apps and a Sprint Hero recently upgraded to 2.1

All of my copy protected apps came back after the update.

On Jun 2, 6:36 pm, Craigo  wrote:
> 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: Layout margin left/right issue in 2.2?

2010-06-03 Thread mp6800
I guess the better question to ask is, how do I make the layout work
on older versions of Android after I fix the margins for 2.2?  Do I
have to create a separate XML and put it in a "v8" layout dir?


On Jun 3, 12:35 pm, Romain Guy  wrote:
>
>
>
> > They're not going too far. From what I can tell, your layout was
> > relying on a broken behavior in previous versions of Android.
>
> > On Thu, Jun 3, 2010 at 9:33 AM, mp6800  wrote:
> > > Thanks for the reply.  What about the positive margins?  They're doing
> > > the same thing (going too far in 2.2)
>
> > > On Jun 3, 12:26 pm, Romain Guy  wrote:
> > >> You are using negative margins, which has an unspecified behavior.
>
> > >> On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
> > >> > Some more info on this - Turns out it /does/ affect top & bottom as
> > >> > well as left & right.  I posted screenshots and a sample Eclipse
> > >> > project here:
>
> > >> >http://www.anddev.org/view-layout-resource-problems-f27/layout-margin...
>
> > >> > --
> > >> > You received this message because you are subscribed to the Google
> > >> > Groups "Android Developers" group.
> > >> > To post to this group, send email to 
> > >> > android-developers@googlegroups.com
> > >> > To unsubscribe from this group, send email to
> > >> > android-developers+unsubscr...@googlegroups.com
> > >> > For more options, visit this group at
> > >> >http://groups.google.com/group/android-developers?hl=en
>
> > >> --
> > >> Romain Guy
> > >> Android framework engineer
> > >> romain...@android.com
>
> > >> Note: please don't send private questions to me, as I don't have time
> > >> to provide private support.  All such questions should be posted on
> > >> public forums, where I and others can see and answer them
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them

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


[android-developers] Re: Layout margin left/right issue in 2.2?

2010-06-03 Thread mp6800
Upon closer examination it looks like the older versions of Android
are using exactly half of the margin declared, but only for views that
are center aligned (vertically or horizontally).  For example, if I
anchor an imagebutton to the right, then set a right margin of 10, it
works.  But if I center the imagebutton and set a right margin of 10,
older versions of Android will set the margin to 5.  I didn't realize
the numbers were wrong from the get-go (I used the visual layout tool
in the SDK), so I thought 2.2 was the culprit when my imagebuttons
were so spread out.

I suppose the best way to handle this is to fix all the margin numbers
in my XML files, then programmatically divide the margins by half on
the centered imagebuttons for older versions of Android.  Then if/when
the day comes when anything below 2.2 is no longer being used, just
remove that code.

Unless a better solution presents itself, I'll stop talking to myself
now.


On Jun 3, 3:11 pm, mp6800  wrote:
> I guess the better question to ask is, how do I make the layout work
> on older versions of Android after I fix the margins for 2.2?  Do I
> have to create a separate XML and put it in a "v8" layout dir?
>
> On Jun 3, 12:35 pm, Romain Guy  wrote:
>
>
>
>
>
> > > They're not going too far. From what I can tell, your layout was
> > > relying on a broken behavior in previous versions of Android.
>
> > > On Thu, Jun 3, 2010 at 9:33 AM, mp6800  wrote:
> > > > Thanks for the reply.  What about the positive margins?  They're doing
> > > > the same thing (going too far in 2.2)
>
> > > > On Jun 3, 12:26 pm, Romain Guy  wrote:
> > > >> You are using negative margins, which has an unspecified behavior.
>
> > > >> On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
> > > >> > Some more info on this - Turns out it /does/ affect top & bottom as
> > > >> > well as left & right.  I posted screenshots and a sample Eclipse
> > > >> > project here:
>
> > > >> >http://www.anddev.org/view-layout-resource-problems-f27/layout-margin...
>
> > > >> > --
> > > >> > You received this message because you are subscribed to the Google
> > > >> > Groups "Android Developers" group.
> > > >> > To post to this group, send email to 
> > > >> > android-developers@googlegroups.com
> > > >> > To unsubscribe from this group, send email to
> > > >> > android-developers+unsubscr...@googlegroups.com
> > > >> > For more options, visit this group at
> > > >> >http://groups.google.com/group/android-developers?hl=en
>
> > > >> --
> > > >> Romain Guy
> > > >> Android framework engineer
> > > >> romain...@android.com
>
> > > >> Note: please don't send private questions to me, as I don't have time
> > > >> to provide private support.  All such questions should be posted on
> > > >> public forums, where I and others can see and answer them
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscr...@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Romain Guy
> > > Android framework engineer
> > > romain...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time
> > > to provide private support.  All such questions should be posted on
> > > public forums, where I and others can see and answer them

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


[android-developers] Re: Layout margin left/right issue in 2.2?

2010-06-03 Thread mp6800
Sorry, I meant /double/ the margins on older versions of Android.


On Jun 3, 3:33 pm, mp6800  wrote:
> Upon closer examination it looks like the older versions of Android
> are using exactly half of the margin declared, but only for views that
> are center aligned (vertically or horizontally).  For example, if I
> anchor an imagebutton to the right, then set a right margin of 10, it
> works.  But if I center the imagebutton and set a right margin of 10,
> older versions of Android will set the margin to 5.  I didn't realize
> the numbers were wrong from the get-go (I used the visual layout tool
> in the SDK), so I thought 2.2 was the culprit when my imagebuttons
> were so spread out.
>
> I suppose the best way to handle this is to fix all the margin numbers
> in my XML files, then programmatically divide the margins by half on
> the centered imagebuttons for older versions of Android.  Then if/when
> the day comes when anything below 2.2 is no longer being used, just
> remove that code.
>
> Unless a better solution presents itself, I'll stop talking to myself
> now.
>
> On Jun 3, 3:11 pm, mp6800  wrote:
>
>
>
> > I guess the better question to ask is, how do I make the layout work
> > on older versions of Android after I fix the margins for 2.2?  Do I
> > have to create a separate XML and put it in a "v8" layout dir?
>
> > On Jun 3, 12:35 pm, Romain Guy  wrote:
>
> > > > They're not going too far. From what I can tell, your layout was
> > > > relying on a broken behavior in previous versions of Android.
>
> > > > On Thu, Jun 3, 2010 at 9:33 AM, mp6800  wrote:
> > > > > Thanks for the reply.  What about the positive margins?  They're doing
> > > > > the same thing (going too far in 2.2)
>
> > > > > On Jun 3, 12:26 pm, Romain Guy  wrote:
> > > > >> You are using negative margins, which has an unspecified behavior.
>
> > > > >> On Thu, Jun 3, 2010 at 5:48 AM, mp6800  wrote:
> > > > >> > Some more info on this - Turns out it /does/ affect top & bottom as
> > > > >> > well as left & right.  I posted screenshots and a sample Eclipse
> > > > >> > project here:
>
> > > > >> >http://www.anddev.org/view-layout-resource-problems-f27/layout-margin...
>
> > > > >> > --
> > > > >> > You received this message because you are subscribed to the Google
> > > > >> > Groups "Android Developers" group.
> > > > >> > To post to this group, send email to 
> > > > >> > android-developers@googlegroups.com
> > > > >> > To unsubscribe from this group, send email to
> > > > >> > android-developers+unsubscr...@googlegroups.com
> > > > >> > For more options, visit this group at
> > > > >> >http://groups.google.com/group/android-developers?hl=en
>
> > > > >> --
> > > > >> Romain Guy
> > > > >> Android framework engineer
> > > > >> romain...@android.com
>
> > > > >> Note: please don't send private questions to me, as I don't have time
> > > > >> to provide private support.  All such questions should be posted on
> > > > >> public forums, where I and others can see and answer them
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to 
> > > > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Romain Guy
> > > > Android framework engineer
> > > > romain...@android.com
>
> > > > Note: please don't send private questions to me, as I don't have time
> > > > to provide private support.  All such questions should be posted on
> > > > public forums, where I and others can see and answer them

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


Re: [android-developers] Code repository to learn by examples

2010-06-03 Thread Nando Android
Correct. TreKing.

On Thu, Jun 3, 2010 at 12:49 PM, TreKing  wrote:

> On Thu, Jun 3, 2010 at 11:03 AM, Nando Android wrote:
>
>> Is there any source code repository for Android apps so one can learn by
>> example?
>
>
> You mean aside from the samples in the documentation and the source code
> itself?
>
>
> -
> TreKing - Chicago transit tracking app for Android-powered devices
> http://sites.google.com/site/rezmobileapps/treking
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: HTC Incredible suffering a reset while service running.

2010-06-03 Thread nikhil
Nathan,

I had similar issue long time back when I had implemented the service
architecture. I had observed few things:

1. My phone (Nexus One) used to restart (with my service running in
background) when I tried to change the call forward setting or I tried
to use the google car navigator app.
2. The phone did not restart if it was plugged into a computer. (May
be related to network connectivity.)

I tried all kind of stuff the only way I was able to get my app
working was by referring to Mark Murphy's wakefulintentservice
structure which uses the alarm manager.

On Jun 3, 12:42 pm, Nathan  wrote:
> After a few weeks, I've narrowed this down somewhat. But what to do,
> I'm not sure.
>
> I suspected that frequent notification updates were clogging up the
> phone. As another developer pointed out, the Incredible won't give
> foreground priority to services that follow that procedure - this
> could be related.
>
> Since my application doesn't reboot the phone, I suspect that
>
> I've tried all kinds of things to reduce the notifications:
> 1. Not calling AsyncTask.publishProgress more than every six seconds -
> logical to do.
> 2. Rejecting an event in if it is more than six seconds old.
> 3. Not updating the notification if it has been updated within the
> last few seconds.
> Finally,
> 4. Use an atomic boolean as a semaphore to not call publishProgress if
> a previous onProgressUpdate has not completed.
>
> The only thing that has worked was when I had a bug that caused the
> updates not to be sent at all. In that case, a beta tester managed to
> run the service for 24 hours and download 2 gigs in small pieces.
> There was absolutely no indication of status - it said 1/215000 the
> whole time, but it stayed alive. Put the update back in, and it can't
> run for very long.
>
> There is some bug on the Incredible related to notifications from
> services. I don't know how to avoid hitting it yet.
>
> Does anyone have any insights?
>
> One of my beta testers might be within travel range to hook up a
> debugger, but I'm not sure even that will help.
>
> For reference, this is what I do for updating the notification:
>
>                         // update the text on the ongoing notification
>                         message = mDownloadExplanation +  label + " " + num + 
> " / " +
> total;
>
>                         RemoteViews contentView = mNotification.contentView;
>                         
> contentView.setProgressBar(R.id.download_progress_horizontal,
> total,
>                                         num, false);
>                         
> contentView.setTextViewText(R.id.download_progress_explanation,
> message);
>
>                         long now = System.currentTimeMillis();
>                         if(now-mNotification.when>MINTIMEBETWEENUPDATES)
>                         {
>                                 mNotification.when = 
> System.currentTimeMillis();
>
>                                 
> mNotificationManager.notify(DOWNLOAD_PROGRESS_ID, mNotification);
>                         }
>                         mUpdateInProgress.set(false);
>
> I've been disappointed enough to consider not using a Service for this
> at all, but it still seems like a good fit - for everything but the
> incredible.
>
> Nathan

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


  1   2   >