[android-developers] Re: You tube video error

2009-05-04 Thread 余雷
No , I am sorry that I  developed that app in sdk1.1.

2009/5/4 Nithin Varamballi nithi...@gmail.com


 Thanks for reply

 Have you tried any video streaming in sdk 1.5...?

 Thank You
 Nithin N V

 


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



[android-developers] Download manager

2009-05-04 Thread davidyu

   I want to access Download manager in my application, and set
   uses-permission
android:name=android.permission.ACCESS_DOWNLOAD_MANAGER/
   uses-permission
android:name=android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED/
   uses-permission
android:name=android.permission.ACCESS_CACHE_FILESYSTEM/
   uses-permission
android:name=android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS/

 in manifest.xml

  However, I still get /AndroidRuntime(14300): Caused by:
java.lang.SecurityException: Permission Denial: reading
com.android.providers.downloads.DownloadProvider uri
content://downloads/download from pid=14300, uid=10057 requires
android.permission.ACCESS_DOWNLOAD_MANAGER
E/AndroidRuntime(14300):at android.os.Parcel.readException
(Parcel.java:1234)
E/AndroidRuntime(14300):at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:145)
E/AndroidRuntime(14300):at
android.database.DatabaseUtils.readExceptionFromParcel
(DatabaseUtils.java:111)
E/AndroidRuntime(14300):at
android.content.ContentProviderProxy.bulkQuery
(ContentProviderNative.java:279)
E/AndroidRuntime(14300):at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
298)
E/AndroidRuntime(14300):at
android.content.ContentResolver.query(ContentResolver.java:149)
E/AndroidRuntime(14300):at
android.app.Activity.managedQuery(Activity.java:1499)

is there anything else I should do to access Download Manager?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: You tube video error

2009-05-04 Thread Nithin Varamballi

K...

Thank You...

Nithin N V

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



[android-developers] Re: Issue with Eclipse Android Plugin on Ubuntu Linux

2009-05-04 Thread swarup

read about AVD @ http://developer.android.com/sdk/RELEASENOTES.html

On May 2, 4:32 pm, Berlin Brown berlin.br...@gmail.com wrote:
 I am running Ubuntu Linux (Jaunty) JDK 6.0 and am getting a strange
 error for my first app.  i created the project and set the SDK home.
 And also the JAVA_HOME is set.  But I can't run the app.

 Your Project Contains error(s) please fix them before running your
 application.

 The only thing I see on the console logs are the following:

 [2009-05-02 06:57:28 - HelloWorld] --
 [2009-05-02 06:57:28 - HelloWorld] Android Launch!
 [2009-05-02 06:57:28 - HelloWorld] adb is running normally.
 [2009-05-02 06:57:28 - HelloWorld] Performing com.test.HelloWorld
 activity launch
 [2009-05-02 06:57:28 - HelloWorld] Failed to find an AVD compatible
 with target 'Android 1.5'. Launch aborted.
 [2009-05-02 06:58:42 - HelloWorld] no classfiles specified
 [2009-05-02 06:58:42 - HelloWorld] Conversion to Dalvik format failed
 with error 1

 --

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



[android-developers] Reg:Camera porting

2009-05-04 Thread alok Yadav

Hi Android ,
Has anyone worked on the camera porting with android support.

Thansks and regards
Alok

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



[android-developers] updating a view based on another view

2009-05-04 Thread rukiman

If I have a View that I want updated at the same time another View
updates itself. What is the correct way of doing this?


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



[android-developers] Re: updating a view based on another view

2009-05-04 Thread rukiman

In other words how can I tell if a Widget is being updated from
another Widget?

On May 4, 4:10 pm, rukiman ruksh...@optushome.com.au wrote:
 If I have a View that I want updated at the same time another View
 updates itself. What is the correct way of doing this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Reg: Camera Porting

2009-05-04 Thread alok Yadav

Hi Android,
Can any one help me to port camera on i.mx31 with supporting android.
I have ported android on i.mx 31 board.And screen is comming while 
clicking on the camera only square blocks are comming.
Can any body told me that what is the error.

Thanks and regards
Alok

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



[android-developers] Re: AutocompleteTextView

2009-05-04 Thread Android Users
You can find samples in API Demos..

On Mon, May 4, 2009 at 11:29 AM, 余雷 yule...@gmail.com wrote:

 Hi , all. Can any one give me a example or source code of using
 AutocompleteTextView, I met a lot problems of using this view. 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: xml view defination to take event handler class name

2009-05-04 Thread Raja Nagendra Kumar

Thank you for the details.. these details help us in the short term.

Also, I have seen similar abstraction provided by KUIX (j2me UI
framework - http://www.kalmeo.org/projects/kuix/docs/tutorial_3 ).
Though abstraction is very good, impl. on that fails because of lack
of reflection api in j2me. I am sure Android would have a perfect
impl. of the abstraction.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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: is android:layout_width and android:layout_height manditory attributes

2009-05-04 Thread Raja Nagendra Kumar

ok,

In absence global defaults, could it take the same values as the
parent (container).. so that UI developer could add these attributes
only one it is different than parent..

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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: AOP support

2009-05-04 Thread Raja Nagendra Kumar

Any inputs please.. we are looking for Aspect's approach to enforce
login and security etc..
Any of the forum members have any experience towards this pl. share..

Regards
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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: Template ROW using xml and api

2009-05-04 Thread Raja Nagendra Kumar

Hi Mark,

Thank you for details.. In the interest of others these are the code
level details we have done..

1. We have One main xml with tablelayout
2. Another  layout xml with table row specification

We every time we need to add a new row to the table, we inflate the
row xml and and find the id's, add the respective listeners.. detatch
the row from the inflated overall view and add to first views table.
Code for this is below.

addRow()
{
TableLayout tl = (TableLayout) getActivity().findViewById(R.id.table);

LayoutInflater inflater = (LayoutInflater) (getActivity
()).getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
LinearLayout v = (LinearLayout) inflater.inflate
(R.layout.dial_relation_infate_row,
 null,
 false);

TableRow lableRow = (TableRow) v.findViewById(R.id.labelRow);
TextView lableField = (TextView) v.findViewById(R.id.labelField);
v.removeView(lableRow);
tl.addView(lableRow);
labelRows.add(lableRow);

TableRow fieldRow = (TableRow) v.findViewById(R.id.fieldRow);
Button fieldButton = (Button) v.findViewById(R.id.fieldButton);
fieldButton.setTag(dataRows.size());
fieldButton.setOnClickListener(this);

v.removeView(fieldRow);
tl.addView(fieldRow);
}

Android power is in this approach to writ powerful ui with ease.

Mark, one observation regarding the id's that different rows coudl
have the same id and one could get row specific component could be
found by asking the view to find the component. This has made us not
to change the id's too.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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] Support for iterations in xml view - Dynamic Data display

2009-05-04 Thread Raja Nagendra Kumar

Most of the data driven ui would need a way to iterate certain UI per
record of data. In such scenario.. would it be possible to specify in
xml to iterate a perticular block of view spec based on certain vector
or data record.

There is a very nice solution provided by kuix at
http://www.kalmeo.org/projects/kuix/docs/tutorial_5.
Not sure if such thing is possible already in android.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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: Start Application with SMS

2009-05-04 Thread Android Users
Hi,

Implement a BroadcastReceiver class and perform the functions that u intend
to in the onReceive() method.

Also, add the class u have implemented as a receiver in the manifest.
Eg:
receiver android:name=.ReceiveSms
intent-filter
action
android:name=android.provider.Telephony.SMS_RECEIVED /
/intent-filter
/receiver

you can check this..
http://www.anddev.org/recognize-react_on_incoming_sms-t295.html

Let me know if u need more information.

On Sat, May 2, 2009 at 1:34 AM, theMerchant ali.taciro...@gmail.com wrote:


 Hello Everyone,

 I would like to know if anybody knows how I can start my application
 with an incoming SMS message.

 For example, I send an SMS message from phone A to Phone B. When Phone
 B receives the message, it checks if it is sent to my program. If it
 is, it starts(run) my application. Important thing here is that my
 program is not running in the device unless SMS is received, so it can
 not be listening for SMS itself.



 


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

2009-05-04 Thread piecewise

In the compressed APK they're still 790kb. I... uh... I don't know why
I said extracting, earlier. I just meant viewing them in 7-zip. It's
Monday. :P

It's mostly an academic issue now anyway, as I've modified our ant
script to use 7-zip's commandline interface to manually extract the
RGB png's and replace them with the indexed ones. A bit hacky, I know,
but it works ok!

I'm still curious as to why this is going on, though. I'm not using
1.5; I'm only using 1.1. Is it possible that aapt in 1.1 uses pngcrush
as well, and is for some reason changing the colour mode of the pngs
from indexed to full RGB?

Cheers,
Tom


On May 4, 3:41 pm, Jeff Sharkey jshar...@android.com wrote:
 Is the compressed APK size comparable to the 400kB original size?  The
 790kB you quoted seems to be the unpacked size.  On the device,
 resources are kept in their compressed state.  Also, I believe that
 aapt in 1.5 runs drawables through pngcrush, so I'm not sure why they
 are growing.

 j



 On Sun, May 3, 2009 at 6:21 PM, piecewise tom.a.mcl...@gmail.com wrote:

  I've got ~200 png files in the /res/drawable folder, mostly interface
  and sprite sheet stuff. They're all indexed pngs, and weigh in at a
  grand total of a bit over 400kb.

  When I run aapt to package them into the apk, their filesize nearly
  doubles. Opening the apk up with 7zip and extracting the drawables
  confirms it: 790kb.

  Does anyone have any idea why this would be happening? I thought the
  packaging process was meant to compress the pngs, not inflate them! :P

  Cheers,
  Tom

 --
 Jeff Sharkey
 jshar...@google.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] Retrieving Draft SMS details

