[android-developers] Re: About WebView setOnClickListener

2008-10-30 Thread Dikers

WidgetAbsoluteLayout contentView = null;
WebView mWebView = null;

contentView = new AbsoluteLayout (this);

setContentView(contentView);

mWebView = new WebView(this);
mWebView.setWebViewClient(new SingleWebViewClient());
WebSettings s = mWebView.getSettings();

   contentView.initPosition(x_range, y_range);

mWebView.setBackgroundColor(Color.TRANSPARENT);
mWebView.setWebChromeClient(new WebChromeClient());
mWebView.setFocusableInTouchMode(true);


 AbsoluteLayout.LayoutParams lp = new AbsoluteLayout.LayoutParams(
LayoutParams.WRAP_CONTENT, 
LayoutParams.WRAP_CONTENT, x_range,
y_range);


contentView.addView(mWebView, lp);

 mWebView.setOnClickListener(new OnClickListener(){
public void onClick(View v){
Log.d(TAG, do something.);

   }});

onClick() method doesn't work.

On Oct 25, 4:38 am, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
 Could you post some code about how you construct the WebView and set
 the onClickListener?

 Cheers,
 Justin
 Android Team @ Google

 On Oct 21, 2:56 am, Dikers [EMAIL PROTECTED] wrote:

  I set a onclickListener on a webView, but when I click this webView,
  It doesn't work . Who can tell me about 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Help me.... To play dynamic media(.mp4) file based on user input

2008-10-30 Thread AndroidKid

Hi All,

I've executed one android application to display the static
video(.mp4) file. That was working fine.

Now, I would like to play the media (video) based on the language that
the user chooses.  Meaning, this software will send the user
preferences to a server.  Server will stream the content based on user
preferences.

Here, to test this application, Whether can I use any video streaming
website or should I have a local server with video streaming.

Thanks in advance!

Thanks Again,
Yasmin
--
Everything is Possible For U only
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to put apk to G1 Phone

2008-10-30 Thread yasmin afrose
Hi armandalea,


Thanks for your detailes guidance.

But I'm unable to follow it :( . Since In my HTC p3400, Menu  Settings 
Personal tab, System Tab and Connection Tab is there. Each tab has no of
operation except Development(What you mentioned).

My Mobile OS is Windows Mobile 5.0 Packet PC Phone Edition.

Is it possible to run our android application within my mobile?

Thanks in advance.




On Thu, Oct 30, 2008 at 5:30 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED]wrote:


 They forget to mention that the Applications menu is actually under
 settings--then you will be able to find the development and usb
 debugging.  As for #3, you have to download the usb-android file to
 your computer  unzip it.  When you plug your phone to computer via
 usb, you should be able to run your app and download it to your
 phone.  If you don't have emulator running, it will download
 automatically to the phone.  Hope this helps!
 A

 On Oct 29, 6:45 am, yasmin afrose [EMAIL PROTECTED] wrote:
  Hi,
 
  I'm using HTC touch phone with Windows mobile 5.0 OS.
 
  I've connected my mobile with Computer with USB.
 
  1.  I've included debuggable = true within Manifest.xml file.
  2.  How can I turn  on USB Debugging on HTC touch phone.
  3. where is Device Chooser dialog box...when it will appears..
 
  http://code.google.com/android/intro/develop-and-debug.htmlunder this
 link
  , I can't get step 2  3.
 
  Please help me as soon as possible.
 
  Thanks in advance.
 
  Thanks,
  Yasmin
 
  On Fri, Oct 24, 2008 at 5:34 PM, nkijak [EMAIL PROTECTED] wrote:
 
   If I understand correctly, when you Run as... in eclipse this is
   making a release version and installing it on your phone.  Do you have
   an actual device or are you asking how to get the apk file itself?
 
   On Oct 24, 3:10 am, Sudha [EMAIL PROTECTED] wrote:
thanks for your reply
But this is for working in the debug mode..
Suppose I had my certified apk and want to download into the device
then ?
 
  --
  Everything is Possible For U only
  



-- 
Everything is Possible For U only

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



[android-developers] Re: Does Android 1.0 support progressive download of music and video files?

2008-10-30 Thread AndroidKid

Hi,

What is MP4Box ? Can you please post sample code here ?

I've executed the application for displaying static video file .mp4.

Now I would like to display the dynamic video file based on user
chooses.
 ie, 1. User selects the language of video file.
   2. Then they will pick the video
 Based on these outputs, the application displays the correct video
file(It may be .mp4 \ 3gp).

In android, whether there is any video pool is there? or Can any one
share your idea please.

Please reply soon. Can't wait for your valuable answers

Thanks in advance.

Thanks Again!!
Yasmin

On Oct 17, 12:53 pm, Guillaume Perrot [EMAIL PROTECTED]
wrote:
 http://www.apple.com/quicktime/tutorials/hinttracks.html

 MP4Box is free and easy of use (MP4Box $file -hint) and works on linux
 (gpac package on debian/medibuntu repository) and it seems that a
 windows version also exits.

 Quiktime pro can also reencode your files to be hinted.

 On 15 oct, 17:53, Billsen [EMAIL PROTECTED] wrote:



  Thanks a lot for your response, but I don't know the meaning of hinted
  here. Could you please provide some info about this?

  Thanks,
  Billsen

  On Oct 15, 7:28 am, Guillaume Perrot [EMAIL PROTECTED] wrote:

   Yes the MediaPlayer supports progressive download.
   The files must be hinted and be one of the following formats:
   audio: mp3, m4a (and also amr which is 3gp audio)
   video: mp4 3gp
   Many mp4 based files (e.g. all foregoing formats except mp3) you'll
   find on the web won't be hinted, so they won't work on Android in
   streaming, you have to hint them (using MP4Box) if not hinted.
   There is already ton of posts on the mailing dealing with that.

   On Oct 14, 10:50 pm, Billsen [EMAIL PROTECTED] wrote:

Hi,

A question, does Android 1.0 support progressive download of music and
video files?

Thanks,
Billsen- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android embedded hardware

2008-10-30 Thread Eric

Hi,

We are building a Android based PMP that may suit your needs. It will
have 4.3 touch screen, wifi, bluetooth, etc.

However, it is not available for sale yet. We are working hard to
deliver it in the next few months.

Feel free to contact me for information, collaboration, etc.

Cheers
Eric
Portable Electronics Ltd
www.hdmp4.com

On Oct 29, 5:37 pm, whitehexagon [EMAIL PROTECTED] wrote:
 I'm looking for some resouces/links for embedded hardware that runs
 Android.  I've found a couple of hardware development boards such as
 the dotphone offering and some custom projects across the web.  But
 these are more directed towards phone development.  I'm looking for
 something smaller/simpler that can be used in embeded systems.
 Possibly an 'out-of-the-box' kit form that runs core android but has
 axtra modules for optional touch display, optional digital/analogue
 inputs, wireless g support etc.  So are there any such offererings
 available now that we have real hardware out in the wild?

 Cheers

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



[android-developers] Re: The same activity run in different process?

2008-10-30 Thread hackbod

Use android:process.  Also be sure to read: 
http://code.google.com/android/intro/appmodel.html

On Oct 29, 8:18 pm, Dikers [EMAIL PROTECTED] wrote:
 I am trying to run a activity in different process.  Use the tag
 android:multiprocess

 Specify whether a component is allowed to have multiple instances of
 itself running in different processes.

 But it doesn't work , How can I control 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android embedded hardware

2008-10-30 Thread Anil Sasidharan

Hi,

  We have Android running on the Mistral's OMAP3530 based
hardware with display, touch, keypad, SD/MMC, Ethernet supported.
Would you like to get more details?

Warm Regards,
Anil

On Wed, Oct 29, 2008 at 12:07 PM, whitehexagon
[EMAIL PROTECTED] wrote:

 I'm looking for some resouces/links for embedded hardware that runs
 Android.  I've found a couple of hardware development boards such as
 the dotphone offering and some custom projects across the web.  But
 these are more directed towards phone development.  I'm looking for
 something smaller/simpler that can be used in embeded systems.
 Possibly an 'out-of-the-box' kit form that runs core android but has
 axtra modules for optional touch display, optional digital/analogue
 inputs, wireless g support etc.  So are there any such offererings
 available now that we have real hardware out in the wild?

 Cheers

 Peter
 


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



[android-developers] Re: Power Manager Wake Locks

2008-10-30 Thread Akshay Sumant
On Fri, Oct 24, 2008 at 3:24 PM, Akshay Sumant [EMAIL PROTECTED]wrote:

 Hi all,
 AFAIK, wake locks ensure a constant device state (for CPU,LCD
 backlight, Keypad backlight) in between acquire() and release() of a
 wake lock.
What if there are two or more apps acquiring (rather trying to
 acquire) wake lock at a same time? How are they handled? Who takes
 this responsibility?
Please put some light on these issues.




-- 
Thank you.
Akshay Sumant.
Harder I work, more luck I seem to have

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



[android-developers] Re: Power Manager Wake Locks

2008-10-30 Thread Wiktor

I suppose acquire() just increases some hidden counter and the device
is turned on until all of the locks are released.

On Oct 30, 9:31 am, Akshay Sumant [EMAIL PROTECTED] wrote:
 On Fri, Oct 24, 2008 at 3:24 PM, Akshay Sumant [EMAIL PROTECTED]wrote:

  Hi all,
      AFAIK, wake locks ensure a constant device state (for CPU,LCD
  backlight, Keypad backlight) in between acquire() and release() of a
  wake lock.
     What if there are two or more apps acquiring (rather trying to
  acquire) wake lock at a same time? How are they handled? Who takes
  this responsibility?
     Please put some light on these issues.

 --
 Thank you.
 Akshay Sumant.
 Harder I work, more luck I seem to have
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Installing the SDK

2008-10-30 Thread Logical

Ahh, many thanks!

For some reason when I tried to do it before, it would give me some
crazy error. Then, I thought to run it from cmd prompt as
ADMINISTRATOR when you mentioned it.

Lol, gave me a data write error. Manually created the directory it
mention, and WHAPOW!

I'm ready to develop. Thanks a lot, man! :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Image buttons

2008-10-30 Thread Arun Mankad
Can somebody tell me how o create buttons with images that have different
image for focused and clicked state

-- 
Arun Mankad

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



[android-developers] Re: Need Help..... To install android package (.apk) on HTC Touch Mobile

2008-10-30 Thread Azatoth

Android is a Mobile OS... You need a Mobile device with android
inside...!
At this time only T-Mobile G1 have android on board!

I don't know how you can porting Android on your device... this is an
Hacker skill!

You can buy a G1... :)

On 30 Ott, 05:10, yasmin afrose [EMAIL PROTECTED] wrote:
 Hi,

 Thanks for your kind reply.

 So, what I'll do?

 Can you tell the way? Shall upgrade my OS or What I need to done to view
 android output in my mobile?

 Please reply.

 Thanks,
 Yasmin



 On Wed, Oct 29, 2008 at 9:53 PM, Azatoth [EMAIL PROTECTED] wrote:

  ...mmm...
  The only missing thing is that you don't run Android application in a
  windows mobile OS-based pda...
  ...

  On 29 Ott, 13:10, AndroidKid [EMAIL PROTECTED] wrote:
   Hi All,

   I've executed some sample application in android using emulator.

   I bought HTC touch mobile which has Windows Mobile 5.0 OS.

   I try to run my android application within HTC touch phone, But I
   can't :(

   I've done the following things,

   (1) I have installed Microsoft Activesync 4.5. (To rectify the issue
   while I'm connecting USB to my PC ).

   (2) I've connected my mobile with PC using USB.

   (3) Then I've modified my android project Manifest.xml file (Included
   Debuggable=true).

   (4) Then I've executed android application using eclipse. I got output
   in Emulator only. Not in HTC Touch Phone.

   I've gone through  the link
 http://code.google.com/android/intro/develop-and-debug.html.

   With in the above link, I can't perform step 2  Step 3. Since Step 2
   is based on T-Mobile G Phone. In Step 3, I can't find the Wizard (ie,
   Found New Hardware wizard).

   I think If I did Step 2  3, then only the Device Chooser Wizard will
   appears while I'm running android.

   Please help me... what I'm missing ...

   Thanks in advance.

   By,
   Yasmin

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



[android-developers] MapView Problem

2008-10-30 Thread samina

I have the problem The application has stopped unexpectedly  still
while running mapview. i have given my map api key and correct map
package also .plz help me in 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Map View Problem

2008-10-30 Thread samina

Hi ,
i have the problem with mapview and its showing the following errors
in the logcat.plz help me for finding solution ..

10-30 13:18:19.005: DEBUG/AndroidRuntime(729): Shutting down VM
10-30 13:18:19.015: WARN/dalvikvm(729): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
10-30 13:18:19.015: ERROR/AndroidRuntime(729): Uncaught handler:
thread main exiting due to uncaught exception
10-30 13:18:19.054: ERROR/AndroidRuntime(729):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.mynewmap/com.mynewmap.MyNewMap}:
android.view.InflateException: Binary XML file line #7: Error
inflating class java.lang.reflect.Constructor
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2140)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2156)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.os.Handler.dispatchMessage(Handler.java:88)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.os.Looper.loop(Looper.java:123)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.main(ActivityThread.java:3742)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Method.invokeNative(Native Method)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Method.invoke(Method.java:515)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
dalvik.system.NativeStart.main(Native Method)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): Caused by:
android.view.InflateException: Binary XML file line #7: Error
inflating class java.lang.reflect.Constructor
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.createView(LayoutInflater.java:512)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:564)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
227)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.Activity.setContentView(Activity.java:1569)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.mynewmap.MyNewMap.onCreate(MyNewMap.java:11)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): ... 11 more
10-30 13:18:19.054: ERROR/AndroidRuntime(729): Caused by:
java.lang.reflect.InvocationTargetException
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.google.android.maps.MapView.init(MapView.java:227)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Constructor.constructNative(Native Method)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
java.lang.reflect.Constructor.newInstance(Constructor.java:424)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
android.view.LayoutInflater.createView(LayoutInflater.java:499)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): ... 21 more
10-30 13:18:19.054: ERROR/AndroidRuntime(729): Caused by:
java.lang.IllegalArgumentException: MapViews can only be created
inside instances of MapActivity.
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.google.android.maps.MapView.init(MapView.java:271)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): at
com.google.android.maps.MapView.init(MapView.java:244)
10-30 13:18:19.054: ERROR/AndroidRuntime(729): ... 25 more
10-30 13:18:19.083: INFO/Process(55): Sending signal. PID: 729 SIG: 3
10-30 13:18:19.134: INFO/dalvikvm(729): threadid=7: reacting to signal
3
10-30 13:18:19.184: INFO/dalvikvm(729): Wrote stack trace to '/data/
anr/traces.txt'
10-30 13:18:28.425: WARN/ActivityManager(55): Launch timeout has
expired, giving up wake lock!
10-30 13:18:28.816: 

