[android-developers] html5 database size

2011-08-19 Thread Shawn Brown
Hi,

My handset shows 2.2 MB in stored data for my browser at a particular site.

That site reports (via adb logcat):

 there was not enough remaining storage space, or the storage quota
was reached and the user declined to allow more space - Executed SQL:
null

I can't believe there is so little space.  What could be going on.
The icon next to how much data seems to show that there is probably
4/5 ths of space left.

I'm just trying to create a table so it is definitely not caused by my
trying to insert a large amount of data.

Shawn

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


[android-developers] Re: howto diagnose random reboots

2011-08-16 Thread Shawn Brown
Here is another bugreport of what keeps my nexus one crashing.  Where
would I file a bug report on this?

[ 2836.578948] ARM9 has CRASHED
[ 2836.579284] smem: DIAG '[WCDMA] 22:27:18 FATAL: IST0
(mcalwcdma_demod.c:02059) (1)
[ 2836.579284] '
[ 2836.579620]
[ 2836.579864] Restarting Linux version
2.6.37.4-cyanogenmod-01332-g7f230e8 (shade@toxygene) (gcc version
4.4.3 (GCC) ) #1 PREEMPT Tue Apr 12 12:54:14 EDT 2011
[ 2836.579864]

below is another

 [ 1818.629425] ARM9 has CRASHED
 [ 1818.630249] smem: DIAG '[WCDMA] 09:29:27 FATAL: IST0 (mdsptask.c:00476) 
 (1)
 [ 1818.630279] '
 [ 1818.631134]
 [ 1818.631866] Restarting Linux version
 2.6.37.4-cyanogenmod-01332-g7f230e8 (shade@toxygene) (gcc version
 4.4.3 (GCC) ) #1 PREEMPT Tue Apr 12 12:54:14 EDT 2011
 [ 1818.631927]

 Build: GRI40
 Bootloader: 0.35.0017
 Radio: 5.08.00.04
 Network: SoftBank
 Kernel: Linux version 2.6.37.4-cyanogenmod-01332-g7f230e8
 (shade@toxygene) (gcc version 4.4.3 (GCC) ) #1 PREEMPT Tue Apr 12
 12:54:14 EDT 2011
 Command line: board_mahimahi.disable_uart3=0
 board_mahimahi.usb_h2w_sw=0 board_mahimahi.disable_sdcard=0
 diag.enabled=0 board_mahimahi.debug_uart=0 smisize=0
 androidboot.baseband=5.08.00.04 androidboot.cid=GOOGL001
 androidboot.carrier=GOOGLE androidboot.mid=PB991
 androidboot.keycaps=qwerty androidboot.mode=normal
 androidboot.serialno=MB047P800301 androidboot.bootloader=0.35.0017
 no_console_suspend=1 wire.search_count=5

Note: This is definately not CynogenMod related as sending the phone
with the original ROM back to HTC and trying a new handset did NOT
solve anything.

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


Re: [android-developers] Re: Mac source control

2011-05-20 Thread Shawn Brown
 Eclipse has an EGit plugin

I like to use this to commit to my branch locally and then use gitx
http://gitx.frim.nl/ to push to github (which is only like $7 for
private repos)

 to make it a little easier to get into (or
 harder, it is a bit buggy).

git actually was simple to learn.  Ok I don't have egit running to
it's full potential but ... I like gitx extremely much.

Shawn

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


[android-developers] java.net.UnknownHostException: android.clients.google.com

2011-03-10 Thread Shawn Brown
Why do I keep seeing this error

E/CheckinTask(  243): Checkin failed:
https://android.clients.google.com/checkin (request #0)
E/CheckinTask(  243): java.net.UnknownHostException: android.clients.google.com
E/CheckinTask(  243):   at
java.net.InetAddress.lookupHostByName(InetAddress.java:506)
E/CheckinTask(  243):   at
java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
E/CheckinTask(  243):   at
java.net.InetAddress.getAllByName(InetAddress.java:256)
E/CheckinTask(  243):   at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
E/CheckinTask(  243):   at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
E/CheckinTask(  243):   at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
E/CheckinTask(  243):   at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:359)
E/CheckinTask(  243):   at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
E/CheckinTask(  243):   at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
E/CheckinTask(  243):   at
android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
E/CheckinTask(  243):   at
com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
E/CheckinTask(  243):   at
com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
E/CheckinTask(  243):   at
com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
E/CheckinTask(  243):   at
com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:254)
E/CheckinTask(  243):   at
com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:150)
E/CheckinTask(  243):   at
com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
E/CheckinTask(  243):   at
com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214)
E/CheckinTask(  243):   at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/CheckinTask(  243):   at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
E/CheckinTask(  243):   at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
E/CheckinTask(  243):   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
E/CheckinTask(  243):   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
E/CheckinTask(  243):   at java.lang.Thread.run(Thread.java:1019)

How can I fix it?

