[android-developers] Missing extract UI on text input when IME shown manually without EditText widget

2016-07-20 Thread 'Matt Perry' via Android Developers
I have a bug where the extract UI - where the text a user types is 
displayed while in full-screen IME mode - isn't actually showing any user 
input. You can see a screenshot on our bug tracker 
here: https://github.com/flutter/flutter/issues/4899 . Any text you type 
while in landscape (full-screen) mode does not appear.

My question is: what component is in charge of showing this text? Is it the 
EditText widget? If I don't have an associated EditText, how can I display 
an extract UI?

Ours is not a typical use case, so I'll try to provide as many relevant 
details as I can:
- I work on Flutter, where our Android "app" is a full-screen Android view 
that we draw into manually. We implement our own widgets in Dart.
- Our text widgets are custom made in Dart. When a user interacts with one, 
we query the InputMethodManager and call showSoftInput 
,
 
passing in our top-level view as the view.
- We have our own InputConnection impl 
,
 
which is a thin wrapper around BaseInputConnection. It is initialized in 
response to the onCreateInputConnection call.

I can set the IME hint text, and it shows up where the extract UI should 
be. The user's input does not.

Any help is appreciated!

Thanks,
Matt

-- 
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/679951c6-2531-4e7c-8704-696fbde91f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] why zygote process name change to main in Lollipop, Is it a bug?

2015-01-03 Thread perry shan
hi,

I notice that the zygote process name change to main Lollipop , but in
KitKat and before, the zygote process name is zygote.

in Lollipop:

$ adb shell ps | grep -i zygote

root  376   1 1492064 67316   S zygote



$ adb shell cat /proc/376/stat

376 (main) R 1 376 0 0 -1 4194560 170602 262860 825 248 283 137 226 174 20
0 1 0 637 1522405376 16861 4294967295 1 1 0 0 0 0 4612 0 103672 4294967295
0 0 17 3 0 0 0 0 0 0 0 0



$ adb shell cat /proc/376/comm

main


in KitKat:

$ adb shell ps | grep -i zygote

root  329   1 867640 64860   S zygote



$ adb shell cat /proc/329/stat

329 (zygote) S 1 329 0 0 -1 1077936384 106227 3303200 682 1688 618 798
27926 9112 20 0 4 0 1254 888463360 16215 4294967295 1 1 0 0 0 0 4612 0
103672 4294967295 0 0 17 0 0 0 0 0 0 0 0 0



$ adb shell cat /proc/329/comm

zygote


In app_main.cpp when start zygote, it will set nicename, and set the
process name with niceName.


frameworks/base/cmds/app_process/app_main.cpp


int main(int argc, char* const argv[])

...