[android-developers] Re: hanging up/terminating a call in an automated fashion

2008-10-30 Thread legerb

Oh sorry, I should've been more clear.
I was talking about the ACTION_NEW_OUTGOING_CALL.
Hanging up incoming call programmaticaly is currently impossible.
As for the outgoing call - it can be terminated only when initiated,
because only then we can catch the Intent. After that there seems to
be no access to the call.
There is also no heart-beat message sent out every so often to
indicate an active call.
PhoneStateListener is also not helpful in this matter, as it receives
only state changes events.

http://groups.google.com/group/android-developers/browse_frm/thread/41ae9a5fc8d17720?hl=en#

On Oct 29, 10:30 pm, dreamerBoy [EMAIL PROTECTED] wrote:
 ...Interesting

 Thanks so much for the reply.

 Perhaps I have misunderstood but I have some questions about this
 approach.

 i)  A Broadcast receiver is a passive entity.   What would be the
 active entity that will be generating the Intent?  Remember, my code
 is supposed to be the one to initiate end-of-call NOT a human user.
 Why would there be an event out there at any given moment waiting for
 my code to capture?  Is there some kind of heart-beat message sent out
 every so often to indicate an active call?

 ii)  Which Intent is the one of interest?  I couldn't find anything
 that matches in the Standard Broadcast Actions of Google's
 android.content.Intent write-up page.

 You might be talking about the ACTION_NEW_OUTGOING_CALL broadcast.
 However, I don't want to prevent an outgoing call, I want to hang up a
 call that is already connected  - whether the call originated from or
 is answered by the g-phone.

 Paul

 On Oct 29, 1:42 am, legerb [EMAIL PROTECTED] wrote:

  You can use a BroadcastReceiver to catch the Intent, and terminate it
  with abortBroadcast().

  On Oct 27, 8:50 pm, dreamerBoy [EMAIL PROTECTED] wrote:

   Hi -

   I am looking for a way to terminate a call in anautomatedfashion.
   (I realize it can be done manually - the application requires that it
   have control over the call so that it can hang up automatically.)

   To initiate a call, one starts an Activity with the ACTION_CALL
   Intent.

   However, there does not appear to be any corresponding way to end it
   with a corresponding Intent, or using the Telephony or
   TelephonyManager interface/package.

   The only thing I can thing of is calling finish() on the Activity used
   to start the call - but that doesn't seem right at all.

   Can anyone shed light on this issue?

   Thanks much.

   Paul


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



[android-developers] About Email

2008-10-30 Thread ena

Hi All,
How  to get email Log?how to send email to emulator and from
emulator.Anyone please give me ur suggestions.
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to design a layout

2008-10-30 Thread Breno

Hey every one, i want to to a layout like this

*
*#   Text here   text here  *
*#   Text here small icon here   *
*#  *
*

where ### is a image of 48x48. This will be used as a contact list,
with person photo, name, number, status and status icon. I did
something like that, but i'm not able to do like this. My xml is

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

ImageView android:id=@+id/icon
android:layout_width=48dip
android:layout_height=48dip /

TextView android:id=@+id/name
android:layout_gravity=left|top
android:layout_width=wrap_content
android:layout_weight=0.0
android:layout_height=wrap_content
android:textStyle=bold /

TextView android:id=@+id/number
android:layout_gravity=bottom|left
android:layout_width=wrap_content
android:layout_weight=0.0
android:layout_height=wrap_content /

   ImageView android:id=@+id/icon_presence
android:layout_gravity=right|bottom
android:layout_width=19dip
android:layout_height=19dip /

 TextView android:id=@+id/presence
android:layout_gravity=right|top
android:layout_width=wrap_content
android:layout_weight=0.0
android:layout_height=wrap_content /
/LinearLayout

Thanks a lot,

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



[android-developers] Re: AMR Codec List

2008-10-30 Thread Breno

Thanks g, this is exactly what i was looking for

Breno

On Oct 29, 2:40 am, gs_cmans [EMAIL PROTECTED] wrote:
 i think default configured to 5.15;
 looks the api to set mode is left out; see other threads for my post
 on the same

 -g

 On Oct 7, 1:29 pm, BrenoT. Minzon [EMAIL PROTECTED] wrote:

    Hi all,

       After spent some time googling, i can't find any information about AMR
  audio codec list. i found just this google's doc

 http://code.google.com/android/reference/android/media/MediaRecorder

  but there is no information about what codecs it support, like 12.2, 10.2,
  7.95, 7.4, 6.7, 5.9, 5.15 and 4.75. Does anybody has this information?

  Thanks a lot,

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



[android-developers] How to do JUnit testing for database access?

2008-10-30 Thread Iroid

Hello Everyone,
I have to test a class which is heavily accessing database.
Now to access database I needed context this was done by passing
current activity reference.

In JUnit I couldn't find any way to create activity and pass in to
those methods.

I found ActivityUnitTestCase T  in android sdk  but dont know how to
use it :(

Any help will be appreciated.

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-30 Thread Peter Stevenson

peter wrote


Read this book


The Busy Coder's Guide to Android Development

 By Mark L. Murphy

Chapter  25 Building a Content Provider


File sdcard = new File(/sdcard/application/mydb.sqlite );




wescorp wrote:
 Hello,

 I need to be able to work with databases on the sdcard.

 I've been using the following code snippet from the NotePad
 application and works perfectly on the emulator without using the
 sdcard.

 private static class DatabaseHelper extends SQLiteOpenHelper {
 DatabaseHelper(Context context) {
 super(context, mydb.sqlite, null, 2);
 }

 When I include the path to the db as
  /sdcard/application/mydb.sqlite

 the following error occurs
  10-29 09:57:04.798: ERROR/AndroidRuntime(200): Caused by:
 java.lang.IllegalArgumentException: File /sdcard/application/
 mydb.sqlite contains a path separator

 The sdcard is properly emulated.
 The path exists.

 I've looked around but no obvious solution to me.

 Any help greatly appreciated.

 Cheers,
 Wes

 

   


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



[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-30 Thread Mark Murphy

Peter Stevenson wrote:
 peter wrote
 
 
 Read this book
 
 
 The Busy Coder's Guide to Android Development
 
  By Mark L. Murphy
 
 Chapter  25 Building a Content Provider
 
 
 File sdcard = new File(/sdcard/application/mydb.sqlite );

That line is from an earlier edition of my book -- it is not in the 
current Version 1.3 of the book.

I have not tried that syntax on Android 1.0r1, so I have no idea if it 
works or not on the current SDK.

It's certainly worth trying, though.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

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



[android-developers] Re: Need Help..... To install android package (.apk) on HTC Touch Mobile

2008-10-30 Thread Mark Murphy

yasmin afrose wrote:
 So, what I'll do?
  
 Can you tell the way? Shall upgrade my OS or What I need to done to view 
 android output in my mobile?

The simplest solution is to replace your phone with a T-Mobile G1, if 
you can get your hands on one.

Lacking that, your only option is to work with other people to try 
porting Android over to run as the OS on your device.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

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



[android-developers] Re: Getting user's phone number

2008-10-30 Thread Spencer Riddering

Hi SR,

Concerning your comment:
  I'd have to be pretty dumb to confuse my phone with the emulator,
wouldn't I? 

Not really. I remember hearing a Google employee (I forget who)
describe how he did exactly that for about a week before he realized
what was going on.

Spencer


On Oct 30, 9:38 am, SR [EMAIL PROTECTED] wrote:
 I'd have to be pretty dumb to confuse my phone with the emulator,
 wouldn't I?

 I'm also using a SIM card that I've had in other phones for a long
 while.
 It might have even belonged to a different phone with a different
 number, before I associated my current phone number with my phone
 account.

 Come to think of it, that's probably it.  That's the number of the
 other phone line I gave up.

 Ok, I am guessing Android needs a better way to find out the user's
 phone number than to read it from the SIM card...

 Stan

 On Oct 29, 2:53 pm, Hong [EMAIL PROTECTED] wrote:

  i got my realnumber, u sure u running it in your real G1, not the emulator?
  with android.permission.READ_PHONE_STATE permission of course.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to listen callee hangup call event?

2008-10-30 Thread legerb

Could you also add that it would be most usefull to have events
indicating that call was established, active call, dialing...

On Oct 30, 2:04 am, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
 There's no way to do this. It seems like something others would be
 interested in, so I've passed this feedback on.

 Cheers,
 Justin
 Android Team @ Google

 On Oct 25, 11:14 pm, hex [EMAIL PROTECTED] wrote:

  Hi:
  Now ,I can use PhoneStateListener to listen some incoming call state
  event.
  here is the code:

          public void onCallStateChanged(int state, String incomingNumber) {
                  Log.v(TAG, onCallStateChanged(), Incoming Number:  +
  incomingNumber);

                  super.onCallStateChanged(state, incomingNumber);

                  switch (state) {
  // user hangup call
                  case TelephonyManager.CALL_STATE_IDLE:
                          Log.i(TAG, CALL_STATE_IDLE);
                          break;
                  case TelephonyManager.CALL_STATE_OFFHOOK:
  // user pickup call
                          Log.i(TAG, CALL_STATE_OFFHOOK);
                          break;
                  case TelephonyManager.CALL_STATE_RINGING:
  // imcoming call
                          Log.i(TAG, CALL_STATE_RINGING);
                          break;
                  default:
                          Log.w(TAG, unknown call state:  + state);
                  }
          }

  As you know ,TelephonyManager.CALL_STATE_IDLE can deal with hangup
  event, but I do not know who hangs up the call, the callee? the
  caller? ,so,can anyone give me some message about this?
  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: My application doesn't work...

2008-10-30 Thread Yoshiyuki

I could find the cause of this problem somehow. In an Activity, I
think, there are some elements which is requisite to execute in v1.0
emulator. The experiment I've done was

1) Execute and make sure a project works safely.(Any program is OK.
Google's samples may be good.)
2) Copy an activity ( it is impossible to execute in v1.0) into the
program set, and include it as an menber of Androidmanifext.xml
3) Run it, and manage copied activity to launched first.

then, ActivityManager: [1] killed ... error occurs.

I saw Androidmanifest.xml, and compared elements of copied Activity
and sample Activity. I found my Activity had many lacks of elements,
so I just copied all of them between Activity and /Activity. After
all of these processes, my Activity is launched safely. If somesone
have same problem, this document may be useful.

Thanks,

On 10月28日, 午前4:12, Yoshiyuki [EMAIL PROTECTED] wrote:
 Thank you, hirayama-san.

 I tried it, but nothing was solved. The situation that the application
 doesn't start is still alive, but the behavior was something different
 after wipe-data application.  After android emulator is launched, a
 dialog message is appear, and it says The process
 android.process.acore has stopped unexpectedly. Please try again.
 What is this message?

 The console message on eclipse is still same.

 On Oct 27, 10:56 pm, Jun'ichi Hirayama [EMAIL PROTECTED] wrote:

  did you exec wipe-data ?

  If you didn't exec wipe-data,you should exec onece .

  ex 1) SDK run

  Run- Run configuration -  Select Target tab - check Wipe User Data

  ex 2) Console
  exec below comand
emulator  -wipe-data

  2008/10/27 Yoshiyuki [EMAIL PROTECTED]

   Thanks for your reply, Hirayama-san.

   It is SDK command. I always start applications from run button of
   eclipse.

   On Oct 26, 2:21 pm, Hirayama Jun'ichi [EMAIL PROTECTED] wrote:
How did you  install your apk ?
SDK comand ,
adb install ,
adb push  ?

2008/10/26 Yoshiyuki [EMAIL PROTECTED]

 This is non-modified version of my error log.

 [2008-10-26 03:44:06 - Calorie2] --
 [2008-10-26 03:44:06 - Calorie2] Android Launch!
 [2008-10-26 03:44:06 - Calorie2] adb is running normally.
 [2008-10-26 03:44:06 - Calorie2] Launching: com.gclue.android.Calorie
 [2008-10-26 03:44:06 - Calorie2] Automatic Target Mode: launching new
 emulator.
 [2008-10-26 03:44:06 - Calorie2] Launching a new emulator.
 [2008-10-26 03:44:11 - Emulator] 2008-10-26 03:44:11.103
 emulator[1317:10b] Warning once: This application, or a library it
 uses, is using NSQuickDrawView, which has been deprecated. Apps should
 cease use of QuickDraw and move to Quartz.
 [2008-10-26 03:44:24 - Emulator] emulator: ### WARNING: /etc/localtime
 does not point to zoneinfo-compatible timezone name
 [2008-10-26 03:44:24 - Emulator]

 Thanks,

 On Oct 24, 5:40 am, Yoshiyuki [EMAIL PROTECTED] wrote:
  Hi, Alvin, and thanks for reading this one.

  You asked about the statement apk name and activity name. As you
  guessed, these were replaced manually. I'm sorry, these changes 
  might
  make some troubles for people who read this discussion.

  On 10月24日, 午前5:24, Alvin Yates [EMAIL PROTECTED] wrote:

   He's compiling on OS X.  That's a Java library that he has zero
   control over.  I get the same error all the time.

   As far at the spontaneous death, the only thing I can point you to
   is:
   emulator: ### WARNING: /etc/localtime does not point to zoneinfo-
   compatible timezone name 

   Also, did you manually replace apk name and activity name in
   the
   log, or is that straight from the log?  If it's straight from the
   log,
   I really have no idea what is going on there.

   On Oct 23, 6:16 am, Mast3rpyr0 [EMAIL PROTECTED] wrote:

one of the packages you include uses something that was removed.
   find
which one is using NSQuickDrawView. and dont use quickdraw
   anymore.

On Oct 23, 8:13 am, Yoshiyuki [EMAIL PROTECTED] wrote:

 I installed latest version of android and migrated my
   application.
 But
 my application doesn't work. After installing it, I fixed the
 program
 because there were some errors due to API changes. Then, I
   tried to
 run it, but an error was appeared. Application was not started
   as a
 matter of course. The error is below.

 [2008-10-23 20:57:45 - Calorie2] 
 --
 [2008-10-23 20:57:45 - Calorie2] Android Launch!
 [2008-10-23 20:57:45 - Calorie2] adb is running normally.
 [2008-10-23 20:57:45 - Calorie2] Launching:
 com.gclue.android.Calorie
 [2008-10-23 20:57:45 - Calorie2] Automatic Target Mode:
   launching
 new
 emulator.
 [2008-10-23 20:57:45 - Calorie2] Launching a new emulator.
 [2008-10-23 20:57:47 - 

[android-developers] Does anyone know Puppet Master?

2008-10-30 Thread Marcus

Hi All,

Is there any Python Test Suite for testing in Android?

Thanks in advance,
--Marcus

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



[android-developers] Re: Android embedded hardware

2008-10-30 Thread heavyseatree

Hi, Anil,

I am very interested in your android runing based on the OMAP
hardware.
could you give me more details?


Regards,

seatree

On 10月30日, 下午5时20分, Anil Sasidharan [EMAIL PROTECTED] wrote:
 Hi,

   We have Android running on the Mistral's OMAP3530 based
 hardware with display, touch, keypad, SD/MMC, Ethernet supported.
 Would you like to get more details?

 Warm Regards,
 Anil

 On Wed, Oct 29, 2008 at 12:07 PM, whitehexagon



 [EMAIL PROTECTED] wrote:

  I'm looking for some resouces/links for embedded hardware that runs
  Android.  I've found a couple of hardware development boards such as
  the dotphone offering and some custom projects across the web.  But
  these are more directed towards phone development.  I'm looking for
  something smaller/simpler that can be used in embeded systems.
  Possibly an 'out-of-the-box' kit form that runs core android but has
  axtra modules for optional touch display, optional digital/analogue
  inputs, wireless g support etc.  So are there any such offererings
  available now that we have real hardware out in the wild?

  Cheers

  Peter- 隐藏被引用文字 -

 - 显示引用的文字 -

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



[android-developers] : How to stops the activity from getting restarted when mode changes from LandScape to Portrait or vice-versa

2008-10-30 Thread Imran



H Al

Is there any way to stop the activity from getting  restarted
when the mode changes from LandScape to Portrait or vice-versa

Please help me Out Guysss...

Thanks in Advance for any Replays..

Cheers
Imran



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



[android-developers] Re: Attaching the Eclipse debugger to actual device

2008-10-30 Thread Travis

Just a reminder to everyone in case some here are not aware - the G1
won't advertise its 0c02 product id unless you first do the
following on the device:

Settings - Applications - Development - USB debugging = ON

if lsusb returns 0bb4:0c01, not 0bb4:0c02, then this is likely your
problem.

-Travis

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



[android-developers] Re: Tips for Orientation

2008-10-30 Thread Imran

Haii Al...

  The activity gets restarted when the mode changes form  landscape to
portrait or vice-versa
   is there any way to stop the activity getting restarted. help
me out guys

   Thanks in advance for any Replays..!!

Cheers
Imran

On Oct 25, 1:21 am, Peli [EMAIL PROTECTED] wrote:
 You could use yet another method: :-)

 Define a textview with id=R.id.text_portrait in yourportraitlayout,
 and in thelandscapelayout as R.id.text_landscape.
 Now, if findViewById(R.id.text_portrait) returns null, you know that
 currently thelandscapelayout is being displayed :-)

 But seriously, I'm surprised that there are so many ways to obtain the
 same information, and I have no idea which would be the preferred
 one...

 Peli

 On Oct 24, 10:00 pm, ksmith44 [EMAIL PROTECTED] wrote:

  Right.  I have done that too, and it works great.  The problem is that
  aside from using a different layout, my Activity actually needs to do
  slightly different logic bassed on the orientation, (it builds its
  options menu differently forlandscapethan forportrait), which means
  I need to be able to detect which orientation I am using.

  Currently, I am using the Configuration method mentioned above and it
  does seem to work.  But with so many different classes, methods and
  constants available to get theoretically the exact same information, I
  wondered if there was a preferred method.

  On Oct 24, 12:39 pm, Mark Hansen [EMAIL PROTECTED] wrote:

   Setting this android:screenOrientation=sensor

   as mentioned above worked perfect.. it switched the view as the phone
   changed.

   I then only created alternate XML files for the layouts that needed
   tweaking and it worked like a charm.

   On Oct 24, 2:24 pm, ksmith44 [EMAIL PROTECTED] wrote:

As a followup, I have now found at least 3 ways do determine the
orientation, all of which use different constants with different
values.

* There is the aforementioned Activity.getRequestedOrientation which
uses the ActivityInfo constants whereinlandscape=0 andportrait=1
* Then there is getResources().getConfiguration().orientation which
uses the Configuration constants whereinlandscape=2 andportrait=1
* Then there is
getWindow().getWindowManager().getDefaultDisplay().getOrientation().
I am not sure what constants this is using, but it returns exactly the
opposite of the first:landscape=1 andportrait=0

There are probably more.  Does anyone know the correct or preferred
method?

On Oct 23, 12:40 pm, ksmith44 [EMAIL PROTECTED] wrote:

 How can you determine the current orientation?  Most of my pages
 rotate just fine, but I have one page on which I actually need to do
 slightly different logic based on the orientation (specifically, I
 want to add additional menu options inlandscape mode).  When I use
 getRequestedOrientation(), I always get back a -1 (UNSPECIFIED).  It
 appears as if this method only works if an orientation has been
 requested by the code using setRequestedOrientation.  Is there a
 better way to determine the current orientation?

 BTW, thanks hackbod for the gem about ctrl-F12.  I never found that in
 the documentation and had been changing the android:screenOrientation
 var in my manifest file and restarting every time I wanted to test in
 the alternate orientation.- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: apkbuilder.bat faulty?

2008-10-30 Thread khoaanh

Hi Jakob,

Try this, It's work for me. Note that the setlocal
EnableDelayedExpansion is important

@echo off
setlocal EnableDelayedExpansion

set prog=%~f0
cd %~dp0

set jarfile=apkbuilder.jar
set frameworkdir=C:\android-sdk-windows-1.0_r1\tools\lib
set libdir=C:\android-sdk-windows-1.0_r1\tools\lib

set CP=
for %%f in (%libdir%\*.jar) do set CP=!CP!;%%f
set classpath=%classpath%;%CP%

call java  -Djava.ext.dirs=%frameworkdir%  -Djava.library.path=%libdir
% -jar %libdir%\%jarfile% %*

thankyou

On Sep 25, 10:52 pm, Jakob Sachse [EMAIL PROTECTED] wrote:
 meanwhile i did some try and error and got it running.

 setting frameworkdir and libdir to the lib folder works, manipulating
 the java.libraray.path property did't influence
 anything i could observe.

 so thats what the interesting part of my apkbuilder.bat looks like
 now:

 ===
 set jarfile=apkbuilder.jar
 set frameworkdir=D:\My\Path\to\android-sdk-windows-1.0_r1\tools\lib\
 set libdir=D:\My\Path\to\android-sdk-windows-1.0_r1\tools\lib\

 if exist %frameworkdir%%jarfile% goto JarFileOk
     set frameworkdir=lib\
     set libdir=lib\

 if exist %frameworkdir%%jarfile% goto JarFileOk
     set frameworkdir=..\framework\
     set libdir=..\lib\

 :JarFileOk

 set jarpath=%frameworkdir%%jarfile%

 call java -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -
 jar %jarpath% %*
 ===

 I think I could have well spared libpath, doen't change a thing here.
 But i left it pointing to the same directory as frameworkdir.

 Am i the only one getting in trouble with apkbuilder?

 On 25 Sep., 16:30, Jakob Sachse [EMAIL PROTECTED] wrote:

  I wanted to pass dx some parameters when building a project using ADT
  with Eclipse, I didn't find how, so I turned to ant.

  I created a empty project with the activitycreator tool.
  I put the generated build.xml into my actual project.
  Then I modified the build.xml to match my project and i inserted the
  dx parameter (which is --core-library)

  Now I wanted to build the project.
  It worked fine, all classes where compiled and put in the
  classes.dex.
  But when ant came to building the .apk it failed.
  Giving me the error:  Unable to access jarfile ..\framework
  \apkbuilder.jar 

  I looked for the apkbuilder.bat and the didn't quite understand it.
  There is a reference made to some framework directory that i don't
  have.
  The part that I don't understand is that one:

  
  set jarfile=apkbuilder.jar
  set frameworkdir=
  set libdir=

  if exist %frameworkdir%%jarfile% goto JarFileOk
      set frameworkdir=lib\
      set libdir=lib\

  if exist %frameworkdir%%jarfile% goto JarFileOk
      set frameworkdir=..\framework\
      set libdir=..\lib\

  :JarFileOk

  set jarpath=%frameworkdir%%jarfile%

  echo java -Djava.ext.dirs=%frameworkdir% -Djava.library.path=%libdir% -
  jar %jarpath% %*
  

  Obviously the script tries to determine the location of
  apkbuilder.jar, but it fails due to the wrong directories.

  I modified the script so that i had a correct path to apkbuilder.jar.
  As result the java vm started but returned immidiatly saying:

  Exception in thread main java.lang.NoClassDefFoundError: com/android/
  prefs/And
  roidLocation$AndroidLocationException
  Caused by: java.lang.ClassNotFoundException:
  com.android.prefs.AndroidLocation$A
  ndroidLocationException
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)

  Did I overlook something?

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



[android-developers] dalvik bug?

2008-10-30 Thread Bradley Kite

Hi all,

I am running this bit of code within the emulator (SDK 1.0r)

Log.d(TAG, I am here - 1);
Location currentLocation =
lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
Log.d(TAG, I am here - 2);


The logcat output never shows the second log statement - and nothing
after this code gets executed - its like the thread just dies??

Can any body advise me on how to debug this further?

Many thanks in advance.
--
Brad.

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



[android-developers] Re: Android embedded hardware

2008-10-30 Thread Anil Sasidharan
Hi,

 The details are as follows:

Board:OMAP3EVM (Mistral)
Processor:  OMAP3530 (ARM Cortex A8 core and C64+ DSP core)
RAM: 128MB
FLASH:  256MB
Android-support:  Android version 1.0 is up
Peripherals:
-
1. LCD panel (VGA resolution)
2. Touchscreen
3. Keypad
4. Ethernet
5. UART
6. USB
7. SD/MMC - Android boot out of SD is functional
8. Audio - not supported with Android


For more info please visit
http://www.mistralsolutions.com/business_divisons/omap_3evm.php

Warm Regards,
Anil

2008/10/30 heavyseatree [EMAIL PROTECTED]:

 Hi, Anil,

 I am very interested in your android runing based on the OMAP
 hardware.
 could you give me more details?


 Regards,

 seatree

 On 10月30日, 下午5时20分, Anil Sasidharan [EMAIL PROTECTED] wrote:
 Hi,

   We have Android running on the Mistral's OMAP3530 based
 hardware with display, touch, keypad, SD/MMC, Ethernet supported.
 Would you like to get more details?

 Warm Regards,
 Anil

 On Wed, Oct 29, 2008 at 12:07 PM, whitehexagon



 [EMAIL PROTECTED] wrote:

  I'm looking for some resouces/links for embedded hardware that runs
  Android.  I've found a couple of hardware development boards such as
  the dotphone offering and some custom projects across the web.  But
  these are more directed towards phone development.  I'm looking for
  something smaller/simpler that can be used in embeded systems.
  Possibly an 'out-of-the-box' kit form that runs core android but has
  axtra modules for optional touch display, optional digital/analogue
  inputs, wireless g support etc.  So are there any such offererings
  available now that we have real hardware out in the wild?

  Cheers

  Peter- 隐藏被引用文字 -

 - 显示引用的文字 -

 


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



[android-developers] Re: Image buttons

2008-10-30 Thread Mark Hansen

I ended up using ImageViews and making multiple images, I'd be curious
if there was a better way as well.

On Oct 30, 5:48 am, Arun Mankad [EMAIL PROTECTED] wrote:
 Can somebody tell me how o create buttons with images that have different
 image for focused and clicked state

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



[android-developers] Re: Tips for Orientation

2008-10-30 Thread Mark Hansen

You need to store whatever information determines the state of your
application, use the following overrides:

@Override
public void onSaveInstanceState(Bundle savedInstanceState)
{
// example
   savedInstanceState.putString(someKey, someString);
}


then on the load:
@Override
public void onRestoreInstanceState(Bundle savedInstanceState)
{
  // example
  String someString = savedInstanceState.getString(someKey);
}

A side note to this is there is some wackiness that goes on with the
first install that I never really got an answer too, if you can figure
it out let me know.. the post is here:

http://groups.google.com/group/android-developers/browse_thread/thread/821dc347bf896da0/28d099eef55a9dd0#28d099eef55a9dd0

Good luck.