Youtube won't work.
Markey won't work.
gmail won't work.

Then suddenly they work.

I don't get it.  It's just too dodgy.



Shawn

NexusOne
2.3.3
using wifi

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


[android-developers] Why does gmail and market suddenly not connect.

2011-02-22 Thread Shawn Brown
Hi,

Why does gmail and market suddenly not connect.


Trying to sync my mail gives me.

D/Gmail   (  390): Validating Notification: mapSize:0 tagLabel:null
label getAttention:false
W/InputManagerService(   85): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44be6f28
I/Gmail   (  390): MainSyncRequestProto: lowestBkwdConvoId: 0,
highestHandledServerOp: 1439423, normalSync: true
D/Gmail   (  390): IO exception: java.net.UnknownHostException:
android.clients.google.com
D/SyncManager(   85): failed sync operation authority: gmail-ls
account: Account {name=remo...@gmail.com, type=com.google} extras:
[force=true ignore_settings=true ignore_backoff=true do_not_retry=true
] syncSource: 3 when: 468066 expedited: false, SyncResult: stats [
numIoExceptions: 1]
D/SyncManager(   85): not retrying sync operation because
SYNC_EXTRAS_DO_NOT_RETRY was specified authority: gmail-ls account:
Account {name=remo...@gmail.com, type=com.google} extras:
[ignore_settings=true force=true do_not_retry=true ] syncSource: 3
when: 468249 expedited: false



Launching market gives me:

W/InputManagerService(   85): Window already focused, ignoring focus
gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44ba7ee0
W/vending (  219): [56]
RequestDispatcher.performRequestsOverNetwork(): IOException while
performing API request: android.clients.google.com
D/vending (  219): [56] BaseAction.run(): IOException:
java.net.UnknownHostException: android.clients.google.com
I/vending (  219): [1] BaseAction.displayErrorUi(): Network error in
com.android.vending.AssetBrowserActivity$NetworkDataLoadAction:
java.net.UnknownHostException: android.clients.google.com
D/dalvikvm(  219): GC_FOR_MALLOC freed 6285 objects / 409960 bytes in 54ms
W/vending (  219): [23]
RequestDispatcher.performRequestsOverNetwork(): IOException while
performing API request: android.clients.google.com
E/vending (  219): [23] RequestRunnable.run(): Got IOException from
async request: android.clients.google.com
W/vending (  219): [23] AsynchBillingEventRequest.onException():
Failed to record billing event: java.net.UnknownHostException:
android.clients.google.com
D/dalvikvm(  390): GC_EXPLICIT freed 4195 objects / 198832 bytes in 80ms
D/dalvikvm(  165): GC_EXPLICIT freed 804 objects / 80472 bytes in 60ms

Notes:

Android 2.2.2
Nexxus One
Using Wifi (the connection works for everything else just fine)
Since Feb 19th, it won't work.

Shawn

P.S. I also see this occasionally:


I/CheckinTask(  210): Sending checkin request (44031 bytes)
E/CheckinTask(  210): Checkin failed:
https://android.clients.google.com/checkin (request #0)
E/CheckinTask(  210): java.net.UnknownHostException: android.clients.google.com
E/CheckinTask(  210):   at
java.net.InetAddress.lookupHostByName(InetAddress.java:513)
E/CheckinTask(  210):   at
java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
E/CheckinTask(  210):   at
java.net.InetAddress.getAllByName(InetAddress.java:242)
E/CheckinTask(  210):   at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
E/CheckinTask(  210):   at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
E/CheckinTask(  210):   at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
E/CheckinTask(  210):   at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
E/CheckinTask(  210):   at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
E/CheckinTask(  210):   at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
E/CheckinTask(  210):   at
android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
E/CheckinTask(  210):   at
com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
E/CheckinTask(  210):   at
com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
E/CheckinTask(  210):   at
com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
E/CheckinTask(  210):   at
com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:239)
E/CheckinTask(  210):   at
com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:146)
E/CheckinTask(  210):   at
com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
E/CheckinTask(  210):   at
com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:228)
E/CheckinTask(  210):   at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/CheckinTask(  210):   at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
E/CheckinTask(  210):   at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/CheckinTask(  210):   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
E/CheckinTask(  210):   at

[android-developers] library byte code (in)compatibility if added as an external jar

2011-01-15 Thread Shawn Brown
Hi,

To add a 3rd party .jar to Android I followed Android suggested
practice(1) by adding the .jar as a Library [not as an Android Library
under Eclipse (2)], but am
being told this may induce byte code incompatibilities?

Can I safely use a .jar compiled with a JDK in Android?

I think I can but am told by a fellow developer:

 This is wrong. One missing method (even if it is one of many overloads
of a single method name) that is present in the JDK but not in Android,
and you've got byte code that is only compatible with the JDK, but not
with Android.