if (strcmp(arg, --zygote) == 0) {

zygote = true;

niceName = ZYGOTE_NICE_NAME;

...

if (!niceName.isEmpty()) {

runtime.setArgv0(niceName.string());

set_process_name(niceName.string());

}


but in new AndroidRuntime ART, the will change the name zygote to main

if (zygote) {

runtime.start(com.android.internal.os.ZygoteInit, args);


#0  0xb6f0116c in prctl  /system/lib/libc.so

bionic/libc/arch-arm/syscalls/prctl.S:16

#1  0xb6edda48 in pthread_setname_np+0x0040(+64)  /system/lib/libc.so

bionic/libc/bionic/pthread_setname_np.cpp:56

  t (long int) = -1225441592(0xb6f53ec8)

  thread_name (char *) = 0xbedc94a4 main [@ENTRY=0xbedc94a4 main]

#2  0xb4f479ae in art::SetThreadName+0x006e(+110)  /system/lib/libart.so

art/runtime/utils.cc:1010

  thread_name (char *) = 0xb4fd9904 main [@ENTRY=0xb4fd9904 main]

  buf (char [16]) =  main

#3  0xb4f31f7a in art::Thread::Attach+0x00b2(+178)  /system/lib/libart.so

art/runtime/thread.cc:409

  thread_name (char *) = 0xb4fd9904 main

#4  0xb4f20204 in art::Runtime::Init+0x0338(+824)  /system/lib/libart.so

art/runtime/runtime.cc:788

#5  0xb4f21dde in art::Runtime::Create+0x0032(+50)  /system/lib/libart.so

art/runtime/runtime.cc:335

#6  0xb4ed99d2 in JNI_CreateJavaVM+0x01b2(+434)  /system/lib/libart.so

art/runtime/jni_internal.cc:3026

#7  0xb6e19266 in android::AndroidRuntime::startVm+0x0882(+2178)
 /system/lib/libandroid_runtime.so

frameworks/base/core/jni/AndroidRuntime.cpp:887

#8  0xb6e19892 in android::AndroidRuntime::start+0x00fe(+254)
 /system/lib/libandroid_runtime.so

frameworks/base/core/jni/AndroidRuntime.cpp:967

  this (AndroidRuntime *) = 0xbedca858

  className (char *) = 0xb6f56f50 com.android.internal.os.ZygoteInit

#9  0xb6f56658 in main+0x02ec(+748)  /system/bin/app_process32

frameworks/base/cmds/app_process/app_main.cpp:309

  niceName (String8) = {

mString (char *) = 0xb5018418 zygote}


So the zygote process name is set zygote first, then change to main in
Lollipop, Is it a bug?


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
--- 
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.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: rawQuery selection args?

2012-08-23 Thread Christopher Perry
Well, it's broken. I fed it a String like this My random \ string with 
weird \' chars and it blew up.

On Tuesday, December 21, 2010 11:34:32 AM UTC-8, Tobiah wrote:

 I am unable to find an example of how to use the 'selection args' in the
 second argument to rawQuery:

 public Cursor rawQuery (String sql, String[] selectionArgs)

 Can someone explain what they would be for and how to use them?

 Thanks,

 Tobiah



-- 
You received this message because you are subscribed to the Google
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] rawQuery selection args?

2012-08-23 Thread Christopher Perry
Well, it's broken. I fed it a String like this My random \ string with 
weird \' chars and it blew up.

On Tuesday, December 21, 2010 11:38:00 AM UTC-8, Mark Murphy wrote:

 String[] args={somebaldingguy};
 rawQuery(SELECT _id, title FROM books WHERE author=?, args);

 The string array elements replace the question mark placeholders.
 SQLite handles quotation rules for strings for you, so you do not have
 to worry about embedded quotes or apostrophes.

 On Tue, Dec 21, 2010 at 2:34 PM, Tobiah to...@tobiah.org javascript: 
 wrote:
  I am unable to find an example of how to use the 'selection args' in the
  second argument to rawQuery:
 
  public Cursor rawQuery (String sql, String[] selectionArgs)
 
  Can someone explain what they would be for and how to use them?
 
  Thanks,
 
  Tobiah
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!



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

[android-developers] How to set the bitmap to Transparent

2012-04-02 Thread Perry
hi,

I used following method to create a canvas.

temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_);
Canvas thisCanvas = new Canvas(temp);

I don't know why the canvas has a black background. How to create a
Transparent background for use?

Thanks a lot!

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

2012-04-02 Thread Perry
Hi Justin,
I success now! Thank you for your solution. 
I fault as before because I had a foolish mistake.
Thanks again!.
 
 

MagouyaWare於 2012年4月3日星期二UTC+8上午12時42分52秒寫道:

 Are you sure that it is the bitmap that has the black background?  How are 
 you using the bitmap?  Is it the background or foreground of an ImageView?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Apr 2, 2012 at 10:33 AM, Perry perry...@gmail.com wrote:

 hi,
 thank you for help. but the background still black.

 On 4月3日, 上午12時05分, Justin Anderson magouyaw...@gmail.com wrote:
  First, you should use ARGB_... ARGB_ is deprecated:
 http://developer.android.com/reference/android/graphics/Bitmap.Config...
 
  Next, here is how to do it:
 
  temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_);
 
  //Clear the canvas
  Canvas canvas = new Canvas(temp);
 
  Paint transPainter = new Paint();
  transPainter.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));
 
  canvas.DrawRect(0, 0, temp.Width, temp.Height, transPainter);
 
  Hope that helps...
 
  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
 
 
  On Mon, Apr 2, 2012 at 9:54 AM, Perry perry...@gmail.com wrote:
   hi,
 
   I used following method to create a canvas.
 
   temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_);
   Canvas thisCanvas = new Canvas(temp);
 
   I don't know why the canvas has a black background. How to create a
   Transparent background for use?
 
   Thanks a lot!
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to 
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   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




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

