[android-developers] Re: Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread hackbod

Well, you need to have the source .aidl file in the sources of the app
that is using it, just like you have it in the library.  These don't
work like Java files where you can link to the generated jar or
whatever without the source; the source is needed for everyone that is
compiling against it.

On Nov 7, 9:02 pm, DulcetTone <[EMAIL PROTECTED]> wrote:
> Hi, hackbod.
> Can you be more explicit in this?
>
> tone
>
> On Nov 7, 11:53 pm, hackbod <[EMAIL PROTECTED]> wrote:
>
> > You'll need to make the source .aidl files available for them to
> > import.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] trying to test applications

2008-11-07 Thread [EMAIL PROTECTED]

Hi,

I have got some time to kill and would be happy to help some one to
test in G1 emulator.

Thanks and Regards,
Madhuri

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] polite request for better error messages

2008-11-07 Thread Jason Proctor

hey, give me a break - for once i'm celebrating a *great* error message :-)



>Just to amplify a bit on Dianne's point, Android is a heterogeneous
>system that includes subsystems that were originally open source,
>third party proprietary IP (much of which is now open source), Google
>propietrary IP, and new IP that was created by Google specifically for
>Android. Some of these subsystems have very transparent error
>reporting, and some are quite opaque. There are ongoing efforts to
>improve error reporting, but they have to be balanced against the
>demand for bug fixes and new features.
>
>On Nov 7, 3:41 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
>>  happy to report that MediaRecorder, at least, helpfully logs --
>>
>>  11-07 15:39:08.848: ERROR/AudioFlinger(33): Request requires
>>  android.permission.RECORD_AUDIO
>>
>>  -- when an attempt to record is made without the proper permission.
>>
>>  bravo! i live in hope that all of Android logs such messages someday.
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Bugs in android ListIterator class

2008-11-07 Thread Dark pp

Hi,
I found there are two bugs in ListIterator, which are the next() and
nextIndex() functions. The two functions can't give the right result.
But the prev() function is OK.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 SDK 0.7

2008-11-07 Thread Suhas Kaundinya

Hello,

Can anyone of you provide me with the 0.7 version of Android SDK
Eclipse plugin ?

Best,
Suhas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: IMAP Email message body is "null"

2008-11-07 Thread cadence

I have the new G1 Tmobile phone, I can receive messages from a friend
using webtv as their main source for emailing, on my main computer at
home, but when I recieve the same message from them on my phone it
shows "null" only as well. I too am having a difficult time. Not sure
if anyone can make any sense of this. Let me know if you can. Thanks.

coszmos wrote:
> Not sure if this is where bug reports go, but in lieu of a known
> tracking mechanism here's my bug:
>
> Synopsis: IMAP Email message body is "null"
>
> Platform: T-Mobile G1
>
> Issue: Using IMAP Email client, some messages contain a body
> consisting of the word "null".  This is using the Sun Java System
> Messaging Server.  The issue does not happen on all emails, just mail
> from a particular sender; usually the sender is from an automated
> email system, such as Clarify or Radiance.
>
> Notes: Viewing the same emails from Thunderbird show the whole
> message.
>
> Thanks,
> Brian

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Arabic support

2008-11-07 Thread Dark pp

Arabic will change your phone style, right to left.

On 11月8日, 上午6时49分, "meetmas.com" <[EMAIL PROTECTED]> wrote:
> Please help me
> i have 2 probleams
> 1. i don't know how can i connect my mobile to pc
> 2.can anyone help me please to install arabic language on my Android
> G1 (( t-mobile))
> i realy need install this language.
>
> 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: How to open the keyboard in emulator?

2008-11-07 Thread [EMAIL PROTECTED]

Hi All,

Am also facing the same problem, how to make the keyboard working for
composing an sms?

Thanks
steve

On Nov 7, 12:28 pm, Android Shadow <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> when I trying to use the short message feature in emulator, I found I
> cannot input anything.
>
> "openkeyboardto compose message" is shown on the display. It looks
> like thekeyboardhas not been enabled.
>
> Could you help me to know how to enable thekeyboard?
>
> Thanks
>
> B.R.
> Shadow

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread DulcetTone

Hi, hackbod.
Can you be more explicit in this?

tone

On Nov 7, 11:53 pm, hackbod <[EMAIL PROTECTED]> wrote:
> You'll need to make the source .aidl files available for them to
> import.
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread hackbod

You'll need to make the source .aidl files available for them to
import.

On Nov 7, 3:21 pm, DulcetTone <[EMAIL PROTECTED]> wrote:
> I have a custom Parcelable which I have gotten working internally in
> the project in which it is compiled.
>
> That project is then exported as a JAR in Eclipse, and this JAR is in
> turn referenced by another project which wants to pass the custom
> Parcelable as a parameter in AIDL calls.
>
> However, when interfaces try to use this, the import statement for the
> custom parcelable in the interfaces' .aidl files show a little red "no
> go" sign which a mouseover details as meaning "couldn't find import
> for class com.foo.MyCustomParcelable"
>
> Is the aidl not smart enough to look to find these items in the JAR
> file the failing project uses externally?
>
> How might I work around this?
>
> tone
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 AlarmManager wake up to do scheduled work when phone is asleep?

2008-11-07 Thread hackbod

It depends on whether you are using a wakeup alarm or not -- there are
currently four kinds of alarms define, two of which wake up the
device.

On Nov 7, 8:37 pm, j <[EMAIL PROTECTED]> wrote:
> According to API doc for AlarmManager.set :
> "Alarm intents are delivered with a data extra of type int called
> Intent.EXTRA_ALARM_COUNT that indicates how many past alarm events
> have been accumulated into this intent broadcast. Recurring alarms
> that have gone undelivered because the phone was asleep may have a
> count greater than one when delivered. "
>
> Does this imply when my phone is asleep, AlarmManager does not wake up
> to do its scheduled work until the phone wakes up?   Can someone
> clarify?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Does AlarmManager wake up to do scheduled work when phone is asleep?

2008-11-07 Thread j

According to API doc for AlarmManager.set :
"Alarm intents are delivered with a data extra of type int called
Intent.EXTRA_ALARM_COUNT that indicates how many past alarm events
have been accumulated into this intent broadcast. Recurring alarms
that have gone undelivered because the phone was asleep may have a
count greater than one when delivered. "

Does this imply when my phone is asleep, AlarmManager does not wake up
to do its scheduled work until the phone wakes up?   Can someone
clarify?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Unable to view "M5 to 0.9 Porting and Migration Tips"

2008-11-07 Thread Aniruddha

Hi.

  I would like to know if I can get a look at the tips present in this
link

  
http://groups.google.com/group/android-developers/web/m5-to-0-9-porting-and-migration-tips

  I really could use some help in porting an application from the sdk
m5 to version 0.9. I hope my request is not inappropriate.
  Thanks.

Regards.
Aniruddha.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] !

2008-11-07 Thread g1ster

I had trouble get the MediaRecorder to work on g1 (actually with the
emulator as well). I have the following samle code:

MediaRecorder mRecorder = new MediaRecorder();

mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
 
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mRecorder.setOutputFile(mPath);
mRecorder.prepare();
mRecorder.start();

It fails at the last line. Couldn't find much from the thrown
Exception - all it says was "start failed".

Any ideas?

Anyone with working MediaRecorder and/or MediaPlayer samples code?

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] How to build sdk for windows in Ubuntu

2008-11-07 Thread BradChow

I can build sdk successfully for linux by 'make sdk' in Ubuntu OS.
However, I want to build sdk for windows.
I found the cause is that in 'buid/cores/envsetup.mk, the $HOST_OS
will be set. In Ubuntu, $HOST_OS will be linux.

So, I can't build sdk for windows in Ubuntu ?
or someone can help me ?

Thanks.
Brad Chou
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Head-scratcher: NullPointerException from startActivity(ACTION_CALL)

2008-11-07 Thread Chris
You don't check if Uri.parse returns null, do you?

On Fri, Nov 7, 2008 at 3:53 PM, dreamerBoy <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm attempting to initiate an outgoing call from inside a Service.
>
> In onStart(), I create an ACTION_CALL Intent, then attempt to start an
> Activity
>
> myIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +
> phoneNumber));
>
> initiateCall.startActivityForResult(myIntent,
> CALL_SETUP_ACTIVITY_ID);
>
> However, when I run the code I get a NullPointerException.  Clearly,
> the intent and activity are non-null, so I'm wondering what Android is
> lacking here.
>
> 11-07 13:24:19.801: INFO/PhoneTestService(1250): onCreate called
> 11-07 13:24:19.801: INFO/PhoneTestService(1250): onStart called
> 11-07 13:24:19.801: INFO/PhoneTestService(1250): doIt called
> 11-07 13:24:19.811: DEBUG/PhoneTestService(1250): creating
> initiateCall activity
> 11-07 13:24:19.811: DEBUG/PhoneTestService(1250): initiateCall is NOT
> NULL!
> 11-07 13:24:19.820: INFO/PhoneTestService(1250): phone state is:
> CALL_STATE_IDLE
> 11-07 13:24:21.601: INFO/PhoneTestService(1250): starting to listen
> Fri Nov 07 13:24:19 PST 2008
> 11-07 13:24:21.622: INFO/PhoneTestService(1250): starting call intent.
> 11-07 13:24:21.622: DEBUG/PhoneTestService(1250): myIntent is NOT
> NULL!
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): ERROR:
> java.lang.NullPointerException
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250):
> java.lang.NullPointerException
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.app.Activity.startActivityForResult(Activity.java:2528)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> test.phone.PhoneTestService.doIt(PhoneTestService.java:254)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> test.phone.PhoneTestService.onStart(PhoneTestService.java:145)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2429)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.app.ActivityThread.access$3100(ActivityThread.java:112)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1640)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.os.Handler.dispatchMessage(Handler.java:88)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.os.Looper.loop(Looper.java:123)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> android.app.ActivityThread.main(ActivityThread.java:3742)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> java.lang.reflect.Method.invoke(Method.java:515)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:739)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> 11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
> dalvik.system.NativeStart.main(Native Method)
>
> Don't know where to go from here...
>
> 
> http://schemas.android.com/apk/res/android";
>  package="test.phone"
>  android:versionCode="1"
>  android:versionName="1.0.0">
>
>  android:label="@string/app_name">
>
>
> android:name="android.intent.category.LAUNCHER" />
>
>
>
>
> android:name="android.intent.action.ACTION_CALL" />
> android:name="android.intent.category.DEFAULT" />
>
>   
>
>
>
>  permission>
>  android:name="android.permission.SET_ACTIVITY_WATCHER"> permission>
>  permission>
>  uses-permission>
>  uses-permission>
>  android:name="android.permission.PROCESS_OUTGOING_CALLS"> permission>
>  uses-permission>
>
> 
>
> Any ideas appreciated.
>
> Thanks,
>
> Paul
> >
>


-- 
Chris A.
Forthelose.net

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



[android-developers] Re: Android Crash! Crash!! Crash!!! No more boot up successfully!!!!

2008-11-07 Thread Andrew Stadler