Using an Android SDK is the only safe (and the easiest) way of getting
byte code that runs under Android without any surprises. No way, of
doing the same using only a JDK.

If this is true, where can I file a bug against your documentation.

Shawn

(1) 
http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary
(2) I see adding as a .jar easier than making an Android Library as
that is not supported AFAIK under Netbeans (which some of our
developers 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] library byte code (in)compatibility if added as an external jar

2011-01-15 Thread Shawn Brown
 Can I safely use a .jar compiled with a JDK in Android?

 Possibly. It depends.


  This is wrong. One missing method (even if it is one of many overloads
 of a single method name) that is present in the JDK but not in Android,
 and you've got byte code that is only compatible with the JDK, but not
 with Android.

 That developer is correct. That is one of a few possible problems with
 adding third party JARs to Android. That just means you may get errors
 when you try using the JAR.



 If this is true, where can I file a bug against your documentation.

 What bug?

Are you joking?
http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary

Android docs say add 3rd party libraries as a .jar.

Android docs do mention this at all - that incompatibilities may be
induced and that the jar will be inaccessable.
It really should.

Shawn

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


[android-developers] does a handler prevents memory leaks???

2011-01-10 Thread Shawn Brown
Hi,

Android docs(1) suggest using threads and a handler to send messages
(to avoid ANR).

Fine.  I've always done that but then porting some code to Android
noticed that it's not necessary.

Passing the Activity (i.e. Context) works fine.

public class WorkerThread extends Thread {

private Activity mActivity;

public WorkerThread(Activity mActivity) {
super();
this.mActivity = mActivity;
}