2009-05-04 Thread sermojohn

Hello,

while implementing an SMS application I ve faced this issue. Despite
not having any problem to read any
SMS from the content://sms uri, when there is e a draft SMS in the
SMS table, only its message body is retrieved, but not the address
number that has to be written in the SMS form, so that the SMS can be
saved in drafts ( this is what I ve noticed that many SMS applications
ask from the user ).
Does anyone know, if the Draft SMS are saved somewhere else,
separately or if their phone address is saved on another field than
the phone address of the SMS stored in the inbox or outbox?
It you be really helpful to me, if you could provide me with such
info!

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

2009-05-04 Thread Vince

Thanks Mark  Raphael,

By can't find it I meant that I could not find MapView in the SDK
reference accessible through ./docs on my computer :-) After making a
simple search, I found it in ./add-ons which corroborates what Raphael
just said. I know what to do ;-)!

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



[android-developers] running emulator image with standard qemu

2009-05-04 Thread Gustavo

Hi,

Is it possible to run the android image distributed with the SDK using
the standard qemu executable (instead of the emulator executable)?

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



[android-developers] separate UI window of the Background Thread

2009-05-04 Thread Asif k

Hi all,

   During the processing of the background thread, I want to create
another GUI window (of b/g thread) which will overlap the main UI
thread and show b/g processing and this window will be killed when b/g
thread will be over.

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



[android-developers] Re: AutocompleteTextView

2009-05-04 Thread davidyu

Thanks .

On May 4, 2:25 pm, Android Users androidmai...@gmail.com wrote:
 You can find samples in API Demos..



 On Mon, May 4, 2009 at 11:29 AM, 余雷 yule...@gmail.com wrote:
  Hi , all. Can any one give me a example or source code of using
  AutocompleteTextView, I met a lot problems of using this view. 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: Problem with extends TabActivity

2009-05-04 Thread rico_1



On 30 Kwi, 23:43, Mark Murphy mmur...@commonsware.com wrote:

 For starters, you don't add any tabs.

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

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

When I add tabs, the app is stopped...
This is my code (from Example Api)

import android.app.Activity;
import android.os.Bundle;
import android.app.TabActivity;
import android.widget.TabHost;
import android.content.Intent;

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

final TabHost tabHost = getTabHost();

tabHost.addTab(tabHost.newTabSpec(tab1)
.setIndicator(list)
.setContent(new Intent(this, List1.class)));

tabHost.addTab(tabHost.newTabSpec(tab2)
.setIndicator(photo list)
.setContent(new Intent(this, List2.class)));

}
}

and I have 2 classess List1 and List2
List1 is:
import android.app.Activity;
import android.os.Bundle;

public class List1 extends Activity{
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
   // setContentView(R.layout.main);
}
}

I don't know where is 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] Android emulator not startup on winxp+msys

2009-05-04 Thread Hua Xia
I succeeded in compiling emulator source code on msys. but it could not run
on msys (winxp)
when type emulator, prompting words below:

$ ./emulator
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.


If type emulator -verbose, following information shows:

$ emulator -verbose
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.


If type emulator -debug, window shows android emulator usage like below:

$ emulator -debug
unknown option '-debug'
Android Emulator usage:   emulator [options] [-qemu args]
  options:
-systemdir   search system, ramdisk and userdata images in dir
-kernelfile  use file as the emulated kernel
-ramdisk   file  use file as the ramdisk image (default is
system/ramdisk.img)
-image file  use file as the system image (default is
system/system.img)
-nand0 file  obsolete, same as -image
-data  file  use file as the working user data disk image
..
who can help me ?

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



[android-developers] AbsoluteLayout deprecated ... a simple example to be complaint with 1.5 SDK ?

2009-05-04 Thread 6real

Hello,

could someone give a simple example to replace an AbsoluteLayout with
Frame and Relative Layout ?

Example :
I have to put a view on my screen with the position x, y and with a
width/height of w and h... How do I do that without AbsoluteLayout ?

Actually I will change it on my app but I am wondering the best way of
doing... It seems now we have to handle with margins instead of x and
y ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 get current layout object?

2009-05-04 Thread 6real

Hi,

did you try to :
 give an ID to your layout
 find it with the findViewById method
 then you can add your view.

Rgds,,
C.



On May 4, 11:28 am, rjy...@gmail.com rjy...@gmail.com wrote:
 Hi
    I create a application and the main activity reference by the
 main.xml.
 The main.xml has a LinearLayout element. So my code is setContentView
 (R.layout.main) to show the main window.I need add other element such
 as Button or EditView, but I don't want add the XML line to the
 main.xml.I hope use the layout.addView(...) to add the elements to my
 Activity. So I need get the current LinearLayout object and can invoke
 the addView function.
 So How can I get the default layout?
 Thanks.
 
 RongJun Ying
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Older Vesion

2009-05-04 Thread Desu Vinod Kumar
I don't have file in the emulator
i have the file coml=piled in older version how to install it now

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



[android-developers] Older Vesion

2009-05-04 Thread android.vinny

Is there Any procedure to install the Older version .apk files in
emulator
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MOBILE SCREE PROPERTIES

2009-05-04 Thread Desu Vinod Kumar
I Mean Clearly

I'm looking for the test midlet to find the device properties like
jbenchmark 

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



[android-developers] MOBILE SCREE PROPERTIES

2009-05-04 Thread android.vinny

Can any body help me how to find the Mobile Screen and Icon Properties
oF G1 Phone.

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



[android-developers] Premultiplied alpha in OpenGL textures

2009-05-04 Thread djp

Hi,

Is there a way to load a texture that is NOT alpha pre-multiplied?

I'm using android.graphics.Bitmap to load PNG files and then
GLUtils.texImage2D() to specify texture image. The result is that
texture colors are automatically pre-multiplied with alpha.

For simple blending you use glBlendFunc(GL_ONE,
GL_ONE_MINUS_SRC_ALPHA) instead of glBlendFunc(GL_SRC_ALPHA,
GL_ONE_MINUS_SRC_ALPHA). But sometimes you need to keep your color/
alpha untouched.

Thanks,
David

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



[android-developers] Want to start an activity when the device attains Idle mode

2009-05-04 Thread Farida Khan
Hi,

I want to invoke an activity when the device attains the idle mode. Can any
one help me to let me know how to know the device has attained the Idle
mode. The statement Settings.System.getInt(getContentResolver(),
SCREEN_OFF_TIMEOUT, def) gives the value when the device should come to idle
mode, but want to know where this mode is invoked from in the android
source. Please answer to this as soon as possible.

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] GPS Enable/Disable from Settings - Race Condition / Deadlock

2009-05-04 Thread mak

Hi All,

If I am enabling / disabling GPS from Settings Menu, I can see that
it
is calling respective APIs from GpsLocationProvider.java. But when I
am trying with disable GPS from Settings Menu, it is getting block
and
after time out process is getting killed. I am digging out the code
from .java to .cpp interaction and I come to know that it calls
wait_for_event which is basically getting event from reportStatus and
reportLocation.

It looks to me that thread is getting block forever and not able to
meet the pthread_cond_wait criteria. Can anyone gives me pointers/
suggestion how to digg
out this kind of Race Condition / Deadlock in Android ?