[android-developers] how to make the apps is running in odex

2012-03-06 Thread Perry
hi all,
Some apps are running in odex file (not apk file) after installation.
Could anyone teach me how to do that?

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


[android-developers] Re: how to make the apps is running in odex

2012-03-06 Thread Perry
Could you give more hints how to do that? Is it related to Programming
or Compiling?

On 3月7日, 上午11時03分, Dianne Hackborn hack...@android.com wrote:
 All apps run from odex files, that is the final linked dex code that is run
 on the device.

 On Tue, Mar 6, 2012 at 6:10 PM, Perry perry...@gmail.com wrote:
  hi all,
  Some apps are running in odex file (not apk file) after installation.
  Could anyone teach me how to do that?

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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

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

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


[android-developers] how to disable the enlarge

2012-01-01 Thread Perry
hi,
I am using following method to create a bitmap and canvas.

myBG = Bitmap.createBitmap(theScreenWidth, theuserScreenHeight,
Config.ARGB_);
Canvas myCanvas = new Canvas(myBG);

After I draw something to myBG and use drawbitmap method to canvas.
I found that the myBG be enlarged. Who can tell me how fix this
problem?
thanks a lot!

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


[android-developers] Re: Working with VideoView without calling MediaPlayer.release()

2011-08-29 Thread Christopher Perry
I'm also having this issue, I'd like to see a resolution to this
because my application relies heavily on video and the Android
MediaPlayer doesn't work very well. I'm not sure what else to do at
this point.

On Aug 23, 1:23 am, Guilo guilo.gu...@gmail.com wrote:
 Hi !

 Today, this issuehttp://code.google.com/p/android/issues/detail?id=959has
 become really problematic for me.

 MediaPlayer.release() makes my applications hang for a few seconds very
 often. As it makes the user experience really unacceptable I have copied the
 source code from VideoView and removed calls to MediaPlayer.release(),
 nevermind the lost resources. My application is now mush smoother. My
 application adds and removes the videoview when needed. But sometimes, after
 readding the custom VideoView, it will be black or green, complaining about
 Surface Overlay being busy. Messages differs for every hardware.

 So here is my question : Is it possible to live without calling
 MediaPlayer.release() ? (this method can block my UI so I can't use it)
 If not, which workarounds are available ? I have tried to call this method
 in a different thread but it will release the resources to late for the next
 SurfaceView;

 Any ideas ?

 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


RE: [android-developers] Google Checkout Problem

2011-07-21 Thread Perry
Hi Simon,

Thanks a lot! 

 

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Simon Platten
Sent: Wednesday, July 20, 2011 6:17 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Google Checkout Problem

 

I had a similar problem, the problem was caused by a google cancelled order,
due to credit card failure.  The solution was to change the sort order by
date ascending then go to the last page until you find the offending items,
then you can go in and archive or delete those entries, it all worked fine
after that.

On Wed, Jul 20, 2011 at 7:42 AM, Perry168 perry...@netvigator.com wrote:

Hi all,
Today, I login my google checkout. I found that it can't show all
orders.
Who has the same problem?

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




-- 
Regards,
Sy

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

2010-12-16 Thread Ken Perry
 

 

I am trying to find out if there is a way to add a global WebKit plugin so
that any programming using the WebView will have my plugin in attached.  The
plugin will need access to the NP Navigation and dom.

 

I looked at the example under development Samples for browser plugin but
that only works in the browser and only if you include the code in the web
page.  I need it to work on any  web page.If you have any ideas I can
take you off list and give you a more clear idea of what I am wanting to
accomplish.

 

Ken

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

2010-12-16 Thread Ken Perry

Modifying the firmware is not a problem the plugin I am writing is for a
proprietary device.  Can you point me at some information on how to go about
this?

Ken
-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy
Sent: Thursday, December 16, 2010 8:18 AM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Global Plugin.

On Thu, Dec 16, 2010 at 7:46 AM, Ken Perry kpe...@blinksoft.com wrote:
 I am trying to find out if there is a way to add a global WebKit plugin so
 that any programming using the WebView will have my plugin in attached. 
The
 plugin will need access to the NP Navigation and dom.

If by any programming using the WebView refers to the device as a
whole, you can only do this by modifying the firmware, AFAIK.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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

-- 
You received this message because you are subscribed to the Google
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] Javascript, WebView, and arrow keys.