 @Override
public void run() {
  mActivity.showToast(WorkerThread thread says hello);  //
displays a message
  //setting a TextView works fine too
...
}

I understand the potential for memory leaks (2), but if I control the
WorkerThread lifecycle (it dies when the the Activity  pauses), then
really there is no need to use a handler, is there?  Or do I
misunderstand?

Shawn

(1) Handling Expensive Operations in the UI Thread -
http://developer.android.com/guide/appendix/faq/commontasks.html
(2) http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html

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


Re: [android-developers] for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-30 Thread Shawn Brown
                          if(_theGrid1.size()7){
                                int g1left = 7-_theGrid1.size();
                                        int i;
                                        for(i=1;i=g1left;i++){
                                                x1=64;
                                                y1=i*64;
                                                
 graphic.getGridCoordinates().setGrid1X(x1);

 graphic.getGridCoordinates().setGrid1Y(y1);

This looks fine to me.  Personally, I'd just log the values to confirm that.

As for the remaining code, I can't tell what you are doing there.
Personally, I'd just log the values to see what is going wrong where.

Shawn

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


Re: [android-developers] Android Dev Phone question

2010-10-24 Thread Shawn Brown
Hi,

 I am not aware that an Android phone will automatically connect to an
 unconfigured access point. I do not recall there being a prompt during
 the setup to configure an access point.

I don't have 3G on my plan (voice only).

On an adp2 and Nexus One, I simply skipped the google setup and found
my way into settings.  I set up my wifi password and started wifi.
Then I launched gmail where it again asked me to set up a google
account.

So I set up with a sim and no data plan.  I doubt the sim was
necessary but don't want to factory reset and try again without it.
Sorry.

Shawn

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


[android-developers] Hero performance reported as slow

2010-10-13 Thread Shawn Brown
Hi,

We released an app recently and Hero users report it as lagging in performance.

We developed on the G1 and G2 and our tests show only about 15% of cpu is used.

We have a SurfaceHolder thread that redraws once every 100ms and
mostly sleeps in between draws.
We have a thread reading incoming BT (well nothing to read actually,
the connected device isn't sending much).

Tests on the G2 show that sleeping the BT doesn't change performance
and I've a user (hopefully) who will test the HERO with a BT thread
that sleeps for intervals.

Is there anything that pops into your mind about what may be different
about the HERO.  All other users give us 5 starts but the HERO folks
say it's un-usably slow.

Thanks,

Shawn

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


Re: [android-developers] Re: Hero performance reported as slow

2010-10-13 Thread Shawn Brown
Hi,

 Hero are slow if still running V1.5 android.

They need 2.1 for our app since we're using standard bluetooth apis
and our app won't run without them.

Thanks for the idea but it has to be something else.

Shawn

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


[android-developers] sample code in GPL3 release

2010-10-07 Thread Shawn Brown
HI,

I used some of the code from the Android sdk examples.

Legally I know apache is compatible with GPL3 (license for my code),
but what do I do about the copyright notice in the code?

Do I keep the Copyright (C) 2009 The Android Open Source Project and
apache license and just indicate the content was changed.

Has anyone dealt with this?  The Legal dept has no clue.

Shawn

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


Re: [android-developers] sample code in GPL3 release

2010-10-07 Thread Shawn Brown
 So the correct thing to do (IMHO) is to leave the orginal copyright notice
 intact, but to put the
 GPL header on top. That is assuming the Apache License is indeed GPL
 compatible.

Apache 2.0 and GPL3 are. I'll take Apache at their word.

http://www.apache.org/licenses/GPL-compatibility.html

[Note: it seems though that putting GPL code under an Apache License is not ok]

Shawn

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


[android-developers] why no BluetoothAdapter.ACTION_REQUEST_DISABLE ???

2010-10-06 Thread Shawn Brown
Hi,

I want to turn off BT after my app finishes if my app turned BT on.

There is a function in BluetoothAdapter to request to enable it but no
function to request to disable it.

I guess I will just call disable () despite the the api saying
Bluetooth should never be disbled without direct user consent. The
disable() method is provided only for applications that include a user
interface for changing system settings, such as a power manager
app.

I will only do it if I turned BT on so don't think I will be turning
it off when another application needs it.

I mean the user asked to exit my app so that is kinda like asking my
app to turn BT off if my app turned it on.  I don't feel in violation
of the api.

Shawn

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


[android-developers] Re: scaleType=fitXY works scaleType=centerInside doesnt

2010-10-01 Thread Shawn Brown
 If you know or can guess please tell me why:

 In the FrameLayout below, scaleType=fitXY will adjust the image to
 fit the screen but scaleType=centerInside doesn't.

Sorry, it works fine.  In the eclipse plugin it does not scale but on
the phone it works.

Shawn

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


[android-developers] scaleType=fitXY works scaleType=centerInside doesnt

2010-09-30 Thread Shawn Brown
Hi,

If you know or can guess please tell me why:

In the FrameLayout below, scaleType=fitXY will adjust the image to
fit the screen but scaleType=centerInside doesn't.  I need the
aspect ratio preserved which fitXY doesn't do.  Please look at the
- below.




?xml version=1.0 encoding=utf-8?

ScrollView
android:id=@+id/widget54
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
   android:orientation=vertical


LinearLayout

android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical

-  no effect, image is too large

FrameLayout android:layout_width=fill_parent
android:layout_height=fill_parent
ImageView android:src = @drawable/logo
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scaleType=centerInside/ImageView
/FrameLayout

-- scales but aspect ratio lost

FrameLayout android:layout_width=fill_parent
android:layout_height=fill_parent
   ImageView android:src = @drawable/logo
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scaleType=fitXY/ImageView
/FrameLayout

Button
android:id=@+id/button1
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Button 1
/
Button
android:id=@+id/button2
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Button 2
/
Button
android:id=@+id/button3
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Button 3
/
EditText
android:id=@+id/txt
android:layout_width=fill_parent
android:layout_height=300px
/

/LinearLayout
/ScrollView

Thanks,

Shawn

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


Re: [android-developers] AsyncTask doesn't run sometimes despite state returning RUNNING?

2010-09-10 Thread Shawn Brown
 Has anybody got any idea why this would be happening?

Well...  from 
http://brainflush.wordpress.com/2009/11/16/introducing-droid-fu-for-android-betteractivity-betterservice-and-betterasynctask/

So the basic idea is: launch an AsyncTask making your service call,
show a nifty progress dialog while the task thread is running, and
have the task’s result be posted back to your activity once it
completes. Cool, but what if the user decides to rotate the screen
while your task is running? Or a phone call comes in, interrupting
your app, and Android decides to kill it? Both these actions will
effectively terminateyour activity, and recreate it when resuming
(yes, a screen rotation kills your activity, very clever, isn’t it?).
Unfortunately, any AsyncTask that was still running now holds a stale
reference to your activity, because the restarted activity will be an
entirely different object in memory (and it will go through
onCreate(), as if the activity had started for the first time). I’m
not entirely sure whether AsyncTask will actually post back the data
to the old activity object (if it was a weak reference, it may already
have been garbage collected), but in any case, your “new” activity
will never see it, because it’s a different instance.

Now, one could argue: well, just do all the work again, like, re-send
the request or whatever job was running. Yes, you could do that. But
that’s wasteful and, really, makes you feel stupid, no? Plus, if the
user triggers a web service request, then flips the screen, decides
that this wasn’t helpful, and flips it back, then your request is
being sent 3 times in parallel. Is that what you want? Probably not.

BetterAsyncTask to the Rescue

Thanks to Droid-Fu, there’s a solution to this: BetterAsyncTask! (I’m
a lazy person, and I couldn’t come up with a better name). It behaves
exactly like AsyncTask (in fact, it is an AsyncTask), but it does some
extra work for you: first and foremost, it keeps track of the active
instance of the context that launched it, and if that instance should
change, it will post the data back to the new instance. In other
words, you can dispatch your task, flip the screen back and forth
mentally, and BetterAsyncTask will still post the task’s result back
to whatever activity instance is alive at the time it finishes. In
other words, the task is only ever run once, regardless whether the
context in which it was launched died while it was running or not.

http://github.com/kaeppler/droid-fu

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


Re: [android-developers] Re: Bug in minSdkVersion or what?

2010-09-05 Thread Shawn Brown
 the app name is my
 test.

I see it via market on adp2 running Froyo (CynogenMod 6.0).


DO NOT DOWNLOAD THIS APP X6 right!

Shawn

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


Re: [android-developers] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread Shawn Brown
 .
  It doesn't really make sense for people who work on Market to follow such a
 group

 And again, I don't work on Market stuff,

Well you could tell them that there are questions, couldn't you?

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


Re: [android-developers] Re: How do you force a reset just like rotation does?

2010-08-27 Thread Shawn Brown
 I have already searched all those links, but was expecting some basic call
 that is generic to every program.

 The call itself is generic, but the arguments have to specify what activity
 you're talking about and only you know that (assuming you're not handling
 some generic intent).

generic?

Can't you use :

Intent(Context packageContext, Class? cls)
Create an intent for a specific component.


So

startActivity(new Intent(this, this.class);

I haven't tested it though.  If this.class doesn't resolve to the
current activity class name, you'll have to figure out a way to get it
there.  I think it'll work.

Shawn

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


Re: [android-developers] Re: Paid vs Free, My Early Experience

2010-08-21 Thread Shawn Brown
 A changelog in Market would be visible before an application is downloaded
 and installed. A changelog displayed by the application obviously is not.

I think it is extremely important to have a visible changelog before
downloading.

Moreover, another point Google is remiss at is letting me know what
apps really do.  Take for instance the case when Chinese developers
had a live wallpaper and were taking info from the handset and storing
on their servers.

I think it needs to be disclosed more accurately (permission are too
broad and doesn't give me a legal agreement as to what they will do
with the information).

If I am happily using an app, I want to know before I upgrade exactly
what the new version is going to do.  Otherwise I may update to find
that the app has decided to store my contacts on their server as as
backup for my convenience.  Ok great service but I am not comfortable
with that.

You are all of the mindset that your users can trust you, and they
can.  There are other developers out there who are not really safe to
trust.  How do I know the difference and what recourse do I have if
something goes wrong.  I want an agreement as to what the app will do
and how my information will be used in case for some reason something
happens.

In other words, if an app with GPS permission suddenly decides to sell
my location to advertisers and the advertisers sell it to someone who
sells it to someone who looks for people in vulnerable locations, well
I did not agree to that but without and agreement, the original
developer may argue that I gave permission.

OK most users may not really care but if it reaches a point android
apps becoming a risk, the whole eco system will be hurt.

Really what you developers are asking users to do is to know what
permission allow apps to do what.  How can users know.  How would a
user know that the Jackeey Wallpaper asking for permission to access
your phone calls is a huge red flag?

Without an agreement it is difficult to know that the app is really
doing with the information.

Market does need extended information and not just for developers who
choose a more verbose marketing method.  I mean having an explicit
agreement may not stop malware developers but the fact that they have
broken the agreement is easier to prove and punish.  We don't know
what Jackeey Wallpaper was doing with user information and while it
might not have been malicious, an explicit agreement would have given
Google additional power to ban that developer for life and perhaps
take other legal actions if that developer was taking information in
violation of user agreement.

The amount of information about applications is insufficient relative
to the amount of power we give them.   There should be a law that
requires apps to explain what they will do in understandable English.
GPS permissions does not tell me if the app is requesting an ad
suitable for my location or sending my location to advertisers
allowing them to track my habits.  Sorry it is different.

Shawn

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


Re: [android-developers] Thread

2010-08-04 Thread Shawn Brown
 I want to write a separate Thread within my application(to do
 Bluetooth connection). Any idea where I can find any reference for
 help to write Threads in Android?


http://lmgtfy.com/?q=android+bluetooth+threads

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


Re: [android-developers] Dalvik SegFaults while using CMU Sphinx4

2010-07-28 Thread Shawn Brown
Hi,

 I am a part of a project that involves automatically offloading portions of
 an application's execution to a cloud of servers. As such, we try to run
 traditionally difficult algorithms on our Android phones, in particular,
 speech recognition algorithms, namely the CMU Sphinx4 library.

 CMU Sphinx4 on Android?!?!?

 If you could possibly, please document your success when you get
there .. the world at large would be most appreciative of you efforts
and in awe of your wonderfulness.

I don't mean the offloading portion to the cloud - just the getting
Sphinx to run.

Please?

Shawn

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


Re: [android-developers] Loading 2.0.1 to ADP2

2009-12-24 Thread Shawn Brown
 May someone please explain a developer withOUT any Android specific
 background, what is so difficult in uplading a new version of an O/S
 to a device that's specifically desgined for such purpose?

Nothing.  I think the repository had been set up to allow that hasn't it.

On the other hand, some parts of the phone (like camera) are not open
source and so for that, HTC or the hardware manufacturer has to
release a binary for upgrades.

So yes you can build current code and flash it to your handset but
proprietary stuff won't work.

*Note, knowing that I gave up building so my understanding may be off
- but I do think the repository is getting closer and closer to
supporting building a new version for ADP2.

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


Re: [android-developers] Two Japanese-related missing applications: kanji scanner, jiten

2009-12-01 Thread Shawn Brown
   Japanese offline dictionary

http://code.google.com/p/aedict/

It uses Edict and rocks!!!

OCR isn't available and the kanji recognition is a little weak but ...
that's the state of Japanese support in open source.

By the way, it's gpl, source is available and I think the creator will
accept patches should you want to add a feature.

I asked (and offered) to get simeji integration so that I could easily
input Japanese kanji when writing email to friends and the developer
was happy to do that.

If you don't know about Edict, well you should.

Shawn

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


Re: [android-developers] Re: Need an invitation to google Wave?

2009-11-01 Thread Shawn Brown
Please if you have any left!!!

Do you?

Shawn

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


[android-developers] why can't I get paid apps

2009-10-11 Thread Shawn Brown

Hi,

I have a google IO handset.  When I updated to donut, I didn't get
paid market apps

 ./fastboot-mac erase userdata
erasing 'userdata'... OKAY
$ ./fastboot-mac erase cache
erasing 'cache'... OKAY
reisMac:donut brownasamoto-brown$ ./fastboot-mac update
signed-google_ion-img-14721_system_image.zip

I am in Japan which has market access.

How can I get market access?  I am running a standard HTC rom.

Shawn

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



[android-developers] Re: Where have all the Google employees gone?

2009-10-08 Thread Shawn Brown

On Fri, Oct 9, 2009 at 1:45 PM, Rud rudmerr...@gmail.com wrote:

 My web site got hit by 68 people looking at my game page. Since the
 only reference, pretty much, to the site is on the game I am assuming
 around that many people tested it.

 Hopefully I'm not being overly optimistic thinking they liked it
 otherwise they would not have bothered to visit the site.

Hello?  Anyone there?

maybe 100 people reviewed it and 2 people liked it and they each told
34 friends whom they know like similar things.

You can't conclude anything other than somebody likes it!!!

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



[android-developers] Java Model Exception when cleaning project

2009-09-30 Thread Shawn Brown

Hi,

I keep getting this error under several projects.

10 minutes ago I exported an android .apk, then changed the
AndroidManifest.xml and now can't export.  I reverted back to the
original AndroidManifest.xml but still it doesn't work.

I guess the plugin is broken.  Is there a set of Ant tasks that can be
used to build Android apps???

Java Model Exception: Java Model Status [gen [in MushroomNow] does not exist]
at 
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:502)
at 
org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
at 
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
at 
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
at 
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
at 
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:477)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:645)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:124)
at 
org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1557)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1547)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1381)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1357)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1958)
at 
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
at 
org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at 
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at 
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
at 
org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
at 
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

