[android-developers] Re: image in Edittext

2009-09-14 Thread amit

hi,

Try the below code

EditText android:id=@+id/edit_text_box
android:layout_width=fill_parent
android:layout_height=wrap_content
android:drawableLeft=@drawable/icon
/


Regards,
Amit

On Sep 12, 7:33 pm, mmkr manutd...@gmail.com wrote:
 Hai Sir,

             I am developing an application in which i want to insert
 image in editext with wrap feature
 will any body help me , with some 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
-~--~~~~--~~--~--~---



[android-developers] Is android support EMS

2009-09-14 Thread fenix bao

dear all:
 is android support EMS?  I send a EMS, but it only diaplay the
text.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] XML version 2.0

2009-09-14 Thread sasi kumar
Hi,

how can we read xml version 2.0 files in android or in java?
can any one give suggestion for this?..

thanks in advance

-- 
Thanks  Regards
Sasi Kumar.S

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



[android-developers] Emulator and android Market

2009-09-14 Thread Atif Gulzar
Can I access Android Market through emulator? Thanks


--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ

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



[android-developers] DDMS logging level doesn't work

2009-09-14 Thread 单单

I have configured the DDMS logging level, but it does not work. The
logging level is always Verbose. I have tried this in both Eclipse
plugin and DDMS in sdk. Neither of them works.

I know filter can be added to LogCat, but it is not what I need. I
want the log not outputed at all.

Any help will be highly 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] search a function to parse an XML file and return a table

2009-09-14 Thread sweet

Well all is in the title, i search a function to parse an xml file in
the net and return a table of child of this xml file anybody help
me ???
Thanks
Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: MeidaPlayer IlleglStateException thrown

2009-09-14 Thread Martin Obreshkov

Thanks Marco i have a service that was managing the player and when
the service was destroyed the player was released(); but after this i
was trying to play a song.
On Sun, Sep 13, 2009 at 7:56 PM, Marco Nelissen marc...@android.com wrote:

 Are you sure you're not calling MediaPlayer.release() anywhere in your code?


 On Sun, Sep 13, 2009 at 5:38 AM, Martin Obreshkov manig...@gmail.com wrote:

 I have a simple file that wrap the android media player and when i
 want to play file call the reset method to reset the player something
 like this
 .
 private final MediaPlayer mPlayer;
 .
 mPlayer = new MediaPlayer(); somewhere in constructor
 .
 public void play(String songUri) {
        // reset the player
        mPlayer.reset(); // every state is valid state for reset and go to 
 state IDLE
        // set new data source
        mPlayer.setDataSource(songUri); // IDLE is valid state for this method
        // plat the new source async
        mPlayer.prepareAsync();
 }
 On Sat, Sep 12, 2009 at 6:46 PM, Marco Nelissen marc...@android.com wrote:

 What does your code look like?


 On Sat, Sep 12, 2009 at 6:41 AM, manigault manig...@gmail.com wrote:

 Hi,
 I have the following issue i have an application that uses
 android.media.MediaPlayer and got this exception:

 09-12 16:21:05.921: ERROR/AndroidRuntime(9890): Uncaught handler:
 thread main exiting due to uncaught exception
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):
 java.lang.IllegalStateException
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.media.MediaPlayer._reset(Native Method)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.media.MediaPlayer.reset(MediaPlayer.java:856)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.media.SongPlayer.play(SongPlayer.java:185)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.media.SongPlayer.playSong(SongPlayer.java:287)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.media.SongPlayer.playCurrent(SongPlayer.java:276)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.player.activity.SongListActivity.onListItemClick
 (SongListActivity.java:198)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.player.activity.AbstractInstinctivActivity
 $1.onItemClick(AbstractInstinctivActivity.java:83)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.widget.AdapterView.performItemClick(AdapterView.java:283)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.widget.ListView.performItemClick(ListView.java:3132)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.widget.AbsListView$PerformClick.run(AbsListView.java:1620)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.os.Handler.handleCallback(Handler.java:587)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.os.Handler.dispatchMessage(Handler.java:92)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.os.Looper.loop(Looper.java:123)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.app.ActivityThread.main(ActivityThread.java:3948)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:782)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 dalvik.system.NativeStart.main(Native Method)

 in the documentation there are no invalid states for the reset method.
 From the stack trace it seems that the exception is thrown by the
 native call.
 i read about some issues about the same problem but this time for
 setDataSource method and the solution is the surround with try catch
 http://code.google.com/p/android/issues/detail?id=957.
 Any suggestions ? Thanks

 


 




 --
 When I raise my flashing sword, and my hand takes hold on judgment, I
 will take vengeance upon mine enemies, and I will repay those who haze
 me. Oh, Lord, raise me to Thy right hand and count me among Thy
 saints.

 


 




-- 
When I raise my flashing sword, and my hand takes hold on judgment, I
will take vengeance upon mine enemies, and I will repay those who haze
me. Oh, Lord, raise me to Thy right hand and count me among Thy
saints.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at

[android-developers] Re: Emulator and android Market

2009-09-14 Thread zhao lifeng

You can't !
On Mon, Sep 14, 2009 at 3:13 PM, Atif Gulzar atif.gul...@gmail.com wrote:
 Can I access Android Market through emulator? Thanks


 --
 Best Regards,
 Atif Gulzar

 I  Unicode, ɹɐzlnƃ ɟıʇɐ


 


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

2009-09-14 Thread Atif Gulzar
I am following this thread
http://groups.google.com/group/android-developers/browse_thread/thread/7d26272f9064095f/75da068852f85b72#75da068852f85b72

lets see if it possible or not. Seems possible though.


--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ



On Mon, Sep 14, 2009 at 3:28 PM, zhao lifeng zhaolifeng...@gmail.comwrote:


 You can't !
 On Mon, Sep 14, 2009 at 3:13 PM, Atif Gulzar atif.gul...@gmail.com
 wrote:
  Can I access Android Market through emulator? Thanks
 
 
  --
  Best Regards,
  Atif Gulzar
 
  I  Unicode, ɹɐzlnƃ ɟıʇɐ
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Mark Murphy