On Oct 30, 6:56 am, Imran [EMAIL PROTECTED] wrote:
 Haii Al...

   The activity gets restarted when the mode changes form  landscape to
 portrait or vice-versa
    is there any way to stop the activity getting restarted. help
 me out guys

    Thanks in advance for any Replays..!!

 Cheers
 Imran

 On Oct 25, 1:21 am, Peli [EMAIL PROTECTED] wrote:

  You could use yet another method: :-)

  Define a textview with id=R.id.text_portrait in yourportraitlayout,
  and in thelandscapelayout as R.id.text_landscape.
  Now, if findViewById(R.id.text_portrait) returns null, you know that
  currently thelandscapelayout is being displayed :-)

  But seriously, I'm surprised that there are so many ways to obtain the
  same information, and I have no idea which would be the preferred
  one...

  Peli

  On Oct 24, 10:00 pm, ksmith44 [EMAIL PROTECTED] wrote:

   Right.  I have done that too, and it works great.  The problem is that
   aside from using a different layout, my Activity actually needs to do
   slightly different logic bassed on the orientation, (it builds its
   options menu differently forlandscapethan forportrait), which means
   I need to be able to detect which orientation I am using.

   Currently, I am using the Configuration method mentioned above and it
   does seem to work.  But with so many different classes, methods and
   constants available to get theoretically the exact same information, I
   wondered if there was a preferred method.

   On Oct 24, 12:39 pm, Mark Hansen [EMAIL PROTECTED] wrote:

Setting this android:screenOrientation=sensor

as mentioned above worked perfect.. it switched the view as the phone
changed.

I then only created alternate XML files for the layouts that needed
tweaking and it worked like a charm.

On Oct 24, 2:24 pm, ksmith44 [EMAIL PROTECTED] wrote:

 As a followup, I have now found at least 3 ways do determine the
 orientation, all of which use different constants with different
 values.

 * There is the aforementioned Activity.getRequestedOrientation which
 uses the ActivityInfo constants whereinlandscape=0 andportrait=1
 * Then there is getResources().getConfiguration().orientation which
 uses the Configuration constants whereinlandscape=2 andportrait=1
 * Then there is
 getWindow().getWindowManager().getDefaultDisplay().getOrientation().
 I am not sure what constants this is using, but it returns exactly the
 opposite of the first:landscape=1 andportrait=0

 There are probably more.  Does anyone know the correct or preferred
 method?

 On Oct 23, 12:40 pm, ksmith44 [EMAIL PROTECTED] wrote:

  How can you determine the current orientation?  Most of my pages
  rotate just fine, but I have one page on which I actually need to do
  slightly different logic based on the orientation (specifically, I
  want to add additional menu options inlandscape mode).  When I use
  getRequestedOrientation(), I always get back a -1 (UNSPECIFIED).  It
  appears as if this method only works if an orientation has been
  requested by the code using setRequestedOrientation.  Is there a
  better way to determine the current orientation?

  BTW, thanks hackbod for the gem about ctrl-F12.  I never found that 
  in
  the documentation and had been changing the 
  android:screenOrientation
  var in my manifest file and restarting every time I wanted to test 
  in
  the alternate orientation.- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting user's phone number

2008-10-30 Thread Hong

when u go to the about phone section in ur G1, what number does it
show up there?
real number or the wrong one?
this is the same system call as the getLine1Number()...

On Wed, Oct 29, 2008 at 9:38 PM, SR [EMAIL PROTECTED] wrote:

 I'd have to be pretty dumb to confuse my phone with the emulator,
 wouldn't I?


 I'm also using a SIM card that I've had in other phones for a long
 while.
 It might have even belonged to a different phone with a different
 number, before I associated my current phone number with my phone
 account.

 Come to think of it, that's probably it.  That's the number of the
 other phone line I gave up.

 Ok, I am guessing Android needs a better way to find out the user's
 phone number than to read it from the SIM card...

 Stan

 On Oct 29, 2:53 pm, Hong [EMAIL PROTECTED] wrote:
 i got my realnumber, u sure u running it in your real G1, not the emulator?
 with android.permission.READ_PHONE_STATE permission of course.

 


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



[android-developers] Re: Image buttons

2008-10-30 Thread Arun Mankad
Hi Mark,

Can you plz explain How did u do that, I am a novice in Android, please help


On Thu, Oct 30, 2008 at 6:33 PM, Mark Hansen [EMAIL PROTECTED] wrote:


 I ended up using ImageViews and making multiple images, I'd be curious
 if there was a better way as well.

 On Oct 30, 5:48 am, Arun Mankad [EMAIL PROTECTED] wrote:
  Can somebody tell me how o create buttons with images that have different
  image for focused and clicked state
 
  --
  Arun Mankad
 



-- 
Arun Mankad

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



[android-developers] Re: Image buttons

2008-10-30 Thread for android
http://blog.pocketjourney.com/2008/04/30/android-tutorial-image-text-only-buttons/

On Thu, Oct 30, 2008 at 6:55 PM, Arun Mankad [EMAIL PROTECTED] wrote:

 Hi Mark,

 Can you plz explain How did u do that, I am a novice in Android, please
 help



 On Thu, Oct 30, 2008 at 6:33 PM, Mark Hansen [EMAIL PROTECTED]wrote:


 I ended up using ImageViews and making multiple images, I'd be curious
 if there was a better way as well.

 On Oct 30, 5:48 am, Arun Mankad [EMAIL PROTECTED] wrote:
  Can somebody tell me how o create buttons with images that have
 different
  image for focused and clicked state
 
  --
  Arun Mankad




 --
 Arun Mankad

 


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



[android-developers] login to a web site from android application.

2008-10-30 Thread AnuR

Hi frnds,
my application needs to login to a web site thru the application. How
can i do it?
for that I need to post the username ,password and some other data to
the url.
the code is as follows. I am using SDK 1.0
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httpost = new HttpPost(my url to submit);
List NameValuePair nvps = new ArrayList NameValuePair();
nvps.add(new BasicNameValuePair(user_name, myusername));
nvps.add(new BasicNameValuePair(password, mypassword));
nvps.add(new BasicNameValuePair(hidden_data_to_post, data
to post));
httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));
response = httpclient.execute(httpost);
if I execute this code , I will get an error:
Exception in thread main java.lang.RuntimeException: Stub!
with error in the line
DefaultHttpClient httpclient = new DefaultHttpClient();

if I use
HttpClient client = new HttpClient();
try{
method = new PostMethod(https://my url to post);
method.addParameter(user_name, myusername));
method.addParameter(password, mypassword));
method.addParameter(hidden_data_to_post, data to post));
method.setFollowRedirects(false);
client.executeMethod(method);
the response body will be 405 error
if I set the
method.setFollowRedirects(false);  to be true,
the error will be
java.lang.IllegalArgumentException: Entity enclosing requests cannot
be redirected without user intervention
So what may be the probelm.If I am wrng pls help me with sample code
for logging into a website in SDK 1.0

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



[android-developers] Re: The UK Release and Internationalization

2008-10-30 Thread qvark

I don't think the API is ready yet according to their roadmap:
http://source.android.com/roadmap


Q4 2008

Localization

The UI and Application Framework for the Android 1.0 platform
primarily targets English-speaking regions. To enable handset
manufacturers to deploy devices in non-English-speaking countries, we
will support the following localizations:

* Strings localized into various languages.
  o Q4 2008: German
  o Q1 2009: French, Italian, es_es, zh_TW, Ja, NL, CZ
* UI modifications (tabs, menus, homepage shortcuts, etc.) to
support non-English languages.
* New date and numeric formats.



On Oct 29, 9:11 pm, cyntacks [EMAIL PROTECTED] wrote:
 Hi Everyone,

 I just wanted to give this a bump.

 Has anyone successfully internationalized their application? For
 example, I want to determine what region the user is in (UK or US) so
 I can provide English or Metric units on the backend for calculations.
 Is this as simple as using Java's locale, or does Android provide
 another type of support on top that I should be implementing?

 The API says this is coming 
 soon:http://code.google.com/android/devel/resources-i18n.html#i18n

 I realize I can provide different languages using the values-en,
 values-xx, etc. But what about determining that region in the java
 code?

 Thanks for your help,

 Kevin

 On Oct 29, 7:07 am, cyntacks [EMAIL PROTECTED] wrote:





  Hi,

  Last I read here on the board Android did not yet fully support
  internationalization (even though we have the directories for
  different languages, etc).

  1) Is this true?
  2) Will the normal Java syntax involving Locales be a valid work
  around?

  I ask because our application needs to know whether to use metric
  units or not. Just wondering what the best way to determine this may
  be on Android for the UK release today.

  Thanks for your help,

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



[android-developers] Re: dalvik bug?

2008-10-30 Thread fadden

On Oct 30, 5:44 am, Bradley Kite [EMAIL PROTECTED] wrote:
 I am running this bit of code within the emulator (SDK 1.0r)

                 Log.d(TAG, I am here - 1);
                 Location currentLocation =
 lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
                 Log.d(TAG, I am here - 2);

 The logcat output never shows the second log statement - and nothing
 after this code gets executed - its like the thread just dies??

 Can any body advise me on how to debug this further?

I would guess that the second statement is throwing an exception.

The easiest way to tell is to attach a debugger, set a breakpoint on
the second statement, do a step into and trace through it.  Eclipse
works well for this.

Also, make sure you're watching the log with the Eclipse plugin, stand-
alone DDMS, or adb logcat to watch for events.

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



[android-developers] Re: Manual Verify of jar files?

2008-10-30 Thread fadden

On Oct 29, 7:26 pm, jv [EMAIL PROTECTED] wrote:
 Hi, I was wondering if a tool exists to manually verify whether or not
 a certain library, possibly in the jar format is compatible with
 Android. I always end up getting Verify Errors in the middle of
 development while using certain libraries and quite unsure which
 portions of the libraries are causing the errors. Thanks.

The most common cause of a verifier complaint is the absence of a
dependent class.  If class A needs class B, and class B doesn't exist,
you're going to have trouble using class A.

The log file, viewable from the Eclipse plugin, stand-alone DDMS, or
adb logcat, will show detailed information.

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



[android-developers] Re: dalvik bug?

2008-10-30 Thread Bradley Kite

On 30/10/2008, fadden [EMAIL PROTECTED] wrote:

  On Oct 30, 5:44 am, Bradley Kite [EMAIL PROTECTED] wrote:
   I am running this bit of code within the emulator (SDK 1.0r)
  
   Log.d(TAG, I am here - 1);
   Location currentLocation =
   lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
   Log.d(TAG, I am here - 2);
  
   The logcat output never shows the second log statement - and nothing
   after this code gets executed - its like the thread just dies??
  
   Can any body advise me on how to debug this further?


 I would guess that the second statement is throwing an exception.

  The easiest way to tell is to attach a debugger, set a breakpoint on
  the second statement, do a step into and trace through it.  Eclipse
  works well for this.

  Also, make sure you're watching the log with the Eclipse plugin, stand-
  alone DDMS, or adb logcat to watch for events.


Hi there.

You were right - it looks like an exception is being thrown.

I've updated my permissions to include ACCESS_FINE_LOCATION and it now
works as expected!

Many thanks
--
Brad.

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



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-30 Thread Daniel Janev



On Oct 22, 9:48 am, Wesley [EMAIL PROTECTED] wrote:
 hi,

 sound bad...
 if this is the case means my app/idea is not going to work

 wesley.

 On Wed, Oct 22, 2008 at 2:45 PM, MoggoDude [EMAIL PROTECTED] wrote:

  Hi Guys,
         Just sending this update on the PathClassLoader problem. I
  started a blog in the android-internals group,

 http://groups.google.com/group/android-internals/browse_thread/thread...
  ,
  looks like it is not possible
  to dynamically load classes in devices installed with SDK 1.0, which I
  believe will be installed on the HTC G1 coming out soon.
  The remifications being, that any app which requires dynamic class
  loading will not function properly on the HTC G1.

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



[android-developers] How to force screen backlight brightness change immediately?

2008-10-30 Thread Peli

It seems changing the backlight through the following code does not
affect the light brightness immediately:

Settings.System.putInt(getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS, 255);

but the change is only visible after a while (e.g. after screen dims
and gets bright again later). It seems the Settings /
BrightnessPreferences.java (
http://git.source.android.com/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/BrightnessPreference.java;h=a9851cc93a2c6786af961d098767425e8c8c1a12;hb=HEAD
) uses IHardwareService to change brightness immediately.

This API is not available to us. So is there an alternative way to
immediately force the brightness change after setting it through
Settings.System? Is there a workaround that we could use?

Peli

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



[android-developers] Google maps API key and Android emulator...

2008-10-30 Thread vmohar98

I have a Google maps API key that I use in my pages for getting the
maps controls and other goodies. To test out how this would in Android
- I am trying http://10.0.2.2/mysample.html - but I get the error
message that the key is registered to a different server and asks me
to get another key. When I try http://localhost/mysample.html from
desktop chrome - all works fine.

What do I need to do so that I can test this out in the emulator while
running it on localhost (10.0.2.2 for the emulator)?

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: chmod unexpected permission error when logged into an actual device

2008-10-30 Thread hyc

Since it's already known that there's an Over-the-air firmware update
available for the G1, it's obvious that the flash is reprogrammable.
If the question is whether there are other avenues, besides OTA, I
would expect that the source code should answer that...

On Oct 29, 11:32 am, Mark Murphy [EMAIL PROTECTED] wrote:
 surferdude wrote:

 So, rolling all the way back to your statement of what you want, the
 questions you'll need answers for are:

 1. Which pieces of Android hardware will allow flashing of replacement
 firmware, and is the G1 one of them?

 #1 will determine how you can do it at all on hardware; #2 will
 determine if this is perpetually a non-mainstream patch or if your
 wishes and OHA's wishes can be met simultaneously.

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



[android-developers] Re: ArrayAdapter

2008-10-30 Thread Biosopher

I used notifyDataSetChanged() and it works fine for me.  Here's my
complete code with the notifyDataSetChanged() at the bottom in the
selection listener:

package com.pocketjourney.location.map;

import java.util.List;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;

import com.pocketjourney.R;
import com.pocketjourney.location.DestinationModel;