eclipse.buildId=M20090917-0800
java.version=1.5.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
-keyring /Users/me/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -product
org.eclipse.epp.package.jee.product -keyring
/Users/me/.eclipse_keyring -showlocation

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



[android-developers] Re: Java Model Exception when cleaning project

2009-09-30 Thread Shawn Brown

Android build via Eclipse is whack.  Where can I file a bug?

To workaround it, I copied my projects root dir, ran:

rm .project
rm .classpath
rm .DS_Store

mounted the dir as a new Android project from existing source and it
builds and exports without error.

Shawn

On Thu, Oct 1, 2009 at 9:51 AM, Shawn Brown big.coffee.lo...@gmail.com wrote:
 Hi,

 I keep getting this error under several projects.

 10 minutes ago I exported an android .apk, then changed the
 AndroidManifest.xml and now can't export.  I reverted back to the
 original AndroidManifest.xml but still it doesn't work.

 I guess the plugin is broken.  Is there a set of Ant tasks that can be
 used to build Android apps???

 Java Model Exception: Java Model Status [gen [in MushroomNow] does not exist]
        at 
 org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:502)
        at 
 org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
        at 
 org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
        at 
 org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
        at 
 org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
        at 
 org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:477)
        at 
 org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:645)
        at 
 org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
        at 
 org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
        at 
 org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
        at 
 org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
        at 
 org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:124)
        at 
 org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1557)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at 
 org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1547)
        at 
 org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1381)
        at 
 org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1357)
        at 
 org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1958)
        at 
 org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
        at 
 org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at 
 org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
        at 
 org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
        at 
 org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
        at 
 org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
        at 
 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 eclipse.buildId=M20090917-0800
 java.version=1.5.0_20
 java.vendor=Apple Inc.
 BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 -keyring /Users/me/.eclipse_keyring -showlocation
 Command-line arguments:  -os macosx -ws cocoa -arch x86 -product
 org.eclipse.epp.package.jee.product -keyring
 /Users/me/.eclipse_keyring -showlocation


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