Regards,
_-_Mayank Rana_-_

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

2009-05-04 Thread Mark Murphy

Sheepz wrote:
 but how do I implement overlapping with a relative layout?

Try padding. Card B has left and top aligned with Card A, but Card B has
padding which shifts the card to provide the overlap.

In principle, Romain Guy's answer (write your own layout) is probably
the right one, but writing a layout is not well-documented at this
point, AFAIK.

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

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

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



[android-developers] Re: Problem with extends TabActivity

2009-05-04 Thread Mark Murphy

rico_1 wrote:
 When I add tabs, the app is stopped...

And the error is...what? You can get the error message and Java stack
trace from adb logcat or DDMS.

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

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

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



[android-developers] what is ms for 60000ms, is it ms for Milli second OR for micro second?

2009-05-04 Thread jj



in the requestLocationUpdates(String provider, long minTime, float
minDistance, LocationListener listener)  from
android.location.LocationManager

Background services should be careful about setting a sufficiently
high minTime so that the device doesn't consume too much power by
keeping the GPS or wireless radios on all the time. In particular,
values under 6ms are not recommended.

here what is this 6ms, is it ms for Milli second OR for micro
second?
there is no such specification doc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problem with extends TabActivity

2009-05-04 Thread rico_1



On 4 Maj, 12:32, Mark Murphy mmur...@commonsware.com wrote:
 rico_1 wrote:
  When I add tabs, the app is stopped...

 And the error is...what? You can get the error message and Java stack
 trace from adb logcat or DDMS.


Sorry, my fault... :)
error was:
Unable to find explicit activity class {com.android.tabs/
com.android.tabs.List1}; have you declared this activity in your
AndroidManifest.xml?

I added to AndroidManifest.xml and works.:
 activity android:name=.List1
  android:label=@string/app_name

intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity


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



[android-developers] Re: Android emulator not startup on winxp+msys

2009-05-04 Thread David Turner
MSys is not supported anymore as a compilation environment for the emulator.
You should try using Cygwin instead.
Otherwise, try to run gdb to know exactly where the emulator crashes. It
might help changing the default optimization mode to -O0 -g in
Makefile.android though

On Mon, May 4, 2009 at 10:22 AM, Hua Xia xia...@gmail.com wrote:

 I succeeded in compiling emulator source code on msys. but it could not run
 on msys (winxp)
 when type emulator, prompting words below:

 $ ./emulator
 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.


 If type emulator -verbose, following information shows:

 $ emulator -verbose
 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.


 If type emulator -debug, window shows android emulator usage like below:

 $ emulator -debug
 unknown option '-debug'
 Android Emulator usage:   emulator [options] [-qemu args]
   options:
 -systemdir   search system, ramdisk and userdata images in dir
 -kernelfile  use file as the emulated kernel
 -ramdisk   file  use file as the ramdisk image (default is
 system/ramdisk.img)
 -image file  use file as the system image (default is
 system/system.img)
 -nand0 file  obsolete, same as -image
 -data  file  use file as the working user data disk image
 ..
 who can help me ?

 


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



[android-developers] Re: running emulator image with standard qemu

2009-05-04 Thread David Turner
you could try, but standard QEMU lacks Android-specific hardware emulation,
so I doubt it will run as expected.

On Mon, May 4, 2009 at 9:27 AM, Gustavo gustav...@gmail.com wrote:


 Hi,

 Is it possible to run the android image distributed with the SDK using
 the standard qemu executable (instead of the emulator executable)?

 Thx,
 G.
 


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



[android-developers] Re: what is ms for 60000ms, is it ms for Milli second OR for micro second?

2009-05-04 Thread Peli

I believe it is milliseconds, that is 60 seconds. Microseconds is
usually abbreviate as us if µs is not available on the keyboard.

Simply set minTime to a value greater than 6 and you are on the
safe side.

Peli

On May 4, 12:24 pm, jj jagtap...@gmail.com wrote:
 in the requestLocationUpdates(String provider, long minTime, float
 minDistance, LocationListener listener)  from
 android.location.LocationManager

 Background services should be careful about setting a sufficiently
 high minTime so that the device doesn't consume too much power by
 keeping the GPS or wireless radios on all the time. In particular,
 values under 6ms are not recommended.

 here what is this 6ms, is it ms for Milli second OR for micro
 second?
 there is no such specification doc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Windowmanager, problem with progress

2009-05-04 Thread Sikus

Hello all,
I have problem with Windowmanager. WarrenFaith suggest me add the
Dialog to the Windowmanager on page
http://www.anddev.org/bug_switch_display_numlock_7_while_dialog-t4194.html
, but I don't know how could I do it. Could anybody help me, please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 copy a file from /sdcard to /data ?

2009-05-04 Thread Disconnect
Excellent news :) I hadn't looked at the holiday image that floated past the
other day, so I wasn't aware of the change.

Just OOC does it use the superuser (or equiv) prompt or is it adb-root-only
or..?

On Sun, May 3, 2009 at 10:12 PM, Dianne Hackborn hack...@android.comwrote:

 On Sun, May 3, 2009 at 4:26 PM, Disconnect dc.disconn...@gmail.com wrote

 On an adp1 or holiday phone running official firmware, you can just
 System() the 'su' binary (with no prompts) to do whatever you like.


 Not anymore.

 --
 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] android.intent.extra.videoQuality not working for image capturing

2009-05-04 Thread Guillaume Perrot

When looking at the documentation, we can see that the intent whose
action is ACTION_IMAGE_CAPTURE can have the EXTRA_VIDEO_QUALITY
argument:

The name of the Intent-extra used to control the quality of a
recorded video. This is an integer property. Currently value 0 means
low quality, suitable for MMS messages, and value 1 means high
quality. In the future other quality levels may be added.
Constant Value: android.intent.extra.videoQuality

It sounded strange to me that the argument videoQuality was only for
image capture and not video capture. I decided to test. I saw no
quality difference at all by taking two pictures using this argument
with two different values (0 and 1).

Maybe a documentation bug ?

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

2009-05-04 Thread rjy...@gmail.com

I have tried it, but no do correct.

.java:
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.Button;

public class helloworld extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LinearLayout layout = (LinearLayout) findViewById
(R.id.mainlayout);
Button bt = new Button(this);
bt.setText(Button);
layout.addView(bt);
setContentView(layout);
}
}

main.xml
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/mainlayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=@string/hello
/
/LinearLayout



On 5月4日, 下午6时08分, 6real xirgon...@gmail.com wrote:
 Hi,

 did you try to :

  give an ID to your layout
  find it with the findViewById method
  then you can add your view.

 Rgds,,
 C.

 On May 4, 11:28 am, rjy...@gmail.com rjy...@gmail.com wrote:

  Hi
 I create a application and the main activity reference by the
  main.xml.
  The main.xml has a LinearLayout element. So my code is setContentView
  (R.layout.main) to show the main window.I need add other element such
  as Button or EditView, but I don't want add the XML line to the
  main.xml.I hope use the layout.addView(...) to add the elements to my
  Activity. So I need get the current LinearLayout object and can invoke
  the addView function.
  So How can I get the default layout?
  Thanks.
  
  RongJun Ying
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Obtaining/calculating process CPU usage.

2009-05-04 Thread Donald_W

Hello,

How can I get/calculate current process CPU usage? ActivityManager
provides method that returns a list of all active processes (list of
RunningAppProcessInfo), but that class doesn't provide any CPU usage
information.

Thanks in advance,
Tomek
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Blocking UIThread till the .mp3 file completed in the b/g

2009-05-04 Thread MrSnowflake

Why would you want to block the UI thread?

A better sollution would be to open a ProgressDialog (with the
rotating line), and have that setCancelable(false).

On 4 mei, 15:17, Asif k asifk1...@gmail.com wrote:
 Hi all,

   Is there anyway to block the UI Thread till the .mp3 file completes
 (or in general blocking UI thread till perticular action in the b/g
 thread completes). I had used following code but not got the expected
 result.

 synchronized void playFile() {
 
 mp.start();
 try {
 this.wait();

 } catch(E) {}

 if(mp.isPlaying()==false) {
 mp.notify();

 }
 }

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



[android-developers] Re: Blocking UIThread till the .mp3 file completed in the b/g

2009-05-04 Thread Marco Nelissen
You should never block the UI thread, otherwise you'll get the application
not responding dialog.
If you want to know when playback completes, just set an
OnCompletionListener.