public class DestinationTypesListAdapter  extends BaseAdapter
implements OnItemClickListener

{
private ListStringallTypes, activeTypes;

private ListView destinationTypeList;

public DestinationTypesListAdapter(ListView destinationTypeList)
{
this.destinationTypeList = destinationTypeList;

this.allTypes = DestinationModel.getAllDestinationTypes();
this.activeTypes = DestinationModel.getActiveDestinationTypes();

destinationTypeList.setOnItemClickListener(this);
}

public View getView(int position, View convertView, ViewGroup
parent)
{
View destinationTypeLabel = null;
if ( convertView == null )
{
LayoutInflater inflater =
(LayoutInflater)parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
destinationTypeLabel =
inflater.inflate(R.layout.list_item_destination_type, null);
} else {
destinationTypeLabel = convertView;
}

String destinationType = (String) getItem(position);
TextView destinationTypeText = (TextView)
destinationTypeLabel.findViewById(R.id.destination_type);
destinationTypeText.setText(destinationType);

ImageView typeSelectedImage= (ImageView)
destinationTypeLabel.findViewById(R.id.destination_type_selected);
if (activeTypes.contains(destinationType)) {

typeSelectedImage.setImageResource(R.drawable.list_selection_checkmark);
} else {
typeSelectedImage.setImageResource(R.drawable.empty);
}

return destinationTypeLabel;
}

public int getCount()
{
return allTypes.size();
}

@Override
public Object getItem(int position)
{
return allTypes.get(position);
}

@Override
public long getItemId(int position) {
// We can simply use the array index as a unique id.
return position;
}

/**
 *  Implementation of OnItemClickListener
 */
@Override
public void onItemClick(AdapterView adapterView, View view, int
position, long id)
{
String destinationType = (String) getItem(position);
if (activeTypes.contains(destinationType)) {
activeTypes.remove(destinationType);
} else {
activeTypes.add(destinationType);
}
DestinationModel.setActiveDestinationTypes(activeTypes);
notifyDataSetChanged();
}
}

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



[android-developers] Video playback problem, video not show on surface, only sound is ok

2008-10-30 Thread fluke.l

my code:

mSV = (SurfaceView) findViewById(R.id.surface);
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(/sdcard/x.mp4);
mSV.setVisibility(SurfaceView.VISIBLE);
mp.setDisplay(mSV.getHolder());
mp.start();

Video just dont show. But I can hear the sound.

Any thing wrong?

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



[android-developers] Trackball button highlighting?

2008-10-30 Thread Sundog

Hello all, I'm the author of Nitoware Mahjongg Solitaire. The game
uses many small ImageButtons, and I expected the trackball to just
work as an alternative to touching them, but although it SEEMS to be
working, the user can't see any feedback that lets them know where the
trackball is so they can use it.

Does anyone know a way around 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Sending email

2008-10-30 Thread john

Hello!

Thanks in advance for trying to help me out. It doesn't seem like
anyone has found a solution to this problem yet, so hopefully we can
figure this out and help a lot of people.

I'm trying to get my application to send an email, but i can't seem to
find any solutions. Here's what I'm trying:

I've got an Intent (called sender in this example) set to
Intent.ACTION_SEND, with various email extras.

When I try startActivity(Intent.createChooser(sender, Select send
method.));
I get No application can handle this request

And when I try sendBroadcast(Intent.createChooser(sender, Select send
method.));
   Nothing happens at all.

Is there something I need to put in my manifest file, or am I doing
this completely wrong?

Any help anyone can offer would be greatly appreciated. Happy coding!

-John

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



[android-developers] repo init

2008-10-30 Thread dan

I have been unable to download the android source using the
instructions found at http://source.android.com/download. Running the
command:

repo init -u git://android.git.kernel.org/platform/manifest.git

results in:

android.kernel.org[0: 204.152.191.13]: errno=Connection refused
android.kernel.org[0: 204.152.191.45]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)

Anybody know what might be causing 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Image buttons

2008-10-30 Thread [EMAIL PROTECTED]


You can extend View Class and Override Ondraw() method and put some
code which performs  what you want!!

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



[android-developers] Re: Monitoring Browser activities

2008-10-30 Thread tim todd

that would be a terrible thing to do
t.


On Oct 29, 5:39 am, Piyush [EMAIL PROTECTED] wrote:
 Hi,

 I would like to know if its possible to sit between Android browser
 and the network layer so that I can monitor the activities of user
 through browser.  It could be something similar to on-device-proxy.
 What is the best way to get this done ?

 Thanks in advance !

 ~Piyush.

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



[android-developers] Re: Image buttons

2008-10-30 Thread Sundog

There is an alternative if you just want to highlight the image; use
setAlpha to ghost it. See Mahjongg Solitaire for how this looks.

On Oct 30, 7:38 am, for android [EMAIL PROTECTED] wrote:
 http://blog.pocketjourney.com/2008/04/30/android-tutorial-image-text-...



 On Thu, Oct 30, 2008 at 6:55 PM, Arun Mankad [EMAIL PROTECTED] wrote:
  Hi Mark,

  Can you plz explain How did u do that, I am a novice in Android, please
  help

  On Thu, Oct 30, 2008 at 6:33 PM, Mark Hansen [EMAIL PROTECTED]wrote:

  I ended up using ImageViews and making multiple images, I'd be curious
  if there was a better way as well.

  On Oct 30, 5:48 am, Arun Mankad [EMAIL PROTECTED] wrote:
   Can somebody tell me how o create buttons with images that have
  different
   image for focused and clicked state

   --
   Arun Mankad

  --
  Arun Mankad- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parcelable Types in external projects.

2008-10-30 Thread Casey Link

Just for posterity here's a link to a solution of the problem.

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

Casey

On Sun, Oct 26, 2008 at 9:56 PM, Casey Link [EMAIL PROTECTED] wrote:
 Hello,

 In my service interface I am trying to pass several custom types via
 the Parcelable api. Since I'm using eclipse and the custom types are
 in an other non-android project, I don't think AIDL is seeing them.
 The interface aidl file is generating a compile time error complaining
 it couldn't find the classes to import. In the other project I've
 created ClassName.aidl files that declare the types as Parcelable
 (as described here
 http://code.google.com/android/reference/aidl.html#exposingtheinterface),
 but that didn't seem to help.

 I suspect the problem is that the Parcelable files are in a
 non-android eclipse project. Is this the case?

 Regards,
 Casey Link


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



[android-developers] Re: chmod unexpected permission error when logged into an actual device

2008-10-30 Thread Jean-Baptiste Queru

Yes, there are other ways. You can drop a signed update image in
/sdcard/update.zip and have the recovery system flash it for you.

The code is here:
http://git.source.android.com/?p=platform/recovery.git;a=blob;f=recovery.c
(line 267).

JBQ

On Thu, Oct 30, 2008 at 9:26 AM, hyc [EMAIL PROTECTED] wrote:

 Since it's already known that there's an Over-the-air firmware update
 available for the G1, it's obvious that the flash is reprogrammable.
 If the question is whether there are other avenues, besides OTA, I
 would expect that the source code should answer that...

 On Oct 29, 11:32 am, Mark Murphy [EMAIL PROTECTED] wrote:
 surferdude wrote:

 So, rolling all the way back to your statement of what you want, the
 questions you'll need answers for are:

 1. Which pieces of Android hardware will allow flashing of replacement
 firmware, and is the G1 one of them?

 #1 will determine how you can do it at all on hardware; #2 will
 determine if this is perpetually a non-mainstream patch or if your
 wishes and OHA's wishes can be met simultaneously.

 


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



[android-developers] Re: OpenGL light strange behaviour

2008-10-30 Thread Steff

Hi

I found out myself that I needed to give normal-vectors to the OpenGL
engine. I went back to this question to explain what my solution was,
just to see that someone already had explained what the problem was.
Thanks anyway.

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



[android-developers] GTalk (XMPP) service, ADC, android market and wasted months

2008-10-30 Thread r a f t

hello,

we had developed an application (BabelFish) and had entered the ADC 1.
we were very hopeful, got very positive responses from friends and
forum users.

in short BabelFish is a translated voice and text IM (Instant
Messaging) service. it enables translated conversations among two or
more parties. each partner writes messages in his own language and his/
her message is instantly translated and delivered other partners in
their languages. optionally delivered messages are synthesized into
speech and played at destination handsets.

but unfortunately we got nothing in the contest. we weren't even in
the first 50% in neither of the judging criteria. it was really hard
to believe...

it was a contest, we somehow accepted the situation and put BabelFish
to shelf for later opportunities. now Android market is open, we
decided to put BabelFish there and guess what !? google had removed
GTalk (XMPP) service from api, which BabelFish mainly depends on.
remember the documentation at early releases, it was stated that XMPP
is the preferred way of device to device communication. now it's gone,
untill an unknown date, and we are left with WASTED months of work..
even if in the future GTalk service is put into api again, we lost the
advantage of being one of the first comers in the market..

looking from this perspective, i had reviewed all finalist and winner
applications. it's hard to say from descriptions but seems as none of
them are/were using GTalk service.

now i really WONDER if using GTalk service was a hidden judging
criteria. i assume at the time of ADC round 1 google had plans to
remove GTalk service from api and cannot afford giving prize to an
application which wont work on the actual device ! are there any
finalist appllications using GTalk service ?

if we had any clue, we would develop some other application or maybe
wouldn't develop any. it is really wasted months of work. google
should mention this earlier..

more about BabelFish and a short discussion about ADC judgement can be
found at:
http://groups.google.com/group/android-challenge/browse_thread/thread/af7260fddd7f80a7

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



[android-developers] Re: How to put apk to G1 Phone

2008-10-30 Thread Kipling Inscore

On Wed, Oct 29, 2008 at 11:36 PM, yasmin afrose [EMAIL PROTECTED] wrote:
 But I'm unable to follow it :( . Since In my HTC p3400, Menu  Settings 
 Personal tab, System Tab and Connection Tab is there. Each tab has no of
 operation except Development(What you mentioned).

 My Mobile OS is Windows Mobile 5.0 Packet PC Phone Edition.

 Is it possible to run our android application within my mobile?

Short answer: no.

Android could be ported to the HTC p3400, but I don't see anyone 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: GTalk (XMPP) service, ADC, android market and wasted months

2008-10-30 Thread blindfold

All I heard is that GTalkService was (supposedly temporarily) removed
for security reasons, already with SDK 0.9 beta:

http://android-developers.blogspot.com/2008/08/some-information-on-apis-removed-in.html

Of course that is still bad luck for your app.

On Oct 30, 5:55 pm, r a f t [EMAIL PROTECTED] wrote:
 hello,

 we had developed an application (BabelFish) and had entered the ADC 1.
 we were very hopeful, got very positive responses from friends and
 forum users.

 in short BabelFish is a translated voice and text IM (Instant
 Messaging) service. it enables translated conversations among two or
 more parties. each partner writes messages in his own language and his/
 her message is instantly translated and delivered other partners in
 their languages. optionally delivered messages are synthesized into
 speech and played at destination handsets.

 but unfortunately we got nothing in the contest. we weren't even in
 the first 50% in neither of the judging criteria. it was really hard
 to believe...

 it was a contest, we somehow accepted the situation and put BabelFish
 to shelf for later opportunities. now Android market is open, we
 decided to put BabelFish there and guess what !? google had removed
 GTalk (XMPP) service from api, which BabelFish mainly depends on.
 remember the documentation at early releases, it was stated that XMPP
 is the preferred way of device to device communication. now it's gone,
 untill an unknown date, and we are left with WASTED months of work..
 even if in the future GTalk service is put into api again, we lost the
 advantage of being one of the first comers in the market..

 looking from this perspective, i had reviewed all finalist and winner
 applications. it's hard to say from descriptions but seems as none of
 them are/were using GTalk service.

 now i really WONDER if using GTalk service was a hidden judging
 criteria. i assume at the time of ADC round 1 google had plans to
 remove GTalk service from api and cannot afford giving prize to an
 application which wont work on the actual device ! are there any
 finalist appllications using GTalk service ?

 if we had any clue, we would develop some other application or maybe
 wouldn't develop any. it is really wasted months of work. google
 should mention this earlier..

 more about BabelFish and a short discussion about ADC judgement can be
 found 
 at:http://groups.google.com/group/android-challenge/browse_thread/thread...

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



[android-developers] store image with alpha values

2008-10-30 Thread kingkung

Hey all,

How do I store images in a content provider WITH the alpha values in
tact?  I'm storing a semi-transparent image, but when I retrieve it,
the background is all black (it should be transparent).  Any help
would be appreciated.  Thank you,

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: The UK Release and Internationalization

2008-10-30 Thread cyntacks

Hi qvark,

Thanks for the link, I hadn't seen the Roadmap yet.

That's a bummer for us, but it does say q4, so hopefully the change
will be right around the corner.

Thanks again,

Kevin

On Oct 30, 10:15 am, qvark [EMAIL PROTECTED] wrote:
 I don't think the API is ready yet according to their 
 roadmap:http://source.android.com/roadmap



 Q4 2008

 Localization

 The UI and Application Framework for the Android 1.0 platform
 primarily targets English-speaking regions. To enable handset
 manufacturers to deploy devices in non-English-speaking countries, we
 will support the following localizations:

     * Strings localized into various languages.
           o Q4 2008: German
           o Q1 2009: French, Italian, es_es, zh_TW, Ja, NL, CZ
     * UI modifications (tabs, menus, homepage shortcuts, etc.) to
 support non-English languages.
     * New date and numeric formats.



 On Oct 29, 9:11 pm, cyntacks [EMAIL PROTECTED] wrote:

  Hi Everyone,

  I just wanted to give this a bump.

  Has anyone successfully internationalized their application? For
  example, I want to determine what region the user is in (UK or US) so
  I can provide English or Metric units on the backend for calculations.
  Is this as simple as using Java's locale, or does Android provide
  another type of support on top that I should be implementing?

  The API says this is coming 
  soon:http://code.google.com/android/devel/resources-i18n.html#i18n

  I realize I can provide different languages using the values-en,
  values-xx, etc. But what about determining that region in the java
  code?

  Thanks for your help,

  Kevin

  On Oct 29, 7:07 am, cyntacks [EMAIL PROTECTED] wrote:

   Hi,

   Last I read here on the board Android did not yet fully support
   internationalization (even though we have the directories for
   different languages, etc).

   1) Is this true?
   2) Will the normal Java syntax involving Locales be a valid work
   around?

   I ask because our application needs to know whether to use metric
   units or not. Just wondering what the best way to determine this may
   be on Android for the UK release today.

   Thanks for your help,

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