[android-developers] Re: WikiNote -apps-for-android build error

2009-09-27 Thread Shawn Brown

 Java Model Exception: Java Model Status [gen [in WikiNotes] does not exist]


Hmmn, I can though generate an unsigned app and sign it manually.
Other Android projects are able to do it via eclipse so why it fails
is beyond me.

Shawn

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



[android-developers] EditText

2009-09-27 Thread Shawn Brown

Hi,

What would be a good approach to modifying user input in the NotesList
sample application.  In the NoteEditor class, android.widget.EditText
is used to let user's input their notes.  Would subclassing
android.widget.EditText or rewriting the NoteEditor class be a better
approach so that I could take the user input (say cat), look it up
in a Japanese dictionary, allow the user to select their approved
definition and append it to cat : selected_japanese_translation, and
then finally insert it into the note.

Any help is greatly appreciated.  I know how to do the lookup to get
the Japanese, I'm just not clear on how to connect things.

Would it make sense to put a listener on EditText view and from their
launch a lookup intent which will finally call the NotesList intent
again and set the text cat : selected_japanese_translation.

Shawn

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



[android-developers] Re: run Android app on iPhone

2009-09-26 Thread Shawn Brown

 do i need to rewrite my existing android code for COCOA touch support?

Well give it a try and see.  I haven't used it yet and that's why I
was asking.  Let me know...

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