Photics wrote:
 I tried, but I couldn't get it to work.
 
 
 mWebView.loadUrl(http://photics.com/games/conquest;);
 mWebView.getSettings().setCacheMode
 (WebSettings.LOAD_NO_CACHE);
 mWebView.setWebViewClient(new WebViewClient() {
 public boolean shouldOverrideUrlLoading(WebView view,
 String url)
 {
 if (url.contains(http://photics.com;)) {
 return false;
 }
 else return true;
 }
 });
 
 
 That makes my site links work, staying in the WebView, but the
 external links don't work at all.
 --~--~-~--~~~---~--~~

From the documentation for shouldOverrideUrlLoading():

If WebViewClient is provided, return true means the host application
handles the url, while return false means the current WebView handles
the url.

Your else return true line is telling Android hey, I am going to
handle external links (by not doing anything). You may wish to call
startActivity() on an ACTION_VIEW Intent on the URL or something.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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



[android-developers] apk installation on mobilefromLinux machine

2009-09-14 Thread André Charles Legendre

Hi
I want to install an application apk from a Linux machine to a mobile
phone (Samsung Galaxy)
When I run adb install from Linux (Kubuntu 9.04), I get a message
telling : no device found.

Any Idea welcome

Andre

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

2009-09-14 Thread dillirao malipeddi
first check that your device connected to PC correctly
by command

adb devices

it will show the list of devices attached to your PC.

On Mon, Sep 14, 2009 at 3:49 PM, André Charles Legendre 
andre.legen...@gmail.com wrote:


 Hi
 I want to install an application apk from a Linux machine to a mobile
 phone (Samsung Galaxy)
 When I run adb install from Linux (Kubuntu 9.04), I get a message
 telling : no device found.

 Any Idea welcome

 Andre

 



-- 
Dilli Rao. M
Software Developer
www.arijasoft.com
- a pioneer in Mobile App Development

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

2009-09-14 Thread tauntz

Did you enable USB debugging on your phone? (Settings - Applications
- Development - USB debugging)
If not, try enabling it.

Tauno

On Mon, Sep 14, 2009 at 1:19 PM, André Charles Legendre
andre.legen...@gmail.com wrote:

 Hi
 I want to install an application apk from a Linux machine to a mobile
 phone (Samsung Galaxy)
 When I run adb install from Linux (Kubuntu 9.04), I get a message
 telling : no device found.

 Any Idea welcome

 Andre

 


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

2009-09-14 Thread André Charles Legendre

Hi Thank's to Dilli and Tauno

I have enabled USB debugging.
When I do adb devices I get no devices.

If I look in /var/log/messages
I see that mobile is detected when it is connected.
The system give it a disk alias (sdb) and a network alias /dev/ttyACM

But no devices is detected by adb.

Any help welcome.

Andre

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

2009-09-14 Thread sommeralex

stupid error. had the same problem. thx!

On 17 Aug., 16:27, Tony Wong manifa...@gmail.com wrote:
 My application dynamically inserts OverlayItem objects throughout its
 lifetime, without ever throwing a loading dialog to block user input.
 If you're doing the same and you've been getting an
 ArrayIndexOutOfBoundsException in getIndexToDraw of ItemizedOverlay,
 here's what I did to fix the problem. Before my changes, my size()
 looked something like this:

 private ArrayListOverlayItem items = new ArrayListOverlayItem();

 public int size() {
     return items.size();

 }

 For the fix, I first created an instance field that is updated after
 inserting a group of OverlayItem objects:

 for (OverlayItem newItem : newItems) {
     items.add(newItem);}

 mSize = items.size();
 populate();

 Finally, override size() so that instead of automatically to returning
 your collection's size, return the field that was written to manually:

 public int size() {
     return mSize;

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Countries for selling priced applications in Android Market

2009-09-14 Thread Armond Avanes
But just look at paid applications download rate at SAM. No so many
downloads. And consider the prices like $2-$3 per app. It's not a big market
for developers.

 

Armond

 

  _  

From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Abdul Mateen
Sent: Monday, September 14, 2009 10:20 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Re: Countries for selling priced applications
in Android Market

 

This is amazingly politics by Google, they should have used the default
system App Store is using for buying and selling apps instead of having a
new system for like Google checkout. I think yes SAM is a good alternative
to Android Market. so much users are using SAM.

On Mon, Sep 14, 2009 at 9:19 AM, CraigsRace craig...@gmail.com wrote:


 Following this discussion, I'm curious to know the reason why Google
pulled
 Australia out of merchant location list? It was in the list for a few
days!

Australian Vodaphone users (HTC Magic) have access to paid apps, while
Australian Optus users (HTC G1) do not.

 





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



[android-developers] Re: Countries for selling priced applications in Android Market

2009-09-14 Thread Armond Avanes

But I was talking about merchant location list, means the countries where
developers can sell their applications from!

What you're referring to is interesting from end-users' point of view.

Armond

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of CraigsRace
 Sent: Monday, September 14, 2009 7:50 AM
 
 
  Following this discussion, I'm curious to know the reason why Google
 pulled
  Australia out of merchant location list? It was in the list for a few
 days!
 
 Australian Vodaphone users (HTC Magic) have access to paid apps, while
 Australian Optus users (HTC G1) do not.
 

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



[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread Mark Murphy

André Charles Legendre wrote:
 Hi Thank's to Dilli and Tauno
 
 I have enabled USB debugging.
 When I do adb devices I get no devices.
 
 If I look in /var/log/messages
 I see that mobile is detected when it is connected.
 The system give it a disk alias (sdb) and a network alias /dev/ttyACM
 
 But no devices is detected by adb.
 
 Any help welcome.

Galaxy support should be available in a future release:

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

If you wish, that thread outlines a change to /etc/udev/rules.d/
contents and a patched adb that may work for you.

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

Warescription: Three Android Books, Plus Updates, $35/Year

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

2009-09-14 Thread Zero

take a look here: 
http://androidforums.com/support/3534-problems-mounting-communicating-g1-ubuntu.html
its for the g1, but should work as well for other android phones, just
the device id in the lsusb result is different.

On Sep 14, 12:40 pm, André Charles Legendre andre.legen...@gmail.com
wrote:
 Hi Thank's to Dilli and Tauno

 I have enabled USB debugging.
 When I do adb devices I get no devices.

 If I look in /var/log/messages
 I see that mobile is detected when it is connected.
 The system give it a disk alias (sdb) and a network alias /dev/ttyACM

 But no devices is detected by adb.

 Any help welcome.

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



[android-developers] WebView and javascript problem

2009-09-14 Thread legerb

I have a WebView in my activity opening html file, containing a simple
javascript.
My problem is that the webview opens the html file, but doesn't
execute the javascript.
When i open the file from web browser, and not from my app, it
executes the javascript correctly.
What could be the difference? Are there any different settings for
running javascript?

here is my file:
html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
script
function Tip(){
document.write(Hello!);
}
/script
/head
body
img src=map.jpg alt=Planets usemap=#imgmap /
map id=imgmap name=imgmap
area shape=rect alt=google title= coords=1,1,20,20
href=http://www.google.com; target= onmouseover=Tip() /
/map
/body
/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] Re: WebView and javascript problem

2009-09-14 Thread Mark Murphy

legerb wrote:
 I have a WebView in my activity opening html file, containing a simple
 javascript.
 My problem is that the webview opens the html file, but doesn't
 execute the javascript.
 When i open the file from web browser, and not from my app, it
 executes the javascript correctly.
 What could be the difference? Are there any different settings for
 running javascript?

Javascript is disabled by default.

Call getSettings().setJavaScriptEnabled(true) on your WebView to enable it.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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

2009-09-14 Thread Felix Oghina

Again, I found the solution before the post made it through
moderation. Anyway, the workaround I found was to use a
android.os.Handler and use the postDelayed() function within it. If
anyone knows a better solution, please let me know.

On Sep 13, 3:54 pm, Felix Oghina felix.ogh...@gmail.com wrote:
 My Activity fetches an XML from the Web, parses it and displays
 information in a ListView. Everything was working fine until I decided
 to do the XML fetching and parsing in a TimerTask, so that I could
 show a Loading... message while that is happening. After lots of
 debugging, I realized that the application hangs on
 mListAdapter.add(mCurName), where mListAdapter is an
 ArrayAdapterCharSequence and mCurName is a String. This instruction
 worked before using a TimerTask, but now it just stops execution
 without any exception or anything. I have tried creating the Timer
 with both new Timer(true) and new Timer(false), but nothing seems to
 work.

 Note: the mListAdapter.add(mCurName) call is actually made in a
 function within my main Activity class, which, in turn, is called from
 the run() function inside the TimerTask class that is defined within
 my main Activity class. Just to make sure I made sense, here's a
 sketch of my code:

 public class MyActivity extends Activity {
         // vars...
         protected void onCreate(Bundle savedInstanceState) {
                 // stuff...
                 Timer timer = new Timer(true);
                 SearchTask task = new SearchTask();
                 timer.schedule(task, 1);
         }
         public void run() {
                 // stuff...
                 mResultList = parseResponseXml(responseXml);
                 // other stuff, but execution never reaches this point...
         }

         public class XmlHandler extends DefaultHandler {
                 // vars...
                 public void startElement(...) {...}
                 public void characters(...) {...}
                 public void endElement(String uri, String name, String qName) 
 {
                         // stuff...
                         if (name == resource) {
                                 inResource = false;
                                 if (inResults) { // this is where the problem 
 is
                                         Log.i(TasteKidDebug, Before 
 mListAdapter.add); // this gets logged
                                         mListAdapter.add(mCurName);
                                         Log.i(TasteKidDebug, After 
 mListAdapter.add); // this doesn't
                                         mResults.add(mCurName, mCurType);
                                 }
                         }
                         // stuff..
                 }
         }

         public ResourceList parseResponseXml(String xml) throws Exception {
                 // stuff...
                 XmlHandler handler = new XmlHandler();
                 xr.setContentHandler(handler);
                 xr.parse(new InputSource(new StringReader(xml)));
                 return handler.mResults;
         }

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

2009-09-14 Thread Rimma Sukhovsky
Thanks a lot Mark!
This is what i've been missing :)

On Mon, Sep 14, 2009 at 2:11 PM, Mark Murphy mmur...@commonsware.comwrote:


 legerb wrote:
  I have a WebView in my activity opening html file, containing a simple
  javascript.
  My problem is that the webview opens the html file, but doesn't
  execute the javascript.
  When i open the file from web browser, and not from my app, it
  executes the javascript correctly.
  What could be the difference? Are there any different settings for
  running javascript?

 Javascript is disabled by default.

 Call getSettings().setJavaScriptEnabled(true) on your WebView to enable it.

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

 Need help for your Android OSS project? http://wiki.andmob.org/hado

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics

Heh... wow... this is complicated. In regular HTML, I can open a new
window with _blank With the WebView, it's a little bit harder! :)

I think that's what bothers me. I think that the WebView should
respect the hyperlink targets, or at least have an option to be set
such... like a webSetting. Maybe there's a good reason for the WebView
to work the way that it does. For static content being called from the
device, this makes sense. For me, I'm trying to get online
advertisements and online content to play nice. I'm discovering that
there are lots of little issues when trying to do that.

Yesterday, I realized that I was probably not telling Android what to
do. Today, I'm going to try again to figure it out. I have started by
reading about startActivity and ACTION_VIEW.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] data in onPictureTaken always null for raw picture

2009-09-14 Thread Timothy F

I'm attempting to obtain raw picture data from the camera.  According
to the Javadocs it can be obtained via the callback passed to
camera.takePicture(null, callback, null).  However, the array passed
to the callback is always null.  I've checked permissions, examined
the logcat, registered a callback for errors, tried various image
sizes and format, all to no avail.  I've also seen other posts
mentioning it, but never an answer to the question.

Does anyone know, are we doing something wrong, or is this feature
just not implemented by Android in its current form?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 in XML parsing

2009-09-14 Thread Gulfam

Hi,

 I want to parse a string and want to get username and password from
this string. Actually its a XML packet and i am passing it to my
parsing class as a string

Data for parsing is:

iq id=3Y4cX-5 to=3224005...@imran-mehmood/Smack from=msn.imran-
mehmood type=result
query xmlns=jabber:iq:register
instructionsPlease enter your MSN Passport e-mail address and
password./instructions
registered/registered
usernameg...@hotmail.com/username
password123456789/password
x xmlns=jabber:x:data
instructionsPlease enter your MSN Passport e-mail 
address and
password./instructions
/x
x xmlns=jabber:iq:gateway:register/x
/query
/iq

*
Here is my parsing class

package com.vopium.utils;

import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;

import android.util.Log;



public class VOPXMLHandlerMessenger extends DefaultHandler {

private boolean iq=false;
private boolean query=false;
private boolean username=false;
private boolean password=false;

private int status;

public int getStatus() {
return status;
}

public void setStatus(int status) {
this.status = status;
}

@Override
public void startDocument() throws SAXException {
 //this.myParsedExampleDataSet = new ParsedExampleDataSet();
}

@Override
public void endDocument() throws SAXException {
 // Nothing to do
}


@Override
public void startElement(String namespaceURI, String localName,
  String qName, Attributes atts) throws SAXException {
if(localName.equals(iq)){
  this.iq = true;
  }else if(localName.equals(query)){
  this.query = true;
  }else if(localName.equals(username)){
  this.username = true;
  }else if(localName.equals(password)){
  this.password = true;
  }


 }




/** Gets be called on closing tags like:
 * /tag */
@Override
public void endElement(String namespaceURI, String localName,
String qName)
  throws SAXException {
if(localName.equals(iq)){
  this.iq = false;
  }else if(localName.equals(query)){
  this.query = false;
  }else if(localName.equals(username)){
  this.username = false;
  }else if(localName.equals(password)){
  this.password = false;
  }
}


public void characters(char ch[], int start, int length) {

if(this.username){
Log.i(Username,+ new String
(ch,start,length));
  }
if(this.password){
Log.i(password,+new String
(ch,start,length));
  }
 }


public void parseData(String xmlparse) throws IOException,
SAXException, ParserConfigurationException
{
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
xr.setContentHandler(this);
xr.parse(xmlparse);

}

}

***
and I am facing this Error

java.io.IOException: Couldn't open iq id=4oP7A-5
to=3224005...@imran-mehmood/Smack from=msn.imran-mehmood
type=resultquery xmlns=jabber:iq:registerinstructionsPlease
enter your MSN Passport e-mail address and password./
instructionsregistered/registeredusernameg...@hotmail.com/
usernamepassword123456789/passwordx
xmlns=jabber:x:datainstructionsPlease enter your MSN Passport e-
mail address and password./instructions/xx
xmlns=jabber:iq:gateway:register/x/query/iq
at org.apache.harmony.xml.ExpatParser.openUrl(ExpatParser.java:744)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:300)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:333)
at com.vopium.utils.VOPXMLHandlerMessenger.parseData
(VOPXMLHandlerMessenger.java:124)
at com.vopium.im.registration.VOPRegistration.getUserCredentials
(VOPRegistration.java:165)
at com.vopium.im.ui.VOPLoginScreen.login(VOPLoginScreen.java:55)
at com.vopium.im.ui.VOPMainContactsList.onCreate
(VOPMainContactsList.java:48)
at android.app.Instrumentation.callActivityOnCreate
(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity
(ActivityThread.java:2231)
at android.app.ActivityThread.startActivityNow(ActivityThread.java:
2112)
at android.app.LocalActivityManager.moveToState
(LocalActivityManager.java:127)
at 

[android-developers] Re: data in onPictureTaken always null for raw picture

2009-09-14 Thread Mark Murphy

Timothy F wrote:
 I'm attempting to obtain raw picture data from the camera.  According
 to the Javadocs it can be obtained via the callback passed to
 camera.takePicture(null, callback, null).

RAW is not available:

http://osdir.com/ml/AndroidDevelopers/2009-02/msg01493.html

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

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

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



[android-developers] Re: Issue in XML parsing

2009-09-14 Thread Neil

Your error's here:

xr.parse(xmlparse);

This function takes an InputSource not a String.

Regards,

Neil


On Sep 14, 1:40 pm, Gulfam gulfa...@gmail.com wrote:
 Hi,

  I want to parse a string and want to get username and password from
 this string. Actually its a XML packet and i am passing it to my
 parsing class as a string

 Data for parsing is:

 iq id=3Y4cX-5 to=3224005...@imran-mehmood/Smack from=msn.imran-
 mehmood type=result
         query xmlns=jabber:iq:register
                 instructionsPlease enter your MSN Passport e-mail address 
 and
 password./instructions
                 registered/registered
                 usernameg...@hotmail.com/username
                 password123456789/password
                 x xmlns=jabber:x:data
                         instructionsPlease enter your MSN Passport e-mail 
 address and
 password./instructions
                 /x
                 x xmlns=jabber:iq:gateway:register/x
         /query
 /iq

 *
 Here is my parsing class

 package com.vopium.utils;

 import java.io.IOException;
 import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.parsers.SAXParser;
 import javax.xml.parsers.SAXParserFactory;
 import org.xml.sax.Attributes;
 import org.xml.sax.SAXException;
 import org.xml.sax.XMLReader;
 import org.xml.sax.helpers.DefaultHandler;

 import android.util.Log;

 public class VOPXMLHandlerMessenger extends DefaultHandler {

         private boolean iq=false;
         private boolean query=false;
     private boolean username=false;
     private boolean password=false;

         private int status;

         public int getStatus() {
                 return status;
         }

         public void setStatus(int status) {
                 this.status = status;
         }

     @Override
     public void startDocument() throws SAXException {
          //this.myParsedExampleDataSet = new ParsedExampleDataSet();
     }

     @Override
     public void endDocument() throws SAXException {
          // Nothing to do
     }

     @Override
     public void startElement(String namespaceURI, String localName,
               String qName, Attributes atts) throws SAXException {
             if(localName.equals(iq)){
                   this.iq = true;
               }else if(localName.equals(query)){
                   this.query = true;
               }else if(localName.equals(username)){
                   this.username = true;
               }else if(localName.equals(password)){
                   this.password = true;
               }

          }

     /** Gets be called on closing tags like:
      * /tag */
     @Override
     public void endElement(String namespaceURI, String localName,
 String qName)
               throws SAXException {
         if(localName.equals(iq)){
                   this.iq = false;
               }else if(localName.equals(query)){
                   this.query = false;
               }else if(localName.equals(username)){
                   this.username = false;
               }else if(localName.equals(password)){
                   this.password = false;
               }
     }

 public void characters(char ch[], int start, int length) {

         if(this.username){
                 Log.i(Username,+ new String
 (ch,start,length));
           }
         if(this.password){
                 Log.i(password,+new String
 (ch,start,length));
           }
      }

     public void parseData(String xmlparse) throws IOException,
 SAXException, ParserConfigurationException
         {
         SAXParserFactory spf = SAXParserFactory.newInstance();
         SAXParser sp = spf.newSAXParser();
         XMLReader xr = sp.getXMLReader();
         xr.setContentHandler(this);
         xr.parse(xmlparse);

         }

 }

 ***
 and I am facing this Error

 java.io.IOException: Couldn't open iq id=4oP7A-5
 to=3224005...@imran-mehmood/Smack from=msn.imran-mehmood
 type=resultquery xmlns=jabber:iq:registerinstructionsPlease
 enter your MSN Passport e-mail address and password./
 instructionsregistered/registeredusernameg...@hotmail.com/
 usernamepassword123456789/passwordx
 xmlns=jabber:x:datainstructionsPlease enter your MSN Passport e-
 mail address and password./instructions/xx
 xmlns=jabber:iq:gateway:register/x/query/iq
 at org.apache.harmony.xml.ExpatParser.openUrl(ExpatParser.java:744)
 at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:300)
 at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:333)
 at com.vopium.utils.VOPXMLHandlerMessenger.parseData
 (VOPXMLHandlerMessenger.java:124)
 at com.vopium.im.registration.VOPRegistration.getUserCredentials
 (VOPRegistration.java:165)
 at com.vopium.im.ui.VOPLoginScreen.login(VOPLoginScreen.java:55)
 at com.vopium.im.ui.VOPMainContactsList.onCreate
 (VOPMainContactsList.java:48)
 at android.app.Instrumentation.callActivityOnCreate
 

[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread André Charles Legendre

Hi Mark and Zero

I run on Kubuntu 9.04 but with 1.5_r3
And I get :

Sep 14 14:54:38 REN027 kernel: [23036.364023] usb 1-3: new high speed
USB device using ehci_hcd and address 10
Sep 14 14:54:38 REN027 kernel: [23036.509774] usb 1-3: configuration
#2 chosen from 1 choice
Sep 14 14:54:38 REN027 kernel: [23036.511596] cdc_acm 1-3:2.0:
ttyACM0: USB ACM device
Sep 14 14:54:38 REN027 kernel: [23036.522489] scsi10 : SCSI emulation
for USB Mass Storage devices
Sep 14 14:54:43 REN027 kernel: [23041.528410] scsi 10:0:0:0:
Direct-Access Samsung  SAMSUNG Android  Mass PQ: 0 ANSI: 2
Sep 14 14:54:43 REN027 kernel: [23041.530039] scsi 10:0:0:1:
Direct-Access Samsung  SAMSUNG Android  Mass PQ: 0 ANSI: 2
Sep 14 14:54:44 REN027 kernel: [23041.549472] sd 10:0:0:0: [sdb]
Attached SCSI removable disk
Sep 14 14:54:44 REN027 kernel: [23041.549692] sd 10:0:0:0: Attached
scsi generic sg2 type 0
Sep 14 14:54:44 REN027 kernel: [23041.558562] sd 10:0:0:1: [sdc]
Attached SCSI removable disk
Sep 14 14:54:44 REN027 kernel: [23041.558731] sd 10:0:0:1: Attached
scsi generic sg3 type 0

So I don't have any idVendor line in it. And changing udev rule gave no result.
I will try to upgrade Sdk and I will tell you what I get

Andre

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

2009-09-14 Thread André Charles Legendre

Hi Mark

I installed android-sdk-linux_x86-1.5_r3 and it changed nothing.
I will try to apply the patch from :
http://androidforums.com/support/3534-problems-mounting-communicating-g1-ubuntu.html

Andre

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

2009-09-14 Thread Ostaski

Logic was a bit off:
if(amRSI.started) {
menu
.findItem(R.id.arm)
.setVisible(false)
.setEnabled(false);
menu
.findItem(R.id.disarm)
.setVisible(true)
.setEnabled(true);
 } else {
menu
.findItem(R.id.arm)
.setVisible(true)
.setEnabled(true);
menu
.findItem(R.id.disarm)
.setVisible(false)
.setEnabled(false);
}
return true;
}

Still showing both buttons, though.



On Sep 12, 5:17 pm, Ostaski osta...@gmail.com wrote:
 I am trying to manage the options items, making one button visible and
 another invisible based on whether a background service is active.

 Here's a snippet of my menu/option.xml:
         item android:id=@+id/arm
                 android:title=Arm
         /
         item android:id=@+id/disarm
                 android:title=Disarm
                 android:visible=false
                 android:enabled=false
         /

 and my onPrepareOptionsMenu():
     @Override
     public boolean onPrepareOptionsMenu(Menu menu) {
         ActivityManager.RunningServiceInfo amRSI = new
 ActivityManager.RunningServiceInfo();
         if(amRSI.started) {
             menu
                 .findItem(R.id.arm)
                 .setVisible(false);
          } else {
             menu
                 .findItem(R.id.disarm)
                 .setVisible(true)
                 .setEnabled(true);
         }
         return true;
     }

 However, both buttons show when hitting the menu tab in the emulator
 before starting the service.

 Can someone lend me a hand?

 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: App Widget and Orientation Changes

2009-09-14 Thread lilbyrdie

Hi Lee,

Thanks for the information.

As my widget has progressed, I now have full caching for JPEG files as
I'm no longer reading from a local source and it's working fine. I'm
also loading a Bitmap rather than setting a Uri to them. Perhaps
there's some issue with using the resource ID in a RemoteViews object?
Such as, perhaps when it tries to reload the image on a rotate, the
resource is no longer accessible by the remote process the RemoteViews
is being loaded in? In one case, it might be reusing the Bitmap object
but in the other, just trying to load the resource ID. In your case,
you've set the file to be globally accessible, so that should be
available to any process.