On Mon, May 4, 2009 at 6:17 AM, Asif k asifk1...@gmail.com wrote:


 Hi all,

  Is there anyway to block the UI Thread till the .mp3 file completes
 (or in general blocking UI thread till perticular action in the b/g
 thread completes). I had used following code but not got the expected
 result.


 synchronized void playFile() {
 
 mp.start();
 try {
 this.wait();
 } catch(E) {}

 if(mp.isPlaying()==false) {
 mp.notify();
 }

 }

 Please help. Thanks in advance.


 


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



[android-developers] Re: Get result from settings activity intent

2009-05-04 Thread Mark Murphy

jrgraf...@googlemail.com wrote:
 I am currently trying to launch a GPS settings activity using
 startActivityForResulthowever it never seems to be calling my
 onActivityResult function after it exits. I noticed the docs mentioned
 that some Intent protocols are not defined to return a result, is this
 one such example?

I would be surprised if the settings activities are built to return a
result. After all, most of those activities adjust several settings, so
what would the result be?

 are there any flags that I could set to either make
 the settings activity call onActivityResult, or even better make my
 activity block until the launched activity returns?

That depends on what you mean by block.

Your activity already blocks until the launched activity is closed. All
activities work that way when starting up other activities.

However, in this case, block does not mean startActivity() blocks.
Instead, after you have called startActivity() and returned from
whatever callback you are in, your activity will be stopped and the
settings activity will be opened.

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

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

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



[android-developers] Re: what is ms for 60000ms, is it ms for Milli second OR for micro second?

2009-05-04 Thread Romain Guy

ms is the unit for milliseconds.

On Mon, May 4, 2009 at 4:28 AM, Peli peli0...@googlemail.com wrote:

 I believe it is milliseconds, that is 60 seconds. Microseconds is
 usually abbreviate as us if µs is not available on the keyboard.

 Simply set minTime to a value greater than 6 and you are on the
 safe side.

 Peli

 On May 4, 12:24 pm, jj jagtap...@gmail.com wrote:
 in the requestLocationUpdates(String provider, long minTime, float
 minDistance, LocationListener listener)  from
 android.location.LocationManager

 Background services should be careful about setting a sufficiently
 high minTime so that the device doesn't consume too much power by
 keeping the GPS or wireless radios on all the time. In particular,
 values under 6ms are not recommended.

 here what is this 6ms, is it ms for Milli second OR for micro
 second?
 there is no such specification doc.
 




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

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

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



[android-developers] Re: is android:layout_width and android:layout_height manditory attributes

2009-05-04 Thread Romain Guy

No, it does not make sense to take the parent's value.

On Sun, May 3, 2009 at 11:28 PM, Raja Nagendra Kumar
nagendra.r...@tejasoft.com wrote:

 ok,

 In absence global defaults, could it take the same values as the
 parent (container).. so that UI developer could add these attributes
 only one it is different than parent..

 Regards,
 Raja Nagendra Kumar,
 C.T.O
 www.tejasoft.com



 




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

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

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



[android-developers] Re: ScrollView always fill dialog

2009-05-04 Thread vellanova

Thanks Dianne, I'll give that a try.

-Shon

On May 3, 8:28 pm, Dianne Hackborn hack...@android.com wrote:
 You should be able to achieve this with android:layout_height=0px
 android:layout_weight=1 on the scroll view (with it in a vertical linear
 layout).



 On Sun, May 3, 2009 at 6:41 AM, vellanova vellan...@gmail.com wrote:

  Pulling my hair out on this one. I want a dialog that contains a
  ScrollView with an embedded TextView that will contain what could be a
  couple of pages of text. Below the ScrollView I want a close button.
  Everything I try that doesn't involve directly setting the height of
  the ScrollView results in the ScrollView filling the dialog and the
  button being invisible because it has been pushed off the bottom. I've
  tried about every combination I can think of for layout_height and
  layout_weight of both the ScrollView and the Button but always get the
  same result.

  Anyone know if there is any way to get this to work short of forcing
  the height?

  -Shon

  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
         android:id=@+id/content_layout
         android:orientation=vertical android:layout_width=fill_parent
         android:layout_height=fill_parent
         ScrollView android:layout_width=fill_parent
                 android:layout_height=fill_parent
                 LinearLayout android:id=@+id/about_container
                         android:layout_width=fill_parent
  android:layout_height=fill_parent
                         android:paddingLeft=5dip
  android:paddingRight=5dip
                         android:orientation=vertical
                         TextView android:layout_width=fill_parent
                                 android:layout_height=wrap_content
  android:id=@+id/
  license_text
                                 android:layout_margin=5sp /
                 /LinearLayout
         /ScrollView
         Button android:id=@+id/close_about_btn android:text=@string/
  close
                 android:layout_width=fill_parent
  android:layout_height=fill_parent
                 android:layout_weight=1.0
                 android:padding=5sp /
  /LinearLayout

 --
 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: 1.5 bugs reports

2009-05-04 Thread heasus

On May 3, 9:54 pm, JP joachim.pfeif...@gmail.com wrote:
 Did you restart the device and still have the problems (this is what
 customer service will ask you 1st thing)?

Yes, I have rebooted it multiple times.  Reboot was the only way to
get out of Set-up's exit loop.

 Other than that... your first point of contact would be the source of
 the build. So if you've received and installed an over the air (OTA)
 update from your carrier (T-Mobile), T-Mobile would be your first
 point of contact.

it did come from OTA, but I am not a T-Mobile customer.  Is it
possible
to tell the origin of the build?  I'm guessing that it came from T-
mobile by some default configuration.  But, also guessing by your
comment
that these problems do not appear with the development version of 1.5.

Model is 'Android Dev Phone 1, base band 62.50S.20.17H_2.22.19.26I,
kernel 2.6.27-00392-g8312baf.

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



[android-developers] Cupcake fail

2009-05-04 Thread Tom

I am wondering what the maximum complication in view hierarchy can be.
My app, Wine by the Bar, is failing in ViewRoot.performTraversals()
with a StackOverflowError in 1.5.

Is this hierarchy really too complicated to be handled in Cupcake?

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



[android-developers] Re: Modifying the user interface of Android...possible?

2009-05-04 Thread Disconnect
Just write it as a replacement home applicaiton.

If you're on a unit you are doing full builds for (and it sounds like you
are) then you can do an actual home replacement with it, removing the stock
one and thereby preventing any hope of escape.

On Wed, Apr 29, 2009 at 11:08 PM, Matt_mh matthias.hendri...@gmail.comwrote:


 Hi,

 I am looking for some answers from some of the experts here. I have a
 project in mind that I want to start. It is about using HTC's Touch HD
 phone as a device in a museum with rich media/video about the art and
 the artists on it. Besides the videos and animation, I also want to
 show some content from a web browser. Now my biggestest issue. I do
 not want that the museum guest who pick up the phone for the tour get
 to see the standard Android user interface. Is there a way to develop
 a new user interface that would start up directly once the phone is
 turned on? It should then automatically start the app with the museum
 infos. Later I may want to add some GPS functions and even sms and
 photo taking, etc

 What do you think, how flexible is Android to allow that?

 Any ideas highly appreciated.

 Thanks
 Matt

 


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

2009-05-04 Thread theMerchant

Thank you for your reply.

Is it possible to filter out messages? I do not want to read every SMS
message for example. If I am sending it to my application such as
//SMS12:Hi! I would like to receive it in my application, all other
sms messages should go to the phones sms box.





On May 4, 2:49 am, Android Users androidmai...@gmail.com wrote:
 Hi,

 Implement a BroadcastReceiver class and perform the functions that u intend
 to in the onReceive() method.

 Also, add the class u have implemented as a receiver in the manifest.
 Eg:
 receiver android:name=.ReceiveSms
             intent-filter
                 action
 android:name=android.provider.Telephony.SMS_RECEIVED /
             /intent-filter
         /receiver

 you can check 
 this..http://www.anddev.org/recognize-react_on_incoming_sms-t295.html

 Let me know if u need more information.

 On Sat, May 2, 2009 at 1:34 AM, theMerchant ali.taciro...@gmail.com wrote:

  Hello Everyone,

  I would like to know if anybody knows how I can start my application
  with an incoming SMS message.

  For example, I send an SMS message from phone A to Phone B. When Phone
  B receives the message, it checks if it is sent to my program. If it
  is, it starts(run) my application. Important thing here is that my
  program is not running in the device unless SMS is received, so it can
  not be listening for SMS itself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: 1.5 bugs reports