[android-developers] WikiNote -apps-for-android build error

2009-09-26 Thread Shawn Brown

Hi,

Has anyone gotten the WikiNote from
http://code.google.com/p/apps-for-android/ ???

What I did was:

1) checkedout the project via apps-for-android instructions [svn
checkout http://apps-for-android.googlecode.com/svn/trunk/
apps-for-android-read-only]
2) opened a new Android project using existing source dir [per the
WikiNote direction]
3) cleaned the project and let it rebuild

It won't build the apk though and reports compilation errors (the top
level dir is flagged red in eclipse but nothing else is so I can't
track down where the error supposedly is)

Java Model Exception: Java Model Status [gen [in WikiNotes] does not exist]
at 
org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:502)
at 
org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
at 
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
at 
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
at 
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
at 
org.eclipse.jdt.internal.core.PackageFragmentRoot.getKind(PackageFragmentRoot.java:477)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:645)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.handleAffectedChildren(PackageExplorerContentProvider.java:791)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.processDelta(PackageExplorerContentProvider.java:734)
at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.elementChanged(PackageExplorerContentProvider.java:124)
at 
org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1557)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1547)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1381)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1357)
at 
org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:1958)
at 
org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
at 
org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at 
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at 
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at 
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:313)
at 
org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1022)
at 
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


eclipse.buildId=I20090611-1540
java.version=1.5.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
-keyring /Users/me/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -product
org.eclipse.epp.package.jee.product -keyring /me/.eclipse_keyring
-showlocation

Thanks,

Shawn

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



[android-developers] run Android app on iPhone

2009-09-24 Thread Shawn Brown

HI,

Has anyone tried this cross compiler to get their Android app to run
on an iPhone?

http://xmlvm.org/android/

Shawn

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



[android-developers] Re: Trying to get Javascript on Android

2009-09-19 Thread Shawn Brown

 Hi,
 * http://www.nanaze.com/2009/01/debugging-javascript-on-android.html *
 Thank you for the link, however, that article went way, way over my
 head, at commercial airliner altitudes.

Maybe not.

Just:

1) get the sdk http://developer.android.com/sdk/1.6_r1/index.html
2) set your path http://developer.android.com/sdk/1.6_r1/installing.html
3) hook up your phone via usb -- turn on
Settings/Application/developement/USB debugging
4) run (in a shell on your linux box) $adb logcat WebCore:V *:S
5) stick logging in your javascript on your web page
console.error('oops damn');
console.info(' I am here');
console.log('3');
console.warn(' eeeh uuum');


This is much easier than the stuff I know you fiddle with in you linux
box -- fonts, encodings etc etc.

You may want to find a cross browser js solution that is targeted at
(among others) Android/iPhone and let me know.  Extjs may be one but I
am not sure about their mobile support.

Shawn

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



[android-developers] Re: Trying to get Javascript on Android

2009-09-18 Thread Shawn Brown

 EbisuDave,

I bet you are in Tokyo !

Have you tried:
http://www.nanaze.com/2009/01/debugging-javascript-on-android.html

Shawn

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



[android-developers] meaning of processing

2009-09-05 Thread Shawn Brown

Hi,

What does this mean (specifically processing)?

[2009-09-05 23:13:09 - HelloActivity] processing
lejos/nxt/BasicMotorPort.class...

In this case, BasicMotorPort.class is in a jar that is in the build
path of my Android project in Eclipse.