If you're mostly interested in getting your emulator back up and
running, you can try

  $ emulator -wipe-data

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: modal dialogs

2008-11-07 Thread hackbod

More than being accepted, it's the only way.  If you do blocking
operations in the main thread, you will soon give the user an
"Application Not Responding" dialog and they will kill you.

Now you -can- create another thread and run a dialog window thread...
but any thread running UI has the same "do not block for a significant
amount of time" rule, and thus result in ANRs if it is not responding
so the UI is responsive to the user.

On Nov 7, 3:00 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
> thanks for the response.
>
> ok so that's the accepted way to do it. great.
>
> >Fine.  Yes, the only way to get a response from a button is via the
> >onClick() handler.  So yes, you use that to start up a thread and put
> >up a progress dialog, then close it when the thread has done its long
> >transaction.
>
> >Or not have the progress dialog - then the rest of the UI is still
> >active while the other stuff is going on in the background, if that's
> >what you prefer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Arabic support

2008-11-07 Thread hackbod

Android currently only supports English.

On Nov 7, 2:49 pm, "meetmas.com" <[EMAIL PROTECTED]> wrote:
> Please help me
> i have 2 probleams
> 1. i don't know how can i connect my mobile to pc
> 2.can anyone help me please to install arabic language on my Android
> G1 (( t-mobile))
> i realy need install this language.
>
> 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: Extend a EditText to create an editable view performing operation onKeyDown

2008-11-07 Thread polo777

Hi,
Indeed the way you advised is quite easier ;)
As an help for next people:

searchBar = (EditText)findViewById(R.id.searchTextView);
//
searchBar.setOnKeyListener(new OnKeyListener()
{
public boolean onKey(View v, int keyCode, KeyEvent event)
{
// code
}
});

Thanks
Polo


On Nov 6, 3:06 pm, hackbod <[EMAIL PROTECTED]> wrote:
> You need to implement the constructor used for inflating from XML --
> look at the View constructors for the appropriate one.
>
> Also generally this kind of thing is better done by attaching
> listeners (of which TextView offers a whole host) rather than
> subclassing.
>
> On Nov 6, 11:38 am, polo777 <[EMAIL PROTECTED]> wrote:
>
> > Hi Everyone,
>
> > I am trying desperately to extend the EditText view to override
> > onKeyDown. My goal is to create an EditText that will update UI
> > elements each time the user will type one character within.
>
> > The code is as simple as that:
>
> > public class SearchView extends EditText
> > {
> >         public SearchView(Context context)
> >         {
> >                 super(context);
> >         }
>
> >     [EMAIL PROTECTED]
> >      public boolean onKeyDown(int keyCode, KeyEvent event)
> >      {
> >          // the code (right now nothing)
> >          return true;
> >      }
>
> > }
>
> > The main package is "com.android.polo.myApp"
> > It is located in the package "com.android.polo.myApp.view"
>
> > Here is the "View.xml" using this new view:
>
> >     http://schemas.android.com/apk/res/
> > android"
> >         android:orientation="horizontal"
> >         android:layout_width="fill_parent"
> >         android:layout_height="wrap_content">
>
> >          >                 android:id="@+id/searchTextView"
> >                 android:layout_width="fill_parent"
> >                 android:layout_height="wrap_content"/>
>
> >     
>
> > I got this error:
>
> > 11-06 19:00:21.555: ERROR/AndroidRuntime(1207):
> > java.lang.RuntimeException: Unable to start activity
> > ComponentInfo.. android.view.InflateException: Binary XML file
> > line #28: Error inflating class com.android.polo.myApp.view.SearchView
> > 
> > 11-06 19:00:21.555: ERROR/AndroidRuntime(1207): Caused by:
> > android.view.InflateException: Binary XML file line #28: Error
> > inflating class com.android.polo.MyApp.view.SearchView
> > ..
> > 11-06 19:00:21.555: ERROR/AndroidRuntime(1207): Caused by:
> > java.lang.NoSuchMethodException: SearchView
>
> > Thanks a lot in advance
> > Polo
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: audio support

2008-11-07 Thread Dave

The media player does support wave files and if I remember correctly,
the music player will convert a .pls file into it's internal playlist
format.

On Nov 6, 5:46 pm, Adele Thompson <[EMAIL PROTECTED]> wrote:
> Why have exstension handlers in the browser for.pls and .wav files in
> the web browser if the media player doesn't support these formats? Are
> you trying to give us false hope?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: polite request for better error messages

2008-11-07 Thread Dave

Just to amplify a bit on Dianne's point, Android is a heterogeneous
system that includes subsystems that were originally open source,
third party proprietary IP (much of which is now open source), Google
propietrary IP, and new IP that was created by Google specifically for
Android. Some of these subsystems have very transparent error
reporting, and some are quite opaque. There are ongoing efforts to
improve error reporting, but they have to be balanced against the
demand for bug fixes and new features.

On Nov 7, 3:41 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
> happy to report that MediaRecorder, at least, helpfully logs --
>
> 11-07 15:39:08.848: ERROR/AudioFlinger(33): Request requires
> android.permission.RECORD_AUDIO
>
> -- when an attempt to record is made without the proper permission.
>
> bravo! i live in hope that all of Android logs such messages someday.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor

barf. there has to be a nicer way. didn't someone way back discover 
that the "unique ID" of the hardware is null for the emulator? my 
memory is hazy...

>Ugly, but the default getPreviewSize() is different for G1 versus
>emulator...
>
>On Nov 8, 12:08 am, Jason Proctor <[EMAIL PROTECTED]> wrote:
>>  i need to tell because both cameras report their preview format as
>>  number 16, and one of them is lying.
>>
>>  what is the way to tell?
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: polite request for better error messages

2008-11-07 Thread Jason Proctor

happy to report that MediaRecorder, at least, helpfully logs --

11-07 15:39:08.848: ERROR/AudioFlinger(33): Request requires 
android.permission.RECORD_AUDIO

-- when an attempt to record is made without the proper permission.

bravo! i live in hope that all of Android logs such messages someday.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: telling the difference between G1 and emulator

2008-11-07 Thread blindfold

Ugly, but the default getPreviewSize() is different for G1 versus
emulator...

On Nov 8, 12:08 am, Jason Proctor <[EMAIL PROTECTED]> wrote:
> i need to tell because both cameras report their preview format as
> number 16, and one of them is lying.
>
> what is the way to tell?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 /proc/meminfo show the correct memory info?

2008-11-07 Thread Brendon Drew
Well, it's not available to the user directly, but it is used by the system
as a whole.  I'm simply curious how to determine total physical RAM.

On Fri, Nov 7, 2008 at 6:04 PM, Eric <[EMAIL PROTECTED]> wrote:

>
> > So how do I get the total amount of RAM on the system?
>
> From the published specifications for the phone.
>
> What's the point of knowing how much memory *isn't* available for use?
>
> >
>


-- 

Brendon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Custom Parcelables in external JARs... how to get this working?

2008-11-07 Thread DulcetTone

I have a custom Parcelable which I have gotten working internally in
the project in which it is compiled.

That project is then exported as a JAR in Eclipse, and this JAR is in
turn referenced by another project which wants to pass the custom
Parcelable as a parameter in AIDL calls.

However, when interfaces try to use this, the import statement for the
custom parcelable in the interfaces' .aidl files show a little red "no
go" sign which a mouseover details as meaning "couldn't find import
for class com.foo.MyCustomParcelable"

Is the aidl not smart enough to look to find these items in the JAR
file the failing project uses externally?

How might I work around this?

tone


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Adding an external Jar error

2008-11-07 Thread [EMAIL PROTECTED]

Hey guys,

alittle more info,

I do not have the jar loaded twice or have multiples of the same
classes.
I am using the HelloAndroid sample to try to load a jar so the only
classes I have is the HelloAndroid and the R class.
Even after i unload the jar and re-load it, I still get the error.

Thanks,

Josh

On Nov 7, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hey guys,
>
> I'm adding an external jar to my project through eclipse.
> However, I am encountering an error:
>
> java.lang.IllegalArgumentException: already added: Lcom/package/class;
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
> 123)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.dex.file.DexFile.add(DexFile.java:143)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main.processClass(Main.java:299)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main.access$100(Main.java:56)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
> 245)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
> 130)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
> 108)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main.processOne(Main.java:245)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.dx.command.dexer.Main.run(Main.java:139)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> 25)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> java.lang.reflect.Method.invoke(Method.java:585)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
> 624)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 166)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 197)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
> 246)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 249)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
> 302)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
> 334)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
> 137)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
> 235)
> [2008-11-07 14:34:59 - HelloAndroid]    at
> org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> [2008-11-07 14:34:59 - HelloAndroid] 1 error; aborting
> [2008-11-07 14:34:59 - HelloAndroid] Conversion to Dalvik format
> failed with error 1
>
> I was looking through some posts and they said that android doesn't
> like annotations and generics so I got rid of them but the jar still
> won't load properly.
>
> Any help would be appreciated.
>
> Regards,
>
> Josh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor



>  > but they come back generic.
>
>Yes, that's exactly how you tell.  The real phone isn't generic.

well, i'm getting identical results from system properties os.name, 
os.version, and os.arch. i kinda maybe expected a different results 
from os.arch, but both return OS_ARCH which is a little unhelpful.

i need to tell because both cameras report their preview format as 
number 16, and one of them is lying.

what is the way to tell?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Arabic support

2008-11-07 Thread meetmas.com

Please help me
i have 2 probleams
1. i don't know how can i connect my mobile to pc
2.can anyone help me please to install arabic language on my Android
G1 (( t-mobile))
i realy need install this language.

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] Adding an external Jar error

2008-11-07 Thread [EMAIL PROTECTED]

Hey guys,

I'm adding an external jar to my project through eclipse.
However, I am encountering an error:

java.lang.IllegalArgumentException: already added: Lcom/package/class;
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:
123)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.dex.file.DexFile.add(DexFile.java:143)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main.processClass(Main.java:299)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main.access$100(Main.java:56)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:
245)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:
130)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:
108)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main.processOne(Main.java:245)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.dx.command.dexer.Main.run(Main.java:139)
[2008-11-07 14:34:59 - HelloAndroid]at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2008-11-07 14:34:59 - HelloAndroid]at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
[2008-11-07 14:34:59 - HelloAndroid]at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[2008-11-07 14:34:59 - HelloAndroid]at
java.lang.reflect.Method.invoke(Method.java:585)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.ide.eclipse.adt.build.DexWrapper.run(Unknown Source)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.ide.eclipse.adt.build.ApkBuilder.executeDx(Unknown Source)
[2008-11-07 14:34:59 - HelloAndroid]at
com.android.ide.eclipse.adt.build.ApkBuilder.build(Unknown Source)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:
624)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
166)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
197)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:
246)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
249)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
302)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
334)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
137)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
235)
[2008-11-07 14:34:59 - HelloAndroid]at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[2008-11-07 14:34:59 - HelloAndroid] 1 error; aborting
[2008-11-07 14:34:59 - HelloAndroid] Conversion to Dalvik format
failed with error 1

I was looking through some posts and they said that android doesn't
like annotations and generics so I got rid of them but the jar still
won't load properly.