2009-05-04 Thread Marco Nelissen
On Fri, May 1, 2009 at 4:47 PM, heasus hea...@gmail.com wrote:


 Is this the right place to report bugs?


No, the right place to report bugs is at http://b.android.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] Get result from settings activity intent

2009-05-04 Thread jrgraf...@googlemail.com

Hey all,

I am currently trying to launch a GPS settings activity using
startActivityForResulthowever it never seems to be calling my
onActivityResult function after it exits. I noticed the docs mentioned
that some Intent protocols are not defined to return a result, is this
one such example? are there any flags that I could set to either make
the settings activity call onActivityResult, or even better make my
activity block until the launched activity returns?

Btw this is the current code I used to launch the GPS settings menu
from my activity:

ComponentName toLaunch;
Intent intent;
toLaunch = new ComponentName
(com.android.settings,com.android.settings.SecuritySettings);
intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setComponent(toLaunch);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivityForResult(intent, 0);

Thanks,

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



[android-developers] Blocking UIThread till the .mp3 file completed in the b/g

2009-05-04 Thread Asif k

Hi all,

  Is there anyway to block the UI Thread till the .mp3 file completes
(or in general blocking UI thread till perticular action in the b/g
thread completes). I had used following code but not got the expected
result.


synchronized void playFile() {

mp.start();
try {
this.wait();
} catch(E) {}

if(mp.isPlaying()==false) {
mp.notify();
}

}

Please help. 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] Is it possible to get the list of notifications ?

2009-05-04 Thread farida

I want to get the list of all the notifications present in the android
noifications drawer, is it possible to get the notifications list? If
yes the please let me know the way to get the notifications list.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to query the number of rows in a table

2009-05-04 Thread Lucius Fox

Hi,

Can you please tell me how to query the number of rows in a table in
Android? Assume I have the name of the table in string.

Thank you.

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



[android-developers] Anyone else lose their ratings in the developer console?

2009-05-04 Thread bwilliam...@gmail.com

Looking in developer console (at market.android.com) this morning, one
of my 4 published apps is now showing 0 ratings and 0 stars, where I
previously had 49 ratings and 4 stars.  The ratings/comments still
look fine in cyrket and the market itself, so I wouldn't care, except
that this coincided with dropping from 7th the 9th in its category's
By Popularity list.

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



[android-developers] Re: How to query the number of rows in a table

2009-05-04 Thread Marco Nelissen
select count(*) from table
See also http://sqlite.org/lang.html

On Mon, May 4, 2009 at 9:51 AM, Lucius Fox lucius.fo...@gmail.com wrote:


 Hi,

 Can you please tell me how to query the number of rows in a table in
 Android? Assume I have the name of the table in string.

 Thank you.

 


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



[android-developers] Re: AbsoluteLayout deprecated ... a simple example to be complaint with 1.5 SDK ?

2009-05-04 Thread Sundog

Great thinking here.

I have a highly rated app that simply... could... not... be...
written... without AbsoluteLayout, no matter whose Java sensibilities
it steps on. I guess Android's doing so well with apps that it can
afford to shut down an entire category of games.

Oh well. Glad I got it in early, looks like I won't be having any
competition on that one.



On May 4, 3:34 am, 6real xirgon...@gmail.com wrote:
 Hello,

 could someone give a simple example to replace an AbsoluteLayout with
 Frame and Relative Layout ?

 Example :
 I have to put a view on my screen with the position x, y and with a
 width/height of w and h... How do I do that without AbsoluteLayout ?

 Actually I will change it on my app but I am wondering the best way of
 doing... It seems now we have to handle with margins instead of x and
 y ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Displaying a now loading image while applic is, well, loading

2009-05-04 Thread GiladH

Hey,

I want to display a fancy 'loading' image at my app's startup time.

The problem: my startup code is mostly GUI related, hence needs to run
on UI thread.

Is there a way to do both - that is run UI-related code on UI thread
while an image
is displayed to the user?


GiladH


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Displaying a now loading image while applic is, well, loading

2009-05-04 Thread Jeff Sharkey

Take a peek at AsyncTask, it can help you easily (and correctly)
transition between UI and background threads:

http://d.android.com/reference/android/os/AsyncTask.html

j

On Mon, May 4, 2009 at 10:02 AM, GiladH gila...@gmail.com wrote:

 Hey,

 I want to display a fancy 'loading' image at my app's startup time.

 The problem: my startup code is mostly GUI related, hence needs to run
 on UI thread.

 Is there a way to do both - that is run UI-related code on UI thread
 while an image
 is displayed to the user?


 GiladH


 




-- 
Jeff Sharkey
jshar...@google.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: AbsoluteLayout deprecated ... a simple example to be complaint with 1.5 SDK ?

2009-05-04 Thread Mark Murphy

Sundog wrote:
 I have a highly rated app that simply... could... not... be...
 written... without AbsoluteLayout

Hogwash!

AbsoluteLayout is written in Java. You can find it on Google Code Search.

Ergo, it is possible to create an application that works exactly as
yours does that does not use Android's AbsoluteLayout. Worst-case
scenario, you clone AbsoluteLayout into your own app's namespace.
Best-case scenario, you make your own layout class, leveraging
AbsoluteLayout's implementation, to make something that is
better-performing and/or more maintainable for your own app. Either way,
you are no longer dependent on there being an AbsoluteLayout class in
Android proper.

Somebody -- and somebody may wind up being me, someday -- needs to
write up Layout Creation 101, since the stock answer for replacing
AbsoluteLayout seems to be to write a custom layout class...but I am
unaware of any advice or instructions for how to do this. If anyone has
a link to something, post it!

-- 
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: How to pass custom attributes to a custom DialogPreference?

2009-05-04 Thread efu

Managed to resolve this myself

The problem is the two lines:
   minValue = a.getInteger(R.attr.valueMin, 0);
   minLabel = a.getString(R.attr.labelMin);

It should be using R.styleable.xyz constants.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: adb shell am profile

2009-05-04 Thread fadden

On May 1, 4:43 pm, Dan Raaka danra...@gmail.com wrote:
 # am profile 3432 start TMprofile.log

Try a full path, like /sdcard/TMprofile.log.  I think there's a bug
where, if the file can't be opened, the process fails with a null
pointer exception.

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

2009-05-04 Thread Jonapin

Hi havexz,

Do You find the solution?

Jonapin

On 24 abr, 12:19, havexz bali.param...@gmail.com wrote:
 Someone have any idea

 On Mar 30, 1:19 am, havexz bali.param...@gmail.com wrote:

  I want to send the Email inHTMLformat. Currently i am using the
  default textformatusing the Intent.

  sendIntent.putExtra(Intent.EXTRA_TEXT, helleo);

  But I want to send the email inhtmlformatsomething llike

  htmlbodyhelleo/body/html

  Is there a way to send the mail inhtmlformat?

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



[android-developers] youtube on android

2009-05-04 Thread ebinjose...@gmail.com

Hi All,

I want to playback youtube videos on android. I came to know (from the
below mentioned link) that adobe demostrated flash player for android,
but they haven't released the code yet.

http://www.androidauthority.com/index.php/2008/11/17/flash-player-on-android-yes-indeed/

Is there an alternative way to playback youtube video's on android ?
Is there an application that supports flash content playback on
android already (though I couldn't find any on android market or
related sites) or any development work is underway ?

Thanks in advance,

Ebin.

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



[android-developers] How to chage the image of an image button when it is onfocus/onclick/onrelease

2009-05-04 Thread JITU

Hi,

I am jyotiranjan and very much new to Android.

I know how to create an image button, but only in static state. I want
the image button should behaves like..

Example
Play Button:

State 1:Blue color
State 2:Green (OnFocus)
State 3:Red (On Pressed)
State 4:Black (On Release)

All four States are different images.

Please help me how  can i achive this respect to XML and Java.


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: MediaRecorder setCamera function

2009-05-04 Thread ever

I am also looking for the usage of setCamera to set the camera opened
by the Camera app,
and get the warming message:
W/CameraService(  966): Tried to connect to locked camera

Above the warming line in CameraService.cpp are the comments:
// I hate this hack, but things get really ugly when the media
recorder
// service is handing back the camera to the app. The
ICameraClient
// destructor will be called during the same IPC, making it look
like
// the remote client is trying to disconnect. This hack
temporarily
// sets the mClientPid to an invalid pid to prevent the hardware
from
//  being torn down.

anybody knows the exact usage of setCamera?