2010-09-09 Thread Ken Perry
The following question has to do with Froyo 2.2 sdk 8 running on an
emulator.

 

 I am injecting Javascript  into a web page and in the WebView activity I
get 19, 20, 21, and 22 for key codes for arrow keys.  At the Javascript
level all four arrow key values in a keydown handler come in as zero.  The
following is the java script code I am using to set the handler and to get
the keyValue.

 

window.addEventListener('keydown', keyDownHandler, true); 

 

function keyDownHandler(evt){

var keyCode=evt.keyCode;

myLog(keyCode);

}

 

 

I will note that keys like enter come in correct for example I get 13 for
enter.  I also will note that if I press shift and then an arrow key I get
16 for all 4 arrow keys instead of 0.  myLog function takes a String but the
following works 

 

If (keyCode==0){

myLog(arrow key);

}

 

So the value is coming in as zero is there some way I can fix this.  If
someone has time I have a pretty simple example of this problem I could
probably zip up as an eclipse project.

 

Thanks,

 

Ken

  

-- 
You received this message because you are subscribed to the Google
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 to debug web page on device?

2010-09-09 Thread Ken Perry


I think you're doing it the same way I am.  I use addJavascriptInterface to
add logging class to any JavaScript I write.  Then I can use the Android
Java log class to write to the log cat.  I tag the logs with the keyword
javascript so I get a nice neat list of whatever I want to see.

Ken  

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Maps.Huge.Info
(Maps API Guru)
Sent: Wednesday, September 08, 2010 11:44 PM
To: Android Developers
Subject: [android-developers] Re: How to debug web page on device?

Debugging webview can be tricky. A lot of the errors print in the
console. Mostly the problems aren't going to be actual JavaScript
errors if it renders fine in other devices but will be due to some
oddity in the way a particular manufacturer implemented webkit. I've
seen lots of differences in the devices. HTC is particularly odd.
Motorola is particularly good. I haven't dealt with the Samsung
variants yet but I hope they are closer to Motorola than HTC.

One way you can debug webview is to put a function in your app that
logs messages from the webview with JavaScript calls. Then sprinkle
those calls liberally throughout the JavaScript and just monitor what
happens. Look for differences in the way the devices render things.

I use this method and have found it cumbersome but effective. I use a
lot of webview stuff so if someone else knows a better way, I'm all
ears.

-John Coryat

-- 
You received this message because you are subscribed to the Google
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] Having problems referencing a library project from an application

2010-08-07 Thread Christopher Perry
I've been trying to do this now for 2 whole days, and am about to give
up. I followed the instructions here:

http://developer.android.com/guide/developing/eclipse-adt.html

but it is not working. I can see the library project is added to my
application but I cannot reference anything in it. Also the R.java
file from the lib was NOT added to my application, so the lib project
contains tons of errors, everywhere it tries to reference it's own
R.java file (most likely the cause of the former).

Also, in the console there are messages stating that the there is No
resource identifier found for attribute 'X' in package 'Lib Package'.
The library builds just fine, and I don't get those messages in the
console until I hook the library to my application.

You would think that creating and referencing a library would be a
simple thing to do, as it is in most other projects, but this is
turning into a real nightmare. Thanks Google!

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