Any help would be appreciated.

Regards,

Josh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Camera preview on G1 only works in landscape ?

2008-11-07 Thread blindfold

Can you give examples of specific log messages that you got that
related to parameters that you could not glean from the G1 source
code?
Thus far I could access the more "exotic" parameters via
parameters.set(String key, int value) and parameters.set(String key,
String value).

On Nov 7, 10:14 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
> are the G1 hardware camera parameters documented anywhere apart from
> the source code? log messages indicate that there are many more
> parameters than the base API allows access to.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 /proc/meminfo show the correct memory info?

2008-11-07 Thread Eric

> So how do I get the total amount of RAM on the system?

>From the published specifications for the phone.

What's the point of knowing how much memory *isn't* available for use?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: telling the difference between G1 and emulator

2008-11-07 Thread Eric

> but they come back generic.

Yes, that's exactly how you tell.  The real phone isn't generic.

But why do you need to tell?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] modal dialogs

2008-11-07 Thread Jason Proctor

thanks for the response.

ok so that's the accepted way to do it. great.


>Fine.  Yes, the only way to get a response from a button is via the
>onClick() handler.  So yes, you use that to start up a thread and put
>up a progress dialog, then close it when the thread has done its long
>transaction.
>
>Or not have the progress dialog - then the rest of the UI is still
>active while the other stuff is going on in the background, if that's
>what you prefer.
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: modal dialogs

2008-11-07 Thread Michael

Fine.  Yes, the only way to get a response from a button is via the
onClick() handler.  So yes, you use that to start up a thread and put
up a progress dialog, then close it when the thread has done its long
transaction.

Or not have the progress dialog - then the rest of the UI is still
active while the other stuff is going on in the background, if that's
what you prefer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Head-scratcher: NullPointerException from startActivity(ACTION_CALL)

2008-11-07 Thread dreamerBoy

Hi,

I'm attempting to initiate an outgoing call from inside a Service.

In onStart(), I create an ACTION_CALL Intent, then attempt to start an
Activity

 myIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" +
phoneNumber));

 initiateCall.startActivityForResult(myIntent,
CALL_SETUP_ACTIVITY_ID);

However, when I run the code I get a NullPointerException.  Clearly,
the intent and activity are non-null, so I'm wondering what Android is
lacking here.

11-07 13:24:19.801: INFO/PhoneTestService(1250): onCreate called
11-07 13:24:19.801: INFO/PhoneTestService(1250): onStart called
11-07 13:24:19.801: INFO/PhoneTestService(1250): doIt called
11-07 13:24:19.811: DEBUG/PhoneTestService(1250): creating
initiateCall activity
11-07 13:24:19.811: DEBUG/PhoneTestService(1250): initiateCall is NOT
NULL!
11-07 13:24:19.820: INFO/PhoneTestService(1250): phone state is:
CALL_STATE_IDLE
11-07 13:24:21.601: INFO/PhoneTestService(1250): starting to listen
Fri Nov 07 13:24:19 PST 2008
11-07 13:24:21.622: INFO/PhoneTestService(1250): starting call intent.
11-07 13:24:21.622: DEBUG/PhoneTestService(1250): myIntent is NOT
NULL!
11-07 13:24:21.632: ERROR/PhoneTestService(1250): ERROR:
java.lang.NullPointerException
11-07 13:24:21.632: ERROR/PhoneTestService(1250):
java.lang.NullPointerException
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.app.Activity.startActivityForResult(Activity.java:2528)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
test.phone.PhoneTestService.doIt(PhoneTestService.java:254)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
test.phone.PhoneTestService.onStart(PhoneTestService.java:145)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2429)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.app.ActivityThread.access$3100(ActivityThread.java:112)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1640)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.os.Handler.dispatchMessage(Handler.java:88)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.os.Looper.loop(Looper.java:123)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
android.app.ActivityThread.main(ActivityThread.java:3742)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
java.lang.reflect.Method.invokeNative(Native Method)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
java.lang.reflect.Method.invoke(Method.java:515)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
11-07 13:24:21.632: ERROR/PhoneTestService(1250): at
dalvik.system.NativeStart.main(Native Method)

Don't know where to go from here...


http://schemas.android.com/apk/res/android";
  package="test.phone"
  android:versionCode="1"
  android:versionName="1.0.0">












   













Any ideas appreciated.

Thanks,

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



[android-developers] modal dialogs

2008-11-07 Thread Jason Proctor

sigh. please read the message fully? thanks. it wasn't about blocking 
as a UI concept.

>Eh, blocking on user input is rarely the way to do things.  Your
>activity has to be able to respond to other events - such as being
>killed or put to sleep when the phone rings.  A mobile phone is an
>event driven environment - so Google built Android that way.
>
>If I read your post right, I'd be doing anything that's a long server
>transaction in a thread, and if the user must wait for that, I'd
>present them with a progress dialog, which is dismissed when the
>thread completes (i.e. posts via a Runnable).
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: modal dialogs

2008-11-07 Thread Michael


Eh, blocking on user input is rarely the way to do things.  Your
activity has to be able to respond to other events - such as being
killed or put to sleep when the phone rings.  A mobile phone is an
event driven environment - so Google built Android that way.

If I read your post right, I'd be doing anything that's a long server
transaction in a thread, and if the user must wait for that, I'd
present them with a progress dialog, which is dismissed when the
thread completes (i.e. posts via a Runnable).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] modal dialogs

2008-11-07 Thread Jason Proctor

i realise that this issue has most likely been done to death before i 
arrived on the android scene. i'm more looking for suggestions on 
logic flow than having a big moan about the lack of a modal 
show-dialog call.

AFAICS, the only way of handling input to a basic text input dialog 
is to register an onClick handler and listen for the OK button. but 
this means that anything you want to do following a successful dialog 
transaction has to be in onClick(). and this could be anything - in 
my case, a potentially long server transaction. during this time, the 
dialog is still up, making things look a bit ugly, and other UI 
interactions won't work inside onClick().

so what are people doing in this situation? i thought of queueing up 
a progress dialog in onClick(), then starting a thread doing the 
business. is this the accepted way of doing it?

ideally, of course, there would be a JOptionPane equivalent, which 
blocks until the user dismisses the dialog, returning the number of 
the button that completed the transaction. then the client code could 
proceed with whatever it wanted to do, unhindered by the confines of 
onClick().

tx

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] telling the difference between G1 and emulator

2008-11-07 Thread Jason Proctor

is there a simple call to programmatically tell the difference? i was 
hoping that the System properties would have something, but they come 
back generic.

tx


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 /proc/meminfo show the correct memory info?

2008-11-07 Thread Brendon Drew
So how do I get the total amount of RAM on the system?

On Fri, Nov 7, 2008 at 2:19 PM, hackbod <[EMAIL PROTECTED]> wrote:

>
> This is the amount of RAM available to the kernel and higher-level
> system as regular memory.  The rest is used for various other things
> like the radio image, frame buffers and surfaces, etc.
>
> On Nov 7, 8:45 am, Brendon <[EMAIL PROTECTED]> wrote:
> > I'm working on a System Monitor app (first version is already in the
> > market)  to get my feet wet with Android.  When getting RAM totals, I
> > grab MemTotal from /proc/meminfo, however this only shows 99129KB.
> > Doesn't the G1 have 192MB of RAM?  Is there another field from this
> > file I should add to this total, or is this just not the right way to
> > figure it out.  I think I remember reading that some changes were made
> > to the kernel to handle memory more efficiently, could this have an
> > impact?
> >
> > On any other Linux system I've used, meminfo shows the correct total
> > for system RAM, so could we have been shorted on the G1?
> >
>


-- 

Brendon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Camera preview on G1 only works in landscape ?

2008-11-07 Thread Jason Proctor

this problem appears to be unit dependent. on my G1, the camera 
orientation is always wrong. on the G1 belonging to a colleage, it's 
correct. this would suggest that if i set rotation, it would fix some 
phones and break others.

are the G1 hardware camera parameters documented anywhere apart from 
the source code? log messages indicate that there are many more 
parameters than the base API allows access to.

tx


>Did you try using parameters.set("rotation", 90) for the G1?
>
>On Nov 6, 1:00 am, "Kipling Inscore" <[EMAIL PROTECTED]> wrote:
>>  As can be discovered by using the built in camera (no need to look at
>>  the source code), it always useslandscapemode, even when the
>>  keyboard is closed and the home screen and most other apps are 
>>inportraitmode.
>>  I've tried using CameraPreview inportrait, found the same issue as
>>  jarkman and apkdev, and decided to see what the built-in camera did,
>>  which is to simply forcelandscapemode. So I decided to do the same.
>>  I would guess that it's possible to somewhat manually rotate the
>>  image, using a view- or image-related class, but I don't think there's
>>  anything like that in the camera-related classes.
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 shell permissions on real G1 device

2008-11-07 Thread Live Crunch

This OpenMoko looks cool tho! Love Nix distro.

On Nov 7, 1:45 pm, "Fish Kungfu" <[EMAIL PROTECTED]> wrote:
> You may want to look at the OpenMoko FreeRunner handset:http://openmoko.com/
> ~~Fish~~
>
> On Fri, Nov 7, 2008 at 2:11 PM, brs <[EMAIL PROTECTED]> wrote:
>
> > On Nov 7, 11:02 am, Michael <[EMAIL PROTECTED]> wrote:
> > > It seems that too many people have believed the media hype, or were
> > > under the incorrect impression that T-Mobile's G1 would be completely
> > > open and free.  *Android* (made by Google and the community) is open
> > > source and free for use, but the T-Mobile G1 is somewhat locked down,
> > > which is what T-Mobile wanted.
>
> > > Perhaps take this issue up with T-Mobile, it's not really an Android
> > > issue.
>
> > As the freedom of the press is sometimes said to be the privilege of
> > those who own it, the openness of Android is primarily for the benefit
> > of those who can build their own hardware. It would be nice if
> > somebody came out with an Android based handset which lets users boot
> > whatever image they want to install. The T-Mobile/HTC G1 isn't exactly
> > that. In all fairness, the G1 provides a larger than usual sand-box
> > for application developers to play in, with far less restriction than
> > we are used to from US mobile operators - but wanting to install your
> > own OS may be pushing it a bit...
>
> > Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 Crash! Crash!! Crash!!! No more boot up successfully!!!!

2008-11-07 Thread Nickname

This morning after I built my app on Eclipse which installed it to
Android emulator, the emulator crashed unexpectedly.

Though I have already got myself used to such crashes, the emulator
can never boot itself up to Android home screen.

Here I attach LogCat log and hope the team can help diagnose what's
wrong with it:

11-08 00:15:42.444: INFO/DEBUG(21): debuggerd: Sep 22 2008 13:36:12
11-08 00:15:44.733: ERROR/mountd(20): could not read initial mass
storage state
11-08 00:15:46.063: ERROR/flash_image(28): can't find recovery
partition
11-08 00:15:47.999: DEBUG/RILD(22): overriding with -s /dev/socket/
qemud_gsm
11-08 00:15:58.593: DEBUG/AndroidRuntime(23): >>
AndroidRuntime START <<
11-08 00:15:58.653: DEBUG/AndroidRuntime(23): CheckJNI is ON
11-08 00:16:04.224: INFO/(24): ServiceManager: 0xaab8
11-08 00:16:04.464: INFO/AudioFlinger(24): AudioFlinger's main thread
ready to run.
11-08 00:16:04.795: INFO/CameraService(24): CameraService started:
pid=24
11-08 00:16:08.454: DEBUG/AndroidRuntime(23): --- registering native
functions ---
11-08 00:16:18.654: INFO/Zygote(23): Preloading classes...
11-08 00:16:18.955: DEBUG/dalvikvm(23): GC freed 746 objects / 41232
bytes in 192ms
11-08 00:16:20.863: DEBUG/dalvikvm(23): GC freed 302 objects / 18576
bytes in 72ms
11-08 00:16:22.434: DEBUG/dalvikvm(23): GC freed 313 objects / 18952
bytes in 70ms
11-08 00:16:24.594: DEBUG/dalvikvm(23): Trying to load lib /system/lib/
libmedia_jni.so 0x0
11-08 00:16:27.803: DEBUG/dalvikvm(23): Added shared lib /system/lib/
libmedia_jni.so 0x0
11-08 00:16:27.904: DEBUG/dalvikvm(23): Trying to load lib /system/lib/
libmedia_jni.so 0x0
11-08 00:16:27.975: DEBUG/dalvikvm(23): Shared lib '/system/lib/
libmedia_jni.so' already loaded in same CL 0x0
11-08 00:16:28.063: DEBUG/dalvikvm(23): Trying to load lib /system/lib/
libmedia_jni.so 0x0
11-08 00:16:28.083: DEBUG/dalvikvm(23): Shared lib '/system/lib/
libmedia_jni.so' already loaded in same CL 0x0
11-08 00:16:40.573: DEBUG/dalvikvm(23): GC freed 3716 objects / 180824
bytes in 245ms
11-08 00:16:42.654: DEBUG/dalvikvm(23): GC freed 262 objects / 18552
bytes in 176ms
11-08 00:16:44.263: DEBUG/dalvikvm(23): GC freed 403 objects / 23712
bytes in 212ms
11-08 00:16:47.303: DEBUG/dalvikvm(23): GC freed 137 objects / 26648
bytes in 227ms
11-08 00:16:52.773: DEBUG/dalvikvm(23): GC freed 740 objects / 46528
bytes in 355ms
11-08 00:16:55.124: DEBUG/dalvikvm(23): GC freed 385 objects / 23872
bytes in 424ms
11-08 00:16:56.353: DEBUG/dalvikvm(23): Trying to load lib /system/lib/
libwebcore.so 0x0
11-08 00:16:57.114: DEBUG/dalvikvm(23): Added shared lib /system/lib/
libwebcore.so 0x0
11-08 00:17:00.405: DEBUG/dalvikvm(23): GC freed 490 objects / 28224
bytes in 364ms
11-08 00:17:02.614: DEBUG/dalvikvm(23): GC freed 298 objects / 21016
bytes in 363ms
11-08 00:17:04.543: DEBUG/dalvikvm(23): GC freed 388 objects / 21032
bytes in 395ms
11-08 00:17:13.023: DEBUG/dalvikvm(23): GC freed 1472 objects / 76720
bytes in 446ms
11-08 00:17:16.074: DEBUG/dalvikvm(23): GC freed 611 objects / 45056
bytes in 420ms
11-08 00:17:50.884: DEBUG/dalvikvm(23): GC freed 14754 objects /
517344 bytes in 698ms
11-08 00:18:01.704: DEBUG/dalvikvm(23): GC freed 11451 objects /
484136 bytes in 796ms
11-08 00:18:05.324: DEBUG/SSLSocketFactory(23): Using factory
[EMAIL PROTECTED]
11-08 00:18:06.005: DEBUG/dalvikvm(23): GC freed 4085 objects / 172440
bytes in 661ms
11-08 00:18:10.093: DEBUG/dalvikvm(23): GC freed 640 objects / 34200
bytes in 531ms
11-08 00:18:12.093: DEBUG/dalvikvm(23): GC freed 570 objects / 29848
bytes in 528ms
11-08 00:18:14.034: DEBUG/dalvikvm(23): GC freed 368 objects / 26208
bytes in 527ms
11-08 00:18:14.563: INFO/Zygote(23): ...preloaded 854 classes in
115872ms.
11-08 00:18:15.203: DEBUG/dalvikvm(23): GC freed 43 objects / 2424
bytes in 607ms
11-08 00:18:15.283: INFO/Zygote(23): Preloading resources...
11-08 00:18:16.014: DEBUG/dalvikvm(23): GC freed 6 objects / 8928
bytes in 544ms
11-08 00:18:22.366: DEBUG/dalvikvm(23): GC freed 180 objects / 9376
bytes in 631ms
11-08 00:18:23.653: DEBUG/dalvikvm(23): GC freed 123 objects / 4856
bytes in 618ms
11-08 00:18:27.703: INFO/Zygote(23): ...preloaded 42 resources in
12368ms.
11-08 00:18:28.353: DEBUG/dalvikvm(23): GC freed 115 objects / 5520
bytes in 596ms
11-08 00:18:29.414: DEBUG/dalvikvm(23): GC freed 181 objects / 7400
bytes in 804ms
11-08 00:18:30.133: DEBUG/dalvikvm(23): GC freed 2 objects / 48 bytes
in 632ms
11-08 00:18:30.303: INFO/dalvikvm(23): Splitting out new zygote heap
11-08 00:18:30.494: INFO/dalvikvm(23): System server process 55 has
been created
11-08 00:18:30.643: INFO/Zygote(23): Accepting command socket
connections
11-08 00:18:31.567: INFO/jdwp(55): received file descriptor 19 from
ADB
11-08 00:18:35.035: DEBUG/dalvikvm(55): Trying to load lib /system/lib/
libandroid_servers.so 0x0
11-08 00:18:37.353: DEBUG/dalvikvm(55): Added shared lib /system/lib/
libandroid_servers.so 0x0
11-08 00:18:37.743: INFO/sysproc(55): Entered system

[android-developers] Re: adb shell permissions on real G1 device

2008-11-07 Thread Fish Kungfu
You may want to look at the OpenMoko FreeRunner handset:
http://openmoko.com/
~~Fish~~


On Fri, Nov 7, 2008 at 2:11 PM, brs <[EMAIL PROTECTED]> wrote:

>
>
>
> On Nov 7, 11:02 am, Michael <[EMAIL PROTECTED]> wrote:
> > It seems that too many people have believed the media hype, or were
> > under the incorrect impression that T-Mobile's G1 would be completely
> > open and free.  *Android* (made by Google and the community) is open
> > source and free for use, but the T-Mobile G1 is somewhat locked down,
> > which is what T-Mobile wanted.
> >
> > Perhaps take this issue up with T-Mobile, it's not really an Android
> > issue.
>
> As the freedom of the press is sometimes said to be the privilege of
> those who own it, the openness of Android is primarily for the benefit
> of those who can build their own hardware. It would be nice if
> somebody came out with an Android based handset which lets users boot
> whatever image they want to install. The T-Mobile/HTC G1 isn't exactly
> that. In all fairness, the G1 provides a larger than usual sand-box
> for application developers to play in, with far less restriction than
> we are used to from US mobile operators - but wanting to install your
> own OS may be pushing it a bit...
>
> Bernhard
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Configuring JUnit for each test class is a pain

2008-11-07 Thread lucky4me

Try to use TestSuite instead of single test class
(In Eclipse: New -> Other... -> Java -> JUnit -> JUnit Test Suite)

On Nov 7, 7:07 am, chrismo <[EMAIL PROTECTED]> wrote:
> http://code.google.com/android/kb/troubleshooting.html#addjunit
>
> Following these instructions for each new test class is a pain. Anyone
> have a salve?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Intercept Call

2008-11-07 Thread j

It is possible. Voxofon app on the G1 does that.

On Nov 7, 11:24 am, hackbod <[EMAIL PROTECTED]> wrote:
> http://code.google.com/android/reference/android/content/Intent.html#...
>
> On Nov 6, 5:57 am, "BrunoZP.com" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > How can I intercept a user call, change it number and dial again ?
> > Any example code ??
>
> > For example: The user dial 32546048 and press send, my application get
> > this number, cancel the dialing, change this number to
> > 3*2*5*4*6*0*4*8* and then dial !
>
> > This needs to happen automatically, without the need of confirmations
> > and other things..
>
> > 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: Capture Call Audio

2008-11-07 Thread Dave

Downlink audio is not routed to the application processor on the G1,
so there is no way to capture in-call audio.

On Nov 6, 7:31 pm, Sreeji <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Any one tried capturing Audio after accepting the call, is there a way
> to use the PhoneApp class to do this?
>
> -Sreeji
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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

2008-11-07 Thread Robert Green

I didn't see anything to set up the frustum.  Are you sure you got it
all?

I recommend using GLView as a jump-off point.  It's a class in the API
demos.

On Nov 7, 12:58 pm, petunio <[EMAIL PROTECTED]> wrote:
> Hi mate
> yes, I did implement the surfaceHolder.callback thing.
> I am actually getting the message when the surface is created, but
> even though I keep getting the blank screen
>
> and yes, I based my example on the GLSurfaceView...
>
> thanks anyway
>
> On Nov 7, 6:09 pm, DSmith <[EMAIL PROTECTED]> wrote:
>
> > This isn't the whole class, is it?  You haven't implemented
> > SurfaceHolder.Callback.
>
> > I don't pretend to understand all the details behind setting up the
> > OpenGL context (GLUT spoiled me early on), but the GLSurfaceView from
> > the API Demo makes it a breeze.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Intercept Call

2008-11-07 Thread hackbod

http://code.google.com/android/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL

On Nov 6, 5:57 am, "BrunoZP.com" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can I intercept a user call, change it number and dial again ?
> Any example code ??
>
> For example: The user dial 32546048 and press send, my application get
> this number, cancel the dialing, change this number to
> 3*2*5*4*6*0*4*8* and then dial !
>
> This needs to happen automatically, without the need of confirmations
> and other things..
>
> 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: Updating the software on real device

2008-11-07 Thread hackbod

Sorry, you can't flash a regular production G1 with an unsigned system
image.  Also discussion like this should go in one of the open source
groups, like android-platform.

On Nov 7, 7:12 am, "lc.west" <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I am able to compile the android source code and use the compiled .img
> files with the emulator.
>
> Now we'd like to go to the real phone. Is it possible to use the same
> compiled files with the real phone?
> If so, do you know how we should proceed to deploy the compiled source
> code in real phone?
>
> 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 shell permissions on real G1 device

2008-11-07 Thread brs



On Nov 7, 11:02 am, Michael <[EMAIL PROTECTED]> wrote:
> It seems that too many people have believed the media hype, or were
> under the incorrect impression that T-Mobile's G1 would be completely
> open and free.  *Android* (made by Google and the community) is open
> source and free for use, but the T-Mobile G1 is somewhat locked down,
> which is what T-Mobile wanted.
>
> Perhaps take this issue up with T-Mobile, it's not really an Android
> issue.