On 5月3日, 上午11時30分, bra...@gmail.com peacoc...@gmail.com wrote:
 Ok posted this several days ago but it appears to have been deleted.

 I am looking for clarification on the setCamera function. One would
 have assumed you could open a camera device and set it as the input
 device of the MediaRecorder. However this causes a crash because no
 matter what I do it tries to open a locked device. I have tried
 removing the line setsource and this causes all sorts of other issues,
 not the least of which being that no other set functions will work
 without that line.

 Would appreciate a description of exactly WHAT the setCamera function
 is for.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Problems with 1.5 r1 on 64 bit Ubuntu 9.04?

2009-05-04 Thread cary

Thanks, worked for me as well.

On May 1, 8:34 am, csyperski csyper...@gmail.com wrote:
 If anyone else has the issue it can be resolved by:

 Window - Preferences - Click Arrow next to android, not text itself
 or it will crash - Usage Stats - Send usage stats to google set to
 checked.

 I have no idea why this worked, but it fixed my problem.

 On May 1, 7:50 am, csyperski csyper...@gmail.com wrote:

  I tried to set auto update and it didn't seem to help.  I even created
  a new empty workspace.  I happens most when I go to Window -
  Prefences - android

  That is when the message pops up, I doesn't allow me to set the sdk
  path!

  On May 1, 7:44 am, Eric Chen jude...@gmail.com wrote:

   I fixed the problem by restart Eclipse and set the Auto update, may be you
   should try to fix the project too.
   Best Regards

   Eric Chen

   On Fri, May 1, 2009 at 8:33 PM, csyperski csyper...@gmail.com wrote:

Here is what I am getting in my .log file:

!ENTRY com.android.ide.eclipse.adt 4 0 2009-05-01 07:28:32.470
!MESSAGE pingUsageServer failed
!STACK 0
org.eclipse.swt.SWTError: Not implemented [multiple displays]
       at org.eclipse.swt.SWT.error(SWT.java:3803)
       at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:712)
       at org.eclipse.swt.widgets.Display.create(Display.java:842)
       at org.eclipse.swt.graphics.Device.init(Device.java:154)
       at org.eclipse.swt.widgets.Display.init(Display.java:471)
       at org.eclipse.swt.widgets.Display.init(Display.java:462)
       at com.android.sdkstats.SdkStatsService.getUserPermission
(SdkStatsService.java:278)
       at 
com.android.sdkstats.SdkStatsService.ping(SdkStatsService.java:
126)
       at com.android.ide.eclipse.common.SdkStatsHelper.pingUsageServer
(Unknown Source)
       at com.android.ide.eclipse.adt.AdtPlugin$12.run(Unknown Source)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

On May 1, 7:03 am, csyperski csyper...@gmail.com wrote:
 Has anyone been able to get the sdk version 1.5 to work with Ubuntu
 9.04 (64 bit)?  I have tried the upgrade from and it fails with:

 Eclipse throws a An SWT Error has occurred... message then I get a
 second dialog saying:

 pingUsageServer failed

 Android SDK Ping
 pingUsageServer failed

 Anyone else getting this?  I tried to do a reinstall of the sdk and
 eclipse and I have the same issue.  Everything worked great with SDK
 1.1 R1

 Any help would be greatly appreciated!

 Thanks,
 Chuck

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



[android-developers] Anybody know permission's protectionlevel?

2009-05-04 Thread twins

As I know, if I define my own permission, I can assign protectionlelel
to it.
But there are so many android permission, and  I don't know their
default protectionlevel, where can I find it?
Thanks!

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



[android-developers] Calling ListView.setSelection has no effect when called directly after adapter data was invalidated

2009-05-04 Thread Johannes Rudolph

Hi,

I have a ListView whose position should be changed automatically along
with the data. So, when the adapter's data has changed (adapter is
calling notifyDataSetInvalidated), I'm calling setSelection. This has
no effect. If the call to setSelection is done later (e.g. in a click
handler) it is working.

The second problem is, that the ListView maintains the scroll position
of the list although the data is completely invalidated, that makes no
sense IMO.

It looks like a call to layoutChildren before the call to setSelection
does help in this case, but layoutChildren is protected.

What is the correct way to do this?

Johannes

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



[android-developers] How to refresh or update gridview by code

2009-05-04 Thread Gustavo Porpino
Hello,
I implement a game OnlyOne on android (atached) when i using screen events
(click, changed selected ) the game is working, but i am implementing a task
witch will resolve the game, here is my problem i can not refresh the screen
or grid view by code, i don't know what is to refresh and don't konw how to.

help me!!!
Thanks!

-- 
Gustavo Porpino Coutinho

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

inline: onlyone.gif

[android-developers] Re: How to draw directly on screen without calling invalidate?

2009-05-04 Thread Sukitha Udugamasooriya

Hello,

I'm also facing this problem. I'm relatively new to Android.

Have you found the solution??

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



[android-developers] What units does Location.getAltitude() return in?

2009-05-04 Thread Henry

I live in an area which is 9 feet above sea level, and when I call
getAltitude I get back a value less than -10.  Am I doing something
wrong, is my device a failure, or is there some nifty scale that I
don't know about?

thanks for the help,

-- Henry

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



[android-developers] Bug using BroadcastReceivers in the App Widget Framework ?

2009-05-04 Thread Alea

Hi!

I started to implement my own App Widget using the example provided in
the ApiDemos. In order to update the Widget efficiently I chose the
BroadcastReceiver mechanism. In the ApiDemos there is this
ExampleBroadcastReceiver which would (or should) react to changes
related to TimeZone and Time as specified in the AndroidManifest of
the ApiDemos.

I have debugged this Example using Eclipse and the Logcat output
(provoking changes in TimeZone through the settings) and come to the
conclusion that there must be some bug in the app widget framework.
The only BroadcastReceiver that seems to work is the AppWidgetProvider
itself.

For instance I would expect something like: D/ExampleBroadcastReceiver
intent=XY in the logcat's output after I have provoked the event XY.

I have even tried without the 'enabled' option in the receiver's
specification in the AndroidManifest.

BroadcastReceivers are needed to keep the update rate of my
AppWidgetProvider low and to be battery friendly. As for now my own
AppWidget Implementation that I have written has an update rate of 10
minutes which I could change to once a day if I could use the
BroadcastReceiver mechanism.

Hopefully this useful feature can be enabled somehow. Is anyone else
aware of this problem? Or maybe is there even a solution to this issue
I am experiencing? Do I have to enable the BroadcastReceiver by code
and not via the xml?

Cheers,

a desperate AppWidget developer

.By the way there are some copypaste errors in the
ExampleAppWidgetProvider: onEnabled / onDisabled; comment and code
(eg. PackageManager.COMPONENT_ENABLED_STATE_ENABLED).

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



[android-developers] Android Market payment options

2009-05-04 Thread Mikhail Barashkov

Hi Everybody,
Got a simple question: what are current developer payment options in the
Market (e.g. check, wire, PayPal, etc.)? I don't want to register my
account just yet and wanted to check this.
Thanks
Mikhail
Handydev



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Button (with background image ) doesn't show press action

2009-05-04 Thread poncz

How do you create a state-list drawable?
Do you have an 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] scrolling in a dialog

2009-05-04 Thread Arno den Hond

Hi :)

I have a dialog with quite a few components.
They all fit into a single screen in portrait mode, but the bottom
half isn't visible when in landscape mode.
This would be acceptable if it were possible to scroll down however I
can't get that to work! :(
I have tried all the scrollbars flags on the layout but this has no
effect!

Would greatly appreciate any clues..

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

2009-05-04 Thread venkat ramana

Hi,

I am new to android development. I am trying to open a webpage through
my application. It is working fine but i am facing a small issue.

When the application is starting for the first time, browser's default
home page is opening first then in another browser window my website
is opened through the application.

How do i get rid of this issue?


Any help is greatly appreciated.


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



[android-developers] Browser specs

2009-05-04 Thread tekinico

Hey everyone !

I've been trying to collect information about Android web browser
specifications, like html/css versions, security protocols, Java/Flash
support, etc...

Does anyone know where to find this info ? it seems pretty critical
and yet i couldn't find anything...

I googled it though ... ; )

thx !

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



[android-developers] Webview Broken in 1.5 SDK?

2009-05-04 Thread sss

Can anyone confirm the fact that webview is broken in the 1.5 sdk?
Either that, or update the code page on the google developer side as
neither that code nor any other (including my previously working
webview code) is showing anything but a blank black screen.

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



[android-developers] create new home screen

2009-05-04 Thread droiddroid