2010-08-07 Thread Christopher Perry
I'm having this exact problem right now. Did you figure it out?

On Jul 7, 11:58 am, Vladimir Lebedev-Schmidthof dair@gmail.com
wrote:
 Hello Mark,

 I faced the same problem with attrs.xml in Library Project. Have you
 finally found the solution?

 On 23 май, 23:22, Mark Carter mjc1...@googlemail.com wrote:



  I'm sure that thelibrary.apk file error was because I had added 
  thelibraryprojectto my appprojectbuild path.

  The other problem, where appprojectclasses could not 
  seelibraryprojectclasses was due to something else.

  For some strange reason, even when the androidlibrarycompiles by
  itself (I mean, does not show any errors in eclipse), it can give
  compiler errors when used as alibraryin anotherproject. In that
  situation, it does not show up like LibProject in your png file.

  In my situation, this was caused by a problem with a custom widgets I
  had defined in mylibrary. The attrs.xml file was being ignored for
  some reason. Everything worked fine (i.e. the LibProject showed up as
  in your png file) when I removed those custom widget (I'm not talking
  about homescreen widgets)attributesfrom the relevant layout xml in
  thelibraryproject.

  Sorry all this is a bit vague. I'll try and come up with a clearer
  scenario but I'm right in the middle of something now.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  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


[android-developers] Problem after implementing SQLiteOpenHelper

2010-07-01 Thread Christopher Perry
I have a ListActivity that uses a CursorAdapter to fill the rows in
the view. I wrote a database helper class that gives me back results
for common queries I make for my app, and it uses an SQLiteOpenHelper
implementation I wrote to open the database. I use the open helper to
open the database and get a cursor to pass to my CursorAdapter. Here's
a code snippet:

public static Cursor getCursor(DbOpenHelper openHelper) {
SQLiteDatabase db = openHelper.getWritableDatabase();
db.beginTransaction();
Cursor c = null;
try {
String sql = select * from  + TABLE_NAME;
c = db.rawQuery(sql, null);
db.setTransactionSuccessful();
} catch (SQLException e) {
Log.e(Exception on query, e.toString());
} finally {
db.endTransaction();
}

return c;
}


The problem I'm having, that I didn't have before I implemented the
open helper (before I just opened the database directly without a
helper), is when I click on an item, which takes me to another
activity, and then go back to this activity. When it initializes
everything is fine, and my list is populated fine, but when I go back
from the activity that follows, the list is empty and in the LogCat I
see Invalid statement in fillWindow().

It appears from a few post I've seen that the reason is, when I
requery the cursor, the database is closed. But I'm not closing it!
I'm scratching my head on this one.

-- 
You received this message because you are subscribed to the Google
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] Changing entry activity causes app only to open from downloads page

2010-06-15 Thread Christopher Perry
I recently added an activity to one of my apps, and made it the
starting activity for the application and published an update. The
update worked perfectly with no problems on my N1, but I'm getting
emails from users telling me that the only way they can open my app is
from their Downloads page in the Android Market app. I have no clue
what could be causing this behavior, PLEASE HELP!

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


[android-developers] Re: TTS SMS API

2009-10-27 Thread Neil Perry

Bump?

On Oct 12, 4:34 pm, Neil Perry npe...@gmail.com wrote:
 Hello there,

 We're looking on making an app that would interact with SMS's so it
 could be played via the TTS api. Is there any way we can input into
 the long press menu of a sms to call it to play the said message.

 Thanks

 Neil Perry

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

2009-10-12 Thread Neil Perry

Hello there,


We're looking on making an app that would interact with SMS's so it
could be played via the TTS api. Is there any way we can input into
the long press menu of a sms to call it to play the said message.

Thanks

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

2008-05-18 Thread Ken Perry
I have looked through the archives and have seen that some people were
trying to get Free TTS to work with Android.  I personally don't like free
tts but with that said did anyone ever get it to work.  If not has there
been any more news  about TTS being added to the Android SDK?

I did search the group before posting this but I never saw a conclusion to
the discussion.

Ken  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---