Anyway, that's the only thing I can think of. That doesn't explain why
it works the first time, though.



On Sep 7, 9:18 am, Lee lee.wil...@googlemail.com wrote:
   On my G1 it's not possible.

  The standard G1's home screen rotates when you slide out the keyboard.

 Right, thanks.

 lilbyrdie, I can confirm that my caching solution also works when
 the screen is rotated.

 Lee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread lilbyrdie

I think it's best to think of WebView as little more than a rendering
engine. If you want to implement a Web Browser, you have to do that
yourself. WebView isn't intended to be a little micro-embedded web
browser.

On Sep 14, 8:22 am, Photics m...@photics.com wrote:
 Heh... wow... this is complicated. In regular HTML, I can open a new
 window with _blank With the WebView, it's a little bit harder! :)

 I think that's what bothers me. I think that the WebView should
 respect the hyperlink targets, or at least have an option to be set
 such... like a webSetting. Maybe there's a good reason for the WebView
 to work the way that it does. For static content being called from the
 device, this makes sense. For me, I'm trying to get online
 advertisements and online content to play nice. I'm discovering that
 there are lots of little issues when trying to do that.

 Yesterday, I realized that I was probably not telling Android what to
 do. Today, I'm going to try again to figure it out. I have started by
 reading about startActivity and ACTION_VIEW.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: ADC2 entries so far...

2009-09-14 Thread Mobidev

Games: Casual/Puzzle
Amoeba Blackjack http://www.amoebagames.net

Games(?)
PlayInGo http://www.green-coder.com/playingo/

Category?
Gesture Commander http://www.green-coder.com/gesturecommander/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Countries for selling priced applications in Android Market

2009-09-14 Thread Shane Isbell
On Mon, Sep 14, 2009 at 3:50 AM, Armond Avanes armond...@yahoo.com wrote:

  But just look at paid applications download rate at SAM. No so many
 downloads… And consider the prices like $2-$3 per app. It’s not a big market
 for developers.

It's the same as the situation in the Android Market, some do well, some
don't. TetherWifi is a $9 app and has sold over 400 copies . Bloo a $2 app
has sold 500. A critical point is that at least developers can market their
app with screenshots and video. Marketing of apps takes time and building a
user base.



 Armond


   --

 *From:* android-developers@googlegroups.com [mailto:
 android-develop...@googlegroups.com] *On Behalf Of *Abdul Mateen
 *Sent:* Monday, September 14, 2009 10:20 AM
 *To:* android-developers@googlegroups.com
 *Subject:* [android-developers] Re: Countries for selling priced
 applications in Android Market



 This is amazingly politics by Google, they should have used the default
 system App Store is using for buying and selling apps instead of having a
 new system for like Google checkout. I think yes SAM is a good alternative
 to Android Market. so much users are using SAM.

 On Mon, Sep 14, 2009 at 9:19 AM, CraigsRace craig...@gmail.com wrote:


  Following this discussion, I'm curious to know the reason why Google
 pulled
  Australia out of merchant location list? It was in the list for a few
 days!

 Australian Vodaphone users (HTC Magic) have access to paid apps, while
 Australian Optus users (HTC G1) do not.






 



-- 
Shane Isbell (Co-founder of SlideME - The Original Market for Android)
http://twitter.com/sisbell
http://twitter.com/slideme

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

2009-09-14 Thread Dan Sherman
We've been having a similar issue without being able to find a cause.

We have a game (ProjectINF), which uses UDP for communication.  Works fine
on all devices except the hero (from what we've heard from users).

Not sure where to point you, just wanted to chime in and let you know you're
not the only one with Hero networking woes.

- Dan

On Sun, Sep 13, 2009 at 6:51 AM, Christine christine.kar...@gmail.comwrote:


 I have an app that uploads files to a server. It works perfectly on
 ADP1 and HTC Magic, but it doesn't on HTC Hero. Does anyone know about
 differences in the way networking works on the Hero that prevents my
 app from working? I use httpClient in my app.
 


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

2009-09-14 Thread Gulfam

Hi Neil,

Thanks for your response. Now i am providing my string as
ByteArrayInputStream and its working fine.

Thanks again.
Gulfam

On Sep 14, 6:17 pm, Neil neil.wilkin...@gmx.com wrote:
 Your error's here:

     xr.parse(xmlparse);

 This function takes an InputSource not a String.

 Regards,

 Neil

 On Sep 14, 1:40 pm, Gulfam gulfa...@gmail.com wrote:

  Hi,

   I want to parse a string and want to get username and password from
  this string. Actually its a XML packet and i am passing it to my
  parsing class as a string

  Data for parsing is:

  iq id=3Y4cX-5 to=3224005...@imran-mehmood/Smack from=msn.imran-
  mehmood type=result
          query xmlns=jabber:iq:register
                  instructionsPlease enter your MSN Passport e-mail address 
  and
  password./instructions
                  registered/registered
                  usernameg...@hotmail.com/username
                  password123456789/password
                  x xmlns=jabber:x:data
                          instructionsPlease enter your MSN Passport e-mail 
  address and
  password./instructions
                  /x
                  x xmlns=jabber:iq:gateway:register/x
          /query
  /iq

  *
  Here is my parsing class

  package com.vopium.utils;

  import java.io.IOException;
  import javax.xml.parsers.ParserConfigurationException;
  import javax.xml.parsers.SAXParser;
  import javax.xml.parsers.SAXParserFactory;
  import org.xml.sax.Attributes;
  import org.xml.sax.SAXException;
  import org.xml.sax.XMLReader;
  import org.xml.sax.helpers.DefaultHandler;

  import android.util.Log;

  public class VOPXMLHandlerMessenger extends DefaultHandler {

          private boolean iq=false;
          private boolean query=false;
      private boolean username=false;
      private boolean password=false;

          private int status;

          public int getStatus() {
                  return status;
          }

          public void setStatus(int status) {
                  this.status = status;
          }

      @Override
      public void startDocument() throws SAXException {
           //this.myParsedExampleDataSet = new ParsedExampleDataSet();
      }

      @Override
      public void endDocument() throws SAXException {
           // Nothing to do
      }

      @Override
      public void startElement(String namespaceURI, String localName,
                String qName, Attributes atts) throws SAXException {
              if(localName.equals(iq)){
                    this.iq = true;
                }else if(localName.equals(query)){
                    this.query = true;
                }else if(localName.equals(username)){
                    this.username = true;
                }else if(localName.equals(password)){
                    this.password = true;
                }

           }

      /** Gets be called on closing tags like:
       * /tag */
      @Override
      public void endElement(String namespaceURI, String localName,
  String qName)
                throws SAXException {
          if(localName.equals(iq)){
                    this.iq = false;
                }else if(localName.equals(query)){
                    this.query = false;
                }else if(localName.equals(username)){
                    this.username = false;
                }else if(localName.equals(password)){
                    this.password = false;
                }
      }

  public void characters(char ch[], int start, int length) {

          if(this.username){
                  Log.i(Username,+ new String
  (ch,start,length));
            }
          if(this.password){
                  Log.i(password,+new String
  (ch,start,length));
            }
       }

      public void parseData(String xmlparse) throws IOException,
  SAXException, ParserConfigurationException
          {
          SAXParserFactory spf = SAXParserFactory.newInstance();
          SAXParser sp = spf.newSAXParser();
          XMLReader xr = sp.getXMLReader();
          xr.setContentHandler(this);
          xr.parse(xmlparse);

          }

  }

  ***
  and I am facing this Error

  java.io.IOException: Couldn't open iq id=4oP7A-5
  to=3224005...@imran-mehmood/Smack from=msn.imran-mehmood
  type=resultquery xmlns=jabber:iq:registerinstructionsPlease
  enter your MSN Passport e-mail address and password./
  instructionsregistered/registeredusernameg...@hotmail.com/
  usernamepassword123456789/passwordx
  xmlns=jabber:x:datainstructionsPlease enter your MSN Passport e-
  mail address and password./instructions/xx
  xmlns=jabber:iq:gateway:register/x/query/iq
  at org.apache.harmony.xml.ExpatParser.openUrl(ExpatParser.java:744)
  at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:300)
  at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:333)
  at com.vopium.utils.VOPXMLHandlerMessenger.parseData
  (VOPXMLHandlerMessenger.java:124)
  

[android-developers] Re: horizontally scollable TextView...

2009-09-14 Thread sdphil

update: okay, it does look like it will scroll horizontally, just no
scrollbar... ??