In this case, [2009-09-05 23:13:09 - HelloActivity] processing
javax/microedition/io/Connection.class...

Connection.class is _not_ on the class path.  It may be used by a
class the Android project but I rather expect some error to be thrown
that the class can't be found.

Could it be a bug where possible it was in the classpath but is not now?

Shawn

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



[android-developers] dalvikvm: No implementation - Trying to load lib

2009-09-05 Thread Shawn Brown

What does this mean?

W/dalvikvm( 9042): No implementation found for native
Lcom/intel/bluetooth/BluetoothStackBlueZ;.isNativeCodeLoaded ()Z
D/dalvikvm( 9042): Trying to load lib
/data/data/com.example.android.helloactivity/lib/libbluecove.so
0x430c6ec8
D/dalvikvm( 9042): Added shared lib
/data/data/com.example.android.helloactivity/lib/libbluecove.so
0x430c6ec8

Does it mean that BluetoothStackBlueZ;.isNativeCodeLoaded wasn't found
so it loaded libbluecove.so?

I think  BluetoothStackBlueZ;.isNativeCodeLoaded  is in libbluecove.so

I can't understand if  BluetoothStackBlueZ;.isNativeCodeLoaded isn't
found or if it is found too late or if it is found ok.

Shawn

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



[android-developers] Re: Problem while compiling the cupcake Android release for the HTC G1 dev edition

2009-08-31 Thread Shawn Brown

 HI,

 make: *** Pas de règle pour fabriquer la cible «
 vendor/htc/dream-open/proprietary/AudioPreProcess.csv », nécessaire pour «
 out/target/product/dream-open/system/etc/AudioPreProcess.csv ». Arrêt.

Um, you need to get some proprietary stuff off the handset.

This worked for me.

adb pull /system/etc/AudioPreProcess.csv proprietary/AudioPreProcess.csv

Shawn

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



[android-developers] Re: Android project

2009-08-30 Thread Shawn Brown

 I am a student studying in final year engineering in IT.
 I am willing to do my final year projecto Android platform.
 Can anyonelease suggest me a good idea that camn be implemented on
 Android platform.

Very simple.  Copy / paste in Gmail.  It can't be done now AFAIK.
Maybe you can copy the address of who sent the mail or to whom it is
sent, but the actual message text is blocked off and not selectable.

Shawn

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



[android-developers] Re: Simple Java Question

2009-08-25 Thread Shawn Brown

 HI,

 My garbage collection went from once every 6 seconds to once every 27
 seconds.

So you are happy with that!  Less need for garbage collection is a
good thing right!

 I did not try using a String. There was another post on the group that
 said a String would be more costly than a Formatter which is why I
 took the Formatter route.

Ah, yeah sorry.  I meant:

1 fomatter + 1 StringBuilder + (1*n) Strings [StringBuilder will make
a new string each toString() call]

is cheaper than

(1*n)Formatter + (1*n )String [again a new String will be generated by
the Formatter.toString() ]

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



[android-developers] Re: Simple Java Question

2009-08-24 Thread Shawn Brown

 Rather wasteful on a platform like Android. Are there any other
 options other than Formatter?

I think it does exactly what you want

          final Formatter f = new Formatter();

use Formatter(Appendable a)

 StringBuilder sb = new StringBuilder();

 final Formatter f = new Formatter(sb);

         for (Sentinel s : Sentinel.mSentinels) {
          if (s.mIsLive) {
                  pos++;
                f.format(%4d%5d, s.mPos.x, s.mPos.y);
             canvas.drawText(sb.toString(), x_pos, (pos *
mHalfHeight), mPaint);
              }
  sb.setLength(0);

see StringBuilder

toString

public String toString()

Returns a string representing the data in this sequence. A new
String object is allocated and initialized to contain the character
sequence currently represented by this object. This String is then
returned. Subsequent changes to this sequence do not affect the
contents of the String.

I assume a String is less costly than a Formatter.

Shawn

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



[android-developers] Re: Can an end user disable 2G data, or GSM function?

2009-08-24 Thread Shawn Brown

 Is there enough control in the SDK to pursue writing an app with a
 control screen like:
 [x] Enable Voice (GSM)
 [ ] Enable 2G Data
 [ ] Enable 3G Data (uses more battery than 2G)
 [ ] Enable Data When Roaming (may result in extra charges)
 [x] Enable WiFi
 [x] Enable WiFi even if device is sleeping
 [x] Enable Bluetooth
 [x] Enable GPS
 [ ] Airplane mode (disable all radios)

Well I just tweak the APN setting so that it's not valid.

I get

yes- wifi
yes- gps
yes- voice (not GSM though as I'm 3g only here)
no - 3g data
no - sms

in settings --Mobile network settings --Access Point Names -- your
access point -- APN type
enter - which will disable data.  It does for me anyway and is what
DroidSans (lite) does.

I now have no 3G data (or the fees that go with it) unless I change
that setting.

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