As the freedom of the press is sometimes said to be the privilege of
those who own it, the openness of Android is primarily for the benefit
of those who can build their own hardware. It would be nice if
somebody came out with an Android based handset which lets users boot
whatever image they want to install. The T-Mobile/HTC G1 isn't exactly
that. In all fairness, the G1 provides a larger than usual sand-box
for application developers to play in, with far less restriction than
we are used to from US mobile operators - but wanting to install your
own OS may be pushing it a bit...

Bernhard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Do not understand the Android contribution scheme

2008-11-07 Thread hackbod

This kind of discussion would be better in one of the open source
platform groups like android-platform.

On Nov 7, 9:31 am, Anders Rundgren <[EMAIL PROTECTED]> wrote:
> I'm working with pretty advanced stuff using XML schemas etc.
> Such support is not to be found in the current docs.
>
> But in the source rep I found 
> this:http://git.source.android.com/?p=platform/external/libxml2.git;a=tree
>
> My question is:
> - Has this been granted as a part of the future Android platform?
> - Will this package offer Java bindings?
>
> Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 /proc/meminfo show the correct memory info?

2008-11-07 Thread hackbod

This is the amount of RAM available to the kernel and higher-level
system as regular memory.  The rest is used for various other things
like the radio image, frame buffers and surfaces, etc.

On Nov 7, 8:45 am, Brendon <[EMAIL PROTECTED]> wrote:
> I'm working on a System Monitor app (first version is already in the
> market)  to get my feet wet with Android.  When getting RAM totals, I
> grab MemTotal from /proc/meminfo, however this only shows 99129KB.
> Doesn't the G1 have 192MB of RAM?  Is there another field from this
> file I should add to this total, or is this just not the right way to
> figure it out.  I think I remember reading that some changes were made
> to the kernel to handle memory more efficiently, could this have an
> impact?
>
> On any other Linux system I've used, meminfo shows the correct total
> for system RAM, so could we have been shorted on the G1?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: AACPlus - Decoding a Stream? - Anyone Shoutcast?

2008-11-07 Thread Dave

The reason you can't play the file is the media player doesn't support
raw AAC files. You could wrap them in a M4A format and that should
work, but you won't be able to get a seamless playback stream.

I know there are use cases we can't adequately support and I will be
pushing hard to fill in the gaps in future releases.

On Nov 7, 7:44 am, Jona <[EMAIL PROTECTED]> wrote:
> Dave thanks so much for your reply! I really appreciate it!
>
> I'm trying to understand why it wouldn't work... I handled my
> connection properly to one of the radios on ShoutCast and stored
> around 1MB of data to be later tested if the correct information was
> sent...  It was successful on playing the file on my PC but not
> MediaPlayer on android... So that would tell me I achieved a proper
> connection via HTTP... maybe I'm confusing my self?
>
> About the metadata tags I  could just write a function to parse my
> stream data and give me my metadata tags... right?
>
> Thanks for your time and patience ^.^
>
> Jona
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Icons - Recommended size, format, etc?

2008-11-07 Thread hackbod

But please  make it 48x48.  Otherwise it's just wasting time and
space, and if a lot of apps start doing larger sizes it will have a
noticeable impact.  The app icon size is 48x48.

On Nov 7, 9:44 am, Romain Guy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Home currently displays icons at 48x48, so your icon file should be at
> least this size. If you make it bigger, you should make it twice as
> big for better rendering.
>
> On Fri, Nov 7, 2008 at 6:23 AM, g1bb <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > Is there a recommended size or format for an application's icon? I've
> > been using .PNG at 190x141 px, but I can never seem to get them as
> > 'cool' looking as the other applications I've seen.
>
> > Thanks in advance.
>
> --
> Romain Guywww.curious-creature.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] RingtoneManager URIs

2008-11-07 Thread Gil

My application offers a preference to allow the user to set the
preferred notification sound. I save that URI and I use it when I have
to play a notification sound. I just noticed that the ringtone URIs
can change over time therefore invalidating the URI that I saved. This
could be because of an application I installed recently which records
sounds. Should ringtone URIs change over time? Should I use the name
of the ringtone to get the URI every time I need to play a sound?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 get focus for a button?

2008-11-07 Thread april

I am using emulator. In onCreate() function, I used
"button.requestFocus()" . But the button didn't get focus.

Has someone tried to get focus for a component? thanks!

April
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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

2008-11-07 Thread petunio

Hi mate
yes, I did implement the surfaceHolder.callback thing.
I am actually getting the message when the surface is created, but
even though I keep getting the blank screen

and yes, I based my example on the GLSurfaceView...

thanks anyway


On Nov 7, 6:09 pm, DSmith <[EMAIL PROTECTED]> wrote:
> This isn't the whole class, is it?  You haven't implemented
> SurfaceHolder.Callback.
>
> I don't pretend to understand all the details behind setting up the
> OpenGL context (GLUT spoiled me early on), but the GLSurfaceView from
> the API Demo makes it a breeze.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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

2008-11-07 Thread DSmith

This isn't the whole class, is it?  You haven't implemented
SurfaceHolder.Callback.

I don't pretend to understand all the details behind setting up the
OpenGL context (GLUT spoiled me early on), but the GLSurfaceView from
the API Demo makes it a breeze.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Camera preview on G1 only works in landscape ?

2008-11-07 Thread blindfold

Did you try using parameters.set("rotation", 90) for the G1?

On Nov 6, 1:00 am, "Kipling Inscore" <[EMAIL PROTECTED]> wrote:
> As can be discovered by using the built in camera (no need to look at
> the source code), it always useslandscapemode, even when the
> keyboard is closed and the home screen and most other apps are inportraitmode.
> I've tried using CameraPreview inportrait, found the same issue as
> jarkman and apkdev, and decided to see what the built-in camera did,
> which is to simply forcelandscapemode. So I decided to do the same.
> I would guess that it's possible to somewhat manually rotate the
> image, using a view- or image-related class, but I don't think there's
> anything like that in the camera-related classes.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: What happened to ADC 2?

2008-11-07 Thread Mark Murphy

Morisato13 wrote:
> I read that more info will be released when the first handset is
> release but I noticed that they took the ADC info off their main page.
> Are they dropping ADC2?

The last I saw, there was to be an announcement about ADC2 before the 
end of the year.

They still have time.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.4 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] What happened to ADC 2?

2008-11-07 Thread Morisato13

I read that more info will be released when the first handset is
release but I noticed that they took the ADC info off their main page.
Are they dropping ADC2?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Icons - Recommended size, format, etc?

2008-11-07 Thread Romain Guy

Hi,

Home currently displays icons at 48x48, so your icon file should be at
least this size. If you make it bigger, you should make it twice as
big for better rendering.

On Fri, Nov 7, 2008 at 6:23 AM, g1bb <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Is there a recommended size or format for an application's icon? I've
> been using .PNG at 190x141 px, but I can never seem to get them as
> 'cool' looking as the other applications I've seen.
>
> Thanks in advance.
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Need to resolve .APK not found error.

2008-11-07 Thread Avinash Patil
Hi,
I have created new android project and trying to run at start , but getting
beloiw error.
*Could not find getDet.apk!*
Can anybody suggest what can be done in this case!!
Thanks.
Avi.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Best way to build multi page form

2008-11-07 Thread marchinram

Hi all,
I need to build a multi page form (called a flow) for my job, with one
field on each page and a next and back button to navigate through the
form until the end.  What would be the best approach to accomplishing
this (should this be done in one activity or multiple).  Plus any
additional tips would be appreciated.

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



[android-developers] audio support

2008-11-07 Thread Adele Thompson

Why have exstension handlers in the browser for.pls and .wav files in
the web browser if the media player doesn't support these formats? Are
you trying to give us false hope?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Orientation sensor gone bad?

2008-11-07 Thread kelly

Hello,

Has anyone noticed trouble with the orientation sensor in their phone?
Mine was returning values as described in the Android documentation
until about 12am last night. Up till then, holding the device in a
vertical orientation, the pitch value was -90 degrees, upside down was
+90 degrees, and so on. Since that time, the sensor doesn't seem to be
working correctly. Now it reads -20 in an upright position and 20 in
an upside-down position. Is there a way to reset the phone (or at
least the orientation sensors) so it works correctly again? I have
several applications now that don't work right because of this.

Thanks,
Kelly

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 use WSDL web service in Android

2008-11-07 Thread Avinash Patil
Thanks Franck!!

On Thu, Nov 6, 2008 at 2:55 PM, opengl es <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I use KSOAP2 (you'll find more about KSOAP2 in forums/groups etc..)
> It works great once you know how to deal with XSD and namespaces and
> KvmSerializable
>
> here is what i do:
>
>   private static final String SOAP_ACTION = "MyMethod";
>   private static final String METHOD_NAME = "MyMethod";
>   private static final String NAMESPACE = "http://x.y.z/foo1/foo2";;
>   private static final String NAMESPACE_SDO = "http://x.y.z/foo1/
> foo2Sdo";
>
>   /*
>* note that within the emulated system, 127.0.0.1 refers to the
> emulated
>* device's own loopback interface. if you want to connect to your
> host
>* machine's "localhost", use the 10.0.2.2 alias instead. maybe
> this
>* explains your problems ?
>*/
>   private static final String URL = "http://10.0.2.2:/abc/
> services/MyService";
>
>
>   public void mymethodKSOAP(MyObject myObject) {
>
>   SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
>
>   request.addProperty("MyObject", myObject);
>
>   SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>   envelope.dotNet = false;
>   envelope.addMapping(NAMESPACE_SDO, "MyObject", (new
> MyObject()).getClass());
>   envelope.addMapping(NAMESPACE_SDO, "MyObjectId", (new
> MyObjectId()).getClass());
>   envelope.addMapping(NAMESPACE_SDO, "TheObjectResponse", (new
> TheObjectResponse())
>   .getClass());
>   //etc
>   // implements all your client java object (and responses
> object) with 'implements KvmSerializable'
>   // inside your client java object define the specific object
> namespace sdo like
>   // private static final String NAMESPACE = "http://x.y.z/foo1/
> foo2Sdo";
>
>
>   envelope.setOutputSoapObject(request);
>
>   AndroidHttpTransport androidHttpTransport = new
> AndroidHttpTransport(URL);
>
>   try {
>   androidHttpTransport.call(SOAP_ACTION, envelope);
>   resultsRequestSOAP = envelope.getResponse();
>
>   } catch (Exception e) {
>   e.printStackTrace();
>   }
>   }
>
> // and you're done
>
> Note:
> for KvmSerializable implementation
> if you use simple type do
>
> public void getPropertyInfo(int i, Hashtable hashtable, PropertyInfo
> propertyinfo) {
>   propertyinfo.namespace = NAMESPACE;
>   switch (i) {
>   case 0:
>   propertyinfo.type = (new MyObjectId()).getClass();
>   propertyinfo.name = "myObjectId";
>   break;
>   case 1:
>   propertyinfo.type = PropertyInfo.STRING_CLASS;
>   propertyinfo.name = "aStringField";
>   break;
>   case 2:
>   propertyinfo.type = PropertyInfo.INTEGER_CLASS;
>   propertyinfo.name = "aNumberField";
>   break;
> // etc
> }
>
>
> Hope this will help you
>
> Regards,
> Franck
>
>
> On Nov 6, 4:05 pm, "Avinash Patil" <[EMAIL PROTECTED]> wrote:
> > I have simple WSDL web service file and added into project.
> > Now I am trying to use WSDL web service through android class code,
> > but not able to use it.
> > Can anybody suggest how to import WSDL file in ANdroid, so that it can
> > create auto classes for
> > WSDL file and same can be used ion  android main class, where we can
> > send and receive any request/response.
> >
> > Please suggest any simple WSDL use.
> > 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] Do not understand the Android contribution scheme