How are aHome and Sweeter home hijacking the home page?  I have the
SDK, but have no idea how to do it. Do I have to get source code for
the whole app.

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] How to get verbose build output

2009-05-04 Thread ming yang
To build full android source code,  we get a silent output.
We only know which file be involved, but I want to get more
detail information, such as build parameter, input file,outpot file,
warning, and so on.
How to get these detail information?


Yangm.

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



[android-developers] Timer doesn't work

2009-05-04 Thread kaloer

Hi,
I am using a Timer in my android application, but i can't get it to
work. When I start my application the Timer simply does not start. The
application continues but does not update.

The long toStart finds the number of seconds left of the current
minute, and thereafter the period is set to 60 seconds. The TimerTask
simply calls a method.

This is the first part of the class containing the Timer:

public class infoUpdate extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Calendar cal = Calendar.getInstance();
updateTime();
long toStart = ( 60 - cal.get(Calendar.SECOND) ) * 1000;
Timer firstTimer = new Timer(false);
firstTimer.schedule(new TimerTask() {
@Override
public void run() {
updateTime();
}
}, toStart, 6);
}




-
Thank you very much,
//Kaloer

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 booting with new Android 1.5 (API level 3)

2009-05-04 Thread elad

Hello,
John
Have you solve your problem?

elad

On 4月25日, 下午5时37分, John arunpra...@gmail.com wrote:
 Hello friends,
  I downloded the latest Android opensource 1.5 (API
 level 3) dated 24-April-2009  from GIT and compiled for to boot with
 the omap 2430 board.But after the Android logo am getting system
 halted message in the minicom and in target lcd it displays as the
 battery is getting low less than 15% remaining and then the power off
 msg comes and the system hangs there.

 Any help would be highly appreciated.

 logcat message for system halting

 D/ActivityManager(  565): Start running!
 I/Zygote  (  565): Process: zygote socket opened
 I/ActivityManager(  565): Start proc com.android.phone for added
 application com.android.phone: pid=602 uid=1001 gids={3002, 3001,
 3003}
 I/ActivityManager(  565): Start proc android.process.acore for
 activity com.android.launcher/.Launcher: pid=604 uid=1 gids={3003}
 D/ShutdownThread(  565): Notifying thread to start radio shutdown
 W/ResourceType(  565): No package identifier when getting value for
 resource number 0x
 W/StatusBar(  565): Icon not found in system: 0
 D/ShutdownThread(  565): Radio aSystem halted.
 nd Bluetooth shutdown complete.
 D/ShutdownThread(  565): Shutting down power.
 I/ActivityThread(  604): Publishing provider user_dictionary:
 com.android.providers.userdictionary.UserDictionaryProvider
 D/StatusBar(  565): updateResources
 I/ActivityThread(  604): Publishing provider
 com.android.googlesearch.SuggestionProvider:
 com.android.googlesearch.SuggestionProvider
 I/ActivityThread(  602): Publishing provider mms-sms:
 com.android.providers.telephony.MmsSmsProvider
 I/ActivityThread(  604): Publishing provider contacts;call_log:
 com.android.providers.contacts.ContactsProvider
 I/ActivityThread(  602): Publishing provider mms:
 com.android.providers.telephony.MmsProvider
 I/ActivityThread(  602): Publishing provider telephony:
 com.android.providers.telephony.TelephonyProvider
 I/ActivityThread(  602): Publishing provider sms:
 com.android.providers.telephony.SmsProvider
 I/ActivityThread(  602): Publishing provider sim:
 com.android.phone.SimProvider
 W/ActivityManager(  565): Unable to start service Intent
 { action=android.accounts.IAccountsService comp=
 {com.google.android.googleapps/
 com.google.android.googleapps.GoogleLoginService} }: not found
 W/AccountMonitor(  604): Couldn't connect to Intent
 { action=android.accounts.IAccountsService comp=
 {com.google.android.googleapps/
 com.google.android.googleapps.GoogleLoginService} } (Missing service?)
 I/ActivityThread(  604): Publishing provider
 com.android.launcher.settings: com.android.launcher.LauncherProvider
 E/ApplicationContext(  604): Couldn't rename file /data/data/
 com.android.launcher/shared_prefs/launcher.xml to backup file /data/
 data/com.android.launcher/shared_prefs/launcher.xml.bak

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



[android-developers] Browser app not reading latitude, longitude in emulator.

2009-05-04 Thread Thomas

Using Eclipse Ganymede
I found various bits of code on the internet and put together some
code to test javascript and Android attaching latitude, longitude to a
browser form application. If I comment out the location loc code and
execute the two assignment lines, things work as expected.  The
javascript code in the browser picks up latitude, longitude.  With the
loc code, the browser displays a blank screen for a moment and then
goes away.  Any help and thoughts appreciated
Regards, Tom Birchmire

Android code:
package com.gpsmancer.gpstest;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
 import android.location.LocationManager;
import android.webkit.WebView;

public class gps_lat_lon extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
WebView wv = new WebView (this);
wv.getSettings().setJavaScriptEnabled (true);
JsObj jo = new JsObj (this);
wv.addJavascriptInterface ( jo, roid ) ;
setContentView (wv);
wv.loadUrl( http://gpsmancer.com/android/
androidgpstest.html);

}
  class JsObj {
private Context  con;
   public JsObj (Context con) {
this.con = con;
   }
  public String gps (String top, String end) {
LocationManager locman = (LocationManager) con.getSystemService
(Context.LOCATION_SERVICE);
  //Location loc = locman.getLastKnownLocation( gps ) ;
  //  int lat = (int) (loc.getLatitude () * 100);
  //  int lon = (int) (loc.getLongitude () * 100);
   int lat = (int) (43.123456 * 100  );
   int lon = (int) (71.234567 * 100 ) ;
  return top + Latitude: + lat + , longitude: + lon + end;
  }

  }
}

Browser code:
html
   headtitleJS calls Android Method/title/head
   body
 h1JS on Android/h1
 script type=text/javascript
   document.write(roid.gps(i, /i));
 /script
   /body
 /html

Manifest Permissions:
?xml version=1.0 encoding=utf-8?
some code omittted
uses-permission android:name=android.permission.INTERNET/uses-
permission
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_MOCK_LOCATION/uses-
permission

/manifest






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



[android-developers] Debugging C++ Applications

2009-05-04 Thread Maha

Hi All,

   I am able to see the logs generated from java program (using Log
class or System.out.println) using adb logcat.

   Can anyone tell me how to see the printf/cout statements in C++
application for android.

Thanks,
Maha

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

2009-05-04 Thread Mark Murphy

droiddroid wrote:
 How are aHome and Sweeter home hijacking the home page?  I have the
 SDK, but have no idea how to do it. 

The Android SDK comes with a sample home screen application.

Most of the magic is in the AndroidManifest.xml file:

activity android:name=Home
android:theme=@style/Theme
android:launchMode=singleInstance
android:stateNotNeeded=true
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.HOME/
category android:name=android.intent.category.DEFAULT /
/intent-filter
/activity

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

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

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



[android-developers] sdcard on emulator mounted read only !!

2009-05-04 Thread Dan Raaka

Using android-1.5 tagged source from cupcake branch

created an sdcard image
$ ./out/host/linux-x86/bin/mksdcard 64M sdcard.img
launched the emulator to use the above image
$  emulator -sdcard ./sdcard.img -scale 0.75 
$ adb shell ls -l
drwxrwxrwt root root  2009-05-04 18:00
sqlite_stmt_journals
drwxrwx--- system   cache 2009-05-04 18:00 cache
d- system   system2009-05-04 18:00 sdcard
lrwxrwxrwx root root  2009-05-04 18:00 etc - /system/
etc
drwxr-xr-x root root  2009-04-29 20:49 system
drwxr-xr-x root root  1970-01-01 00:00 sys
drwxr-x--- root root  1970-01-01 00:00 sbin
dr-xr-xr-x root root  1970-01-01 00:00 proc
-rwxr-x--- root root 9075 1970-01-01 00:00 init.rc
-rwxr-x--- root root 1677 1970-01-01 00:00
init.goldfish.rc
-rwxr-x--- root root   106568 1970-01-01 00:00 init
-rw-r--r-- root root  118 1970-01-01 00:00 default.prop
drwxrwx--x system   system2009-04-30 22:59 data
drwx-- root root  1970-01-01 00:00 root
drwxr-xr-x root root  2009-05-04 18:01 dev
$ adb shell
# mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock0 /system yaffs2 ro 0 0
/dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0


The sdcard is mounted READ-ONLY !! and doesn;t even get listed as
mounted !!
whats going on here ?