[android-developers] Re: Problems playing back Video

2008-10-30 Thread [EMAIL PROTECTED]

I'm fairly sure that you can't play video files from APK resources.
Video files are generally too large to distribute in APK's anyway.

Try putting your video on the sdcard and pass a pathname instead.

On Oct 29, 10:33 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I didn't setup the audio stream at the beginning, just tried it to see
 if it has any effect, it didn't have any

 how do I use a uri to refer to a local resource in the res folder?

 what does error code -4 mean ?

 is there a list of supported video formats or something ? i know for
 sure now its not related to the set display call as i removed it and
 an error still occurs
 i also tried the asynch version of prepare and it produced the same
 result error (-4,0)

 On Oct 29, 11:54 pm, Justin (Google Employee) [EMAIL PROTECTED]
 wrote:

   mp.setAudioStreamType(2);

  You should be using a constant here 
  fromhttp://code.google.com/android/reference/android/media/AudioManager.html
  , I'm guessing AudioManager.STREAM_MUSIC

  Additionally, do you even need to set this?

  Finally, try 
  usinghttp://code.google.com/android/reference/android/media/MediaPlayer.ht...)
  . It should do the same things you're doing basically, but perhaps
  not.

  Cheers,
  Justin
  Android Team @ Google

  On Oct 26, 12:11 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

   Hi,

   I've been trying to play videos obtained as a raw resource, here is
   what I did
   MediaPlayer mp = new MediaPlayer();
   mp.setDisplay(getHolder());
   mp.setDataSource(getContext().getResources().openRawResourceFd(R.raw.myvide
o).getFileDescriptor());
   mp.setAudioStreamType(2);
   mp.prepare();
   mp.start();
   ...

   this is not the exact code (deleted my last trial after it became
   horrendous)! but thats basically what I did

   I always got this exception:

   error: Prepare failed.: status=0xFFFC
   java.io.IOException: Prepare failed.: status=0xFFFC

   note that this worked perfectly with mp3s (without the setDisplay call
   ofc)

   I Googled the exception, found out that it was a common problem but
   haven't found any clear solutions, the only lead i found was
   a guy saying that it was a file format problem, however i tried this
   with many different 3gp, mp4 files

   was hoping anyone could help me with this issue... thanks in advance
   and best regards to you all
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: if I include the classes.zip of J2Me ??

2008-10-30 Thread Dana Li
No, You cannot include J2ME classes inside android because android is not
compatible with J2me platform and its working mechanism is not the same as
midlet.

Dana

On Fri, Oct 24, 2008 at 4:00 AM, nkijak [EMAIL PROTECTED] wrote:


 Did you try in the emulator? Probably be quicker than waiting for an
 answer here.

 On Oct 24, 3:13 am, Sudha [EMAIL PROTECTED] wrote:
  hi
  I have a stupid question
  suppose thru the eclipse if I put the J2Me classes.zip file to my
  android project.
  and I just create an Activity and a view which
  only calling or directing the lifecycle methods of j2me
  will it work ?
 
  I am dare to try this out...
  can anyone show some light on this
 



-- 
Dana

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



[android-developers] Re: store image with alpha values

2008-10-30 Thread zl25drexel

are you using drawable? i think drawable will handle transparent
background if your images are in formats that support transparency
(.gif, .png, etc)

On Oct 30, 1:19 pm, kingkung [EMAIL PROTECTED] wrote:
 Hey all,

 How do I store images in a content provider WITH the alpha values in
 tact?  I'm storing a semi-transparent image, but when I retrieve it,
 the background is all black (it should be transparent).  Any help
 would be appreciated.  Thank you,

 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Running an activity w/o external communications

2008-10-30 Thread Declan Shanaghy

There is a broadcast intent to indicate the user activated airplane mode.
http://code.google.com/android/reference/android/content/Intent.html#ACTION_
AIRPLANE_MODE_CHANGED

As for activating it yourself or monitoring radio states, I haven't delved
deep enough to provide info on that.


-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jose Vasconcellos
Sent: Friday, October 24, 2008 10:06 PM
To: Android Developers
Subject: [android-developers] Running an activity w/o external
communications


I would like to run an activity only if all communication paths (e.g.
gsm, wifi, bluetooth) are disabled. Is that possible?

A related questions, how to disable wireless communications? Is that
not a requirement in order to use android in a plane?




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



[android-developers] Re: Image buttons

2008-10-30 Thread mathiastck

Simplest way to do this is to create a custom drawable xml describe
what image to use for what state, described in this thread:

http://groups.google.com/group/android-developers/tree/browse_frm/thread/1906f24707594f67/17322a04f7af1a5b


On Oct 30, 2:48 am, Arun Mankad [EMAIL PROTECTED] wrote:
 Can somebody tell me how o create buttons with images that have different
 image for focused and clicked state

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



[android-developers] Re: GTalk (XMPP) service, ADC, android market and wasted months

2008-10-30 Thread r a f t

well, they have got definitely a point there. but i can't stop
thinking that plan of that removal had effected ADC results..

anyway, yes that is definetely a bad luck for BabelFish :/

On Oct 30, 7:11 pm, blindfold [EMAIL PROTECTED] wrote:
 All I heard is that GTalkService was (supposedly temporarily) removed
 for security reasons, already with SDK 0.9 beta:

 http://android-developers.blogspot.com/2008/08/some-information-on-ap...

 Of course that is still bad luck for your app.

 On Oct 30, 5:55 pm, r a f t [EMAIL PROTECTED] wrote:

  hello,

  we had developed an application (BabelFish) and had entered the ADC 1.
  we were very hopeful, got very positive responses from friends and
  forum users.

  in short BabelFish is a translated voice and text IM (Instant
  Messaging) service. it enables translated conversations among two or
  more parties. each partner writes messages in his own language and his/
  her message is instantly translated and delivered other partners in
  their languages. optionally delivered messages are synthesized into
  speech and played at destination handsets.

  but unfortunately we got nothing in the contest. we weren't even in
  the first 50% in neither of the judging criteria. it was really hard
  to believe...

  it was a contest, we somehow accepted the situation and put BabelFish
  to shelf for later opportunities. now Android market is open, we
  decided to put BabelFish there and guess what !? google had removed
  GTalk (XMPP) service from api, which BabelFish mainly depends on.
  remember the documentation at early releases, it was stated that XMPP
  is the preferred way of device to device communication. now it's gone,
  untill an unknown date, and we are left with WASTED months of work..
  even if in the future GTalk service is put into api again, we lost the
  advantage of being one of the first comers in the market..

  looking from this perspective, i had reviewed all finalist and winner
  applications. it's hard to say from descriptions but seems as none of
  them are/were using GTalk service.

  now i really WONDER if using GTalk service was a hidden judging
  criteria. i assume at the time of ADC round 1 google had plans to
  remove GTalk service from api and cannot afford giving prize to an
  application which wont work on the actual device ! are there any
  finalist appllications using GTalk service ?

  if we had any clue, we would develop some other application or maybe
  wouldn't develop any. it is really wasted months of work. google
  should mention this earlier..

  more about BabelFish and a short discussion about ADC judgement can be
  found 
  at:http://groups.google.com/group/android-challenge/browse_thread/thread...

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



[android-developers] problem with Notification (PendingIntent)

2008-10-30 Thread Sgom

Hello guys!

I have a problem with notifications (SDK 1.0)

I have wrote an application that, when an event occurs, prepare a
notification and puts it on the status bar.
Each of these notifications should start different instances of the
same Activity (a simple activity that shows some information).
The activity receives with the data to show also the integer value to
use to dismiss the notification that started it.
Let's call this Activity show.

Here is the problem: let's say i prepare a notification that should
launch my activity show with data first and put it on the status
bar.

Now I prepare a second notification that should launch show with
data second and put it on the status bar.

The two notifications have different values to be dismissed.

I would like that now, opening the menu containing notifications, if I
click the first notification show is launched and shows to the user
first, then the notification is dismissed. If I click on the second
notification show should be launched, display second, and also
this notification should be dismissed.

Instead what I get is that, independently of which of the two
notifications I click, show il launched and displays first, after
that it dismiss the notification I clicked. If now I click the
remaining notification show is launched, displays again first and
does't dismiss the notification (I must click clear notifications)

I think the problem is to prepare the PendingIntent with some flag,
but I don't know which.
I build the PendingIntent in this way:

PendingIntent myPendingIntent = PendingIntent.getActivity(context,
int, myIntent, Intent.FLAG_ACTIVITY_MULTIPLE_TASK);

where context is the context
int is 4 (a random value)
myIntent is the Intent to be used to launch the Activity (it has the
FLAG_ACTIVITY_NEW_TASK)

should I use some other flags?

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ArrayAdapter

2008-10-30 Thread Emery

You're doing it onItemClick, so it's probably invalidated for redraw
anyway. In my case the items are coming in on a separate thread. If I
was to click an item it would update then. But of course that's a very
weird interaction to touch the screen and suddenly all of the updates
show up at once.

On Oct 30, 9:28 am, Biosopher [EMAIL PROTECTED] wrote:
 I used notifyDataSetChanged() and it works fine for me.  Here's my
 complete code with the notifyDataSetChanged() at the bottom in the
 selection listener:

 package com.pocketjourney.location.map;

 import java.util.List;

 import android.content.Context;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.AdapterView;
 import android.widget.BaseAdapter;
 import android.widget.ImageView;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemClickListener;

 import com.pocketjourney.R;
 import com.pocketjourney.location.DestinationModel;

 public class DestinationTypesListAdapter  extends BaseAdapter
 implements OnItemClickListener

 {
         private ListString      allTypes, activeTypes;

         private ListView destinationTypeList;

         public DestinationTypesListAdapter(ListView destinationTypeList)
         {
                 this.destinationTypeList = destinationTypeList;

                 this.allTypes = DestinationModel.getAllDestinationTypes();
                 this.activeTypes = 
 DestinationModel.getActiveDestinationTypes();

                 destinationTypeList.setOnItemClickListener(this);
         }

         public View getView(int position, View convertView, ViewGroup
 parent)
         {
                 View destinationTypeLabel = null;
                 if ( convertView == null )
                 {
                         LayoutInflater inflater =
 (LayoutInflater)parent.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                         destinationTypeLabel =
 inflater.inflate(R.layout.list_item_destination_type, null);
                 } else {
                         destinationTypeLabel = convertView;
                 }

                 String destinationType = (String) getItem(position);
                 TextView destinationTypeText = (TextView)
 destinationTypeLabel.findViewById(R.id.destination_type);
                 destinationTypeText.setText(destinationType);

                 ImageView typeSelectedImage= (ImageView)
 destinationTypeLabel.findViewById(R.id.destination_type_selected);
                 if (activeTypes.contains(destinationType)) {

 typeSelectedImage.setImageResource(R.drawable.list_selection_checkmark);
                 } else {
                         typeSelectedImage.setImageResource(R.drawable.empty);
                 }

                 return destinationTypeLabel;
         }

         public int getCount()
         {
                 return allTypes.size();
         }

         @Override
         public Object getItem(int position)
         {
                 return allTypes.get(position);
         }

         @Override
         public long getItemId(int position) {
                 // We can simply use the array index as a unique id.
                 return position;
         }

         /**
          *  Implementation of OnItemClickListener
          */
         @Override
         public void onItemClick(AdapterView adapterView, View view, int
 position, long id)
         {
                 String destinationType = (String) getItem(position);
                 if (activeTypes.contains(destinationType)) {
                         activeTypes.remove(destinationType);
                 } else {
                         activeTypes.add(destinationType);
                 }
                 DestinationModel.setActiveDestinationTypes(activeTypes);
                 notifyDataSetChanged();
         }

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



[android-developers] Re: repo init

2008-10-30 Thread David Turner
Hmmm, the servers appear to be up and running. Could it be that you are
behind some sort of firewall ?

On Thu, Oct 30, 2008 at 5:15 PM, dan [EMAIL PROTECTED] wrote:


 I have been unable to download the android source using the
 instructions found at http://source.android.com/download. Running the
 command:

 repo init -u git://android.git.kernel.org/platform/manifest.git

 results in:

 android.kernel.org[0: 204.152.191.13]: errno=Connection refused
 android.kernel.org[0: 204.152.191.45]: errno=Connection refused
 fatal: unable to connect a socket (Connection refused)

 Anybody know what might be causing 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: The UK Release and Internationalization

2008-10-30 Thread Al Sutton

Kevin,

After doing some poking around the Android browser on the UK phone 
identifies itself with an en-gb localisation, so maybe you can already 
use Locale.getDefault() to see whats what.

Al.

cyntacks wrote:
 Hi qvark,

 Thanks for the link, I hadn't seen the Roadmap yet.

 That's a bummer for us, but it does say q4, so hopefully the change
 will be right around the corner.

 Thanks again,

 Kevin

 On Oct 30, 10:15 am, qvark [EMAIL PROTECTED] wrote:
   
 I don't think the API is ready yet according to their 
 roadmap:http://source.android.com/roadmap



 Q4 2008

 Localization

 The UI and Application Framework for the Android 1.0 platform
 primarily targets English-speaking regions. To enable handset
 manufacturers to deploy devices in non-English-speaking countries, we
 will support the following localizations:

 * Strings localized into various languages.
   o Q4 2008: German
   o Q1 2009: French, Italian, es_es, zh_TW, Ja, NL, CZ
 * UI modifications (tabs, menus, homepage shortcuts, etc.) to
 support non-English languages.
 * New date and numeric formats.



 On Oct 29, 9:11 pm, cyntacks [EMAIL PROTECTED] wrote:

 
 Hi Everyone,
   
 I just wanted to give this a bump.
   
 Has anyone successfully internationalized their application? For
 example, I want to determine what region the user is in (UK or US) so
 I can provide English or Metric units on the backend for calculations.
 Is this as simple as using Java's locale, or does Android provide
 another type of support on top that I should be implementing?
   
 The API says this is coming 
 soon:http://code.google.com/android/devel/resources-i18n.html#i18n
   
 I realize I can provide different languages using the values-en,
 values-xx, etc. But what about determining that region in the java
 code?
   
 Thanks for your help,
   
 Kevin
   
 On Oct 29, 7:07 am, cyntacks [EMAIL PROTECTED] wrote:
   
 Hi,
 
 Last I read here on the board Android did not yet fully support
 internationalization (even though we have the directories for
 different languages, etc).
 
 1) Is this true?
 2) Will the normal Java syntax involving Locales be a valid work
 around?
 
 I ask because our application needs to know whether to use metric
 units or not. Just wondering what the best way to determine this may
 be on Android for the UK release today.
 
 Thanks for your help,
 
 Kevin
 
 
   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


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



