[android-developers] mImageView does not work in android studio

2016-02-27 Thread Neville Mogent Jr
Hello,

I am trying to use the built in camera for android phones and I am using 
code from the android studio website on "Taking Photos 
Simply" http://developer.android.com/training/camera/photobasics.html.

However mImageView does not work. It says it cannot resolve the symbol 
mImageView. I tried using ImageView because the Android Studio recognizes 
this. But the line  ImageView.setImageBitmap(imageBitmap); (Originally with 
mImageView) does not work it says non-static method setImageBitmap(
imageBitmap) cannot be referenced from static method.

How can I resolve this? Any help or ideas about what this mImageView is 
will be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1f1801a9-e986-4cb8-a9fc-108290e05121%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Studio showing misleading method parameters for onActivityResult

2016-02-13 Thread Jose Jerson Naval, Jr.
It took me a day and I always fell into this trap. Android studio is 
showing the parameters for onActivityResult is onActivityResult(int result, 
int d, Intent intent) where d is AKA request. 
That's what Android studio advertises and my gullibility over this one is 
insane. I am fixing bug just because I am confused, heck if this a 
commercial airplane, I already crashed it on lift off. Here is the question 

 
I posted last year.

I reviewed the docs, and it clearly states its onActivityResult(int 
request, int result, Intent intent). I always make this mistake and it is 
costing me time to remember this scenario and fixing it. Maybe next time on 
my next project this won't happen again. I hope someone can fix this or 
maybe it is already fixed? I am still using Android Studio v1.4. Maybe I 
could update it automagically or I can edit it manually but how and where? 
 I had this problem since Eclipse. 

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4d2f72c5-0eaf-424f-b25d-4dc8185d8300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Can i use google inside my app?

2012-08-29 Thread JR
Hi!

I am developing a game that main idea is to find answers to hard questions by 
using search engine. I have developed a simple browser using webview. The 
player can choose which search engine he wants to use. My question is does my 
game break any policys? 

Only thing i found was this:
Do not post an app where the primary functionality is to:

* Provide a webview of a website not owned or administered by you (unless you 
have permission from the website owner/administrator to do so)

In my app the search engine is used as tool and it has more content than just 
the webview. Do you think it is still considered a primary function?

-- 
You received this message because you are subscribed to the Google
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: Gallery Intent to pick image --- Picasa-based images are invalid (Android 4.0+)

2012-01-26 Thread Mark Andrachek, Jr.
That workaround doesn't work for me.

 When I try getContentResolver().getInputStream(imageUri) on the
picasa URI's, I get (the picasa item id has been removed, FYI):

01-26 13:37:11.660: E/com.getpicture.MainActivity(9007):
java.io.FileNotFoundException: No content provider:
content://com.android.gallery3d.provider/picasa/item/
01-26 13:37:11.660: E/com.getpicture.MainActivity(9007):at
android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:
604)
01-26 13:37:11.660: E/com.getpicture.MainActivity(9007):at
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:
536)
01-26 13:37:11.660: E/com.getpicture.MainActivity(9007):at
android.content.ContentResolver.openInputStream(ContentResolver.java:
371)

I've also tried:
ContentProviderClient client =
getContentResolver().acquireContentProviderClient(imageUri);
Log.e(this.getClass().getName(),client.getType(imageUri));

This gives a NPE, with an error message with a tag of
ActivityThread,
01-26 13:59:39.860: E/ActivityThread(10127): Failed to find provider
info for com.android.gallery3d.provider