2008-11-07 Thread Anders Rundgren

I'm working with pretty advanced stuff using XML schemas etc.
Such support is not to be found in the current docs.

But in the source rep I found this:
http://git.source.android.com/?p=platform/external/libxml2.git;a=tree

My question is:
- Has this been granted as a part of the future Android platform?
- Will this package offer Java bindings?

Anders

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 open the keyboard in emulator?

2008-11-07 Thread Android Shadow

Hi all,

when I trying to use the short message feature in emulator, I found I
cannot input anything.

"open keyboard to compose message" is shown on the display. It looks
like the keyboard has not been enabled.

Could you help me to know how to enable the keyboard?


Thanks

B.R.
Shadow

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 use WSDL web service in Android

2008-11-07 Thread Quest

Hi Opengl ,

Initially I  was working on android sdk_0.5 and ksoap2 build and my
application was running fine.but now in SDk 1.0 i am unable to consume
web service using the same library.

I know its due to the change in the apache library, but i am unable to
get a latest ksoap2 jar lib to work with new SDK.

It will be very much helpful,if you can give me some tips how to work
around this.


Thanks
Quest.


On Nov 7, 12:55 am, opengl es <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I use KSOAP2 (you'll find more about KSOAP2 in forums/groups etc..)
> It works great once you know how to deal with XSD and namespaces and
> KvmSerializable
>
> here is what i do:
>
>private static final String SOAP_ACTION = "MyMethod";
>private static final String METHOD_NAME = "MyMethod";
>private static final String NAMESPACE = "http://x.y.z/foo1/foo2";;
>private static final String NAMESPACE_SDO = "http://x.y.z/foo1/
> foo2Sdo";
>
>/*
> * note that within the emulated system, 127.0.0.1 refers to the
> emulated
> * device's own loopback interface. if you want to connect to your
> host
> * machine's "localhost", use the 10.0.2.2 alias instead. maybe
> this
> * explains your problems ?
> */
>private static final String URL = "http://10.0.2.2:/abc/
> services/MyService";
>
>public void mymethodKSOAP(MyObject myObject) {
>
>SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
>
>request.addProperty("MyObject", myObject);
>
>SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>envelope.dotNet = false;
>envelope.addMapping(NAMESPACE_SDO, "MyObject", (new
> MyObject()).getClass());
>envelope.addMapping(NAMESPACE_SDO, "MyObjectId", (new
> MyObjectId()).getClass());
>envelope.addMapping(NAMESPACE_SDO, "TheObjectResponse", (new
> TheObjectResponse())
>.getClass());
>//etc
>// implements all your client java object (and responses
> object) with 'implements KvmSerializable'
>// inside your client java object define the specific object
> namespace sdo like
>// private static final String NAMESPACE = "http://x.y.z/foo1/
> foo2Sdo";
>
>envelope.setOutputSoapObject(request);
>
>AndroidHttpTransport androidHttpTransport = new
> AndroidHttpTransport(URL);
>
>try {
>androidHttpTransport.call(SOAP_ACTION, envelope);
>resultsRequestSOAP = envelope.getResponse();
>
>} catch (Exception e) {
>e.printStackTrace();
>}
>}
>
> // and you're done
>
> Note:
> for KvmSerializable implementation
> if you use simple type do
>
> public void getPropertyInfo(int i, Hashtable hashtable, PropertyInfo
> propertyinfo) {
>propertyinfo.namespace = NAMESPACE;
>switch (i) {
>case 0:
>propertyinfo.type = (new MyObjectId()).getClass();
>propertyinfo.name = "myObjectId";
>break;
>case 1:
>propertyinfo.type = PropertyInfo.STRING_CLASS;
>propertyinfo.name = "aStringField";
>break;
>case 2:
>propertyinfo.type = PropertyInfo.INTEGER_CLASS;
>propertyinfo.name = "aNumberField";
>break;
>  // etc
>
> }
>
> Hope this will help you
>
> Regards,
> Franck
>
> On Nov 6, 4:05 pm, "Avinash Patil" <[EMAIL PROTECTED]> wrote:
>
> > I have simple WSDL web service file and added into project.
> > Now I am trying to use WSDL web service through android class code,
> > but not able to use it.
> > Can anybody suggest how to import WSDL file in ANdroid, so that it can
> > create auto classes for
> > WSDL file and same can be used ion  android main class, where we can
> > send and receive any request/response.
>
> > Please suggest any simple WSDL use.
> > 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] How to use oprofile on android?

2008-11-07 Thread alei

I find there is a profiling tool called oprofile ported on newest
android edition.

but I don't know how to use it.

I can't find the --init option in its usage help.

When I type "opcontrol start", it shows

"couldn't set start profiling, is the oprofile driver installed?"

It is  really different from x86 edition.

Did anyone  use the profiling tool on android.

Thank you for your kindness in advance.

Best Regards,

Alex

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 monitor android application memory

2008-11-07 Thread Luthien

Hi:

Does there some tool could monitor application memory, like TPTP
Object allocation analysis.
or does there a tool could find out memory leak problem.

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 T-Mobile "Hotspot" (WiFi) Calling Support

2008-11-07 Thread [EMAIL PROTECTED]

It would seem so. I would pay for an app or update or mod. This is
seriously almost a deal breaker for me. It started of as a deal maker
because no carrier has good reception at my house or at my work.
However, I have wifi access at both locations. WiFi calling was going
to seal the deal. I can't see buying one for my entire family now with
out testing reception first. (We are currently verizon customers.)

-dave

On Oct 12, 5:37 pm, "Chris Chiappone" <[EMAIL PROTECTED]> wrote:
> Some one should be able to write it.
>
> On Sun, Oct 12, 2008 at 12:16 AM, Robert H <[EMAIL PROTECTED]> wrote:
>
> > Currently T-Mobile offersWiFicallingthrough a limited number of
> > phones (including Blackberry Curve) for around $10 a month.  This is a
> > great feature and really allows customers to save big on their
> > cellular phone bill.  Why isn't this a capability for the T-Mobile
> > (HTC) G1?
>
> > Google, come on, make it possible!
>
> > -Robert H.
>
> --
> ~chris

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



[android-developers] Need help in Android - WSDL web service.

2008-11-07 Thread Avinash Patil
Hi I have done following steps and need further help.
1. Created new WSDL for web service. - Need to pass a parameter and get
response back.
2. Added WSDL file in Android project.
3. Right clicked on WSDL file in project and Clicked for "Generate Client" -
Thiss has generated auto all the classes/interfaces of WSDL file
==> having all address/port/method to be executed/in-out parameters details.

Now I need to use WSDL web service method  in Android startup class.
Will appriciate if anybody can send sample code to access WSDL method and
pass value to input parameter and get response back.
Thanks.
Avi.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Intercept Call

2008-11-07 Thread Bruno Z. Pereira

Any idea why ??

Or can I change the Android, so at this way I do not need to develop a 
program ?

Thanks

- Original Message - 
From: "CJ" <[EMAIL PROTECTED]>
To: "Android Developers" 
Sent: Thursday, November 06, 2008 9:28 PM
Subject: [android-developers] Re: Intercept Call



i don't think that is going to happen.

On Nov 6, 8:57 am, "BrunoZP.com" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can I intercept a user call, change it number and dial again ?
> Any example code ??
>
> For example: The user dial 32546048 and press send, my application get
> this number, cancel the dialing, change this number to
> 3*2*5*4*6*0*4*8* and then dial !
>
> This needs to happen automatically, without the need of confirmations
> and other things..
>
> 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 market publish button does not work

2008-11-07 Thread sori

Yes, it worked with Mac Safari.  Thanks!


On Nov 6, 6:53 pm, samlu <[EMAIL PROTECTED]> wrote:
> I had the same problem on IE.
> Please use Google's web browser or Firefox. It should be ok.
>
> Sam
>
> On Nov 7, 10:03 am, sori <[EMAIL PROTECTED]> wrote:
>
>
>
> > I finally got my application ready for distribution.
> > I filled up all fields in the market upload page, then pressed
> > "Publish" button.
> > There is no reaction.  No confirmation or no error message at all.
>
> > Is this expected behavior or the server temporarily down?
> > Please let me know if I miss anything here.
> > Thanks.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get low-level network data

2008-11-07 Thread joao

Hello!

I've been looking at the API's and didn't found a way to get low-level
network data.

In a GSM network I looking for cellid, lac, rxlev, BCCH channel, BSIC,
etc.

And similar information on CDMA/UMTS.

Anyone knows of a way to get this information?

Thank you,

Joao

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 error

2008-11-07 Thread Avinash Patil
Hi,

I am trying to use WSDL classes in Android, getting error

Could not find tut10.apk!

Please suggest.

Thanks,

Avi.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Capture Call Audio

2008-11-07 Thread Sreeji

Hi,

Any one tried capturing Audio after accepting the call, is there a way
to use the PhoneApp class to do this?

-Sreeji

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Updating the software on real device

2008-11-07 Thread lc.west

Hi everyone,

I am able to compile the android source code and use the compiled .img
files with the emulator.

Now we'd like to go to the real phone. Is it possible to use the same
compiled files with the real phone?
If so, do you know how we should proceed to deploy the compiled source
code in real phone?

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: mail.jar activation.jar problem in android

2008-11-07 Thread sabdart

Hi Ena,

your problem may be that you haven't given android permission to
access the internet.

Add the following to your AndroidManifest.xml



Cheers
Ray