All i wanted to do use sdcard with emulator for debugging(method
tracing) an 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: Calling ListView.setSelection has no effect when called directly after adapter data was invalidated

2009-05-04 Thread Romain Guy

When the data is invalidated the scroll position is lost.

 It looks like a call to layoutChildren before the call to setSelection
 does help in this case, but layoutChildren is protected.

 What is the correct way to do this?

Just View.post() your call to setSelection().

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

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

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



[android-developers] Re: AudioFlinger - many write blocked for log WARN messages

2009-05-04 Thread Mark Carter

On May 3, 10:08 pm, Marco Nelissen marc...@android.com wrote:
 If this is in the emulator, I would just ignore them.

The problem is that it makes reading the log file much more difficult
because it is constantly scrolling.

Is there any way to filter out such log messages in eclipse?

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

2009-05-04 Thread Mark Murphy

sss wrote:
 Can anyone confirm the fact that webview is broken in the 1.5 sdk?

WebView is not broken in the Android 1.5 SDK.

 Either that, or update the code page on the google developer side as
 neither that code nor any other (including my previously working
 webview code) is showing anything but a blank black screen.

Can you provide a link to the code in question? You might get more help
that way.

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

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

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



[android-developers] Re: Browser app not reading latitude, longitude in emulator.

2009-05-04 Thread Mark Murphy

Thomas wrote:
 Using Eclipse Ganymede
 I found various bits of code on the internet and put together some
 code to test javascript and Android attaching latitude, longitude to a
 browser form application. If I comment out the location loc code and
 execute the two assignment lines, things work as expected.  The
 javascript code in the browser picks up latitude, longitude.  With the
 loc code, the browser displays a blank screen for a moment and then
 goes away.  Any help and thoughts appreciated

getLastKnownLocation() may return null.

You can find a worked-out edition of the same sort of code at:

http://commonsware.com/AdvAndroid

Scroll down, download the source code via the link, and look at the
WebView/GeoWeb1 and WebView/GeoWeb2 projects.

For these, in the emulator, you need to use DDMS to feed in a fake GPS fix.

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

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

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



[android-developers] LinearLayout over MapView in MapActivity

2009-05-04 Thread olko

Hi, I am trying to get an instance of LinearLayout over MapView in a
MapActivity:

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent 

com.google.android.maps.MapView
android:id=@+id/map_view
android:layout_width=fill_parent
android:layout_height=fill_parent
android:enabled=true
android:clickable=true
android:apiKey=@string/google_map_api_key_debug /

LinearLayout
android:id=@+id/zoom_controls
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignBottom=@id/map_view
android:layout_centerHorizontal=true /

atm.locator.nl.InfoView
android:id=@+id/info_view
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_centerInParent=true
android:visibility=gone /

/RelativeLayout

?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/info_view
android:orientation=vertical
android:layout_centerInParent=true
android:layout_width=wrap_content
android:layout_height=wrap_content 

TextView
android:id=@+id/info_header
style=@style/info_header
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Info header /

TextView
android:id=@+id/info_body
style=@style/info_body
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Info body /

/LinearLayout

I am failing to make the LinearLayout visible - I bring it to front
and change its visibility like this:

info_view.bringToFront();
info_view.setVisibility(LinearLayout.VISIBLE);

After this I see that the info_view.isShown is true and its visibility
set correct. Moreover the info_view reacts on touches - onTouchEvent
is called, but it stays misteriously invisible.

Any ideas how to make it visible?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Anyone working on a Dex decompiler ? I am doing one .

2009-05-04 Thread strazzere

Dedexer is the best one I've come across and made some fixes too...
open-source too

http://dedexer.sourceforge.net/

On May 4, 9:59 am, Disconnect dc.disconn...@gmail.com wrote:
 Jesusfreke has one (sali? sami? something like that, sorry I don't have a
 link.)

 I'll try to get the link for you later today.



 On Sun, May 3, 2009 at 7:25 PM, Wendal Chen wendal1...@gmail.com wrote:

  I am working on a Java app to decompiler dex file .

  Is there anyone are working about that too ?

  I had create a project onhttp://code.google.com/p/dex-decomplier/,
  pls take a look.

  Do hope for you join. If you want to join , pls send me a mail .- 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: Bug using BroadcastReceivers in the App Widget Framework ?

2009-05-04 Thread Jeff Sharkey

Hmm, I haven't peeked at the ApiDemos code in awhile, but it was
working last time I checked.  Are you testing on a device or the
emulator?  The emulator might not be sending off actual
TIMEZONE_CHANGED broadcasts.

j

On Mon, May 4, 2009 at 7:52 AM, Alea agroessba...@gmail.com wrote:

 Hi!

 I started to implement my own App Widget using the example provided in
 the ApiDemos. In order to update the Widget efficiently I chose the
 BroadcastReceiver mechanism. In the ApiDemos there is this
 ExampleBroadcastReceiver which would (or should) react to changes
 related to TimeZone and Time as specified in the AndroidManifest of
 the ApiDemos.

 I have debugged this Example using Eclipse and the Logcat output
 (provoking changes in TimeZone through the settings) and come to the
 conclusion that there must be some bug in the app widget framework.
 The only BroadcastReceiver that seems to work is the AppWidgetProvider
 itself.

 For instance I would expect something like: D/ExampleBroadcastReceiver
 intent=XY in the logcat's output after I have provoked the event XY.

 I have even tried without the 'enabled' option in the receiver's
 specification in the AndroidManifest.

 BroadcastReceivers are needed to keep the update rate of my
 AppWidgetProvider low and to be battery friendly. As for now my own
 AppWidget Implementation that I have written has an update rate of 10
 minutes which I could change to once a day if I could use the
 BroadcastReceiver mechanism.

 Hopefully this useful feature can be enabled somehow. Is anyone else
 aware of this problem? Or maybe is there even a solution to this issue
 I am experiencing? Do I have to enable the BroadcastReceiver by code
 and not via the xml?

 Cheers,

 a desperate AppWidget developer

 .By the way there are some copypaste errors in the
 ExampleAppWidgetProvider: onEnabled / onDisabled; comment and code
 (eg. PackageManager.COMPONENT_ENABLED_STATE_ENABLED).

 




-- 
Jeff Sharkey
jshar...@google.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: sdcard on emulator mounted read only !!

2009-05-04 Thread Marco Nelissen
On Mon, May 4, 2009 at 11:08 AM, Dan Raaka danra...@gmail.com wrote:


 Using android-1.5 tagged source from cupcake branch

 created an sdcard image
 $ ./out/host/linux-x86/bin/mksdcard 64M sdcard.img
 launched the emulator to use the above image
 $  emulator -sdcard ./sdcard.img -scale 0.75 
 $ adb shell ls -l
 drwxrwxrwt root root  2009-05-04 18:00
 sqlite_stmt_journals
 drwxrwx--- system   cache 2009-05-04 18:00 cache
 d- system   system2009-05-04 18:00 sdcard
 lrwxrwxrwx root root  2009-05-04 18:00 etc - /system/
 etc
 drwxr-xr-x root root  2009-04-29 20:49 system
 drwxr-xr-x root root  1970-01-01 00:00 sys
 drwxr-x--- root root  1970-01-01 00:00 sbin
 dr-xr-xr-x root root  1970-01-01 00:00 proc
 -rwxr-x--- root root 9075 1970-01-01 00:00 init.rc
 -rwxr-x--- root root 1677 1970-01-01 00:00
 init.goldfish.rc
 -rwxr-x--- root root   106568 1970-01-01 00:00 init
 -rw-r--r-- root root  118 1970-01-01 00:00 default.prop
 drwxrwx--x system   system2009-04-30 22:59 data
 drwx-- root root  1970-01-01 00:00 root
 drwxr-xr-x root root  2009-05-04 18:01 dev
 $ adb shell
 # mount
 rootfs / rootfs ro 0 0
 tmpfs /dev tmpfs rw,mode=755 0 0
 devpts /dev/pts devpts rw,mode=600 0 0
 proc /proc proc rw 0 0
 sysfs /sys sysfs rw 0 0
 tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
 /dev/block/mtdblock0 /system yaffs2 ro 0 0
 /dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0
 /dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0


 The sdcard is mounted READ-ONLY !! and doesn;t even get listed as
 mounted !!
 whats going on here ?


It's not mounted read-only. It's not mounted at all, and the /sdcard
mountpoint is read only to you.
There's probably something in the log that explains why it didn't get
mounted.

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



  1   2   >