[android-developers] Android Camera

2008-10-30 Thread Spanish Android

Can someone tell me how use the Camera.takePicture(ShutterCallback
shutter, PictureCallback raw, PictureCallback jpeg) method. All
examples I find are with the CameraDevice class, not with
android.hardware.Camera.

Thanks a lot!

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



[android-developers] Application tries to overwrite Android System on G1

2008-10-30 Thread deadscenekid

I just recently tried to install my latest application on my G1 and
for some reason it tries to over write the Android SystemI have
signed the apk with my own personal keystore and it still tries to do
it, any help?

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



[android-developers] Re: GTalk (XMPP) service, ADC, android market and wasted months

2008-10-30 Thread Wiktor

That's bad luck not only for BabelFish, but for many applications and
developers (including me):

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

On 30 Paź, 19:39, r a f t [EMAIL PROTECTED] wrote:
 well, they have got definitely a point there. but i can't stop
 thinking that plan of that removal had effected ADC results..

 anyway, yes that is definetely a bad luck for BabelFish :/

 On Oct 30, 7:11 pm, blindfold [EMAIL PROTECTED] wrote:

  All I heard is that GTalkService was (supposedly temporarily) removed
  for security reasons, already with SDK 0.9 beta:

 http://android-developers.blogspot.com/2008/08/some-information-on-ap...

  Of course that is still bad luck for your app.

  On Oct 30, 5:55 pm, r a f t [EMAIL PROTECTED] wrote:

   hello,

   we had developed an application (BabelFish) and had entered the ADC 1.
   we were very hopeful, got very positive responses from friends and
   forum users.

   in short BabelFish is a translated voice and text IM (Instant
   Messaging) service. it enables translated conversations among two or
   more parties. each partner writes messages in his own language and his/
   her message is instantly translated and delivered other partners in
   their languages. optionally delivered messages are synthesized into
   speech and played at destination handsets.

   but unfortunately we got nothing in the contest. we weren't even in
   the first 50% in neither of the judging criteria. it was really hard
   to believe...

   it was a contest, we somehow accepted the situation and put BabelFish
   to shelf for later opportunities. now Android market is open, we
   decided to put BabelFish there and guess what !? google had removed
   GTalk (XMPP) service from api, which BabelFish mainly depends on.
   remember the documentation at early releases, it was stated that XMPP
   is the preferred way of device to device communication. now it's gone,
   untill an unknown date, and we are left with WASTED months of work..
   even if in the future GTalk service is put into api again, we lost the
   advantage of being one of the first comers in the market..

   looking from this perspective, i had reviewed all finalist and winner
   applications. it's hard to say from descriptions but seems as none of
   them are/were using GTalk service.

   now i really WONDER if using GTalk service was a hidden judging
   criteria. i assume at the time of ADC round 1 google had plans to
   remove GTalk service from api and cannot afford giving prize to an
   application which wont work on the actual device ! are there any
   finalist appllications using GTalk service ?

   if we had any clue, we would develop some other application or maybe
   wouldn't develop any. it is really wasted months of work. google
   should mention this earlier..

   more about BabelFish and a short discussion about ADC judgement can be
   found 
   at:http://groups.google.com/group/android-challenge/browse_thread/thread...

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



[android-developers] Re: About WebView setOnClickListener

2008-10-30 Thread Justin (Google Employee)

Actually, thinking about this more, you probably want to set an
OnTouchListener. Buttons and other widgets produce click events, but
the WebView doesn't. A click is an abstract event, typically
consisting of a screen touch and then removal of the finger without a
drag.

Cheers,
Justin
Android Team @ Google

On Oct 24, 1:38 pm, Justin (Google Employee) [EMAIL PROTECTED]
wrote:
 Could you post some code about how you construct the WebView and set
 the onClickListener?

 Cheers,
 Justin
 Android Team @ Google

 On Oct 21, 2:56 am, Dikers [EMAIL PROTECTED] wrote:

  I set a onclickListener on a webView, but when I click this webView,
  It doesn't work . Who can tell me about 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: differences between emulator (1.0rc1) and actual device (g1)

2008-10-30 Thread David Turner
the system images in the SDK 1.0 and the phone should be equivalent.
However, the issue is probably that the touch area on thephone is rather
large and overlaps other checkboxes, depending on the size of your finger.

How tightly packed are your checkboxes ?


On Thu, Oct 30, 2008 at 12:34 AM, Selmi [EMAIL PROTECTED] wrote:


 did anyone noticed any differences?

 in my case i have application which on emulator works perfectly, it
 has list of checkboxes and when i check any of them it stay checked
 etc,

 on real device sometimes when i check one of them other one gets
 checked too. similar things also happen when  list is scrolled

 so question is, is android on phone same as released SDK or is it
 different version, or what?
 


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



[android-developers] Re: Application tries to overwrite Android System on G1

2008-10-30 Thread Shawn Burkit


Are u downloading it? That fits in with the issue I have discovered with 
apache servers if u download on gsm instead of wifi the item downloaded is 
missing about 5k and tries to install over the android system and fails u 
need to use non apache or wifi when u download it

On Oct 30, 2008 2:57 PM, David Turner [EMAIL PROTECTED] wrote:

What do you mean by it tries to over write the Android system exactly ?How 
do you try to install your application by the way ?

On Thu, Oct 30, 2008 at 5:56 PM, deadscenekid [EMAIL PROTECTED] 
wrote:I just recentl...

--~--~-~--~~~---~--~~ You received this 
message because you are sub...


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



[android-developers] adb devices command sees multiple offline devices attached - but it's the same device

2008-10-30 Thread Rob Franz

Hi all
Is there a way to clear the list of devices?

What I'm seeing:
$ adb devices
List of devices attached
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827offline
HT842GZ47827device

I've tried restarting the phone but the 'offline' entries don't go
away.  This is making it impossible to initiate a shell or logcat:
$ adb shell
error: more than one device and emulator

Is there a way to do this without rebooting my computer.

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android Camera

2008-10-30 Thread blindfold

See 
http://groups.google.com/group/android-developers/attach/96ae47051a087fc1/CameraApiTest.zip
but note that this code for an older SDK and takePicture() now takes
three arguments, as in your own posting.

On Oct 30, 7:04 pm, Spanish Android [EMAIL PROTECTED] wrote:
 Can someone tell me how use the Camera.takePicture(ShutterCallback
 shutter, PictureCallback raw, PictureCallback jpeg) method. All
 examples I find are with the CameraDevice class, not with
 android.hardware.Camera.

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



[android-developers] Re: Sending email

2008-10-30 Thread Justin

John,

Take a look at
http://code.google.com/android/reference/android/content/Intent.html ,
there are several e-mail related fields you probably want to set. For a
mime type try 'message/rfc822' or 'message/rfc2822'. I haven't tried this
myself, so let me know how it works.

Cheers,
Justin
Android Team @ Google

Original Message Follows:

From: john [EMAIL PROTECTED]
Subject: [android-developers] Sending email
Date: Thu, 30 Oct 2008 08:02:36 -0700 (PDT)

Hello!

Thanks in advance for trying to help me out. It doesn't seem like
anyone has found a solution to this problem yet, so hopefully we can
figure this out and help a lot of people.

I'm trying to get my application to send an email, but i can't seem to
find any solutions. Here's what I'm trying:

I've got an Intent (called sender in this example) set to
Intent.ACTION_SEND, with various email extras.

When I try startActivity(Intent.createChooser(sender, Select send
method.));
I get No application can handle this request

And when I try sendBroadcast(Intent.createChooser(sender, Select send
method.));
   Nothing happens at all.

Is there something I need to put in my manifest file, or am I doing
this completely wrong?

Any help anyone can offer would be greatly appreciated. Happy coding!

-John




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



[android-developers] Re: Wiring emulator services to PC's

2008-10-30 Thread David Turner
Moreover, the emulator is just a normal application and doesn't have
specific administrative priviledges to access low-level wireless protocol
packets (which would be needed to do anything that ressemble what's
described here)

On Fri, Oct 24, 2008 at 7:17 PM, Justin (Google Employee) [EMAIL 
PROTECTED]wrote:


 No. This would require extensive modification to the emulator. It
 would also require a lot of work for each specific platform.

 Cheers,
 Justin
 Android Team @ Google

 On Oct 19, 7:27 am, humanoid [EMAIL PROTECTED] wrote:
  All:
 
  Is it possible to use a laptop's bluetooth (wireless connection, WiFi,
  etc.) to wire them to the android emulator so that they can be used/
  tested from within code as if the application was running on the
  real thing.
 
  Regards ...
 


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



[android-developers] Re: Android Camera

2008-10-30 Thread blindfold

Sorry, bad link - should have been
http://groups.google.com/group/android-developers/attach/96ae47051a087fc1/CameraApiTest.zip?part=4

On Oct 30, 8:32 pm, blindfold [EMAIL PROTECTED] wrote:
 Seehttp://groups.google.com/group/android-developers/attach/96ae47051a08...
 but note that this code for an older SDK and takePicture() now takes
 three arguments, as in your own posting.

 On Oct 30, 7:04 pm, Spanish Android [EMAIL PROTECTED] wrote:

  Can someone tell me how use the Camera.takePicture(ShutterCallback
  shutter, PictureCallback raw, PictureCallback jpeg) method. All
  examples I find are with the CameraDevice class, not with
  android.hardware.Camera.

  Thanks a lot!

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



[android-developers] rejecting opcode 0x6e - Android 1.0 R1 SDK

2008-10-30 Thread Sean Sullivan


Environment:  Android 1.0 R1 SDK + Eclipse 3.4

My application uses some third party libraries.  The libraries are:

   openxri-client-1.0.1.jar
   openxri-syntax-1.0.1.jar
   openid4java 0.9.5 jar


When I run my application in the emulator, I observe this error:

W/dalvikvm(  173): VFY: unable to find class referenced in signature
(Lorg/openxri/xml/XRDS;)
W/dalvikvm(  173): VFY: unable to resolve virtual method 1465: Lorg/
openxri/xml/XRDS;.getFinalXRD ()Lorg/openxri/xml/XRD;
W/dalvikvm(  173): VFY:  rejecting opcode 0x6e at 0x000f
W/dalvikvm(  173): VFY:  rejected Lorg/openid4java/discovery/
Discovery;.extractDiscoveryInformation (Lorg/openxri/xml/XRDS;Lorg/
openid4java/discovery/Identifier;)Ljava/util/List;
W/dalvikvm(  173): Verifier rejected class Lorg/openid4java/discovery/
Discovery;
D/AndroidRuntime(  173): Shutting down VM


Can somebody explain what rejecting opcode 0x6e means?

Sean

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



[android-developers] Verify Error with HTTPMIME / MIME4J

2008-10-30 Thread Alvin Yates

So, in following this post

http://groups.google.com/group/android-developers/browse_thread/thread/e4230ed22c196772?tvc=2


...I started implementing a test multipart message in a short-lived
Activity using only StringBody classes, and ran into the Dalvik VM
Verify error against my class.  It seems to stem from the creation of
the MultipartEntity object I am using for my HTTP POST.