On Oct 27, 9:04 pm, ena <[EMAIL PROTECTED]> wrote:
> im using 
> examplehttp://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-...
> with 1.0
> and found Following is
> the exception.
> E/OSNetworkSystem(  448): unknown socket error -1
> E/SendMail(  448): Could not connect to SMTP host: smtp.gmail.com,
> port: 465
> E/SendMail(  448): javax.mail.MessagingException: Could not connect to
> SMTP host
> : smtp.gmail.com, port: 465;
> E/SendMail(  448):   nested exception is:
> E/SendMail(  448):      java.net.SocketException: unknown error
> E/SendMail(  448):      at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransp
> ort.java:1391)
> E/SendMail(  448):      at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPT
> ransport.java:412)
> E/SendMail(  448):      at javax.mail.Service.connect(Service.java:
> 310)
> E/SendMail(  448):      at javax.mail.Service.connect(Service.java:
> 169)
> E/SendMail(  448):      at javax.mail.Service.connect(Service.java:
> 118)
> E/SendMail(  448):      at javax.mail.Transport.send0(Transport.java:
> 188)
> E/SendMail(  448):      at javax.mail.Transport.send(Transport.java:
> 118)
> E/SendMail(  448):      at
> org.apache.android.mail.GMailSender.sendMail(GMailSen
> der.java:60)
> E/SendMail(  448):      at org.apache.android.mail.SendMail
> $1.onClick(SendMail.j
> ava:35)
> E/SendMail(  448):      atandroid.view.View.performClick(View.java:
> 2109)
> E/SendMail(  448):      atandroid.view.View.onTouchEvent(View.java:
> 3523)
> E/SendMail(  448):      
> atandroid.widget.TextView.onTouchEvent(TextView.java:44
> 10)
> E/SendMail(  448):      atandroid.view.View.dispatchTouchEvent(View.java:3178)
> E/SendMail(  448):      
> atandroid.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
> ava:857)
> E/SendMail(  448):      
> atandroid.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
> ava:857)
> E/SendMail(  448):      
> atandroid.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
> ava:857)
> E/SendMail(  448):      
> atandroid.view.ViewGroup.dispatchTouchEvent(ViewGroup.j
> ava:857)
> E/SendMail(  448):      at com.android.internal.policy.impl.PhoneWindow
> $DecorVie
> w.superDispatchTouchEvent(PhoneWindow.java:1561)
> E/SendMail(  448):      at
> com.android.internal.policy.impl.PhoneWindow.superDis
> patchTouchEvent(PhoneWindow.java:1085)
> E/SendMail(  448):      
> atandroid.app.Activity.dispatchTouchEvent(Activity.java
> :1873)
> E/SendMail(  448):      at com.android.internal.policy.impl.PhoneWindow
> $DecorVie
> w.dispatchTouchEvent(PhoneWindow.java:1545)
> E/SendMail(  448):      
> atandroid.view.ViewRoot.handleMessage(ViewRoot.java:114
> 0)
> E/SendMail(  448):      atandroid.os.Handler.dispatchMessage(Handler.java:88)
> E/SendMail(  448):      atandroid.os.Looper.loop(Looper.java:123)
> E/SendMail(  448):      
> atandroid.app.ActivityThread.main(ActivityThread.java:3
> 742)
> E/SendMail(  448):      at
> java.lang.reflect.Method.invokeNative(Native Method)
> E/SendMail(  448):      at java.lang.reflect.Method.invoke(Method.java:
> 515)
> E/SendMail(  448):      at com.android.internal.os.ZygoteInit
> $MethodAndArgsCalle
> r.run(ZygoteInit.java:739)
> E/SendMail(  448):      at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
> va:497)
> E/SendMail(  448):      at dalvik.system.NativeStart.main(Native
> Method)
> E/SendMail(  448): Caused by: java.net.SocketException: unknown error
> E/SendMail(  448):      at
> org.apache.harmony.luni.platform.OSNetworkSystem.crea
> teSocketImpl(Native Method)
> E/SendMail(  448):      at
> org.apache.harmony.luni.platform.OSNetworkSystem.crea
> teSocket(OSNetworkSystem.java:79)
> E/SendMail(  448):      at
> org.apache.harmony.luni.net.PlainSocketImpl2.create(P
> lainSocketImpl2.java:59)
> E/SendMail(  448):      at
> java.net.Socket.checkClosedAndCreate(Socket.java:763)
>
> E/SendMail(  448):      at java.net.Socket.connect(Socket.java:910)
> E/SendMail(  448):      at java.net.Socket.connect(Socket.java:888)
> E/SendMail(  448):      at
> com.sun.mail.util.SocketFetcher.createSocket(SocketFe
> tcher.java:233)
> E/SendMail(  448):      at
> com.sun.mail.util.SocketFetcher.getSocket(SocketFetch
> er.java:163)
> E/SendMail(  448):      at
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransp
> ort.java:1360)
> E/SendMail(  448):      ... 29 more
>
> On Oct 9, 4:15 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> >http://groups.google.com/group/android-developers/browse_thread/threa...
> > could be useful?
>
> > On 4 Ott, 05:14, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
>
> > > Any details of what you are trying to do would be good...
>
> > > 2008/10/3 mpredosin <[EMAIL PROTECTED]>
>
> > > > I am having the sameproblem.  Theactivation.jarcan't find the
> > > > required classes in theandroidjar.  It occurs with bothAndroid1.0
> > > > & 0.9 sdks.
>
> 

[android-developers] great idea

2008-11-07 Thread [EMAIL PROTECTED]

I'm a med student and 99% of med students use a program called
epocrates. They have this app for palm, blackberry, iphone, but not
the android platform. Please make this app available to the g1 and i
guarantee more people buying the g1. There's at least 10 people in my
class who are buying the iPhone over the g1 just for that 1 app.

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



[android-developers] Selection Background on ListView...

2008-11-07 Thread Riddler

Hi, I have a ListView and I want the full background of each item to
become orange (default color), right now only the text included on the
item is the one that changes color when going through the items.

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] AutoCompleteTextView is very ugly

2008-11-07 Thread hangzhou_harold

When I use AutoCompleteTextView to do list the existing datas in
Database as the screen appearing.
I can't find any the attr for list all datas in filters , then only
one function - showdropdown.
I didn't use it in textchange function.
could anyone help me to implenment the function as Google Maps -
search activity ?
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] Does /proc/meminfo show the correct memory info?

2008-11-07 Thread Brendon

I'm working on a System Monitor app (first version is already in the
market)  to get my feet wet with Android.  When getting RAM totals, I
grab MemTotal from /proc/meminfo, however this only shows 99129KB.
Doesn't the G1 have 192MB of RAM?  Is there another field from this
file I should add to this total, or is this just not the right way to
figure it out.  I think I remember reading that some changes were made
to the kernel to handle memory more efficiently, could this have an
impact?

On any other Linux system I've used, meminfo shows the correct total
for system RAM, so could we have been shorted on the G1?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Configuring JUnit for each test class is a pain

2008-11-07 Thread chrismo

http://code.google.com/android/kb/troubleshooting.html#addjunit

Following these instructions for each new test class is a pain. Anyone
have a salve?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Orientation Sensor yaw values. Is your G1 compass bad?

2008-11-07 Thread [EMAIL PROTECTED]

I noticed the same thing on mine... It seems like it was accurate at
one point, but recently it's not working so well.  Let me know what
you find out.

On Nov 4, 2:06 pm, mitush <[EMAIL PROTECTED]> wrote:
> I have connected G1 to my PC and Compass (Orienteer) and my app
> started to get good and consistent readings from the sensor again.
> After I disconnected, Orienteer sort of works (has 360 range), but the
> north is off by 0-50 degrees depending on orientation and  a little
> jumpy.
>
> Might be a battery power issue then. My battery is 97% (immediately
> after PC disconnect). Will check Orienteer again later.
>
> On Nov 4, 2:29 pm, mitush <[EMAIL PROTECTED]> wrote:
>
> > In the process of writing an app for my G1 I think I got stuck with
> > similar problem. Running Orienteer application (from the Market)
> > confirms that; turning my G1 by 360 degrees while holding it flat, the
> > reading on the Orienteercompassgoes between 0 and 90 degrees only.
> > The same thing happens when usingcompassview with the maps/street
> > view, here I could only get about 90 degrees view angle as well (in
> > other words I cannot see other side of the street and other direction
> > of the street).
>
> > The funny thing is that, in my G1 app I was listening and logging
> > SensorManager.SENSOR_ORIENTATION_RAW values and earlier today the
> > returned values had the range of 360 degrees, and I have the log file
> > to prove it was not a dream :) When I run the same app now, it shows
> > limited range values only, consistent with Orienteer . As if something
> > got broken between now and few hours ago. I also recall that when I
> > triedcompass/map/streetview few days ago, I was able to rotate my
> > view without any constraints.
>
> > There is not much metal around, I tried changing my location as well.
> > For a second, I though it could be the car, which my wife parked
> > outside the house an hour ago, but Orienteer shows the same problem
> > even 120 ft away in the backyard. I did not drop G1 or did anything of
> > that sort.
>
> > On Nov 4, 4:01 am, bryan <[EMAIL PROTECTED]> wrote:
>
> > > I've been trying to figure out the cause of acompassrelated error
> > > for a while. After debugging and standing out in the rain slowly
> > > spinning in circles for a while, I finally found out that my device is
> > > reporting back yaw values inconsistently.
>
> > > For example, the range of offset from magnetic north is +/- 46
> > > degrees. The average offset is just under 20 degrees. Depending on how
> > > I orient my G1, the error can go to 46 degrees off of magnetic north.
> > > Has anyone here experienced similar results when reading yaw from the
> > > sensor? I've gotten a number of reports from others complaining about
> > > inaccuracy withcompasstype results and am wondering if this is a per
> > > phone error or if all of the G1s have poor yaw/orientation sensors.
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Capabilities of Location API

2008-11-07 Thread ahmdalitaha

i have the same problem as yours and i was hoping if you did find a
way around to get the Towers IDs around your location to share that
information

On Oct 20, 2:28 pm, NickDG <[EMAIL PROTECTED]> wrote:
> On Oct 16, 10:29 am, NickDG <[EMAIL PROTECTED]> wrote:
>
>
>
> > We're investigating the possibility of creating a smart phone
> > application that uses the GSM network to determine the location of the
> > phone.
>
> > We will study different methods of calculating positions and to do
> > that we need extensive data about the network such as IDs, signal
> > strengths, etc of cell towers, not just of the currently connected one
> > but of all visible towers. Does the Android API allow us to get these?
>
> > The class 'android.location.LocationManager' seems to provide the
> > functionality to do get a position via the network. The JavaDoc of the
> > constant NETWORK_PROVIDER (http://code.google.com/android/reference/
> > android/location/LocationManager.html#NETWORK_PROVIDER) states
> > "Results are retrieved by means of a network lookup.". What does this
> > mean? How is the positioning done technically?
>
> It seems nobody in this group can answer my questions. Do you know
> another place I can look for answers?
>
> 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] How shall I need design my application when the device be rotated?

2008-11-07 Thread [EMAIL PROTECTED]

Hi ,
I mean,  If the device be rotated, android shall auto-adjust my
application to fit screen, but how can I get the notification in my
program?? especially It's a base web-browser's application,  and
whether can I cancel this auto-adjustment ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: What is google's official position on JNI ?

2008-11-07 Thread pasquale.anatriello

I would like to know this too.
We are willing to port our project in android too but we have all our
HUGE library written in C.
Is there a hope to have a native support soon enough?
Is it official that this support will be relased?
We managed to run some code on the Emulator but as it is now it's not
possible to run native code on the device without hacking it
Thank you for your patience (and sorry for my poor english)
Pasquale Anatriello