On Sep 14, 8:35 am, sdphil phil.pellouch...@gmail.com wrote:
 is there a way to have a horizontal scrollbar on a TextView?  I have
 tried all kinds of variations, and it seems like it supports it, but i
 cannot get it to work.

 I did a google search online and it looks like at one point it was not
 supported, i'm hoping / assuming that was under 1.1.  anyway, here's
 my latest variation (that doesn't work; i have tried many other
 variations -- that equally don't work as well!) --

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
               android:orientation=vertical
               android:layout_width=fill_parent
               android:layout_height=fill_parent
               android:background=@color/black

         TextView android:layout_width=fill_parent
                   android:layout_height=wrap_content
                   android:text=My Text View
                   android:textColor=#ff
                   android:textStyle=bold
                   android:textSize=14px
                   android:gravity=center_horizontal/

         ScrollView android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 android:scrollbars=vertical

                 ScrollView android:layout_width=fill_parent
                         android:layout_height=fill_parent
                         android:scrollbars=horizontal

                         TextView android:id=@+id/MyTextView
                                           android:layout_width=wrap_content
                                           android:layout_height=wrap_content
                           android:singleLine=false
                           android:scrollHorizontally=true
                           android:textSize=10px
                                           android:text=some text (which will 
 be replaced by text that
 needs to be scrolled horizontally)/
                 /ScrollView

         /ScrollView

 /LinearLayout

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



[android-developers] Re: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Mark Murphy

Roger L wrote:
 I am banging my head into a brick wall!
 I want to save an intent pick from the ACTION_PICK_ACTIVITY into a
 preference/database/etc... and use it as a result for my application
 every time it runs.
 But, there is no way to save the right data type (Intent) into
 preferences or a database, or anyway that I can see to convert from a
 string or such back into the (Intent)!!
 Someone please point me in the right direction?!?

Save the relevant pieces the Intent (e.g., action, data). You don't say
what sort of Intent this is, so it is difficult to give you specific advice.

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

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Roger L

Well, this is what i am doing

Calling ACTION_PICK_ACTIVITY for result, i get back

Intent { action=android.intent.action.MAIN categories=
{android.intent.category.LAUNCHER} comp={com.android.alarmclock/
com.android.alarmclock.AlarmClock} }

when I pick the alarm clock of course
do I have to somehow parse this and save the info, and then
add .addActivity, .addCategory, and .setClassName?
That seems like a bit, doesn't it?
would you use split() to parse the sections?
Enough info?

On Sep 14, 9:25 am, Mark Murphy mmur...@commonsware.com wrote:
 Roger L wrote:
  I am banging my head into a brick wall!
  I want to save an intent pick from the ACTION_PICK_ACTIVITY into a
  preference/database/etc... and use it as a result for my application
  every time it runs.
  But, there is no way to save the right data type (Intent) into
  preferences or a database, or anyway that I can see to convert from a
  string or such back into the (Intent)!!
  Someone please point me in the right direction?!?

 Save the relevant pieces the Intent (e.g., action, data). You don't say
 what sort of Intent this is, so it is difficult to give you specific advice.

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

 _Android Programming Tutorials_ Version 1.0 In Print!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 are the provided android applications?

2009-09-14 Thread stanlick

I would like to step through the ViewContactActivity using the Eclipse
debugger to gain a better understanding of how it is assembled.  I can
see the source code when I explore the source tree, but I do not see
any of the classes inside Eclipse when using Ctrl+Shift+T to open the
type.  Also, when I open the type hierarchy with F4 to see what
extends ListActivity, I do not see ViewContactActivity.  Any clues?

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

2009-09-14 Thread Jason Van Anden

You forgot BubbleBeats (in Entertainment)!

http://www.bubblebeats.com

Jason Van Anden

On Sun, Sep 13, 2009 at 1:12 PM, Mobidev android.mobi...@gmail.com wrote:

 Its mid September and ADC team will soon launch the ADC 2 judging
 application. So far its been a great job by the ADC team with sticking
 to the submission deadline and swift uploads(leaving aside package
 name confusion among the participants).

 Meanwhile, below are about 105 ADC2 entries posted on forum. In case
 of new additions or corrections please reply to this discussion with
 category app name links. ADC1 saw about 1788 apps and my guess
 is ADC2 will see a tleast 2500 apps considering the tight deadline
 (could have been much higher(4K+) otherwise).

 From the trend it seems that the Miscellaneous category has far less
 entries than Prod/Tools and Games(both) categories. Possibly, 21st
 ranking entry under Prod/Tools could be much better than 3rd ranking
 entry under Misc category. Unlike ADC1, this time Category will be a
 key factor in winning; along with Originality, Effective Platform Use,
 Polish and Indispensability.

 -
 Education/Reference
        Librarium II http://steveoliverc.squarespace.com/
        Math Jungle
        Mystic Maggie http://www.phdgaming.com/general_media/mm/
        Vivify picture: math http://vivifypicture.com/

 Entertainment
        Daisy Garden http://www.tomgibara.com/android/daisy/garden/
        Taps Of Fire http://code.google.com/p/tapsoffire

 Games: Arcade/Action
        CowPotato 3D http://www.froogloid.com/cowpotato
        FRG http://www.woogames.com/
        Galactic Guardian: Zap GPS 
 http://sites.google.com/site/mysticlakesoftware/
        Graviturn http://www.cyrket.com/package/com.fheft.graviturn
        Head To Head Racing http://headtoheadracing.appspot.com/
        Light Racer 3D Trial
        ProjectINF http://www.chickenbrickstudios.com/
        UrbanGolf
        X-Disc http://www.youtube.com/watch?v=3EkH-b15fPY
        Zepto Wars - RTS

 Games: Casual/Puzzle
        Furdiburb http://www.sheado.net/
        Goobers Vs. Boogers http://goobersvsboogers.blogspot.com/
        ongPay http://www.yakloingames.com/
        Relativia http://www.polyclefsoftware.com/relativia.html
        Splat!: Bugs II http://dkdroid.com
        What the Doodle!?
 Lifestyle
        Beer Cloud http://greatbrewers.com/story/beercloud-mobile-app
        Bottle Buzz
        DoIt http://curvefish.com/apps/doit.htm
        FoxyRing  http://www.levelupstudio.fr/foxyring
        Gigbox http://www.mygigbox.com/
        NetDroid
        NotiMe! http://www.youtube.com/watch?v=wFjoZmrj40k
        ReaderScope http://www.altcanvas.com/android/readerscope
        Rhythmatics Alpha http://www.twitter.com/brownbaggames
        SpecTrek

 Media
        Gallery Map
        geoPaste http://www.geopaste.com/
        Mediafly Mobile Audio Podcast Client
        MicroJam
        MicroJam
        MyPOD http://www.my-pod.org/
        PackRat http://packrat.unwesen.de/
        Time-Lapse http://www.sheado.net/
        Uloops http://www.uloops.net/

 Misc
        Local Agents http://local-agents.appspot.com/
        picjiggles lite http://www.yakloingames.com/

 Productivity/Tools
        Alarmoid http://www.youtube.com/watch?v=yNcVkP_vK08
        aList http://androidalist.blogspot.com
        AppManager http://curvefish.com/apps/appmanager.htm
        GeoAlert http://sites.google.com/site/appyoursmobile/geoalert
        Hoccer http://www.hoccer.com/
        MobileWrite
        Mobisle Notes http://www.facebook.com/pages/MobisleApps/127994296229
        MyPages http://www.youtube.com/watch?v=75lR4zLy_LQ
        OpenLoopz http://sites.iode.co.uk/openloopz/
        Personalytics http://personalytics.net/
        Skiba PDF Reader http://www.anddev.org/skiba_pdf_reader-t6122.html
        Smart Lock http://www.youtube.com/watch?v=ipue9Yhi5VA
        Talking Calendar http://www.pwnwithyourphone.com/
        Tasker http://tasker.dinglisch.net/
        Thinking Space http://homepages.nildram.co.uk/~bakachu/screenshot.png
        Tracklet http://tracklet.appspot.com
        txeet http://txeet.com
        Voice Caller ID http://www.pwnwithyourphone.com/
        WebReader http://webreader.vamsee.in/
        What Zip? http://www.usnaviguide.com/zip.htm
        Xeeku Search

 Social Networking
        A-GLOBAL-MIND http://a-global-mind.blogspot.com/
        Cartoon Gang http://www.cartoongang.net/
        ClapCard
        SocialMuse http://www.mixzing.com/
        Swift Twitter App http://www.swift-app.com/
        TweetsAloud http://www.pwnwithyourphone.com/

 Travel
        AugSatNav http://www.phyora.com/
        BabelSnap http://babelsnap.com/
        Location Scout http://getlocationscout.com/
        Radar Now! 
 http://maps.huge.info/blog/2009/09/new_android_app_radar_now.html
        Transport Finder 

[android-developers] Re: How send DTMF in android?

2009-09-14 Thread Gulfam

HI all,

  Any response on this thread. Its important for my company product.

Thanks,
Gulfam

On Sep 10, 12:14 pm, legerb drim...@gmail.com wrote:
 ToneGenerator won't help here - This API is not for generating tones
 over the uplink audio path.

 On Sep 8, 12:44 pm, Mark Ellul mark.el...@gmail.com wrote:

  Hi Gulfam,

  Did you solve the issue? I am trying to do the same thing and only
  have a HTC Hero to test with and its failing as well.

  Please if you have resolved the issue let me know...

  I have seen this 
  classhttp://developer.android.com/reference/android/media/ToneGenerator.html
  but I am not sure if it will help in this case.

  Regards

  Mark

  On Aug 28, 8:55 am, Gulfam gulfa...@gmail.com wrote:

   Hi all,

   I am facing a problem on sendingDTMFin android.
   I am sendingDTMFin this format  tel:+15187127050,9563547896#
   Its working fine on G1 but when i install the app on HTC Hero /HTC
   Magic its dispalying error message like this (Invalid MMI)

   Any one can help me regarding this.

   Thanks in advance.
   Gulfam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Carmen Delessio
It seems like what you want to happen is this:
- if domain of URL is http://photics.com, display result in your webview
- if it is not http://photics.com, go to the URL in a new window

I think the answer is in this thread.  I don't trust your solution.  I don't
understand why it would work twice.
Try going to an external URL and then to photics.com It looks to me like the
second access will have the WebViewClient set to null, so I don't see how
your photics logic will be called.

Mark Murphy provided an answer referring to starting a new activity.  I
think the answer is there.
If you override shouldOverrideUrlLoading:
  - false means that the WebViewClient should display the contents of
the URL (just load photics.com please)
  - true means that the code is handling it and you want something else
to happen.  (I've got this)

How to open a browser with an intent and activity.
See the nice article here:
http://www.androidcompetencycenter.com/2009/08/view-site-in-a-new-windowbrowser/

 Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri.*parse*
(http://twitter.com/CarmenDelessio;));
startActivity(viewIntent);

Putting it together, your code should do something like:

public boolean shouldOverrideUrlLoading(WebView view,
String url)
   {
   if (url.contains(http://photics.com;)) {
   return false;
   }else{
  //url being called was  passed to override
shouldOverrideUrlLoading

  Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri
.*parse*(url));
  startActivity(viewIntent);

return true;
}


Caveat - I haven't tested this.

Another method I have overridden is:  onPageStarted  (WebView view, String
url, Bitmap favicon)
It seemed to be that onPageStarted was always called, but that there were
cases when shouldOverrideUrlLoading was not.
Might want to test that by logging what is called.

Carmen
http://www.twitter.com/CarmenDelessio



On Mon, Sep 14, 2009 at 11:22 AM, Photics m...@photics.com wrote:


 OK... first... a correction in my previous post.

 every link opens in a new window ...the word external should have
 been added. Local files can work great. My problem is that I'm trying
 to create exceptions. I have to do this to make my advertisers happy.

 So OK... I have a fix... it's ugly... but it seems to work.

mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
 (WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view,
 String url)
{
if (url.contains(http://photics.com;)) {
return false;
}
 else mWebView.setWebViewClient(null);
return false;
}

 I seem to have the solution to my problem, but I'm not happy that I
 don't exactly understand how I did it. It seems incredibly odd to me
 that returning false twice worked. :-)

 I'm going to investigate this some more before I publish my app.
 


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



[android-developers] Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Roger L

I am banging my head into a brick wall!
I want to save an intent pick from the ACTION_PICK_ACTIVITY into a
preference/database/etc... and use it as a result for my application
every time it runs.
But, there is no way to save the right data type (Intent) into
preferences or a database, or anyway that I can see to convert from a
string or such back into the (Intent)!!
Someone please point me in the right direction?!?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: ADC2 entries so far...

2009-09-14 Thread dadical

Screebl is in the Prod/Tools category.

On Sep 13, 1:12 pm, Mobidev android.mobi...@gmail.com wrote:
 Its mid September and ADC team will soon launch the ADC 2 judging
 application. So far its been a great job by the ADC team with sticking
 to the submission deadline and swift uploads(leaving aside package
 name confusion among the participants).

 Meanwhile, below are about 105 ADC2 entries posted on forum. In case
 of new additions or corrections please reply to this discussion with
 category app name links. ADC1 saw about 1788 apps and my guess
 is ADC2 will see a tleast 2500 apps considering the tight deadline
 (could have been much higher(4K+) otherwise).

 From the trend it seems that the Miscellaneous category has far less
 entries than Prod/Tools and Games(both) categories. Possibly, 21st
 ranking entry under Prod/Tools could be much better than 3rd ranking
 entry under Misc category. Unlike ADC1, this time Category will be a
 key factor in winning; along with Originality, Effective Platform Use,
 Polish and Indispensability.

 ---­--
 Education/Reference
         Librarium IIhttp://steveoliverc.squarespace.com/
         Math Jungle
         Mystic Maggiehttp://www.phdgaming.com/general_media/mm/
         Vivify picture: mathhttp://vivifypicture.com/

 Entertainment
         Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/
         Taps Of Firehttp://code.google.com/p/tapsoffire

 Games: Arcade/Action
         CowPotato 3Dhttp://www.froogloid.com/cowpotato
         FRGhttp://www.woogames.com/
         Galactic Guardian: Zap 
 GPShttp://sites.google.com/site/mysticlakesoftware/
         Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn
         Head To Head Racinghttp://headtoheadracing.appspot.com/
         Light Racer 3D Trial
         ProjectINFhttp://www.chickenbrickstudios.com/
         UrbanGolf
         X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY
         Zepto Wars - RTS

 Games: Casual/Puzzle
         Furdiburbhttp://www.sheado.net/
         Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/
         ongPayhttp://www.yakloingames.com/
         Relativiahttp://www.polyclefsoftware.com/relativia.html
         Splat!: Bugs IIhttp://dkdroid.com
         What the Doodle!?
 Lifestyle
         Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app
         Bottle Buzz
         DoIthttp://curvefish.com/apps/doit.htm
         FoxyRing  http://www.levelupstudio.fr/foxyring
         Gigboxhttp://www.mygigbox.com/
         NetDroid
         NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k
         ReaderScopehttp://www.altcanvas.com/android/readerscope
         Rhythmatics Alphahttp://www.twitter.com/brownbaggames
         SpecTrek

 Media
         Gallery Map
         geoPastehttp://www.geopaste.com/
         Mediafly Mobile Audio Podcast Client
         MicroJam
         MicroJam
         MyPODhttp://www.my-pod.org/
         PackRathttp://packrat.unwesen.de/
         Time-Lapsehttp://www.sheado.net/
         Uloopshttp://www.uloops.net/

 Misc
         Local Agentshttp://local-agents.appspot.com/
         picjiggles litehttp://www.yakloingames.com/

 Productivity/Tools
         Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08
         aListhttp://androidalist.blogspot.com
         AppManagerhttp://curvefish.com/apps/appmanager.htm
         GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert
         Hoccerhttp://www.hoccer.com/
         MobileWrite
         Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229
         MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ
         OpenLoopzhttp://sites.iode.co.uk/openloopz/
         Personalyticshttp://personalytics.net/
         Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html
         Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA
         Talking Calendarhttp://www.pwnwithyourphone.com/
         Taskerhttp://tasker.dinglisch.net/
         Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png
         Tracklethttp://tracklet.appspot.com
         txeethttp://txeet.com
         Voice Caller IDhttp://www.pwnwithyourphone.com/
         WebReaderhttp://webreader.vamsee.in/
         What Zip?http://www.usnaviguide.com/zip.htm
         Xeeku Search

 Social Networking
         A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/
         Cartoon Ganghttp://www.cartoongang.net/
         ClapCard
         SocialMusehttp://www.mixzing.com/
         Swift Twitter Apphttp://www.swift-app.com/
         TweetsAloudhttp://www.pwnwithyourphone.com/

 Travel
         AugSatNavhttp://www.phyora.com/
         BabelSnaphttp://babelsnap.com/
         Location Scouthttp://getlocationscout.com/
         Radar 
 Now!http://maps.huge.info/blog/2009/09/new_android_app_radar_now.html
         Transport Finderhttp://www.dka-edv.net/android/
         

[android-developers] Re: locked up my Android device...

2009-09-14 Thread michael maitlen

After trying to get the bug to occur all weekend, I was finally able
to get it to happen this morning.

Once the screen freezes and the Force Close Dialog comes up, non of
the buttons have any effect with on the screen.  In the logs though,
the Home button, triggers a DeadObjectException...I've got an
extensive log that I could supply, I assume it'd be better to post it
on the bug page?

Another interesting thing...the device is completely unresponsive, I
even tried to call it from my home phone with no response at all, and
I'm positive I had the correct phone number.

On Sep 11, 8:59 pm, Dianne Hackborn hack...@android.com wrote:
 10 threads is still a lot.  All of the devices you will run on the
 foreseeable future are only going to have one cpu, so one thread, maybe two
 (you might get some parallelism out of decoding while another thread is
 reading through problem not much) should be more than enough.  Going up to
 ten has a good chance of having worse performance than just a couple, since
 the scheduler is now needing to bounce around between all those threads
 (plus until 1.6 we are only relying on the Linux nice level for scheduling
 threads, so the more threads you have doing work in the background, the more
 time you will take away from the main thread as it wants slices to interact
 with the user).

 Anyway nothing you do should make the system freeze, so there is definitely
 a system bug there. :)  Does pressing the home button not work either?

 On Fri, Sep 11, 2009 at 7:00 PM, Mark Murphy mmur...@commonsware.comwrote:





  michael m wrote:
   What I am doing, which I question, is loading each image via a thread
   as it is retrieved from the ImageCache...I pass back a default image
   if the bitmap is null, then update the default image in the ImageViews
   with the Bitmap is loaded from the sdcard; I'm doing this by posting
   to a Handler in the Adapter from the thread that loads the image.

  I suspect you are going to get in trouble with that many threads.

   So if the number of threads is the problem I'm thinking of loading all
   the bitmaps when the app is first initiated, probably using the
   AsyncTask class.

  That is probably too far in the other extreme.

   A question I have though about this is that the docs
   say that you can only call execute() once...what's happens if some of
   my Bitmaps are garbage collected??  Do I then call individual threads
   to reload?  I've looked through some of the Google apps, Shelves and
   Photostream, but they don't seem to be using Bitmaps wrapped in
   SoftReferences.

  I've wrapped up this pattern in a ThumbnailAdapter:

 http://github.com/commonsguy/cwac-thumbnail/tree/master

  Basically, I use AsyncTaskEx, which is my fork of AsyncTask that allows
  for 10 parallel threads -- not infinite, but not only 1.

  I also gave up on SoftReferences, as posts in this list from a month or
  two ago gave me the impression that SoftReferences are effectively
  pointless with the current Dalvik garbage collection implementation.
  Instead, I use an LRU cache, (re)loading images on demand via AsyncTaskEx.

  It may be, though, that ThumbnailAdapter will just work for you,
  though I have not tried it for images starting on the SD card -- I was
  focused on caching them off the Internet. I don't have much in the way
  of documentation at this point, but there is a sample app in the github
  project. While I suspect I'll be upgrading the implementation in the
  coming months, the API (put the URL of the image to be loaded in the
  ImageView's setTag()) should remain constant.

  If you give it a whirl and run into problems, ping me on the cw-android
  Google Group, and I may be able to help:

 http://groups.google.com/group/cw-android

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

  Android Development Wiki:http://wiki.andmob.org

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

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics

I don't think that's right. I'm not trying to do anything crazy here,
just enable a pretty basic HTML function - open a new window.

It goes back to this line...
webview.setWebViewClient(new WebViewClientDemo());

If that line is not there, EVERY link opens in a new window...
including ones on the same domain - even with ones with no target. The
Google tutorial stops with two options... every link opens in a new
window or none of the links open in a new window. That doesn't seem
like an ideal situation to me. I find it hard to believe that's
Google's ultimate implementation of the Web Kit. My limited
understanding of this stuff seems like the more likely issue... HA HA.
I'm thinking this can be done. I just haven't figured it out yet.

Maybe I'm missing something about the setWebViewClient. If I can turn
that line off for links other than my own, I might be able to fix this
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
-~--~~~~--~~--~--~---



[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread André Charles Legendre

Hi Mark

adb with the patch succeed to install my apk.
But adb logcat give to me :
logcat read: Invalid argument

With the standard adb and with the patched adb.

Andre

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



[android-developers] horizontally scollable TextView...

2009-09-14 Thread sdphil

is there a way to have a horizontal scrollbar on a TextView?  I have
tried all kinds of variations, and it seems like it supports it, but i
cannot get it to work.

I did a google search online and it looks like at one point it was not
supported, i'm hoping / assuming that was under 1.1.  anyway, here's
my latest variation (that doesn't work; i have tried many other
variations -- that equally don't work as well!) --

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:orientation=vertical
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:background=@color/black

TextView android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:text=My Text View
  android:textColor=#ff
  android:textStyle=bold
  android:textSize=14px
  android:gravity=center_horizontal/

ScrollView android:layout_width=fill_parent
android:layout_height=fill_parent
android:scrollbars=vertical

ScrollView android:layout_width=fill_parent
android:layout_height=fill_parent
android:scrollbars=horizontal

TextView android:id=@+id/MyTextView
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:singleLine=false
  android:scrollHorizontally=true
  android:textSize=10px
  android:text=some text (which will 
be replaced by text that
needs to be scrolled horizontally)/
/ScrollView

/ScrollView

/LinearLayout

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



[android-developers] Re: ADC2 entries so far...

2009-09-14 Thread Robert Green

here's a link for a video of the ADC version (1.0.0) of Light Racer
3D.  http://www.youtube.com/watch?v=cpghliDfzdI

On Sep 14, 11:54 am, dadical keyes...@gmail.com wrote:
 Screebl is in the Prod/Tools category.

 On Sep 13, 1:12 pm, Mobidev android.mobi...@gmail.com wrote:

  Its mid September and ADC team will soon launch the ADC 2 judging
  application. So far its been a great job by the ADC team with sticking
  to the submission deadline and swift uploads(leaving aside package
  name confusion among the participants).

  Meanwhile, below are about 105 ADC2 entries posted on forum. In case
  of new additions or corrections please reply to this discussion with
  category app name links. ADC1 saw about 1788 apps and my guess
  is ADC2 will see a tleast 2500 apps considering the tight deadline
  (could have been much higher(4K+) otherwise).

  From the trend it seems that the Miscellaneous category has far less
  entries than Prod/Tools and Games(both) categories. Possibly, 21st
  ranking entry under Prod/Tools could be much better than 3rd ranking
  entry under Misc category. Unlike ADC1, this time Category will be a
  key factor in winning; along with Originality, Effective Platform Use,
  Polish and Indispensability.

  ---­--
  Education/Reference
          Librarium IIhttp://steveoliverc.squarespace.com/
          Math Jungle
          Mystic Maggiehttp://www.phdgaming.com/general_media/mm/
          Vivify picture: mathhttp://vivifypicture.com/

  Entertainment
          Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/
          Taps Of Firehttp://code.google.com/p/tapsoffire

  Games: Arcade/Action
          CowPotato 3Dhttp://www.froogloid.com/cowpotato
          FRGhttp://www.woogames.com/
          Galactic Guardian: Zap 
  GPShttp://sites.google.com/site/mysticlakesoftware/
          Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn
          Head To Head Racinghttp://headtoheadracing.appspot.com/
          Light Racer 3D Trial
          ProjectINFhttp://www.chickenbrickstudios.com/
          UrbanGolf
          X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY
          Zepto Wars - RTS

  Games: Casual/Puzzle
          Furdiburbhttp://www.sheado.net/
          Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/
          ongPayhttp://www.yakloingames.com/
          Relativiahttp://www.polyclefsoftware.com/relativia.html
          Splat!: Bugs IIhttp://dkdroid.com
          What the Doodle!?
  Lifestyle
          Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app
          Bottle Buzz
          DoIthttp://curvefish.com/apps/doit.htm
          FoxyRing  http://www.levelupstudio.fr/foxyring
          Gigboxhttp://www.mygigbox.com/
          NetDroid
          NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k
          ReaderScopehttp://www.altcanvas.com/android/readerscope
          Rhythmatics Alphahttp://www.twitter.com/brownbaggames
          SpecTrek

  Media
          Gallery Map
          geoPastehttp://www.geopaste.com/
          Mediafly Mobile Audio Podcast Client
          MicroJam
          MicroJam
          MyPODhttp://www.my-pod.org/
          PackRathttp://packrat.unwesen.de/
          Time-Lapsehttp://www.sheado.net/
          Uloopshttp://www.uloops.net/

  Misc
          Local Agentshttp://local-agents.appspot.com/
          picjiggles litehttp://www.yakloingames.com/

  Productivity/Tools
          Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08
          aListhttp://androidalist.blogspot.com
          AppManagerhttp://curvefish.com/apps/appmanager.htm
          GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert
          Hoccerhttp://www.hoccer.com/
          MobileWrite
          Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229
          MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ
          OpenLoopzhttp://sites.iode.co.uk/openloopz/
          Personalyticshttp://personalytics.net/
          Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html
          Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA
          Talking Calendarhttp://www.pwnwithyourphone.com/
          Taskerhttp://tasker.dinglisch.net/
          Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png
          Tracklethttp://tracklet.appspot.com
          txeethttp://txeet.com
          Voice Caller IDhttp://www.pwnwithyourphone.com/
          WebReaderhttp://webreader.vamsee.in/
          What Zip?http://www.usnaviguide.com/zip.htm
          Xeeku Search

  Social Networking
          A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/
          Cartoon Ganghttp://www.cartoongang.net/
          ClapCard
          SocialMusehttp://www.mixzing.com/
          Swift Twitter Apphttp://www.swift-app.com/
          TweetsAloudhttp://www.pwnwithyourphone.com/

  Travel
          

[android-developers] Re: ADC2 entries so far...

2009-09-14 Thread skink



On Sep 13, 7:12 pm, Mobidev android.mobi...@gmail.com wrote:
         Bookworm http://andappstore.com/AndroidApplications/apps/734
        

Bookworm's category is Education/Reference

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

2009-09-14 Thread sunee

I tried to invoke setSpeakerphoneOn(), but not able to make out the
proper place.
Could you let me know where can I invoke the provided speaker methods,
.
mAudioManager.setSpeakerphoneOn(true);

Kindly provide me pointers like file name or funtion name.

Thanks
Sunee

On Sep 12, 7:48 am, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 For the headset you have to find out whether a headset is connected
 over USB (if you use a G1 or myTouch) that's why you can find the
 HeadsetObserver class in the framework.

 In case of thespeakeran Observer is not required because it is an
 internal hardware component which you cannotenable/disable or unplug
 as a device.

 With setRouting you can set a more complex audio routing using a bit
 mask which is not required to route your audio signal to thespeaker.

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Sep 10, 11:53 pm, Pras prasanna.kuma...@wipro.com wrote:



  Hi,

  Thanks for the info.

  I am also facing this similar problem and am new to Java. In the code
  base i found that we have the HeadsetObserver.java file but there is
  no similarSpeakerobserver java class. Kindly advice if we need to
  create a similar java class forSpeakeror where we can invoke the
  setSpeakerphoneOn method.

  Another doubt is that in the AudioFlinger.cpp, we have
  setRouting(AudioSystem::MODE_NORMAL, AudioSystem::ROUTE_SPEAKER,
  AudioSystem::ROUTE_ALL);
  So wouldn't it route tospeakerby default.

  Kindly let me know your comments.

  -Pras

  On Sep 10, 11:46 pm, Roman ( T-Mobile USA) roman.baumgaert...@t-

  mobile.com wrote:
   You want to try the following

           AudioManager mAudioManager = (AudioManager)
   mContext.getSystemService(Context.AUDIO_SERVICE);
           mAudioManager.setMode(AudioManager.MODE_NORMAL);
           .
           mAudioManager.setSpeakerphoneOn(true);

   --
   Roman Baumgaertner
   Sr. SW Engineer-OSDC
   ·T· · ·Mobile· stick together
   The views, opinions and statements in this email are those of the
   author solely in their individual capacity, and do not necessarily
   represent those of T-Mobile USA, Inc.

   On Sep 10, 5:38 am, sunee suneetha.kalahas...@wipro.com wrote:

I am working onandroidfor omap zoom2.
omapkernel - 2.6.27
   android   - RLS25.6

Theaudioplayback seems to happen (progress bar updation happens) but
noAudiois heard.
There is no headphone connected and also the sound level is at
maximum.

Is speakerroutingenabled by default or do i have toenableit
explicitly?
Kindly help me.

Thanks,
Sunee- Hide quoted text -

   - Show quoted text -- Hide quoted text -

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



[android-developers] Re: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Dianne Hackborn
Somehow this doesn't seem to be documented, but this is the method you want:
http://developer.android.com/reference/android/content/Intent.html#toURI()

Ah the current source tree has documentation:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/content/Intent.java

On Mon, Sep 14, 2009 at 9:11 AM, Roger L rogerl.andr...@gmail.com wrote:


 I am banging my head into a brick wall!
 I want to save an intent pick from the ACTION_PICK_ACTIVITY into a
 preference/database/etc... and use it as a result for my application
 every time it runs.
 But, there is no way to save the right data type (Intent) into
 preferences or a database, or anyway that I can see to convert from a
 string or such back into the (Intent)!!
 Someone please point me in the right direction?!?
 



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

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

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



[android-developers] Re: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Roger L

That was just what I needed. Thank you!
Again you prevail!


On Sep 14, 9:41 am, Mark Murphy mmur...@commonsware.com wrote:
 Roger L wrote:
  Well, this is what i am doing

  Calling ACTION_PICK_ACTIVITY for result, i get back

  Intent { action=android.intent.action.MAIN categories=
  {android.intent.category.LAUNCHER} comp={com.android.alarmclock/
  com.android.alarmclock.AlarmClock} }

 Most likely, you are getting back an Intent object which dumps the above
 as the result of a call to toString().

  do I have to somehow parse this and save the info, and then
  add .addActivity, .addCategory, and .setClassName?

 Parse?

 Use getter methods on the Intent object.

 In this case, you want getAction(), getCategories(), and getComponent().
 The last one will return a ComponentName(), which in turn has
 getClassName() and getPackageName() getter methods. Persist all four of
 those values. Then, when you need the Intent back, use setClassName(),
 setAction(), and addCategory() to rebuild it from the pieces.

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

 _Android Programming Tutorials_ Version 1.0 In Print!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: setText

2009-09-14 Thread Yusuf Saib (T-Mobile USA)

It does not appear to fit in its parent. If changing textSize to
something smaller than 40sp makes it fit, then you will need to either
shrink the text or increase the available space in the parent.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 13, 8:41 am, WoodManEXP woodman...@gmail.com wrote:
 I do not know the answer to this but I might experiment with setting a
 width other than wrap_content just to see how it behaves. Maybe try
 setting width to something like 100dip as a starter and see if the
 same behavior occurs.

 On Sep 13, 3:47 am, Anastasiya Dremina anastasiya.drem...@gmail.com
 wrote:



  Example
  was 9|15
  must be 10|15
  10|1 is shown

  2009/9/13 Anastasiya anastasiya.drem...@gmail.com

   Hi guys

   My problem

   I have TextView android:id=@+id/myText
          android:layout_width=wrap_content
   android:layout_height=wrap_content
          android:layout_alignParentRight=true
   android:layout_alignParentTop=true
          android:textSize=40sp  /
   I use setText method  in code. Sometimes all text is not displayed for
   a second (I have enough space.. And previous text can have width
   current width).

   Does anyone know decision?- Hide quoted text -

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



[android-developers] Re: data in onPictureTaken always null for raw picture

2009-09-14 Thread Timothy F

I can't believe I was unable to find that thread in my searches!
Thanks for the prompt answer, even though it is a disappointment of
course.

On Sep 14, 8:45 am, Mark Murphy mmur...@commonsware.com wrote:
 Timothy F wrote:
  I'm attempting to obtain raw picture data from the camera.  According
  to the Javadocs it can be obtained via the callback passed to
  camera.takePicture(null, callback, null).

 RAW is not available:

 http://osdir.com/ml/AndroidDevelopers/2009-02/msg01493.html

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

 _The Busy Coder's Guide to *Advanced* Android Development_
 Version 1.1 Available!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread André Charles Legendre

Hi Mark

I finally succeed to install my apk from Kubuntu to a Samsung Galaxy
mobile following your link :
http://code.google.com/p/android/issues/detail?id=3293

I download and extract a patched adb from
http://floe.butterbrot.org/external/adb.gz
I intalled it at the place where is the standard adb.
then I had to stop and start it :
adb kill-server
followed by
adb start-server
then adb install and adb devices worked with my Samsung Galaxy from Kubuntu.

Thank's a lot for your help.

Andre

On 9/14/09, André Charles Legendre andre.legen...@gmail.com wrote:
 Hi Mark

 I installed android-sdk-linux_x86-1.5_r3 and it changed nothing.
 I will try to apply the patch from :
 http://androidforums.com/support/3534-problems-mounting-communicating-g1-ubuntu.html

 Andre


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

2009-09-14 Thread Dianne Hackborn
A bug would be great.  Please send me the link.  Thanks!

On Mon, Sep 14, 2009 at 8:49 AM, michael maitlen mgmait...@gmail.comwrote:


 After trying to get the bug to occur all weekend, I was finally able
 to get it to happen this morning.

 Once the screen freezes and the Force Close Dialog comes up, non of
 the buttons have any effect with on the screen.  In the logs though,
 the Home button, triggers a DeadObjectException...I've got an
 extensive log that I could supply, I assume it'd be better to post it
 on the bug page?

 Another interesting thing...the device is completely unresponsive, I
 even tried to call it from my home phone with no response at all, and
 I'm positive I had the correct phone number.

 On Sep 11, 8:59 pm, Dianne Hackborn hack...@android.com wrote:
  10 threads is still a lot.  All of the devices you will run on the
  foreseeable future are only going to have one cpu, so one thread, maybe
 two
  (you might get some parallelism out of decoding while another thread is
  reading through problem not much) should be more than enough.  Going up
 to
  ten has a good chance of having worse performance than just a couple,
 since
  the scheduler is now needing to bounce around between all those threads
  (plus until 1.6 we are only relying on the Linux nice level for
 scheduling
  threads, so the more threads you have doing work in the background, the
 more
  time you will take away from the main thread as it wants slices to
 interact
  with the user).
 
  Anyway nothing you do should make the system freeze, so there is
 definitely
  a system bug there. :)  Does pressing the home button not work either?
 
  On Fri, Sep 11, 2009 at 7:00 PM, Mark Murphy mmur...@commonsware.com
 wrote:
 
 
 
 
 
   michael m wrote:
What I am doing, which I question, is loading each image via a thread
as it is retrieved from the ImageCache...I pass back a default image
if the bitmap is null, then update the default image in the
 ImageViews
with the Bitmap is loaded from the sdcard; I'm doing this by posting
to a Handler in the Adapter from the thread that loads the image.
 
   I suspect you are going to get in trouble with that many threads.
 
So if the number of threads is the problem I'm thinking of loading
 all
the bitmaps when the app is first initiated, probably using the
AsyncTask class.
 
   That is probably too far in the other extreme.
 
A question I have though about this is that the docs
say that you can only call execute() once...what's happens if some of
my Bitmaps are garbage collected??  Do I then call individual threads
to reload?  I've looked through some of the Google apps, Shelves and
Photostream, but they don't seem to be using Bitmaps wrapped in
SoftReferences.
 
   I've wrapped up this pattern in a ThumbnailAdapter:
 
  http://github.com/commonsguy/cwac-thumbnail/tree/master
 
   Basically, I use AsyncTaskEx, which is my fork of AsyncTask that allows
   for 10 parallel threads -- not infinite, but not only 1.
 
   I also gave up on SoftReferences, as posts in this list from a month or
   two ago gave me the impression that SoftReferences are effectively
   pointless with the current Dalvik garbage collection implementation.
   Instead, I use an LRU cache, (re)loading images on demand via
 AsyncTaskEx.
 
   It may be, though, that ThumbnailAdapter will just work for you,
   though I have not tried it for images starting on the SD card -- I was
   focused on caching them off the Internet. I don't have much in the way
   of documentation at this point, but there is a sample app in the github
   project. While I suspect I'll be upgrading the implementation in the
   coming months, the API (put the URL of the image to be loaded in the
   ImageView's setTag()) should remain constant.
 
   If you give it a whirl and run into problems, ping me on the cw-android
   Google Group, and I may be able to help:
 
  http://groups.google.com/group/cw-android
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://twitter.com/commonsguy
 
   Android Development Wiki:http://wiki.andmob.org
 
  --
  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.
 



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

[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread André Charles Legendre

Hi

Finally to get logcat working I had to uncheck and check again the
debug option in the application settings.

Thank's for all

Andre

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

2009-09-14 Thread Michael

Games: Arcade/Action
Seawasp http://www.honeymilklabs.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: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics

OK... first... a correction in my previous post.

every link opens in a new window ...the word external should have
been added. Local files can work great. My problem is that I'm trying
to create exceptions. I have to do this to make my advertisers happy.

So OK... I have a fix... it's ugly... but it seems to work.

mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
(WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view,
String url)
{
if (url.contains(http://photics.com;)) {
return false;
}
else mWebView.setWebViewClient(null);
return false;
}

I seem to have the solution to my problem, but I'm not happy that I
don't exactly understand how I did it. It seems incredibly odd to me
that returning false twice worked. :-)

I'm going to investigate this some more before I publish my app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: apk installation on mobilefromLinux machine

2009-09-14 Thread Mark Murphy

André Charles Legendre wrote:
 Hi Mark
 
 adb with the patch succeed to install my apk.
 But adb logcat give to me :
 logcat read: Invalid argument
 
 With the standard adb and with the patched adb.

There are some on-device logcat tools out on the Market, apparently,
though I have not used them and do not know any by name.

Beyond that, I suspect you will have to wait for Android 1.6 and
official support for the Galaxy. Fortunately, given the large donut that
appeared recently at the Googleplex, I hope you will not have to wait long.

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

Android App Developer Training: http://commonsware.com/training.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] TouchEvent and ScrollView

2009-09-14 Thread Rahul

Hi All
I am Developing one application when i am trying to Drag Component
from top to Bottom in ScrollView . component move up to end of the
Screen and not move  the below the Screen when i am dragging the item
i am using Absolute Layout for the drag and Drop and touchEvent
listener for move the component plz help me 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: Saving Intents to use later (WAY LATER!)

2009-09-14 Thread Mark Murphy

Roger L wrote:
 Well, this is what i am doing
 
 Calling ACTION_PICK_ACTIVITY for result, i get back
 
 Intent { action=android.intent.action.MAIN categories=
 {android.intent.category.LAUNCHER} comp={com.android.alarmclock/
 com.android.alarmclock.AlarmClock} }

Most likely, you are getting back an Intent object which dumps the above
as the result of a call to toString().

 do I have to somehow parse this and save the info, and then
 add .addActivity, .addCategory, and .setClassName?

Parse?

Use getter methods on the Intent object.

In this case, you want getAction(), getCategories(), and getComponent().
The last one will return a ComponentName(), which in turn has
getClassName() and getPackageName() getter methods. Persist all four of
those values. Then, when you need the Intent back, use setClassName(),
setAction(), and addCategory() to rebuild it from the pieces.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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



[android-developers] Re: How to enable cookie

2009-09-14 Thread Jack Ha

Try:

 CookieManager cookieManager = CookieManager.getInstance();
 cookieManager.setAcceptCookie(true);

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.


On Sep 13, 12:47 pm, Adil Nawaz Khan adil...@gmail.com wrote:
 Hello Guys,

 I need to store some values in webview cookie. I want to know how to
 enable cookie for webview. Is there any settings which i have to go
 and change or i can do it programatically.

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

2009-09-14 Thread Ostaski

This worked after restarting eclipse ... sorry for the noise.

On Sep 14, 10:13 am, Ostaski osta...@gmail.com wrote:
 Logic was a bit off:
         if(amRSI.started) {
             menu
                 .findItem(R.id.arm)
                 .setVisible(false)
                 .setEnabled(false);
             menu
                 .findItem(R.id.disarm)
                 .setVisible(true)
                 .setEnabled(true);
          } else {
             menu
                 .findItem(R.id.arm)
                 .setVisible(true)
                 .setEnabled(true);
             menu
                 .findItem(R.id.disarm)
                 .setVisible(false)
                 .setEnabled(false);
         }
         return true;
     }

 Still showing both buttons, though.

 On Sep 12, 5:17 pm, Ostaski osta...@gmail.com wrote:



  I am trying to manage the options items, making one button visible and
  another invisible based on whether a background service is active.

  Here's a snippet of my menu/option.xml:
          item android:id=@+id/arm
                  android:title=Arm
          /
          item android:id=@+id/disarm
                  android:title=Disarm
                  android:visible=false
                  android:enabled=false
          /

  and my onPrepareOptionsMenu():
      @Override
      public boolean onPrepareOptionsMenu(Menu menu) {
          ActivityManager.RunningServiceInfo amRSI = new
  ActivityManager.RunningServiceInfo();
          if(amRSI.started) {
              menu
                  .findItem(R.id.arm)
                  .setVisible(false);
           } else {
              menu
                  .findItem(R.id.disarm)
                  .setVisible(true)
                  .setEnabled(true);
          }
          return true;
      }

  However, both buttons show when hitting the menu tab in the emulator
  before starting the service.

  Can someone lend me a hand?

  Thanks.- Hide quoted text -

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



[android-developers] Re: HTC Magic as dev phone

2009-09-14 Thread Yusuf Saib (T-Mobile USA)

Bear in mind that if you develop and test your app on a device w/o a
sliding kb, it may not run as expected on a device with one, and vice
versa.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 12, 1:06 pm, Mark Murphy mmur...@commonsware.com wrote:
 dashman wrote:
  i'd like to buy the HTC Magic for my dev phone - i don't want the
  physical sliding keyboard.

  with the HTC magic work as the dev phone.

 You can test SDK applications using an HTC Magic.

  does HTC provide updated android updates for it.

 Please contact your mobile provider for details regarding device updates.

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

 Android App Developer Training:http://commonsware.com/training.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] Re: Question about custom Views in ListView

2009-09-14 Thread WoodManEXP

And the answer is...

Make sure the parent ListView has its width set to fill_parent
rather than wrap_content.

Maybe this will help someone else!

On Sep 14, 1:20 pm, WoodManEXP woodman...@gmail.com wrote:
 Question about custom Views in ListView

 This app is building custom Views for elements of a list view. How can
 the custom view be made to fill the entire width of the list view?

 This XML for the element’s view is inflated from this:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout android:id=@+id/LinearLayout01
         android:layout_width=fill_parent
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:background=#D0D0D0
         android:orientation=vertical
         android:layout_height=wrap_content

         TextView android:text=TextView01
                 android:id=@+id/TextView01
                 android:layout_height=wrap_content
                 android:textColor=#FF
                 android:textSize=10pt
                 android:textStyle=normal
                 android:typeface=normal
                 android:layout_width=fill_parent
                 android:gravity=center_horizontal
         /
 /LinearLayout

 In the Eclipse layout editor it looks great. The string “TextView01”
 is centered in a gray box centered horizontally in the parent
 LinearLayout.

 But when displayed by the ListView, as returned from Adapter.getView
 (), it is all to the left. Like the parent LinearLayout.layout_width
 was reset to “wrap_content” rather than “fill_parent.” I want the
 entire width of the ListView to be filled with this view.

 Any ideas??

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



[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes


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

---BeginMessage---
It seems like what you want to happen is this:
- if domain of URL is http://photics.com, display result in your webview
- if it is not http://photics.com, go to the URL in a new window

I think the answer is in this thread.  I don't trust your solution.  I don't
understand why it would work twice.
Try going to an external URL and then to photics.com It looks to me like the
second access will have the WebViewClient set to null, so I don't see how
your photics logic will be called.

Mark Murphy provided an answer referring to starting a new activity.  I
think the answer is there.
If you override shouldOverrideUrlLoading:
  - false means that the WebViewClient should display the contents of
the URL (just load photics.com please)
  - true means that the code is handling it and you want something else
to happen.  (I've got this)

How to open a browser with an intent and activity.
See the nice article here:
http://www.androidcompetencycenter.com/2009/08/view-site-in-a-new-windowbrowser/

 Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri.*parse*
(http://twitter.com/CarmenDelessio;));
startActivity(viewIntent);

Putting it together, your code should do something like:

public boolean shouldOverrideUrlLoading(WebView view,
String url)
   {
   if (url.contains(http://photics.com;)) {
   return false;
   }else{
  //url being called was  passed to override
shouldOverrideUrlLoading

  Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri
.*parse*(url));
  startActivity(viewIntent);

return true;
}


Caveat - I haven't tested this.

Another method I have overridden is:  onPageStarted  (WebView view, String
url, Bitmap favicon)
It seemed to be that onPageStarted was always called, but that there were
cases when shouldOverrideUrlLoading was not.
Might want to test that by logging what is called.

Carmen
http://www.twitter.com/CarmenDelessio



On Mon, Sep 14, 2009 at 11:22 AM, Photics m...@photics.com wrote:


 OK... first... a correction in my previous post.

 every link opens in a new window ...the word external should have
 been added. Local files can work great. My problem is that I'm trying
 to create exceptions. I have to do this to make my advertisers happy.

 So OK... I have a fix... it's ugly... but it seems to work.

mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
 (WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view,
 String url)
{
if (url.contains(http://photics.com;)) {
return false;
}
 else mWebView.setWebViewClient(null);
return false;
}

 I seem to have the solution to my problem, but I'm not happy that I
 don't exactly understand how I did it. It seems incredibly odd to me
 that returning false twice worked. :-)

 I'm going to investigate this some more before I publish my app.
 


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

---End Message---


[android-developers] Feature request/query: Possible to read Java properties format files for i18n strings?

2009-09-14 Thread michael.maguire

Dear Android Developers,

I have an application which we are writing to be both a MIDP
application using LWUIT as well as an Android application.

We attempt to share as much common code as possible between the two
platforms.

I'd also really like to be able to share the localization strings when
possible.

Reading through the docs in:

http://developer.android.com/guide/topics/resources/resources-i18n.html

it looks like Android uses an XML format to specify name-value pairs,
e.g.:

{{{
string name=go_online_messageYou are currently offline.  Go
online? This will use the data network/string
}}}

while LWUIT uses the standard Java properties file format:

{{{
f.go_online.you_are_currently_offine=You are currently offline.  Go
online? This will use the data network
}}}

I understand why the Android XML format has advantages (e.g. ability
to add extra formatting info), but I was wondering if it's somehow
possible to also read in localization resource strings from a standard
Java properties file, so I could use the same string resource file.

Looking through the Android code, it seems like support for Properties
files is there, but not integrated into the Resources infrastructure,
but maybe I missed something.  Is it possible to use the Resource
framework to read in from Java Properties files as well as the Android-
specific XML format string files?

If so, can someone point me in the right direction?

If not, can I request that it might be nice for the Android Resources
framework to also support reading string resource files in in Java
properties file format?

Cheers,
Michael

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



[Fwd: [android-developers] Re: ADC2 entries so far...]

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

---BeginMessage---



On Sep 13, 7:12 pm, Mobidev android.mobi...@gmail.com wrote:
         Bookworm http://andappstore.com/AndroidApplications/apps/734
        

Bookworm's category is Education/Reference

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

---End Message---


[Fwd: [android-developers] Re: ADC2 entries so far...]

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

---BeginMessage---

Screebl is in the Prod/Tools category.

On Sep 13, 1:12 pm, Mobidev android.mobi...@gmail.com wrote:
 Its mid September and ADC team will soon launch the ADC 2 judging
 application. So far its been a great job by the ADC team with sticking
 to the submission deadline and swift uploads(leaving aside package
 name confusion among the participants).

 Meanwhile, below are about 105 ADC2 entries posted on forum. In case
 of new additions or corrections please reply to this discussion with
 category app name links. ADC1 saw about 1788 apps and my guess
 is ADC2 will see a tleast 2500 apps considering the tight deadline
 (could have been much higher(4K+) otherwise).

 From the trend it seems that the Miscellaneous category has far less
 entries than Prod/Tools and Games(both) categories. Possibly, 21st
 ranking entry under Prod/Tools could be much better than 3rd ranking
 entry under Misc category. Unlike ADC1, this time Category will be a
 key factor in winning; along with Originality, Effective Platform Use,
 Polish and Indispensability.

 ---­--
 Education/Reference
         Librarium IIhttp://steveoliverc.squarespace.com/
         Math Jungle
         Mystic Maggiehttp://www.phdgaming.com/general_media/mm/
         Vivify picture: mathhttp://vivifypicture.com/

 Entertainment
         Daisy Gardenhttp://www.tomgibara.com/android/daisy/garden/
         Taps Of Firehttp://code.google.com/p/tapsoffire

 Games: Arcade/Action
         CowPotato 3Dhttp://www.froogloid.com/cowpotato
         FRGhttp://www.woogames.com/
         Galactic Guardian: Zap 
 GPShttp://sites.google.com/site/mysticlakesoftware/
         Graviturnhttp://www.cyrket.com/package/com.fheft.graviturn
         Head To Head Racinghttp://headtoheadracing.appspot.com/
         Light Racer 3D Trial
         ProjectINFhttp://www.chickenbrickstudios.com/
         UrbanGolf
         X-Dischttp://www.youtube.com/watch?v=3EkH-b15fPY
         Zepto Wars - RTS

 Games: Casual/Puzzle
         Furdiburbhttp://www.sheado.net/
         Goobers Vs. Boogershttp://goobersvsboogers.blogspot.com/
         ongPayhttp://www.yakloingames.com/
         Relativiahttp://www.polyclefsoftware.com/relativia.html
         Splat!: Bugs IIhttp://dkdroid.com
         What the Doodle!?
 Lifestyle
         Beer Cloudhttp://greatbrewers.com/story/beercloud-mobile-app
         Bottle Buzz
         DoIthttp://curvefish.com/apps/doit.htm
         FoxyRing  http://www.levelupstudio.fr/foxyring
         Gigboxhttp://www.mygigbox.com/
         NetDroid
         NotiMe!http://www.youtube.com/watch?v=wFjoZmrj40k
         ReaderScopehttp://www.altcanvas.com/android/readerscope
         Rhythmatics Alphahttp://www.twitter.com/brownbaggames
         SpecTrek

 Media
         Gallery Map
         geoPastehttp://www.geopaste.com/
         Mediafly Mobile Audio Podcast Client
         MicroJam
         MicroJam
         MyPODhttp://www.my-pod.org/
         PackRathttp://packrat.unwesen.de/
         Time-Lapsehttp://www.sheado.net/
         Uloopshttp://www.uloops.net/

 Misc
         Local Agentshttp://local-agents.appspot.com/
         picjiggles litehttp://www.yakloingames.com/

 Productivity/Tools
         Alarmoidhttp://www.youtube.com/watch?v=yNcVkP_vK08
         aListhttp://androidalist.blogspot.com
         AppManagerhttp://curvefish.com/apps/appmanager.htm
         GeoAlerthttp://sites.google.com/site/appyoursmobile/geoalert
         Hoccerhttp://www.hoccer.com/
         MobileWrite
         Mobisle Noteshttp://www.facebook.com/pages/MobisleApps/127994296229
         MyPageshttp://www.youtube.com/watch?v=75lR4zLy_LQ
         OpenLoopzhttp://sites.iode.co.uk/openloopz/
         Personalyticshttp://personalytics.net/
         Skiba PDF Readerhttp://www.anddev.org/skiba_pdf_reader-t6122.html
         Smart Lockhttp://www.youtube.com/watch?v=ipue9Yhi5VA
         Talking Calendarhttp://www.pwnwithyourphone.com/
         Taskerhttp://tasker.dinglisch.net/
         Thinking Spacehttp://homepages.nildram.co.uk/~bakachu/screenshot.png
         Tracklethttp://tracklet.appspot.com
         txeethttp://txeet.com
         Voice Caller IDhttp://www.pwnwithyourphone.com/
         WebReaderhttp://webreader.vamsee.in/
         What Zip?http://www.usnaviguide.com/zip.htm
         Xeeku Search

 Social Networking
         A-GLOBAL-MINDhttp://a-global-mind.blogspot.com/
         Cartoon 

[android-developers] Request helping for writting HTTP Request in Android

2009-09-14 Thread Carmen Lau

package com.example.helloandroid;

import java.io.IOException;
import java.io.InputStream;

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

import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.*;
import org.apache.http.client.methods.*;
import org.apache.http.impl.client.DefaultHttpClient;
//import org.apache.http.util.EntityUtils;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

try
{
HttpClient hc = new DefaultHttpClient();
HttpGet get = new HttpGet(http://www.yahoo.com;);
HttpResponse rp = hc.execute(get);

if(rp.getStatusLine().getStatusCode() == HttpStatus.SC_OK)
{
//String str = EntityUtils.toString(rp.getEntity());
InputStream is = rp.getEntity().getContent();
String str = is.toString();

TextView tv = new TextView(this);
tv.setText(str);
setContentView(tv);

}
else
{
System.out.println(halo,baby.);
}
}catch(IOException e){
return;
}
}
}

the above is my code.
but it seems there are some problems here.
I want to send the HTTP request to yahoo and get back the returned
response and show it out.
So, Anyone can give me some ideas on it?
Thank you.

Carmen Lau

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



[android-developers] scrollbarSize problem

2009-09-14 Thread Konstantin Burov

I have a problem when trying to set scrollbar to something bigger then
default.
Here what I'm trying:

ListView
  android:id=@android:id/list
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:fastScrollEnabled=true
  android:scrollbarSize=20dip/

For some reason android:scrollbarSize setting is ignored. Does anyone
knows what's the problem?

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] Creating a Highscore system?

2009-09-14 Thread Johnnyr

Hey guys,

I'm just finishing up my first android app. It's a simple game, but
I'd like to implement a way to track and store the user's highscores.

Do you guys have any suggestions on ways to approach this? I'm not
looking for global/online rankings, just scores for the user.

Thanks,

John

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



[Fwd: [android-developers] Re: Saving Intents to use later (WAY LATER!)]

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

---BeginMessage---

Roger L wrote:
 Well, this is what i am doing
 
 Calling ACTION_PICK_ACTIVITY for result, i get back
 
 Intent { action=android.intent.action.MAIN categories=
 {android.intent.category.LAUNCHER} comp={com.android.alarmclock/
 com.android.alarmclock.AlarmClock} }

Most likely, you are getting back an Intent object which dumps the above
as the result of a call to toString().

 do I have to somehow parse this and save the info, and then
 add .addActivity, .addCategory, and .setClassName?

Parse?

Use getter methods on the Intent object.

In this case, you want getAction(), getCategories(), and getComponent().
The last one will return a ComponentName(), which in turn has
getClassName() and getPackageName() getter methods. Persist all four of
those values. Then, when you need the Intent back, use setClassName(),
setAction(), and addCategory() to rebuild it from the pieces.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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

---End Message---


[android-developers] Programmatically set typeface and textsize of Spinner / ComboBox

2009-09-14 Thread Tim

For other items settypeface and settextsize are available, but not for
Spinner.  I would like to have a mechanism that dynamically changes
the Spinner without using a fixed XML definition.  I am trying to re-
program the default android.R.layout.simple_spinner_item and
android.R.layout.simple_spinner_dropdown_item containers.  I have
tried the following code without success.  Where am I going wrong?

class ComboBox extends Spinner {
  private int listid;
  private ArrayListString alist = new ArrayListString();
  private TextView  ssi;
  private CheckedTextView   ssdi;
  public ComboBox (Context context,int listid) {
super(context);
this.listid = listid;
ArrayAdapterString ladapt = new ArrayAdapterString(context,
android.R.layout.simple_spinner_item, alist);
ladapt.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
setAdapter(ladapt);
ssi  = (TextView)findViewById
(android.R.layout.simple_spinner_item);
ssdi = (CheckedTextView)findViewById
(android.R.layout.simple_spinner_dropdown_item);
  }
  public int getId() {
return listid;
  }
  public void addItem(String txt) {
alist.add(txt);
  }
  public void setTypeface(Typeface tf) {
ssi.setTypeface(tf);
ssdi.setTypeface(tf);
  }
  public void setTextColor(int colour) {
ssi.setTextColor(colour);
ssdi.setTextColor(colour);
  }
  public void setTextSize(int sz) {
ssi.setTextSize(sz);
ssdi.setTextSize(sz);
  }
}

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



[Fwd: [android-developers] Re: locked up my Android device...]

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

---BeginMessage---
A bug would be great.  Please send me the link.  Thanks!

On Mon, Sep 14, 2009 at 8:49 AM, michael maitlen mgmait...@gmail.comwrote:


 After trying to get the bug to occur all weekend, I was finally able
 to get it to happen this morning.

 Once the screen freezes and the Force Close Dialog comes up, non of
 the buttons have any effect with on the screen.  In the logs though,
 the Home button, triggers a DeadObjectException...I've got an
 extensive log that I could supply, I assume it'd be better to post it
 on the bug page?

 Another interesting thing...the device is completely unresponsive, I
 even tried to call it from my home phone with no response at all, and
 I'm positive I had the correct phone number.

 On Sep 11, 8:59 pm, Dianne Hackborn hack...@android.com wrote:
  10 threads is still a lot.  All of the devices you will run on the
  foreseeable future are only going to have one cpu, so one thread, maybe
 two
  (you might get some parallelism out of decoding while another thread is
  reading through problem not much) should be more than enough.  Going up
 to
  ten has a good chance of having worse performance than just a couple,
 since
  the scheduler is now needing to bounce around between all those threads
  (plus until 1.6 we are only relying on the Linux nice level for
 scheduling
  threads, so the more threads you have doing work in the background, the
 more
  time you will take away from the main thread as it wants slices to
 interact
  with the user).
 
  Anyway nothing you do should make the system freeze, so there is
 definitely
  a system bug there. :)  Does pressing the home button not work either?
 
  On Fri, Sep 11, 2009 at 7:00 PM, Mark Murphy mmur...@commonsware.com
 wrote:
 
 
 
 
 
   michael m wrote:
What I am doing, which I question, is loading each image via a thread
as it is retrieved from the ImageCache...I pass back a default image
if the bitmap is null, then update the default image in the
 ImageViews
with the Bitmap is loaded from the sdcard; I'm doing this by posting
to a Handler in the Adapter from the thread that loads the image.
 
   I suspect you are going to get in trouble with that many threads.
 
So if the number of threads is the problem I'm thinking of loading
 all
the bitmaps when the app is first initiated, probably using the
AsyncTask class.
 
   That is probably too far in the other extreme.
 
A question I have though about this is that the docs
say that you can only call execute() once...what's happens if some of
my Bitmaps are garbage collected??  Do I then call individual threads
to reload?  I've looked through some of the Google apps, Shelves and
Photostream, but they don't seem to be using Bitmaps wrapped in
SoftReferences.
 
   I've wrapped up this pattern in a ThumbnailAdapter:
 
  http://github.com/commonsguy/cwac-thumbnail/tree/master
 
   Basically, I use AsyncTaskEx, which is my fork of AsyncTask that allows
   for 10 parallel threads -- not infinite, but not only 1.
 
   I also gave up on SoftReferences, as posts in this list from a month or
   two ago gave me the impression that SoftReferences are effectively
   pointless with the current Dalvik garbage collection implementation.
   Instead, I use an LRU cache, (re)loading images on demand via
 AsyncTaskEx.
 
   It may be, though, that ThumbnailAdapter will just work for you,
   though I have not tried it for images starting on the SD card -- I was
   focused on caching them off the Internet. I don't have much in the way
   of documentation at this point, but there is a sample app in the github
   project. While I suspect I'll be upgrading the implementation in the
   coming months, the API (put the URL of the image to be loaded in the
   ImageView's setTag()) should remain constant.
 
   If you give it a whirl and run into problems, ping me on the cw-android
   Google Group, and I may be able to help:
 
  http://groups.google.com/group/cw-android
 
   --
   Mark Murphy (a Commons Guy)
  http://commonsware.com|http://twitter.com/commonsguy
 
   Android Development Wiki:http://wiki.andmob.org
 
  --
  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.
 



-- 
Dianne Hackborn
Android 

[Fwd: [android-developers] Re: How send DTMF in android?]

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

---BeginMessage---

HI all,

  Any response on this thread. Its important for my company product.

Thanks,
Gulfam

On Sep 10, 12:14 pm, legerb drim...@gmail.com wrote:
 ToneGenerator won't help here - This API is not for generating tones
 over the uplink audio path.

 On Sep 8, 12:44 pm, Mark Ellul mark.el...@gmail.com wrote:

  Hi Gulfam,

  Did you solve the issue? I am trying to do the same thing and only
  have a HTC Hero to test with and its failing as well.

  Please if you have resolved the issue let me know...

  I have seen this 
  classhttp://developer.android.com/reference/android/media/ToneGenerator.html
  but I am not sure if it will help in this case.

  Regards

  Mark

  On Aug 28, 8:55 am, Gulfam gulfa...@gmail.com wrote:

   Hi all,

   I am facing a problem on sendingDTMFin android.
   I am sendingDTMFin this format  tel:+15187127050,9563547896#
   Its working fine on G1 but when i install the app on HTC Hero /HTC
   Magic its dispalying error message like this (Invalid MMI)

   Any one can help me regarding this.

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

---End Message---


[Fwd: [android-developers] Where are the provided android applications?]

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

---BeginMessage---

I would like to step through the ViewContactActivity using the Eclipse
debugger to gain a better understanding of how it is assembled.  I can
see the source code when I explore the source tree, but I do not see
any of the classes inside Eclipse when using Ctrl+Shift+T to open the
type.  Also, when I open the type hierarchy with F4 to see what
extends ListActivity, I do not see ViewContactActivity.  Any clues?

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

---End Message---


[Fwd: [android-developers] Question about custom Views in ListView]

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

---BeginMessage---

Question about custom Views in ListView


This app is building custom Views for elements of a list view. How can
the custom view be made to fill the entire width of the list view?

This XML for the element’s view is inflated from this:

?xml version=1.0 encoding=utf-8?
LinearLayout android:id=@+id/LinearLayout01
android:layout_width=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:background=#D0D0D0
android:orientation=vertical
android:layout_height=wrap_content

TextView android:text=TextView01
android:id=@+id/TextView01
android:layout_height=wrap_content
android:textColor=#FF
android:textSize=10pt
android:textStyle=normal
android:typeface=normal
android:layout_width=fill_parent
android:gravity=center_horizontal
/
/LinearLayout

In the Eclipse layout editor it looks great. The string “TextView01”
is centered in a gray box centered horizontally in the parent
LinearLayout.

But when displayed by the ListView, as returned from Adapter.getView
(), it is all to the left. Like the parent LinearLayout.layout_width
was reset to “wrap_content” rather than “fill_parent.” I want the
entire width of the ListView to be filled with this view.

Any ideas??

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

---End Message---


[android-developers] Re: apk installation on mobilefromLinux machine

2009-09-14 Thread triptec

I usually do the following.
sudo ./adb kill-server
sudo ./adb devices
sudo ./adb -d install -r someFile.apk

On Sep 14, 12:40 pm, André Charles Legendre andre.legen...@gmail.com
wrote:
 Hi Thank's to Dilli and Tauno

 I have enabled USB debugging.
 When I do adb devices I get no devices.

 If I look in /var/log/messages
 I see that mobile is detected when it is connected.
 The system give it a disk alias (sdb) and a network alias /dev/ttyACM

 But no devices is detected by adb.

 Any help welcome.

 Andre

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



[android-developers] usb for android

2009-09-14 Thread jayasree.chakravarthy
Hi,
 
How USB adb /USB ohci  / USB Gadget works on User Space ie Middleware,
Which daemon and libraries were used to connect kernal space. 
I found android architecture document for other drivers like audio,
bluetooth but not USB in pdk/docs. 
Could you please explain the android USB architecture for userspace and
kernal space and if any document please share with me.
 
thanks  Regds,
Jayasree

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



[Fwd: [android-developers] Re: setText]

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

---BeginMessage---

It does not appear to fit in its parent. If changing textSize to
something smaller than 40sp makes it fit, then you will need to either
shrink the text or increase the available space in the parent.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 13, 8:41 am, WoodManEXP woodman...@gmail.com wrote:
 I do not know the answer to this but I might experiment with setting a
 width other than wrap_content just to see how it behaves. Maybe try
 setting width to something like 100dip as a starter and see if the
 same behavior occurs.

 On Sep 13, 3:47 am, Anastasiya Dremina anastasiya.drem...@gmail.com
 wrote:



  Example
  was 9|15
  must be 10|15
  10|1 is shown

  2009/9/13 Anastasiya anastasiya.drem...@gmail.com

   Hi guys

   My problem

   I have TextView android:id=@+id/myText
          android:layout_width=wrap_content
   android:layout_height=wrap_content
          android:layout_alignParentRight=true
   android:layout_alignParentTop=true
          android:textSize=40sp  /
   I use setText method  in code. Sometimes all text is not displayed for
   a second (I have enough space.. And previous text can have width
   current width).

   Does anyone know decision?- Hide quoted text -

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

---End Message---


[android-developers] Request for a log when Hibernate (alarm) fails. Offer to check your app on my phone.

2009-09-14 Thread pistol

This is a request for another developer, probably with a US phone,
maybe a Hero to try out my Beta app and send me the log if it Force
Closes.
It may be there is already a place where I can request this (getting a
log from another phone) - in which case apologies.

Background:
I have written an app (Hibernate (Alarm)) which is now in the Android
Market as a Beta.
It reads the system settings (changes a few), looks at whether the GPS
is enabled, lists all of the installed apps and turns on Airplane
Mode.  I don't believe I have done anything Google wouldn't approve
of.
I tested it thoroughly both on the the emulator and on my G1 (T-Mobile
UK) and using JUnit.
I have also desk checked the code to here and infinity and for extra
inspiration banged my head on the same desk.  I have also considered/
tried other things such as varying phone settings and locale and
triple checked I have the correct permissions.
However several people have reported that it causes Force Close -
probably (they never give much detail) straight away.

What I am requesting:
I don't think I will ever manage to solve this with-out a log of the
error (or buying loads of phones) as I now believe it must be
something different in the phone (or more likely the Android build)
they are using.
So if some-one very kindly could download the app from the market (or
I'll happily email you the .apk) and email me the log (*) of it
failing it would really make my day.
Even just getting a detailed report on your phone and what you did
(especially at what point it failed) might help.
Lastly if any-one knows of any important issues specific to the UK T-
Mobile G1 (or major differences in other phones) I'd also really
appreciate that as it may give me a clue.

Remember you may be in this position one day - when I sincerely hope I
can return the favour (I'm in the UK that's how we spell favor).  In
fact I am offering to do exactly that now for any-one who asks.

Thanks in anticipation,

Pete

* - this is a developers forum so I hope I am assuming every-one knows
how to do this.  However I have found the SendLog app to be a really
easy way to send logs.

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



[android-developers] codeBeamer, Collaborative ALM Solution for Git and Android

2009-09-14 Thread Intland Software

Intland Software announces the availability of codeBeamer 5.4, the
award winning Collaborative Application Lifecycle Management Solution
for distributed software development. Today's challenge is to tackle
*Android sized projects* with 2GB of code and hundreds of thousands of
change sets, and codeBeamer 5.4 is capable of processing these
repositories.

Version highlights:
* Issue escalation with hierarchic working calendars
* Calculated tracker fields with rich formula
* Wiki page editing directly in Microsoft Word
* Scalable version control management
* Major enhancements in supporting Git and Mercurial
* Revised search: more relevancy, richer query syntax, friendlier interface

Links:
* Product homepage: http://www.intland.com/products/cb/overview.html
* FREE download (no expiration!):
http://www.intland.com/products/download.html#download
* FREE hosted version: http://www.intland.com/products/download.html#trial

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



[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes


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

---BeginMessage---
It seems like what you want to happen is this:
- if domain of URL is http://photics.com, display result in your webview
- if it is not http://photics.com, go to the URL in a new window

I think the answer is in this thread.  I don't trust your solution.  I don't
understand why it would work twice.
Try going to an external URL and then to photics.com It looks to me like the
second access will have the WebViewClient set to null, so I don't see how
your photics logic will be called.

Mark Murphy provided an answer referring to starting a new activity.  I
think the answer is there.
If you override shouldOverrideUrlLoading:
  - false means that the WebViewClient should display the contents of
the URL (just load photics.com please)
  - true means that the code is handling it and you want something else
to happen.  (I've got this)

How to open a browser with an intent and activity.
See the nice article here:
http://www.androidcompetencycenter.com/2009/08/view-site-in-a-new-windowbrowser/

 Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri.*parse*
(http://twitter.com/CarmenDelessio;));
startActivity(viewIntent);

Putting it together, your code should do something like:

public boolean shouldOverrideUrlLoading(WebView view,
String url)
   {
   if (url.contains(http://photics.com;)) {
   return false;
   }else{
  //url being called was  passed to override
shouldOverrideUrlLoading

  Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri
.*parse*(url));
  startActivity(viewIntent);

return true;
}


Caveat - I haven't tested this.

Another method I have overridden is:  onPageStarted  (WebView view, String
url, Bitmap favicon)
It seemed to be that onPageStarted was always called, but that there were
cases when shouldOverrideUrlLoading was not.
Might want to test that by logging what is called.

Carmen
http://www.twitter.com/CarmenDelessio



On Mon, Sep 14, 2009 at 11:22 AM, Photics m...@photics.com wrote:


 OK... first... a correction in my previous post.

 every link opens in a new window ...the word external should have
 been added. Local files can work great. My problem is that I'm trying
 to create exceptions. I have to do this to make my advertisers happy.

 So OK... I have a fix... it's ugly... but it seems to work.

mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
 (WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view,
 String url)
{
if (url.contains(http://photics.com;)) {
return false;
}
 else mWebView.setWebViewClient(null);
return false;
}

 I seem to have the solution to my problem, but I'm not happy that I
 don't exactly understand how I did it. It seems incredibly odd to me
 that returning false twice worked. :-)

 I'm going to investigate this some more before I publish my app.
 


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

---End Message---


[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes


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

---BeginMessage---
It seems like what you want to happen is this:
- if domain of URL is http://photics.com, display result in your webview
- if it is not http://photics.com, go to the URL in a new window

I think the answer is in this thread.  I don't trust your solution.  I don't
understand why it would work twice.
Try going to an external URL and then to photics.com It looks to me like the
second access will have the WebViewClient set to null, so I don't see how
your photics logic will be called.

Mark Murphy provided an answer referring to starting a new activity.  I
think the answer is there.
If you override shouldOverrideUrlLoading:
  - false means that the WebViewClient should display the contents of
the URL (just load photics.com please)
  - true means that the code is handling it and you want something else
to happen.  (I've got this)

How to open a browser with an intent and activity.
See the nice article here:
http://www.androidcompetencycenter.com/2009/08/view-site-in-a-new-windowbrowser/

 Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri.*parse*
(http://twitter.com/CarmenDelessio;));
startActivity(viewIntent);

Putting it together, your code should do something like:

public boolean shouldOverrideUrlLoading(WebView view,
String url)
   {
   if (url.contains(http://photics.com;)) {
   return false;
   }else{
  //url being called was  passed to override
shouldOverrideUrlLoading

  Intent viewIntent = *new* Intent(“android.intent.action.VIEW”, Uri
.*parse*(url));
  startActivity(viewIntent);

return true;
}


Caveat - I haven't tested this.

Another method I have overridden is:  onPageStarted  (WebView view, String
url, Bitmap favicon)
It seemed to be that onPageStarted was always called, but that there were
cases when shouldOverrideUrlLoading was not.
Might want to test that by logging what is called.

Carmen
http://www.twitter.com/CarmenDelessio



On Mon, Sep 14, 2009 at 11:22 AM, Photics m...@photics.com wrote:


 OK... first... a correction in my previous post.

 every link opens in a new window ...the word external should have
 been added. Local files can work great. My problem is that I'm trying
 to create exceptions. I have to do this to make my advertisers happy.

 So OK... I have a fix... it's ugly... but it seems to work.

mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
 (WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view,
 String url)
{
if (url.contains(http://photics.com;)) {
return false;
}
 else mWebView.setWebViewClient(null);
return false;
}

 I seem to have the solution to my problem, but I'm not happy that I
 don't exactly understand how I did it. It seems incredibly odd to me
 that returning false twice worked. :-)

 I'm going to investigate this some more before I publish my app.
 


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

---End Message---


[Fwd: [android-developers] Re: Saving Intents to use later (WAY LATER!)]

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

---BeginMessage---

That was just what I needed. Thank you!
Again you prevail!


On Sep 14, 9:41 am, Mark Murphy mmur...@commonsware.com wrote:
 Roger L wrote:
  Well, this is what i am doing

  Calling ACTION_PICK_ACTIVITY for result, i get back

  Intent { action=android.intent.action.MAIN categories=
  {android.intent.category.LAUNCHER} comp={com.android.alarmclock/
  com.android.alarmclock.AlarmClock} }

 Most likely, you are getting back an Intent object which dumps the above
 as the result of a call to toString().

  do I have to somehow parse this and save the info, and then
  add .addActivity, .addCategory, and .setClassName?

 Parse?

 Use getter methods on the Intent object.

 In this case, you want getAction(), getCategories(), and getComponent().
 The last one will return a ComponentName(), which in turn has
 getClassName() and getPackageName() getter methods. Persist all four of
 those values. Then, when you need the Intent back, use setClassName(),
 setAction(), and addCategory() to rebuild it from the pieces.

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

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

---End Message---


[Fwd: [android-developers] Re: HTC Magic as dev phone]

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

---BeginMessage---

Bear in mind that if you develop and test your app on a device w/o a
sliding kb, it may not run as expected on a device with one, and vice
versa.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 12, 1:06 pm, Mark Murphy mmur...@commonsware.com wrote:
 dashman wrote:
  i'd like to buy the HTC Magic for my dev phone - i don't want the
  physical sliding keyboard.

  with the HTC magic work as the dev phone.

 You can test SDK applications using an HTC Magic.

  does HTC provide updated android updates for it.

 Please contact your mobile provider for details regarding device updates.

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

 Android App Developer Training:http://commonsware.com/training.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
-~--~~~~--~~--~--~---

---End Message---


[android-developers] Multiple frame based animations

2009-09-14 Thread Carlos Alonso Pérez

Hi all.

I'm trying to concatenate two frame based animations. I've tried some
approaches without success:

1.- I've tried to use an ImageView and change the backgroundResource
when required but the resource isn't changed.

2.- I've tried also using two ImageViews, set one animation to each
and set visibility to Invisible for the second. At the moment of
changing, the only change is to switch visibilities and start the
second animation. Also doesn't work.

I've found something interesting that is, using the same scenario as
in 2. Starting the activity with both imageViews visibile, the
concatenation is successfull. Even setting the first imageView to
invisible!! But I cannot go ahead with the first frame of the second
animation being visible while the first animation is running.

Any advice? Thanks. Carlos

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

2009-09-14 Thread Romano

I have the same problem in an application that I'm developing; just to
say that you are not the only one having this issue.
If I find a solution, I'll post it here (could you please do the
same? :) ) so to help you, if needed.

Maybe it's only a matter of firmware and in the next release of
Android the performances will improver and this issue will be solved
with no need to change the code.

Best regards

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



[android-developers] Re: Countries for selling priced applications in Android Market

2009-09-14 Thread nikki

What about Taiwan where HTC the company made the first android phone
is from?
Definitely many Taiwanese developers including HTC employees are eager
to buy and sell on Android market!

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



[android-developers] Communication over USB with Program on Computer

2009-09-14 Thread Patrick Boos

Goal: Send Data from the phone to the computer (and the other way)
using only the USB cable. We need this to synchronize data between the
a program on the android phone and a program on the computer. Over
Wifi is not an option. It has to work over the USB cable.

We need this for a university project and would be glad if anyone
could enlighten us on this matter.

Thank you already for the help.

Greetings
Patrick Boos

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



[Fwd: [android-developers] Re: Saving Intents to use later (WAY LATER!)]

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

---BeginMessage---
Somehow this doesn't seem to be documented, but this is the method you want:
http://developer.android.com/reference/android/content/Intent.html#toURI()

Ah the current source tree has documentation:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/content/Intent.java

On Mon, Sep 14, 2009 at 9:11 AM, Roger L rogerl.andr...@gmail.com wrote:


 I am banging my head into a brick wall!
 I want to save an intent pick from the ACTION_PICK_ACTIVITY into a
 preference/database/etc... and use it as a result for my application
 every time it runs.
 But, there is no way to save the right data type (Intent) into
 preferences or a database, or anyway that I can see to convert from a
 string or such back into the (Intent)!!
 Someone please point me in the right direction?!?
 



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

---End Message---


[android-developers] Activitity View Window?

2009-09-14 Thread triptec

English is not my first language.
I've been working with android for about a week now, and some things
really start to annoy me. What I'm trying to do is very simple.
An app with three windows and a background service.
The background service polls information from a webservice and adds
this to a few objects.
First window you choose what kind data you want to list and look at.
Second window shows the list you wanted to see, click a list item you
want detailed info about
Third window shows the info associated with the list item clicked.

Now each window has it's own Activity (1,3 = Activity, 2 =
ListActivity). First of all I'd like to follow android coding
standards/conventions. But I can't really find any? For example I'd
like to NOT start new activities as they are expansive to start. And I
have had a hard time finding something that would just stop a child
activity and not kill it as I heard finish() will do. And using
activities I'm having problems being able to go from window 3 to 1,
and it would feel strange to finish both the info activity and then
finish the list activity if the result from info activity is set to
something. This is how I solved it now. Then sometime in the future I
should add update callbacks to the activities when I poll updated data
but I'd like to understand the basic design concepts.

But as I said I'm not happy with the solution at all. And the
application is just an early prototype for now and will be a lot
bigger in the future.

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



[Fwd: [android-developers] Re: HTC Magic as dev phone]

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

---BeginMessage---

Bear in mind that if you develop and test your app on a device w/o a
sliding kb, it may not run as expected on a device with one, and vice
versa.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 12, 1:06 pm, Mark Murphy mmur...@commonsware.com wrote:
 dashman wrote:
  i'd like to buy the HTC Magic for my dev phone - i don't want the
  physical sliding keyboard.

  with the HTC magic work as the dev phone.

 You can test SDK applications using an HTC Magic.

  does HTC provide updated android updates for it.

 Please contact your mobile provider for details regarding device updates.

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

 Android App Developer Training:http://commonsware.com/training.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
-~--~~~~--~~--~--~---

---End Message---


[Fwd: [Fwd: [android-developers] Re: ADC2 entries so far...]]

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

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

---BeginMessage---



On Sep 13, 7:12 pm, Mobidev android.mobi...@gmail.com wrote:
         Bookworm http://andappstore.com/AndroidApplications/apps/734
        

Bookworm's category is Education/Reference

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

---End Message---
---End Message---


[Fwd: [android-developers] Request helping for writting HTTP Request in Android]

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

---BeginMessage---

package com.example.helloandroid;

import java.io.IOException;
import java.io.InputStream;

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

import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.*;
import org.apache.http.client.methods.*;
import org.apache.http.impl.client.DefaultHttpClient;
//import org.apache.http.util.EntityUtils;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

try
{
HttpClient hc = new DefaultHttpClient();
HttpGet get = new HttpGet(http://www.yahoo.com;);
HttpResponse rp = hc.execute(get);

if(rp.getStatusLine().getStatusCode() == HttpStatus.SC_OK)
{
//String str = EntityUtils.toString(rp.getEntity());
InputStream is = rp.getEntity().getContent();
String str = is.toString();

TextView tv = new TextView(this);
tv.setText(str);
setContentView(tv);

}
else
{
System.out.println(halo,baby.);
}
}catch(IOException e){
return;
}
}
}

the above is my code.
but it seems there are some problems here.
I want to send the HTTP request to yahoo and get back the returned
response and show it out.
So, Anyone can give me some ideas on it?
Thank you.

Carmen Lau

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

---End Message---


  1   2   3   >