This was built using the latest stable version of MIME4J and HTTPMIME,
along with Apache Commons IO (which isn't really relevant for the
error I don't think).

Source in the offending method is as follows:

private void sendTestMessage(){
HttpResponse response = null;
HttpClient connection = new DefaultHttpClient();
HttpPost upload = new HttpPost(App.WEB_ROOT + App.WEB_SIGNUP);
MultipartEntity uploadData = new MultipartEntity();

// Commented code to narrow down verification error

finish();
}


I can't figure out what is wrong with doing this at all.  Nor can I
figure out why I would be getting a verify error on an opcode as a
result of the MultipartEntity creation.

Does anyone have any ideas or suggestions on how to either fix this
problem, or a workaround?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: : How to stops the activity from getting restarted when mode changes from LandScape to Portrait or vice-versa

2008-10-30 Thread Alvin Yates

Given that the screen probably has to rerender the layout as a result
of the change in orientation, I really doubt that's the case.  I'm
also not sure why it would be a pressing issue, since the functions it
uses to do so are things you have to write anyway for normal app
operation.

If you want to force a particular layout each time, however, you can
specify that in the manifest file using android:screenOrientation for
that particular activity.

The screen doesn't flicker (at least in the emulator), but I have no
idea if it will still go through the lifecycle changes as a result.

On Oct 30, 4:52 am, Imran [EMAIL PROTECTED] wrote:
 H Al

     Is there any way to stop the activity from getting  restarted
 when the mode changes from LandScape to Portrait or vice-versa

 Please help me Out Guysss...

 Thanks in Advance for any Replays..

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



[android-developers] Re: How to design a layout

2008-10-30 Thread Alvin Yates

If you only use one layout, you're telling Android to render 4 objects
in a single row.  For your design (Using LinearLayout at least) you
either need:

LinearLayout ...horizontal
  LinearLayout ...vertical  /
  LinearLayout ...vertical  /
/

... or...

LinearLayout ...vertical
  LinearLayout ...horizontal  /
  LinearLayout ...horizontal  /
/

You may also be able to use a TableLayout or RelativeLayout if you're
feeling frisky.  Also, be aware that images in Android seem to be
fairly finicky for me at least.  If the image seems to distort your
layout, you probably need to fix the canvas the image is drawn on,
even if the background is transparent.

On Oct 30, 4:24 am, Breno [EMAIL PROTECTED] wrote:
 Hey every one, i want to to a layout like this

 *
 *#   Text here                   text here  *
 *#   Text here         small icon here   *
 *#                                                  *
 *

 where ### is a image of 48x48. This will be used as a contact list,
 with person photo, name, number, status and status icon. I did
 something like that, but i'm not able to do like this. My xml is

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

     ImageView android:id=@+id/icon
         android:layout_width=48dip
         android:layout_height=48dip /

     TextView android:id=@+id/name
         android:layout_gravity=left|top
         android:layout_width=wrap_content
         android:layout_weight=0.0
         android:layout_height=wrap_content
         android:textStyle=bold /

             TextView android:id=@+id/number
         android:layout_gravity=bottom|left
         android:layout_width=wrap_content
         android:layout_weight=0.0
         android:layout_height=wrap_content /

    ImageView android:id=@+id/icon_presence
         android:layout_gravity=right|bottom
         android:layout_width=19dip
         android:layout_height=19dip /

      TextView android:id=@+id/presence
         android:layout_gravity=right|top
         android:layout_width=wrap_content
         android:layout_weight=0.0
         android:layout_height=wrap_content /
 /LinearLayout

 Thanks a lot,

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



[android-developers] Re: How to add a ImageButton from layout(xml)

2008-10-30 Thread Alvin Yates

If what you're describing went from white rectangle around the image
with an orange border to the button is solid white even while
clicking on it than what you need to do is edit the image file itself
to remove the background color.  If you have Photoshop/GIMP, you
should be able to do it, especially if you still have the layers.  If
you only have a single layer, it will probably much harder, but still
doable.

On Oct 29, 10:25 am, Arun Mankad [EMAIL PROTECTED] wrote:
 Thank you mark it worked, but those buttons cannot be highlighted with that
 orange shade as in Normal Button, how can i achive that

 On Wed, Oct 29, 2008 at 7:19 PM, Mark Murphy [EMAIL PROTECTED]wrote:





  Arun Mankad wrote:
   Can anybody tell me How to add a ImageButton from layout(xml), I tried
   ImageButton

   ImageButton
   android:id=@+id/continue_button
   android:src=@drawable/sms
   /

  android:background

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 1.3 Published!

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



[android-developers] Re: differences between emulator (1.0rc1) and actual device (g1)

2008-10-30 Thread Selmi

checkboxes have default dimensions and spacve between them is about
50% of checkbox height
could be that scrolled with finger its possible to touch more lines at
once

On 30. Okt, 20:01 h., David Turner [EMAIL PROTECTED] wrote:
 the system images in the SDK 1.0 and the phone should be equivalent.
 However, the issue is probably that the touch area on thephone is rather
 large and overlaps other checkboxes, depending on the size of your finger.

 How tightly packed are your checkboxes ?

 On Thu, Oct 30, 2008 at 12:34 AM, Selmi [EMAIL PROTECTED] wrote:

  did anyone noticed any differences?

  in my case i have application which on emulator works perfectly, it
  has list of checkboxes and when i check any of them it stay checked
  etc,

  on real device sometimes when i check one of them other one gets
  checked too. similar things also happen when  list is scrolled

  so question is, is android on phone same as released SDK or is it
  different version, or what?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] my post is not appearing

2008-10-30 Thread Ernest Freund

Hi, my recent post to the Android 'Developer' group is not appearing.  I posted 
it about 45 minutes ago.  my login is:

[EMAIL PROTECTED]

Please help.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SDCard and SQLiteOpenHelper problem

2008-10-30 Thread mickrobk

I dont think you can use the SQLiteOpenHelper for anything but db's in
your data directory, but you can open them given any path (including
one to the sd card) with this:

http://code.google.com/android/reference/android/database/sqlite/SQLiteDatabase.html#openDatabase(java.lang.String,%20android.database.sqlite.SQLiteDatabase.CursorFactory,%20int)

On Oct 29, 10:12 am, wescorp [EMAIL PROTECTED] wrote:
 Hello,

 I need to be able to work with databases on the sdcard.

 I've been using the following code snippet from the NotePad
 application and works perfectly on the emulator without using the
 sdcard.

 private static class DatabaseHelper extends SQLiteOpenHelper {
 DatabaseHelper(Context context) {
 super(context, mydb.sqlite, null, 2);

 }

 When I include the path to the db as
  /sdcard/application/mydb.sqlite

 the following error occurs
  10-29 09:57:04.798: ERROR/AndroidRuntime(200): Caused by:
 java.lang.IllegalArgumentException: File /sdcard/application/
 mydb.sqlite contains a path separator

 The sdcard is properly emulated.
 The path exists.

 I've looked around but no obvious solution to me.

 Any help greatly appreciated.

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



[android-developers] Re: Notification manager problem

2008-10-30 Thread akurni

nevermind I solve the problem

On Oct 29, 8:05 pm, akurni [EMAIL PROTECTED] wrote:
 Hi, I'm trying to set a notification from my application and when a
 user click the notification it will open my application with the data.
 the notification works fine, but the my application also get launch
 when the notification being set. I thought the intent that I set up in
 pending intent will only get launch when the notification is clicked
 by the user.

 The code for setting up the notification

  protected void showNotification() {
         // look up the notification manager service
         NotificationManager nm =
 (NotificationManager)getSystemService(NOTIFICATION_SERVICE);

         Intent newIntent = new Intent(Intent.ACTION_VIEW, mUri, this,
 NoteEdit.class);
         newIntent.putExtra(getString(R.string.clear_notification),
 true);
         newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         // The PendingIntent to launch our activity if the user
 selects this notification
         PendingIntent contentIntent = PendingIntent.getActivity(this,
 0,
                         newIntent, 0);

         // The ticker text, this uses a formatted string so our
 message could be localized
         String tickerText =
 getString(R.string.note_reminder_notification) +   + mTitle;

         // construct the Notification object.
         Notification notif = new
 Notification(R.drawable.ic_notification, tickerText,
                 System.currentTimeMillis());

         // Set the info for the views that show in the notification
 panel.
         notif.setLatestEventInfo(this, mTitle, mNote, contentIntent);

         // after a 100ms delay, vibrate for 250ms, pause for 100 ms
 and
         // then vibrate for 500ms.
         //notif.vibrate = new long[] { 100, 250, 100, 500};

         // Note that we use R.layout.incoming_message_panel as the ID
 for
         // the notification.  It could be any integer you want, but we
 use
         // the convention of using a resource id for a string related
 to
         // the notification.  It will always be a unique number within
 your
         // application.
         int notifId = R.string.note_reminder_notification + mId;
         nm.notify(notifId, notif);
     }

 Anybody can give me some pointer why it's doing this? Is there anyway
 to get the sender info of an intent on the receiver side?

 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: adb devices command sees multiple offline devices attached - but it's the same device

2008-10-30 Thread Mark Murphy

Rob Franz wrote:
 Hi all
 Is there a way to clear the list of devices?
 
 What I'm seeing:
 $ adb devices
 List of devices attached
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827offline
 HT842GZ47827device
 
 I've tried restarting the phone but the 'offline' entries don't go
 away.  This is making it impossible to initiate a shell or logcat:
 $ adb shell
 error: more than one device and emulator
 
 Is there a way to do this without rebooting my computer.

Try the following:

-- Unplug all devices and close all emulators
-- Run adb -kill-server, or otherwise kill off your running adb process
-- Try running adb devices again, and you should get an empty list
-- Try firing up emulators or plugging in devices, and they should start 
appearing (and, hopefully, disappearing once closed)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.3 Published!

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



[android-developers] Re: Mouse Gesture for Navigation?

2008-10-30 Thread Rohit Mordani

I THINK the problem is that in the emulator, pressing the left mouse
button is more like a tap and that sets the MotionEvent.Action to be
ACTION_DOWN. As a result the onDown() method of the OnGestureListener
is called instead of onFling(). There might be a way to emulate the
fling in the emulator but I am not sure of it. If anyone finds out
then please let me know. That would then call onFling() correctly I
think

Rohit


On Sep 22, 6:40 am, kingtut [EMAIL PROTECTED] wrote:
 Any luck in getting the onFling or onScroll event to fire? I am facing
 the same problem.

 On Sep 12, 5:14 pm, Mark Hansen [EMAIL PROTECTED] wrote:

  Ok, I'll keep trying it.. for some reason the events aren't firing
  such as Fling etc.

  On Sep 12, 10:12 am, Kavi [EMAIL PROTECTED] wrote:

   ListView is a kind of View, so you should be able to attach the
   GestureDetector to your ListView as well.


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



[android-developers] Re: Gesture detection

2008-10-30 Thread Rohit Mordani

I am facing the same problem. The onFling() method is never called.

I THINK the problem is that in the emulator, pressing the left mouse
button is more like a tap and that sets the MotionEvent.Action to be
ACTION_DOWN. As a result the onDown() method of the OnGestureListener
is called instead of onFling(). There might be a way to emulate the
fling in the emulator but I am not sure of it. If anyone finds out
then please let me know. That would then call onFling() correctly I
think

Rohit


On Oct 29, 2:12 pm, zl25drexel [EMAIL PROTECTED] wrote:
 Erik,

 I tried your codes, the onScroll and onFling method are still not
 being called.

 On Oct 11, 7:10 pm, Erik Calissendorff [EMAIL PROTECTED]
 wrote:

  Hi Kingtut,

  I believe that this code should work for you, I use this solution in
  my Activity:

  @Override
  public boolean dispatchTouchEvent(MotionEvent ev) {
    boolean returnValue=false;
    returnValue=returnValue | mGestureDetector.onTouchEvent(ev);
    returnValue=returnValue | super.dispatchTouchEvent(ev);
    return returnValue;

  }

  Good luck with the development.


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



[android-developers] Windows ADB Driver?

2008-10-30 Thread strazzere

For some reason I'm not able to connect to my G1 android device using
windows xp. I can connect fine with linux (ubuntu), however when
connecting to a windows machine I receive USB Device not recognized.

I've looked at the documentation here;
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

And followed it to no avail. I've also tried specifically selecting
the android_usb.inf file when searching for drivers however it says
it is not the correct hardware. I have this occuring on two windows xp
machines.

Has anyone gotten this to work on their windows XP machine? I know
someone running vista that it worked for, though I don't see THAT
being the problem. Any come across an error like this and happen to
know a fix?

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



[android-developers] Context from which to initiate Service via Alarm Manager; Application Model Questions

2008-10-30 Thread 3D

I've created a simple app. to help me better understand a few key
components in the real app I'm making.  A snippet of what I've done:

- an Activity is launched (lets call it the Home Activity) - from
here I schedule an alarm - the alarm sets off a Pending Intent that
starts a Service.

- the above steps appear to do what I want them to do.

My questions:

- is a scheduled alarm persistent with respect to its creating process
(I believe so) ?  If the Home Activity is destroyed, the alarm still
goes off, correct?

- the PendingIntent that the alarm calls as well as the Intent nestled
within both have a Context of the Home Activity.  Is this a problem?
Does the system launch the Home Activity again (if it has been
destroyed since scheduling the alarm) just to launch the Service?

- the Service does its task (some networking which will take a couple
seconds) and then possibly creates a notification before killing
itself (the alarm is repeating so it will get called again later).
Does the Service need to make a new Thread to do its work in?  The
user is not interacting with the Home Activity at this point so I
don't think a new Thread is needed.

I think that sums up my questions for now.  Advice will be greatly
appreciated!

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



[android-developers] Re: Problem with the onUpdate method of an SQLiteOpenHelper

2008-10-30 Thread Alistair.

Okay I fixed it. Not sure if the solution will apply to you.

In my 'onUpgrade' function the table name value was incorrect.

Basically it looks like you are not dropping the table you
subsequently then attempt to recreate. Check your defns.

Al.


On Oct 29, 8:16 pm, Frew [EMAIL PROTECTED] wrote:
 So I presume that no one else has seen this error?

 -fREW

 On Oct 27, 8:30 pm, Frew [EMAIL PROTECTED] wrote:

  Ok, so everything that I've been doing with my db has been fine until
  I changed it.  I made sure that the onUpgrade was right and I get
  errors nonetheless.  Here is my method:

          @Override
          public void onUpgrade(SQLiteDatabase db, int oldVersion, int
  newVersion) {
                  db.execSQL(DROP TABLE IF EXISTS  + TABLE_NAME);
                  db.execSQL(DROP TABLE IF EXISTS  + FIRST_RUN_TABLE);
                  onCreate(db);
          }

  and here is the error:

  android.database.sqlite.SQLiteException: Can't upgrade read-only
  database from version 1 to 2

  I can't seem to find my error.  Can you tell what I am doing wrong
  here?

  Thanks!
  -fREW

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



[android-developers] Unlocked access to wifi app store? Reflashing the firmware?

2008-10-30 Thread David Erickson

Hi everyone, a couple questions relating to the G1. I am a PhD student
and am interested in picking up a G1, however I am wondering if you
can buy the phone unlocked, and still get access to all of its
features over wifi (eg the app store, etc), but without a voice/data/
3g contract?

Secondly, I and my colleagues would like to do development on it,
including recompiling the OS from scratch with modifications and
flashing it onto the phone. Is this possible by an end user? And what
features do you lose from flashing it that are not open source? (I
would imagine everything relating to Tmobiles network, but what else?)

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   >