On 21 Ott, 19:37, StephC <[EMAIL PROTECTED]> wrote:
> On 1 oct, 17:23, "Romain Guy" <[EMAIL PROTECTED]> wrote:
>
> > First of all,JNIis not used in our apps. Only in the framework.
> > Then, we are working on a native SDK that will provide official and
> > correct support forJNI. Just be patient :)
>
> This is very good news for games developers!
>
> We're working on Augmented Reality games with real time image analysis
> not doable inside a VM.
>
> We'll be glad to port it on the Android platform.
>
> How long will we have to wait for this native SDK?
>
>
>
> > On Wed, Oct 1, 2008 at 2:53 AM, MrSnowflake <[EMAIL PROTECTED]> wrote:
>
> > > I believeJNIis not supported for developers, because 1: It would
> > > require developers to build libs for every different android platform
> > > out and 2: While Google (probably) usesJNI, they can just change the
> > >JNIinterface and fix their code, but say if youJNIable program
> > > works on SDK 1.0r1 and then suddenly, when r2 gets released (and
> > > Google changed theJNI) your program wouldn't work anymore. This is
> > > something google really wants to avoid.
>
> > > On 1 okt, 11:42, Tauno T <[EMAIL PROTECTED]> wrote:
> > >> Oh, sorry, I misunderstood you there :)
>
> > >> On Oct 1, 12:37 pm, Volker Gropp <[EMAIL PROTECTED]> wrote:
>
> > >> > Hi,
>
> > >> > you may call it unfair of course. But please keep in mind, they did
> > >> > not tell us that they use it in their apps. But they use it in their
> > >> > API to delegate calls to native libs.
>
> > >> > Regards
> > >> > Volker
>
> > >> > On Oct 1, 11:18 am, Tauno T <[EMAIL PROTECTED]> wrote:
>
> > >> > > Isn't it a little .. how do I say it.. unfair to tell us thatJNIis
> > >> > > not supported at all and then use it in their own apps to make them
> > >> > > better and give them more features than are available to the rest of
> > >> > > the developers?
>
> > >> > > On Oct 1, 11:49 am, Volker Gropp <[EMAIL PROTECTED]> wrote:
>
> > >> > > > Hi Ranjeet,
>
> > >> > > > although I'm not the Android Dev Team i can tell you what ive been
> > >> > > > told last weeks about this topic:JNIis currently not supported in
> > >> > > > SDK 1.0. The reason is not quite clear, some say cause it may not 
> > >> > > > work
> > >> > > > at all, or may break in the (near) future. Plus your app wont be
> > >> > > > portable and needs special versions for every hw platform. 
> > >> > > > Actually i
> > >> > > > bet Android Dev Team will just tell you: "native libs andJNIis not
> > >> > > > supported!".
>
> > >> > > > On the other handJNIis working and Android uses it internally a lot
> > >> > > > [google talks]. But you may have problems to link against the 
> > >> > > > stripped
> > >> > > > down libc they are using, or may run into other problems you cannot
> > >> > > > resolve. Plus please keep in mind there is no real solution to 
> > >> > > > deploy
> > >> > > > your app on real phones, because /system/lib is read only. You 
> > >> > > > might
> > >> > > > add your .so into the apk as a raw resource and extract it into 
> > >> > > > your
> > >> > > > app writable directory under /data. Loading the .so works for me 
> > >> > > > using
> > >> > > > System.load(). But this way the .so is stored on your phone in 2
> > >> > > > locations, using a lot unnecessary space.
>
> > >> > > > Currently for a real world app on real phones i would'nt useJNIand
> > >> > > > native libs at all due to those problems. Either wait forJNIsupport
> > >> > > > in future SDK versions or port your library to Java.
>
> > >> > > > Regards
> > >> > > > Volker
>
> > >> > > > On Oct 1, 4:02 am, Ranjeet <[EMAIL PROTECTED]> wrote:
>
> > >> > > > > Dear Android Dev Team,
>
> > >> > > > > My apologies if I am asking a question that's already been 
> > >> > > > > answered.
> > >> > > > > Unfortunately I haven't been able to find any documentation 
> > >> > > > > within
> > >> > > > > Android's reference that officially states Google's position on 
> > >> > > > > usage
> > >> > > > > ofJNI/SharedObjects (written in C++ and compiled via a cross
> > >> > > > > compiler) from within Java ui code.  To clarify what I am trying 
> > >> > > > > to
> > >> > > > > accomplish, we are building an application with the user 
> > >> > > > > interface
> > >> > > > > completely written using the java/android classes/controls and it
> > >> > > > > would use the shared library thats written in C++. There is just 
> > >> > > > > so
> > >> > > > > much effort gone in to making that library that it would be a 
> > >> > > > > LOT of
> > >> > > > 

[android-developers] Help: TabHost bugs and CameraPreview bugs

2008-11-07 Thread taoshen1983

Hi,  can some one help me with the following bugs?

1.  The CameraPreview bug seems to be well understood:  the camera
needs to be in landscape mode to have the rotation right.  So right
now I am stuck because I would rather have google fix the rotation bug
instead of me having to tap into the OrientationSensor and rotate the
SurfaceHolder myself because that could cause problems should google
fixed the bug themselves.

2.  In portrait mode, TabHost works only up to creation of 5 tabs.
Starting at the 6th tab, a vertical  line runs into the Tab, causing a
graphical glitch.  As you add more tabs, the vertical graphics glitch
grows until it fills the entire tab area, then it looks like the tab
is doing fine again(after about 10 tabs).   I am not sure if it is the
icons I am using for the tabs(32x32 PNG format) that's causing the
problem.   If you switch to landscape mode, the glitch goes away since
it is wider than portrait mode.

   code:

tabHost.addTab(tabHost.newTabSpec("tab_1")
.setIndicator("1")
.setContent(new Intent(this, tab1.class)));

tabHost.addTab(tabHost.newTabSpec("tab_Camera")
.setIndicator("2")
.setContent(new Intent(this, CameraPreview.class)));

tabHost.addTab(tabHost.newTabSpec("tab_3")
.setIndicator("3")
.setContent(new Intent(this, tab3.class)));

tabHost.addTab(tabHost.newTabSpec("tab_4")
.setIndicator("4")
.setContent(new Intent(this, tab4.class)));

tabHost.addTab(tabHost.newTabSpec("tab_5")
.setIndicator("5")
.setContent(new Intent(this, tab5.class)));

tabHost.addTab(tabHost.newTabSpec("tab_6")
.setIndicator("6")
.setContent(new Intent(this, tab6.class)));

tabHost.addTab(tabHost.newTabSpec("tab_7")
.setIndicator("7")
.setContent(new Intent(this, tab7.class)));

3.  If you set the intent to launch the CameraPreview class under Tab
1, then the CameraPreview activity(taken from CameraPreview from API
Demo) works, with the rotation problem.  If you set the CameraPreview
class under any other Tabs, the Preview wouldn't start until you
select the Camera Tab and open the keyboard to force switch to
landscape mode, after which the Preview starts.  Seems that TabHost
isn't starting the onStop() and onResume() of the sub Activities
unless it is the first Tab.

4.  TabHost does not have API(at least I couldn't find it) to make the
width and height of the Tabs smaller.  In portrait mode, it is decent
sized.(although, I still want it to be about half the height).  Once
it is switched to the landscape mode by opening the keyboard, TabHost
literally takes about 30% of the available touchscreen real estate,
which doesn't leave much room for your application.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Customizing builtin applications

2008-11-07 Thread Richard Levasseur

On Nov 5, 4:19 am, Karra <[EMAIL PROTECTED]> wrote:
> Tried without luck at android-beginners...
>
> Is there any documentation on the built-in applications and how they
> can be extended? I have a couple of ideas for features that I would
> love to have as
> part the default address book application, but make little sense as a
> full blown application. Can someone point me in the right direction?

I know how you feel.  I want to tweak text notifications by displaying
them on the keyguard, but as far as i can tell, there isn't any way to
access that screen.  Very frustrating.

FWIW, I read that if you register the right receiver, then other apps
will pick up those intents and display them (if you install the
myspace app, the 'share picture' button has myspace as a new option).
Of course, you first have to know what intents they're sending, which
is a complete frustrating mystery in and of itself.

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



[android-developers] Saving a file to a system directory?

2008-11-07 Thread mm

Hey folks,

I'm trying to save a file to a system folder. I know the default
directory for saving files to the device is in your local data folder,
as so:

String dir = getFilesDir().toString();
// dir is "/data/data//files"

I'm wondering if it's possible to save files to another directory,
such as: /system/media/audio/ringtones ?

This doesn't seem to work: getFileStreamPath("/system/media/audio/
ringtones/").mkdirs();

Any help would be much 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] DOWNLOADING MUSIC FROM WINDOWS VISTA MEDIA P;AYER FOR G1 PHONE

2008-11-07 Thread [EMAIL PROTECTED]

I WAS UNABLE TO DOWNLOAD MUSIC FROM MY WINOWS MEDIA PLAYER USING
WINDOWS. FIRST, I WAS ALWAYS ASKED FOR DRIVERS, WHICH THERE ARE'NT
ANY!
THREE HOURS W/T-MOBILE SUPPORT DID NOT HELP EITHER, SO I JUST PLAYED
WITH THE PHONE BY MYSELF. HERE IS HOW TO DO IT!
FIRST PLUG PHONE INTO THE COMPUTER AND WHEN ASKED FOR DRIVERS CLICK
"DO NOT ASK AGAIN." THEN DISCONECT THE PHONE. GO TO THE MEDIA PLAYER
AND DRAG THE MUSIC THAT YOU WANT TO SYNC TO YOUR PHONE. CONECT THE
PHONE AND WHEN THE SIGNAL LETS YOU KNOW THAT YOU HAVE A USB CONECTION,
DRAG DOWN THE CONECTION PAGE, CLICK OR TAP THE ORANGE USB CONECTED
BAR. THEN CLICK MOUNT. CLICK ON MUSIC ICON, ON MEDIA PLAYER CLICK
"SYNC". A DROPDOWN WILL APPEAR ASKING TO "REFRESH DEVICES" CLICK THIS
BAR.  IT MIGHT TAKE MORE THAN ONCE IN THE BEGINING BUT IN THE SYNC
AREA YOU WILL SEE THE INFORMATION ABOUT THE PHONE SHOWING THAT IT HAS
BEEN RECOGNIZED.  IT WILL ALSO SHOW HOW MUCH SPACE YOU HAVE LEFT IF
YOU DOWNLOAD THE MUIC SELECTED.  AT THE BOTOM HIT "START SYNC" AND
YOUR ON YOUR WAY!!  GOOD LUCK AND ENJOY!!  NO CHARGE!
chefbigbear52

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Icons - Recommended size, format, etc?

2008-11-07 Thread g1bb

Hello,

Is there a recommended size or format for an application's icon? I've
been using .PNG at 190x141 px, but I can never seem to get them as
'cool' looking as the other applications I've seen.

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] Call an application from another application in android

2008-11-07 Thread Cattivik

Can I call an application from another application in android?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 and webservice Apache Axis

2008-11-07 Thread Cattivik

Can I call/access to a webservice apache axis from android?
If yes, how can I do?
Plese, give me an example or a link

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   >