On Jan 25, 11:43 am, Anton amkr...@gmail.com wrote:
 Workaround is here:

 http://jimmi1977.blogspot.com/2012/01/android-api-quirks-getting-imag...

 On Jan 8, 7:57 pm, John droidxl...@gmail.com wrote:







  I can confirm having this same bug only withpicasaimages on
  Honeycomb and ICS.

  Code:

  file = new File(getPath(intent.getData()));

  java.lang.RuntimeException: Failure delivering result
  ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://
  com.google.android.gallery3d.provider/picasa/item/
  5685218575016337410 }} to activity {MyActivity}:
  java.lang.NullPointerException
          at android.app.ActivityThread.deliverResults(ActivityThread.java:
  2976)
          at android.app.ActivityThread.handleSendResult(ActivityThread.java:
  3019)
          at android.app.ActivityThread.access$1100(ActivityThread.java:122)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
  1176)
          at android.os.Handler.dispatchMessage(Handler.java:99)
          at android.os.Looper.loop(Looper.java:137)
          at android.app.ActivityThread.main(ActivityThread.java:4340)
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:511)
          at com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:784)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
          at dalvik.system.NativeStart.main(Native Method)
  Caused by: java.lang.NullPointerException
          at java.io.File.fixSlashes(File.java:185)
          at java.io.File.init(File.java:134)
          at MyActivity.onActivityResult(MyActivity.java:184)
          at android.app.Activity.dispatchActivityResult(Activity.java:4649)
          at android.app.ActivityThread.deliverResults(ActivityThread.java:
  2972)
          ... 11 more
  java.lang.NullPointerException
          at java.io.File.fixSlashes(File.java:185)
          at java.io.File.init(File.java:134)
          at MyActivity.onActivityResult(MyActivity.java:184)
          at android.app.Activity.dispatchActivityResult(Activity.java:4649)
          at android.app.ActivityThread.deliverResults(ActivityThread.java:
  2972)
          at android.app.ActivityThread.handleSendResult(ActivityThread.java:
  3019)
          at android.app.ActivityThread.access$1100(ActivityThread.java:122)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
  1176)
          at android.os.Handler.dispatchMessage(Handler.java:99)
          at android.os.Looper.loop(Looper.java:137)
          at android.app.ActivityThread.main(ActivityThread.java:4340)
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:511)
          at com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:784)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
          at dalvik.system.NativeStart.main(Native Method)

  Andrew wrote:
   Hello,

   I'm trying to launch a Gallery Intent to allow the user to select an
   image. The issue is that the code works on 2.x but fails occasionally
   on 4.x (I haven't tested 3.x). I've narrowed it down to issues
   specific toPicasa-sourced images. For example, from my google+ posts
   (still in the Gallery app).

   The problematic URI is content://
   com.google.android.gallery3d.provider/picasa/item/some ID.
   Attempting to retrieve the image local path gives me the error : W/
   GalleryProvider( 8091): unsupported column: _data

   My code is below:

   Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
   photoPickerIntent.setType(image/*);
   startActivityForResult(photoPickerIntent, PROFILE_PIC_RESULT);

   and then in onActivityResult(int requestcode, int resultcode, Intent
   data) :

 

Re: [android-developers] Selecting picasa photos in gallery

2011-10-25 Thread Mark Andrachek, Jr.
I've entered a bug:
http://code.google.com/p/android/issues/detail?id=21234


-- 
You received this message because you are subscribed to the Google
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] Selecting picasa photos in gallery

2011-10-24 Thread Mark Andrachek, Jr.
I'm running into something very similar trying to get thumbnails.
I use this to get select the image from the gallery:

Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(image/*);
intent.putExtra(return-data, true);
startActivityForResult(Intent.createChooser(intent,Complete action 
using),PICK_FROM_GALLERY);

Then in the result:

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (resultCode != Activity.RESULT_OK)
  return;

   Uri contentUri = Uri.parse(data.getDataString());
   ListString parts = contentUri.getPathSegments();
   long id = Long.parseLong(parts.get(parts.size() - 1));
   Bitmap bitmap = MediaStore.Images.Thumbnails.getThumbnail(
  getActivity().getContentResolver(), 
  id, 
  MediaStore.Images.Thumbnails.MINI_KIND, 
  null
   );

}

If I log data.getDataString(), I get: 
content://com.android.gallery3d.provider/picasa/item/SOMEBIGNUMBER

And I get an exception thrown:
E/MiniThumbFile(26253): Got exception when reading magic, id = 
SOMEBIGNUMBER, disk full or mount read-only? class 
java.lang.IllegalArgumentException

Local images work fine, and have a different url:
content://media/external/images/media/115

I'm guessing SOMEBIGNUMBER is the PICASA_ID. How to get the thumbnail and/or 
image out of that, without falling back to accessing the picasa api's and 
having to have access to user account info... I wish I knew.

-- 
You received this message because you are subscribed to the Google
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: UsbStorageConnector failing with IOException.

2011-09-20 Thread Francisco Figueiredo Jr.
I'm using a galaxy S with a 2.3.5 rom.

I started to think it really may be some vendor extension as I couldn't find 
anything on google. 
It is sad that the exception java throws doesn't show the file name it 
didn't find. I think that in order to do that, I would need to add a log of 
the file name being used, but I don't know yet how to replace just 
NativeDaemonConnector class. 

Do you know if there is any other flag I could turn on to get more verbose 
logging?

Thanks in advance.

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

Re: [android-developers] Handling Adjacent Fragments in ViewPager Contributing to Options Menu

2011-09-18 Thread Francisco Figueiredo Jr.

Ah, ok . 

I asked that because as you were talking about improving api of 
PagerAdapter, I thought there could be some improvement in this area of 
FragmentPagerAdapter too. I think having access to the fragments tags added 
by the adapter would help. 

But as you said, I can get the existing adapter code which makes the name 
and use it to my 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] UsbStorageConnector failing with IOException.

2011-09-18 Thread Francisco Figueiredo Jr.

Hi all!

I'm getting the following error in my logcat:

E/UsbStorageConnector(  189): listenToSocket - Communications error
E/UsbStorageConnector(  189): java.io.IOException: No such file or directory
E/UsbStorageConnector(  189):   at 
android.net.LocalSocketImpl.connectLocal(Nati
ve Method)
E/UsbStorageConnector(  189):   at 
android.net.LocalSocketImpl.connect(LocalSock
etImpl.java:238)
E/UsbStorageConnector(  189):   at 
android.net.LocalSocket.connect(LocalSocket.j
ava:98)
E/UsbStorageConnector(  189):   at 
com.android.server.NativeDaemonConnector.list
enToSocket(NativeDaemonConnector.java:102)
E/UsbStorageConnector(  189):   at 
com.android.server.NativeDaemonConnector.run(
NativeDaemonConnector.java:85)
E/UsbStorageConnector(  189):   at java.lang.Thread.run(Thread.java:1019)


I tried to find where is the file with a tag UsbStorageConnector and I 
couldn't find it.

Do you know where is the class which has this tag? Or even better, would you 
have any clue about what file it is trying to listen to? This way I could 
check why it is missing or if it is something related to permissions.

Thank you very much in advance.

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

Re: [android-developers] Handling Adjacent Fragments in ViewPager Contributing to Options Menu

2011-09-17 Thread Francisco Figueiredo Jr.

Hi! I think it may be a little bit offtopic, but as you are talking about 
changing PageAdapter and ViewPager apis, I'd like to ask if it is possible 
to expose some method to get the fragment after you have added it to a 
ViewPager. 

I'm asking that because if you have to handle a ScreenOrientation after the 
fragment has been added, there is no way to get a reference to them later, 
unless you keep a reference to your fragments in a static variable. Another 
approach I used was to use the FragmentManager.putFragment() method to keep 
the fragment reference for me.

I noticed the FragmentPagerAdapter adds the fragments with a tag based on 
his position and parent id through the method makeFragmentName. I think it 
would be nice if external code could get access to this method so we could 
have access to the fragments inside the viewpager through the 
findFragmentByTag().

Thanks in advance.

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

[android-developers] Re: XLIFF for changing text value in TextView

2011-05-31 Thread JR
Ok I got it by myself, I do not need to use XLIFF just add these code
and everything is fine :)

textView = (TextView) findViewById(R.id.text_view);

then call this code to set the text

textView.setText(Your text here.);

On May 31, 11:11 am, JR jayarr.patri...@gmail.com wrote:
 Hello everyone,

 I am trying to change the text value in TextView using the src file
 (.java). By default I set the value to

 android:text=TEST in main.xml file under TextView

 what I want is to change the value using the java so I can change the
 text value anytime I want. I look for resources and found the XLIFF in
 a sample xml file which I suspect I need to add in my code. It looks
 like this

 string name=title_connected_toconnected to xliff:g
 id=device_name%1$s/xliff:g/string

 I tried to understand the source codes of BluetoothChat sample to
 further understand the above code but I don't get it.

 If someone knows what I am talking about could you please help me?
 basically I only want to change the default text value in TextView
 that I set in the xml file through the src file (.java)

 Thanks a lot,

 JR

-- 
You received this message because you are subscribed to the Google
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] XLIFF for changing text value in TextView

2011-05-30 Thread JR
Hello everyone,

I am trying to change the text value in TextView using the src file
(.java). By default I set the value to

android:text=TEST in main.xml file under TextView

what I want is to change the value using the java so I can change the
text value anytime I want. I look for resources and found the XLIFF in
a sample xml file which I suspect I need to add in my code. It looks
like this

string name=title_connected_toconnected to xliff:g
id=device_name%1$s/xliff:g/string

I tried to understand the source codes of BluetoothChat sample to
further understand the above code but I don't get it.

If someone knows what I am talking about could you please help me?
basically I only want to change the default text value in TextView
that I set in the xml file through the src file (.java)

Thanks a lot,

JR

-- 
You received this message because you are subscribed to the Google
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: Bluetooth: Server vs Client

2011-05-26 Thread JR
Thanks Shashidhar! Your answers are indeed correct.
I red again the BluetoothChat sample source code of android and I
finally understand the RFCOMM channel.

On May 26, 3:29 pm, Shashidhar shashi.zep...@gmail.com wrote:
 On Thu, May 26, 2011 at 9:38 AM, JR jayarr.patri...@gmail.com wrote:
  Hello I am new in android application development. I have red the
  BluetoothChat sample code and having a hard time understanding the
  server-client side.

  My question is: If I set the device (say dev1) be the server and the
  other device (dev2) be the client, can I expect a mutual communication
  between the two device? meaning to say that client side and server
  side can send data and reply to each other?

 Yes, You can have 2 way communication. Both server and client can send and
 receive to each other.

  Server-Client can be
  automatically Client-Server also?

 No, AFAIK.







  Sorry I have no clear idea what is
  server-client really is.

  Thanks
  JR

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

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


[android-developers] Data transmission through Bluetooth

2011-05-25 Thread JR
How can I know if the data was successfully transmitted to another
device using Bluetooth? Is there a pre-made function in Bluetooth API?
I have here an edited source code sample of BluetoothChat

in my BluetoothChatService.java

[code]
public void write(byte[] buffer) {
Log.e(write function service,write function triggered);
try {
mmOutStream.write(buffer);
String logWriteBuf = new String(buffer);
Log.e(write function trycatch,logWriteBuf);
// Share the sent message back to the UI Activity
mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE,
-1, -1, buffer)
.sendToTarget();
} catch (IOException e) {
Log.e(TAG, Exception during write, e);
}
}
[/code]
--
and the handler will call this switch statement in BluetoothChat
--
case MESSAGE_WRITE:
Log.e(handleMessage, - message write -);
byte[] writeBuf = (byte[]) msg.obj;
// construct a string from the buffer
String writeMessage = new String(writeBuf);
mConversationArrayAdapter.add(Me:   + writeMessage);
break;
-

As far as I understand, the line

mmOutStream.write(buffer);

will send the data to the device?

PS: The only clue that I know is the device with Bluetooth will
automatically reply to the Android phone when that device received a
string-formatted data, and the device does not reply any message when
I tried to transmit the data-string in the Android phone.

Thanks in advance.
JR

-- 
You received this message because you are subscribed to the Google
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] Bluetooth: Server vs Client

2011-05-25 Thread JR
Hello I am new in android application development. I have red the
BluetoothChat sample code and having a hard time understanding the
server-client side.

My question is: If I set the device (say dev1) be the server and the
other device (dev2) be the client, can I expect a mutual communication
between the two device? meaning to say that client side and server
side can send data and reply to each other? Server-Client can be
automatically Client-Server also? Sorry I have no clear idea what is
server-client really is.

Thanks
JR

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

2011-03-19 Thread Mark R. Andrachek, Jr.
On Friday, March 18, 2011 7:27:25 AM UTC-4, Mark Murphy (a Commons Guy) 
wrote:

 Why?

 Why not? Why should I be forced to build a service on an app server to sync 
my data, instead of doing it directly? (Assuming the database is available, 
and my corporate security policy permits it)? Now, I understand it's not a 
good idea in most situations (you don't want your database out on the 
internet). And hey, that's more development work and maintenance you can 
charge for! But not everybody who wants to sync data, especially in a small 
business situation, is going to have the prerogative or dollars to do so.

There seems to be some idea floating around out there that the mention in 
the Android 2.3 platform highlights here (
http://developer.android.com/sdk/android-2.3-highlights.html), under New 
Platform Technologies - Dalvik runtime - Core Libraries, of Updated 
JDBC, is some kind of admission that JDBC is now supported under 2.3. 
Although I don't see any evidence of that, why bother including it if it's 
not going to be supported?

Mark Andrachek
mark.andrac...@gmail.com



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

[android-developers] Backup of APK to SDCard.. Astro file manager does it...

2010-11-17 Thread David Orriss Jr
Anyone have any idea how this would work or what APIs would be used?  I've
had people say that root is required, but Astro doesn't seem to need that.

Anyone have a code snip to show how this works?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

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

[android-developers] Re: Calling a MapActivity from another activity

2010-08-04 Thread JR
I got this error and it was caused from the:
 uses-library android:name=com.google.android.maps /
Being missing from my Manifest.xml, it needs to be within the
application tag.
I agree it is odd to get a NoClassDefFoundError... but there it is!

On Jul 29, 12:45 am, Steve Howard ste...@android.com wrote:
 On Mon, Jul 26, 2010 at 10:44 AM, Pravin Parulekar pparu...@gmail.comwrote:

  07-26 23:03:20.259: WARN/dalvikvm(307): threadid=1: thread exiting
  with uncaught exception (group=0x4001d800)
  07-26 23:03:20.397: ERROR/AndroidRuntime(307): FATAL EXCEPTION: main
  07-26 23:03:20.397: ERROR/AndroidRuntime(307):
  java.lang.NoClassDefFoundError: com.mobilo.movie.DrawTheatreMap
  07-26 23:03:20.397: ERROR/AndroidRuntime(307):     at
  com.mobilo.movie.MainListingA$1.onItemClick(MainListingA.java:101)

 There's no Android code involved here.  I'm guessing if you try

 System.out.println(DrawTheatreMap.class);

 at the same place, you'll get the same exception.  Nothing specific to
 Intent or startActivity.

 If so, you've likely got something wrong with your build process.  One thing
 to try is looking in bin/classes/... to see if DrawTheatreMap.class is in
 there somewhere.  Another thing would be to run dexdump (included in the
 SDK) on bin/classes.dex and see if DrawTheatreMap.class is included in
 there.

 It's possible this is caused by something maps-specific.  For example, if
 you don't have the correct uses-library tag in the right place in your
 AndroidManifest.xml, then perhaps the problem is that the classloader can't
 find MapActivity -- though honestly, I would expect this to throw a
 NoClassDefFoundError on MapActivity, not on DrawTheatreMap.  But who knows,
 Dalvik is crazy sometimes :)

 Let me know if any of this turns up something interesting, or if you're
 still stuck.

 Steve

-- 
You received this message because you are subscribed to the Google
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: Seeding program phones. Anyone tried to activate their droid on a private account yet?

2010-04-22 Thread David Orriss Jr
So far Neel at Google hasn't been able to tell me how to resolve this issue.

To say the least I'm annoyed.

On Wed, Apr 21, 2010 at 12:48 PM, BradVoy bhcc...@gmail.com wrote:
 My phone just arrived today.  I haven't tried calling Verizon yet to
 activate it.  But I found it confusing that the 2 page from Google
 that came with the phone say Please refer to the enclosed Read Me
 First leaflet from Verizon Wireless for instructions to activate the
 enclosed Droid.  There was no Read Me First leaflet from Verizon in
 my package.


 On Apr 21, 11:39 am, David Orriss Jr codethou...@gmail.com wrote:
 Apparently I'm unable to activate the one I received because it's
 pending activation on another account.  And I have to have Google
 release it from that account to activate it.

 So, what do I do now?

 --
 David Orriss Jr.

 My blog:http://www.codethought.com/blog

 --
 You received this message because you are subscribed to the Google
 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 
 athttp://groups.google.com/group/android-developers?hl=en

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



-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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] Seeding program phones. Anyone tried to activate their droid on a private account yet?

2010-04-21 Thread David Orriss Jr
Apparently I'm unable to activate the one I received because it's
pending activation on another account.  And I have to have Google
release it from that account to activate it.

So, what do I do now?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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] Thread execution hiccups on Motorola Droid

2010-04-09 Thread Andrew P. Lentvorski, Jr.
Occasionally I see thread execution hiccups on my Motorola Droid
(currently running 2.1 but I saw it with 2.0.1, too).  Normally my
dummy thread (full tilt, foreground, not doing *anything* else) runs
in about 5-6mS.  However, I see a second hump around 13-14mS and
stragglers anywhere out to 80mS (typically around 35mS, though).

What is going on?  Why is this scheduling so non-deterministically?
What is the solution?

I could deal with a couple mS slower if it would get rid of those
stragglers that exist the whole way out to 50-80mS.

Thanks.


If I run a single thread full tilt, I see execution times like the
following (milliseconds:number of times seen):

04-09 00:40:06.450: VERBOSE/*(7177): Run ended ... dumping...
04-09 00:40:06.450: VERBOSE/CalcDelta:(7177):   5: 3915
04-09 00:40:06.457: VERBOSE/CalcDelta:(7177):   6: 6221
04-09 00:40:06.457: VERBOSE/CalcDelta:(7177):   7: 63
04-09 00:40:06.465: VERBOSE/CalcDelta:(7177):   8: 47
04-09 00:40:06.465: VERBOSE/CalcDelta:(7177):   9: 4
04-09 00:40:06.473: VERBOSE/CalcDelta:(7177):  10: 9
04-09 00:40:06.473: VERBOSE/CalcDelta:(7177):  11: 7
04-09 00:40:06.481: VERBOSE/CalcDelta:(7177):  12: 7
04-09 00:40:06.489: VERBOSE/CalcDelta:(7177):  13: 22
04-09 00:40:06.489: VERBOSE/CalcDelta:(7177):  14: 26
04-09 00:40:06.496: VERBOSE/CalcDelta:(7177):  15: 8
04-09 00:40:06.496: VERBOSE/CalcDelta:(7177):  16: 7
04-09 00:40:06.504: VERBOSE/CalcDelta:(7177):  17: 4
04-09 00:40:06.504: VERBOSE/CalcDelta:(7177):  18: 3
04-09 00:40:06.512: VERBOSE/CalcDelta:(7177):  19: 5
04-09 00:40:06.512: VERBOSE/CalcDelta:(7177):  21: 11
04-09 00:40:06.520: VERBOSE/CalcDelta:(7177):  22: 1
04-09 00:40:06.520: VERBOSE/CalcDelta:(7177):  23: 2
04-09 00:40:06.528: VERBOSE/CalcDelta:(7177):  25: 1
04-09 00:40:06.528: VERBOSE/CalcDelta:(7177):  26: 1
04-09 00:40:06.536: VERBOSE/CalcDelta:(7177):  27: 1
04-09 00:40:06.536: VERBOSE/CalcDelta:(7177):  29: 4
04-09 00:40:06.543: VERBOSE/CalcDelta:(7177):  30: 1
04-09 00:40:06.543: VERBOSE/CalcDelta:(7177):  36: 1
04-09 00:40:06.551: VERBOSE/CalcDelta:(7177):  37: 1
04-09 00:40:06.551: VERBOSE/CalcDelta:(7177):  40: 1
04-09 00:40:06.559: VERBOSE/CalcDelta:(7177):  45: 2
04-09 00:40:06.559: VERBOSE/CalcDelta:(7177):  47: 1
04-09 00:40:06.567: VERBOSE/CalcDelta:(7177):  53: 1

code

import java.util.Random;

import android.app.Activity;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;

public class Run extends Activity {
private long entryMillis = SystemClock.uptimeMillis();
private long exitMillis = SystemClock.uptimeMillis();
private long startMillis = SystemClock.uptimeMillis();

long calcDeltaMillis[] = new long[1000];
long funcDeltaMillis[] = new long[1000];

long randomTime = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}

@Override
protected void onResume() {
super.onResume();
Thread t = new Thread() {
public void run() {
doTimingThread();
}
};
t.start();
}

void doTimingThread() {
Random rg = new Random();

Log.v(*, Entering timing thread...);
startMillis = SystemClock.uptimeMillis();
while(true) {
entryMillis = SystemClock.uptimeMillis();
for(int ii=0; ii4000; ++ii) {
randomTime += rg.nextInt();
}
exitMillis = SystemClock.uptimeMillis();
calcDeltaMillis[(int)(exitMillis-entryMillis)] += 1;

if (SystemClock.uptimeMillis() = startMillis + 6) {
dumpAndEraseTables();
startMillis = SystemClock.uptimeMillis();
}
}
}


public void dumpAndEraseTables() {
Log.v(*, Run ended ... dumping...);
for(int ii=0; ii1000; ++ii) {
if (calcDeltaMillis[ii] != 0) {
Log.v(CalcDelta:, String.format(%3d: %d, ii,
calcDeltaMillis[ii]));
calcDeltaMillis[ii] = 0;
}
}
}

@Override
protected void onPause() {
super.onPause();
}
}
/code

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Insane lag on empty onDrawFrame(GL10 gl) for OpenGL ES GLSurfaceView

2010-04-02 Thread Andrew P. Lentvorski, Jr.
I'm on developing on a Motorola Droid with Android 2.0.1.  I was
trying to track down frame rate issues with my VBO program, so I
created a program to check the baseline times spent when calling
onDrawFrame().  So I created an empty onDrawFrame and pulled time
statistics on it.

I can't even get nears 60 FPS *and I'm not even drawing anything*.
The big problem is that the delay between calls into onDrawFrame() is
insanely variable.  It's not the GC--it doesn't run during the test.
It's not fill rate--I'm not drawing anything.  So, I can only imagine
that its the scheduler.  Here is the histogram of delays entering
onDrawFrame() as tracked by SystemClock.uptimeMillis() over a period
of 60 seconds.  Note that there is the expected hump near 16ms, but
there is a non-trivial second hump near 29ms with not a few stragglers
almost to 50ms.  This is running full tilt on the render thread not
doing *anything*.

Why is this so unpredictable and slow?  It's running in the
foreground.  I'm not touching anything or generating events.  It's not
drawing.  It's not even collecting garbage.

This is death for any program that requires any level of response
timing.  Am I doing something wrong?  Should I simply move to the NDK
for anything that touches OpenGL?  WIll that actually help?

03-30 02:35:52.284: VERBOSE/FuncnDelta:(1450):   6: 1
03-30 02:36:52.300: VERBOSE/*(1450): Run ended ... dumping...
03-30 02:36:52.308: VERBOSE/EntryDelta:(1450):   1: 2
03-30 02:36:52.323: VERBOSE/EntryDelta:(1450):   2: 1
03-30 02:36:52.331: VERBOSE/EntryDelta:(1450):   4: 1
03-30 02:36:52.339: VERBOSE/EntryDelta:(1450):  12: 1
03-30 02:36:52.355: VERBOSE/EntryDelta:(1450):  13: 2
03-30 02:36:52.362: VERBOSE/EntryDelta:(1450):  14: 2
03-30 02:36:52.370: VERBOSE/EntryDelta:(1450):  15: 29
03-30 02:36:52.370: VERBOSE/EntryDelta:(1450):  16: 1185
03-30 02:36:52.378: VERBOSE/EntryDelta:(1450):  17: 1560
03-30 02:36:52.378: VERBOSE/EntryDelta:(1450):  18: 343
03-30 02:36:52.386: VERBOSE/EntryDelta:(1450):  19: 15
03-30 02:36:52.386: VERBOSE/EntryDelta:(1450):  20: 13
03-30 02:36:52.394: VERBOSE/EntryDelta:(1450):  21: 4
03-30 02:36:52.394: VERBOSE/EntryDelta:(1450):  22: 6
03-30 02:36:52.401: VERBOSE/EntryDelta:(1450):  23: 1
03-30 02:36:52.409: VERBOSE/EntryDelta:(1450):  24: 9
03-30 02:36:52.409: VERBOSE/EntryDelta:(1450):  25: 3
03-30 02:36:52.417: VERBOSE/EntryDelta:(1450):  26: 7
03-30 02:36:52.417: VERBOSE/EntryDelta:(1450):  27: 10
03-30 02:36:52.425: VERBOSE/EntryDelta:(1450):  28: 60
03-30 02:36:52.425: VERBOSE/EntryDelta:(1450):  29: 105
03-30 02:36:52.433: VERBOSE/EntryDelta:(1450):  30: 16
03-30 02:36:52.433: VERBOSE/EntryDelta:(1450):  31: 4
03-30 02:36:52.487: VERBOSE/EntryDelta:(1450):  32: 10
03-30 02:36:52.495: VERBOSE/EntryDelta:(1450):  33: 6
03-30 02:36:52.495: VERBOSE/EntryDelta:(1450):  34: 5
03-30 02:36:52.503: VERBOSE/EntryDelta:(1450):  35: 3
03-30 02:36:52.503: VERBOSE/EntryDelta:(1450):  36: 2
03-30 02:36:52.511: VERBOSE/EntryDelta:(1450):  37: 1
03-30 02:36:52.511: VERBOSE/EntryDelta:(1450):  38: 1
03-30 02:36:52.519: VERBOSE/EntryDelta:(1450):  46: 1

code
package org.allcaps.vbo1;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;

import android.content.res.Resources;
import android.opengl.GLSurfaceView.Renderer;
import android.os.SystemClock;
import android.util.Log;

// Basic VBO example
// Why does writing Java always make me want to punch somebody?

public class LessonVBO implements Renderer {
private long previousMillis = -1;
private long currentMillis = SystemClock.uptimeMillis();
private long entryMillis = SystemClock.uptimeMillis();
private long exitMillis = SystemClock.uptimeMillis();
private long startMillis = SystemClock.uptimeMillis();

long entryDeltaMillis[] = new long[1000];
long funcDeltaMillis[] = new long[1000];
public LessonVBO(Resources resources) {
}

public void onSurfaceCreated(GL10 gl10, EGLConfig config) {
GL11 gl = (GL11)gl10;

if (!(gl10 instanceof GL11)) {
Log.v(VBO, gl cast failed);
}
}

public void onSurfaceChanged(GL10 gl10, int width, int height) {
GL11 gl = (GL11)gl10;

if (!(gl10 instanceof GL11)) {
Log.v(VBO-onSurfaceChanged, gl cast failed);
}
}

public void onDrawFrame(GL10 gl10) {
if (previousMillis == -1) {
// First time through
currentMillis = SystemClock.uptimeMillis();
previousMillis = currentMillis;
startMillis = currentMillis;
return;
}

currentMillis = SystemClock.uptimeMillis();
entryMillis = currentMillis;


Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread David Orriss Jr
I got my phone today.  It's a Droid... anyone who received a Nexus 1
want to trade?   I'm in the Seattle area.. so a direct trade would be
preferred.

On Thu, Apr 1, 2010 at 4:01 PM, schwiz sch...@gmail.com wrote:
 So I got a Droid and also in the box was a Sprint USB 3G/4G modem, I
 thought it was pretty random, not sure what it has to do with
 Android.  I think I got since my Droid didn't come with a free month
 like they said it would.

 On Mar 29, 7:48 am, zneref zne...@gmail.com wrote:
 People relax, 6-weeks term doesn't passed yet ;)

 On 29 Mar, 11:25, Paul stuem...@gmail.com wrote:



  Germany, still waiting.
  ... and growing nervous :)

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

 To unsubscribe, reply using remove me as the subject.




-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread David Orriss Jr
Yea that email is annoying.. to say the least... :|

On Thu, Apr 1, 2010 at 7:25 PM, patbenatar patbena...@gmail.com wrote:
 Yeah, this is becoming a bit of a nuisance... There's another thread
 on here discussing it as well. Google needs to get up in here and
 remove that subscriber!!!


 On Apr 1, 6:51 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com
 wrote:
 It isn't really a reply to your post.  I got the same email.  Probably
 just a spam bot that detects every email sent and replys to that
 address...notice the email address is from dreamhost, not google
 groups.  It's spam.

 On Apr 1, 11:15 am, Mark Murphy mmur...@commonsware.com wrote:



  Achanta wrote:
   But its does not sound right, because it says that it has not been 
   delivered toandroid-develop...@googlegroups.comand then it links
   back to their site. If its bounces of that email it should be received
   by everyone in this group.

  And it is.

   And moreover mine was a new post. So if it was a subscriber its to the
   group and not to my post.

  And it is.

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

  Android Training in US: 14-18 June 2010:http://bignerdranch.com

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

 To unsubscribe, reply using remove me as the subject.




-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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: Device Seeding Program for Top Android Market Developers

2010-04-01 Thread David Orriss Jr
I wonder if it's against the rules to sell this device to pay for a
Nexus 1?  I mean seriously if Google wants me to actually *use* the
device for dev work then they should give me one for the network I use
as my primary carrier.

On Thu, Apr 1, 2010 at 7:28 PM, Dan Sherman impact...@gmail.com wrote:
 I'm in the same boat as David, have a Droid, would really like to trade for
 a Nexus if anyone in the Miami area got one :)

 - Dan

 On Thu, Apr 1, 2010 at 10:18 PM, David Orriss Jr codethou...@gmail.com
 wrote:

 I got my phone today.  It's a Droid... anyone who received a Nexus 1
 want to trade?   I'm in the Seattle area.. so a direct trade would be
 preferred.

 On Thu, Apr 1, 2010 at 4:01 PM, schwiz sch...@gmail.com wrote:
  So I got a Droid and also in the box was a Sprint USB 3G/4G modem, I
  thought it was pretty random, not sure what it has to do with
  Android.  I think I got since my Droid didn't come with a free month
  like they said it would.
 
  On Mar 29, 7:48 am, zneref zne...@gmail.com wrote:
  People relax, 6-weeks term doesn't passed yet ;)
 
  On 29 Mar, 11:25, Paul stuem...@gmail.com wrote:
 
 
 
   Germany, still waiting.
   ... and growing nervous :)
 
  --
  You received this message because you are subscribed to the Google
  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
 
  To unsubscribe, reply using remove me as the subject.
 



 --
 David Orriss Jr.

 My blog: http://www.codethought.com/blog

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

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



-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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: Is this a joke or a spam or another April 1st prank?

2010-04-01 Thread David Orriss Jr
Since I just got your email via the list I'd say yes.. :-)

On Apr 1, 2010, at 8:14 PM, Stanley Li wrote:

 I got this message too. So if I got this message, can i still send emails to 
 the group and everyone can receive my email?
 
 On Thu, Apr 1, 2010 at 7:28 PM, David Orriss Jr codethou...@gmail.com wrote:
 Yea that email is annoying.. to say the least... :|
 
 
 
 
 

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

To unsubscribe, reply using remove me as the subject.


Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-03 Thread David Orriss Jr
If someone here gets an N1 and I get a droid I'd be happy to arrange a
Swap.  I'd rather have an N1 and continue with my T-Mobile service.

On Wed, Mar 3, 2010 at 3:15 PM, Genc gmt...@gmail.com wrote:

 I desperately need this device since I'm at the final (testing) stage
 of my project and emulators are far away being useful. I was just
 planning to buy an N1 before I got the email.

 Now, does anyone has an idea, when can we get our phones?

 Google guys, could you please give us a time interval at least, so
 that we can plan our work.

 Thanks.

 On Mar 3, 9:54 pm, JasonC jcohe...@gmail.com wrote:
 Keep in mind id your a US developer it may not be a Nexus, it may be a
 Droid.

 I have not recieved any sort of confirmation from google other then
 what the android team has stated here on the forum. I am 100% positive
 this is legit, as I made a phone call to a friend at google, and
 reported the website to google as suspicious and got an email back
 that it is an official google website.

 This is legit, so dont worry.

 As for not getting the email not every developer with a 5000/3.5 got
 one. It was only a select few.

 I have 7 apps right now that meet the criteria. i am sure developers
 with multiple apps were the first chosen as we have been working with
 it since gen1

 On Mar 3, 6:17 am, Linus linus.karnl...@gmail.com wrote:

  Has anyone who registered received some kind of confirmation or
  further info from Google? Would be nice to know when and how the Nexus
  will arrive :)
  I guess it might take a while if they are plowing through all requests
  manually.

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



-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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: Moving objects by touch..

2009-11-09 Thread David Orriss Jr
After more looking (and remembering that in the GUI world I'm talking
about drag and drop ;) ) I did find an answer here on the list.  It
looks like a good starting point.

http://www.mail-archive.com/android-developers@googlegroups.com/msg19039.html

Guess this is what happens when I try to do work with a headcold... oh well. :)

Thanks for reading.

On Sun, Nov 8, 2009 at 11:10 PM, David Orriss Jr dav...@codethought.com wrote:
 I see plenty of apps that do this.. and I've been looking through
 various source examples (and a few from commonsware, too) but I can't
 see a real solid example of touching a 'panel' with say a graphic in
 it while my finger is held down move it on the screen until I release
 my finger.  I also am trying to figure out how I could simulate or
 have an animation of this effect while it scrolls off the screen in
 one direction and is replaced by another instances of the same object.
  An example of what I'm asking about would be the Messages widget view
 on the Cliq.

 Can anyone point me at a couple of examples if they have already been
 discussed on this list or where I could pull something down that shows
 this from online?

 Thanks in advance.

 --
 David Orriss Jr.

 My blog: http://www.codethought.com/blog




-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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] Moving objects by touch..

2009-11-08 Thread David Orriss Jr
I see plenty of apps that do this.. and I've been looking through
various source examples (and a few from commonsware, too) but I can't
see a real solid example of touching a 'panel' with say a graphic in
it while my finger is held down move it on the screen until I release
my finger.  I also am trying to figure out how I could simulate or
have an animation of this effect while it scrolls off the screen in
one direction and is replaced by another instances of the same object.
 An example of what I'm asking about would be the Messages widget view
on the Cliq.

Can anyone point me at a couple of examples if they have already been
discussed on this list or where I could pull something down that shows
this from online?

Thanks in advance.

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

-- 
You received this message because you are subscribed to the Google
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] HTML Parsing..?

2009-03-02 Thread David Orriss Jr
I saw one thread in december about HTML parsers.  Has anyone had any luck
getting any of them to work in the Android SDK?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: The G1 (RC30) K-9 eMail client

2008-12-15 Thread David Orriss Jr

On Sat, Dec 13, 2008 at 7:53 PM, SLSq slsqui...@gmail.com wrote:

 And, the update (v 0.21) ... continues to have the same problems !!!

Such AS...???

The guys who work on K-9 do want to resolve issues.. you just have to
tell them which issue you are referring to.

I know, for example, one issue that I have with K9 is that POP access
to myemail.t-mobile.com still doesn't work (presumably the :1 at the
end of the login ID is what's causing the problem).

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Making an SD Card-capable launcher.. possible?

2008-12-13 Thread David Orriss Jr

Has anyone looked at the feasibility of this at all?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Call JavaScript functions in the WebKit?

2008-11-25 Thread David Orriss Jr

On Tue, Nov 25, 2008 at 4:44 AM, Mark Murphy [EMAIL PROTECTED] wrote:

 David Orriss Jr wrote:
 I need to call a JavaScript function in a page in a webkit view and
 get a return value.

 Possible?  Suggestions?

 I don't think you can get a result directly from calling
 loadUrl(javascript:yourfunctionhere()) on a WebView.

 However, you *could*:

 1. Add a callback via addJavascriptInterface()

 2. Have your Javascript function call that callback with your result

 3. Call the Javascript function as described above

 On the plus side, this probably works. On the minus side, it requires a
 change, or at least a wrapper, for the Javascript function to use the
 callback.

Hi Mark,

Y'know I did some digging after posting this and came to this exact
same conclusion.  Thanks for verifying what I thought was the case.
I'll tinker around and see if it works.  I'll let the list know what I
find.

Thanks.  And happy holidays

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 JavaScript functions in the WebKit?

2008-11-24 Thread David Orriss Jr

I need to call a JavaScript function in a page in a webkit view and
get a return value.

Possible?  Suggestions?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Webkit - prevent reload of page when screen is popped out..?

2008-11-23 Thread David Orriss Jr

Hi,

I have an app using the WebKit that I'm developing.  In my onCreate()
method I'm loading my page:

browser = (WebView) findViewById(R.id.webkit);
browser.getSettings().setJavaScriptEnabled(true);
browser.loadUrl(file:///android_asset/mystuff.html);

However, this fires off when the keyboard is popped out.  What do I
need to do in order to have the browser only load on the initial start
of the app and not do a complete reload of the page when the
orientation is changed?

-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Webkit - prevent reload of page when screen is popped out..?

2008-11-23 Thread David Orriss Jr

I'm on the Warescription.. No other way to get that book as far as I'm
concerned.. :-)

On Sun, Nov 23, 2008 at 1:20 PM, Mark Murphy [EMAIL PROTECTED] wrote:

 Thanks Mark.. I'll check it out.

 Love your book, by the way.

 Thanks!

 If you're on the Warescription and have Version 1.4, the first three blog
 posts are already in the chapter on Rotation Events. The fourth and fifth
 posts, coming up this week, should appear in Version 1.9.

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



 




-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Eclipse repo is down?

2008-11-22 Thread David Orriss Jr

Same thing.. which kind of figures when you note that the beginning of
that URL address is *dl-SSL*.. ;)

And in all seriousness.. this isn't good considering this is the home
of the Android SDK plugin for eclipse.. :|

On Sat, Nov 22, 2008 at 8:19 AM, Dorn Hetzel [EMAIL PROTECTED] wrote:

 Try http instead of https

 On Sat, Nov 22, 2008 at 3:33 AM, Bogomil Shopov
 [EMAIL PROTECTED] wrote:

 Hi all,
 There is no Eclipse repo available here:
 https://dl-ssl.google.com/android/eclipse/


 Bogo

 


 




-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Eclipse repo is down?

2008-11-22 Thread David Orriss Jr

I wonder if Bogomil tried this in Eclipse or just in a browser?  While
you get a 404 from the browser the link works without a hitch in
Eclipse...

On Sat, Nov 22, 2008 at 1:31 PM, Dorn Hetzel [EMAIL PROTECTED] wrote:

 Well, I can tell you that a few days ago, https didn't work for me,
 and http still whined, but when I expanded the selection box, what I
 needed was magically there.

 On Sat, Nov 22, 2008 at 2:08 PM, David Orriss Jr [EMAIL PROTECTED] wrote:

 Same thing.. which kind of figures when you note that the beginning of
 that URL address is *dl-SSL*.. ;)

 And in all seriousness.. this isn't good considering this is the home
 of the Android SDK plugin for eclipse.. :|

 On Sat, Nov 22, 2008 at 8:19 AM, Dorn Hetzel [EMAIL PROTECTED] wrote:

 Try http instead of https

 On Sat, Nov 22, 2008 at 3:33 AM, Bogomil Shopov
 [EMAIL PROTECTED] wrote:

 Hi all,
 There is no Eclipse repo available here:
 https://dl-ssl.google.com/android/eclipse/


 Bogo

 


 




 --
 David Orriss Jr.

 My blog: http://www.codethought.com/blog

 


 




-- 
David Orriss Jr.

My blog: http://www.codethought.com/blog

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