[android-developers] exception

2009-10-14 Thread Honest

Hello,

I am retrieving data from database after particular time in service.
For sometimes it works perfectly but after some time it used to give
following exception. Can some one tell me what can be wrong in it ?



E/JavaBinder(  142): java.lang.RuntimeException: No memory in memObj
E/JavaBinder(  142):at android.database.CursorWindow.native_init
(Native Meth
od)
E/JavaBinder(  142):at android.database.CursorWindow.
(CursorWindow.jav
a:467)
E/JavaBinder(  142):at android.database.CursorWindow.
(CursorWindow.jav
a:27)
E/JavaBinder(  142):at android.database.CursorWindow
$1.createFromParcel(Curs
orWindow.java:442)
E/JavaBinder(  142):at android.database.CursorWindow
$1.createFromParcel(Curs
orWindow.java:445)
E/JavaBinder(  142):at
android.content.ContentProviderNative.onTransact(Cont
entProviderNative.java:95)
E/JavaBinder(  142):at android.os.Binder.execTransact(Binder.java:
287)
E/JavaBinder(  142):at dalvik.system.NativeStart.run(Native
Method)
E/3   (  337): 3
E/Exception(  337): java.lang.NullPointerException
I/DumpStateReceiver(   74): Added state dump to 1 crashes
E/in readData(  337): in readData
E/1   (  337): 1
E/2   (  337): 2
E/IM

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

2012-05-04 Thread tj
05-04 10:21:07.594: E/AndroidRuntime(333): FATAL EXCEPTION: main
05-04 10:21:07.594: E/AndroidRuntime(333): java.lang.RuntimeException:
Unable to instantiate activity ComponentInfo{com.liveplaygolf/
com.liveplaygolf.activity.HomeActivity}:
java.lang.ClassNotFoundException:
com.liveplaygolf.activity.HomeActivity in loader
dalvik.system.PathClassLoader[/data/app/com.liveplaygolf-1.apk]
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1569)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1663)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.os.Handler.dispatchMessage(Handler.java:99)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.os.Looper.loop(Looper.java:123)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.main(ActivityThread.java:3683)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.reflect.Method.invokeNative(Native Method)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.reflect.Method.invoke(Method.java:507)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
dalvik.system.NativeStart.main(Native Method)
05-04 10:21:07.594: E/AndroidRuntime(333): Caused by:
java.lang.ClassNotFoundException:
com.liveplaygolf.activity.HomeActivity in loader
dalvik.system.PathClassLoader[/data/app/com.liveplaygolf-1.apk]
05-04 10:21:07.594: E/AndroidRuntime(333):  at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-04 10:21:07.594: E/AndroidRuntime(333):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1561)

:-(
can anyone help me please..

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

2012-06-14 Thread marie
Hello,
I found these three structures in the taintrdoid source code and I want to 
know :

   -   what is the role of each structure and how to handle exeption in 
   android?


   - Where can I find the stored exceptions associated to a given 
   methode?


   - Where the declared_exceptions associated to a methode are stored?


   - And where the catches are stored ?


For example in the getCaughtExceptionType it has 2 for loop (what is the 
role of each loop)?



*typedef struct DexTry* { 
u4  startAddr;  /* start address, in 16-bit code units */ 
u2  insnCount;  /* instruction count, in 16-bit code units 
*/ 
u2  handlerOff; /* offset in encoded handler data to 
handlers */ 
} DexTry; 


*typedef struct DexCatchHandler* { 
u4  typeIdx;/* type index of the caught exception type 
*/ 
u4  address;/* handler address */ 
} DexCatchHandler; 


*typedef struct DexCatchIterator* { 
const u1* pEncodedData; 
bool catchesAll; 
u4 countRemaining; 
DexCatchHandler handler; 
} DexCatchIterator; 



/*
 * For the "move-exception" instruction at "insnIdx", which must be at an
 * exception handler address, determine the first common superclass of
 * all exceptions that can land here.  (For javac output, we're probably
 * looking at multiple spans of bytecode covered by one "try" that lands
 * at an exception-specific "catch", but in general the handler could be
 * shared for multiple exceptions.)
 *
 * Returns NULL if no matching exception handler can be found, or if the
 * exception is not a subclass of Throwable.
 */
*static ClassObject* getCaughtExceptionType*(const Method* meth, int 
insnIdx,
VerifyError* pFailure)
{
VerifyError localFailure;
const DexCode* pCode;
DexFile* pDexFile;
ClassObject* commonSuper = NULL;
bool foundPossibleHandler = false;
u4 handlersSize;
u4 offset;
u4 i;

pDexFile = meth->clazz->pDvmDex->
pDexFile;
pCode = dvmGetMethodCode(meth);

if (pCode->triesSize != 0) {
handlersSize = dexGetHandlersSize(pCode);
offset = dexGetFirstHandlerOffset(pCode);
} else {
handlersSize = 0;
offset = 0;
}

   * for (i = 0; i < handlersSize; i++) {
*DexCatchIterator iterator;
dexCatchIteratorInit(&iterator, pCode, offset);//Initialize a 
DexCatchIterator to a particular handler offset

  *  for (;;) {*
const DexCatchHandler* handler = 
dexCatchIteratorNext(&iterator);/* Get the next item from a 
DexCatchIterator. Returns NULL if at end. */

if (handler == NULL) {
break;
}

if (handler->address == (u4) insnIdx) {
ClassObject* clazz;
foundPossibleHandler = true;

if (handler->typeIdx == kDexNoIndex)
clazz = gDvm.classJavaLangThrowable;
else
clazz = dvmOptResolveClass(meth->clazz, 
handler->typeIdx,
&localFailure);

if (clazz == NULL) {
LOG_VFY("VFY: unable to resolve exception class %u 
(%s)\n",
handler->typeIdx,
dexStringByTypeIdx(pDexFile, handler->typeIdx));
/* TODO: do we want to keep going?  If we don't fail
 * this we run the risk of having a non-Throwable
 * introduced at runtime.  However, that won't pass
 * an instanceof test, so is essentially harmless. */
} else {
if (commonSuper == NULL)
commonSuper = clazz;
else
commonSuper = findCommonSuperclass(clazz, 
commonSuper);//Find the first common superclass of the two classes
}
}
}

offset = dexCatchIteratorGetEndOffset(&iterator, pCode);/* Get the 
handler offset just past the end of the one just iterated over.
 * This ends the iteration if it wasn't already. */
}

if (commonSuper == NULL) {
/* no catch blocks, or no catches with classes we can find */
LOG_VFY_METH(meth,
"VFY: unable to find exception handler at addr 0x%x\n", 
insnIdx);
*pFailure = VERIFY_ERROR_GENERIC;
} else {
// TODO: verify the class is an instance of Throwable?
}

return commonSuper;
}
thank you

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

[android-developers] Exception Stacktrace

2009-08-18 Thread Dan Sherman
Getting a bunch of these errors logged on one of our apps... Not sure
exactly whats causing it (doesn't show our app anywhere in the stacktrace)

java.lang.IllegalArgumentException: parameter must be a descendant of this
view
at
android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:2454)
at
android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:2391)
at android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1301)
at android.view.ViewRoot.draw(ViewRoot.java:1107)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3948)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)


Anyone know where to start looking?

- Dan

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

2012-05-04 Thread Jim Graham
On Thu, May 03, 2012 at 10:03:11PM -0700, tj wrote:

[LOTS of logcat spewage, NO EXPLANATION of what the problem is,
and NO CODE that's suspected of causing the problem.  Not good.]

> can anyone help me please..

Sure.  Look at the logcat output for a few seconds.  Read the error
and its cause and fix it.

There.  You've been helped.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   "Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.." --Peter Dalgaard in alt.sysadmin.recovery

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Exception......

2012-05-04 Thread Justin Anderson
The problem appears in the first few lines of your logcat output:

05-04 10:21:07.594: E/AndroidRuntime(333): FATAL EXCEPTION: main
> 05-04 10:21:07.594: E/AndroidRuntime(333): java.lang.RuntimeException:
> Unable to instantiate activity ComponentInfo{com.liveplaygolf/
> com.liveplaygolf.activity.HomeActivity}:
> java.lang.ClassNotFoundException:
> com.liveplaygolf.activity.HomeActivity in loader
>

ClassNotFoundException is pretty straightforward... It can't find your
HomeActivity class.  This is usually due to not having declared it in your
manifest.

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


On Fri, May 4, 2012 at 8:58 AM, Jim Graham  wrote:

> On Thu, May 03, 2012 at 10:03:11PM -0700, tj wrote:
>
> [LOTS of logcat spewage, NO EXPLANATION of what the problem is,
> and NO CODE that's suspected of causing the problem.  Not good.]
>
> > can anyone help me please..
>
> Sure.  Look at the logcat output for a few seconds.  Read the error
> and its cause and fix it.
>
> There.  You've been helped.
>
> Later,
>   --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
> spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W
>
>   "Now what *you* need is a proper pint of porter poured in a proper
>   pewter porter pot.." --Peter Dalgaard in alt.sysadmin.recovery
>
> Android Apps Listing at http://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2012-05-06 Thread Vikram C L
Hello sir .,Im Vikram.
can i get the source code for Slide Show App in Android .,
Thank you :)

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

Re: [android-developers] Exception

2012-06-14 Thread Mark Murphy
This has nothing to do with this list, which is for developing applications
using the Android SDK.

For questions regarding TaintDroid, please contact the TaintDroid authors.

For questions regarding custom firmware development, please visit
http://source.android.com.

On Thu, Jun 14, 2012 at 7:54 AM, marie  wrote:

> Hello,
> I found these three structures in the taintrdoid source code and I want to
> know :
>
>-   what is the role of each structure and how to handle exeption in
>android?
>
>
>- Where can I find the stored exceptions associated to a given
>methode?
>
>
>- Where the declared_exceptions associated to a methode are stored?
>
>
>- And where the catches are stored ?
>
>
> For example in the getCaughtExceptionType it has 2 for loop (what is the
> role of each loop)?
>
>
>
> *typedef struct DexTry* {
> u4  startAddr;  /* start address, in 16-bit code units */
> u2  insnCount;  /* instruction count, in 16-bit code units
> */
> u2  handlerOff; /* offset in encoded handler data to
> handlers */
> } DexTry;
>
>
> *typedef struct DexCatchHandler* {
> u4  typeIdx;/* type index of the caught exception type
> */
> u4  address;/* handler address */
> } DexCatchHandler;
>
>
> *typedef struct DexCatchIterator* {
> const u1* pEncodedData;
> bool catchesAll;
> u4 countRemaining;
> DexCatchHandler handler;
> } DexCatchIterator;
>
>
>
> /*
>  * For the "move-exception" instruction at "insnIdx", which must be at an
>  * exception handler address, determine the first common superclass of
>  * all exceptions that can land here.  (For javac output, we're probably
>  * looking at multiple spans of bytecode covered by one "try" that lands
>  * at an exception-specific "catch", but in general the handler could be
>  * shared for multiple exceptions.)
>  *
>  * Returns NULL if no matching exception handler can be found, or if the
>  * exception is not a subclass of Throwable.
>  */
> *static ClassObject* getCaughtExceptionType*(const Method* meth, int
> insnIdx,
> VerifyError* pFailure)
> {
> VerifyError localFailure;
> const DexCode* pCode;
> DexFile* pDexFile;
> ClassObject* commonSuper = NULL;
> bool foundPossibleHandler = false;
> u4 handlersSize;
> u4 offset;
> u4 i;
>
> pDexFile = meth->clazz->pDvmDex->
> pDexFile;
> pCode = dvmGetMethodCode(meth);
>
> if (pCode->triesSize != 0) {
> handlersSize = dexGetHandlersSize(pCode);
> offset = dexGetFirstHandlerOffset(**pCode);
> } else {
> handlersSize = 0;
> offset = 0;
> }
>
>* for (i = 0; i < handlersSize; i++) {
> *DexCatchIterator iterator;
> dexCatchIteratorInit(&**iterator, pCode, offset);//Initialize a
> DexCatchIterator to a particular handler offset
>
>   *  for (;;) {*
> const DexCatchHandler* handler = 
> dexCatchIteratorNext(&**iterator);/*
> Get the next item from a DexCatchIterator. Returns NULL if at end. */
>
> if (handler == NULL) {
> break;
> }
>
> if (handler->address == (u4) insnIdx) {
> ClassObject* clazz;
> foundPossibleHandler = true;
>
> if (handler->typeIdx == kDexNoIndex)
> clazz = gDvm.classJavaLangThrowable;
> else
> clazz = dvmOptResolveClass(meth->**clazz,
> handler->typeIdx,
>   **  &localFailure);
>
> if (clazz == NULL) {
> LOG_VFY("VFY: unable to resolve exception class %u
> (%s)\n",
> handler->typeIdx,
> dexStringByTypeIdx(pDexFile, handler->typeIdx));
> /* TODO: do we want to keep going?  If we don't fail
>  * this we run the risk of having a non-Throwable
>  * introduced at runtime.  However, that won't pass
>  * an instanceof test, so is essentially harmless. */
> } else {
> if (commonSuper == NULL)
> commonSuper = clazz;
> else
> commonSuper = findCommonSuperclass(clazz,
> commonSuper);//Find the first common superclass of the two classes
> }
> }
> }
>
> offset = dexCatchIteratorGetEndOffset(&**iterator, pCode);/* Get
> the handler offset just past the end of the one just iterated over.
>  * This ends the iteration if it wasn't already. */
> }
>
> if (commonSuper == NULL) {
> /* no catch blocks, or no catches with classes we can find */
> LOG_VFY_METH(meth,
> "VFY: unable to find exception handler at addr 0x%x\n",
> insnIdx);
> *pFailure = VERIFY_ERROR_GENERIC;
> } else {
> // TODO: verify the class is an instance of Throwable?
> }
>
> return 

[android-developers] Exception Handler

2012-11-20 Thread Luiz Henrique
Hey Guys,

I would like to remove the try/catch blocks from my business layer
(exception like java.lang.Exception). Is there some approach like AOP where
you can define an interceptor  and can use an unique method to handle catch
exceptions?

Basically my idea is turn my business layer as clear as it possible.

Thanks,
Luiz

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

2010-09-18 Thread Brad Gies
 This is a bit long winded (sorry, but I need to explain what I'm doing 
before I can ask the question).


Just wondering if I could get a few (hopefully few hundred) opinions on 
this :


I developed an Exception Handler for my first Android app (released the 
first month the market opened), which logs all uncaught exceptions to my 
server, and since then I have gradually refined it and improved. I'm now 
using it in my 4th public Android app and a few private apps, and I find 
it extremely helpful to find bugs that don't happen to me when I'm testing.


One thing I added that is proving to be extremely useful is an 
AlertDialog when the exception occurs asking the user if it is OK to 
contact him/her if I need more information to be able to fix the 
problem, and a box for them to enter their email address if they agree. 
I don't have good numbers for you on the acceptance rate because most of 
my public apps already have the users email address and for the private 
apps the company enforces their compliance (or supplies the emails for 
me to use). BUT... it looks like about 20% of users do enter their email 
address if asked, and that is more than enough to be very useful.


I think I can increase the percentage of users that do supply their 
emails addresses, and that is what my question is about :).  (I will ask 
it soon)


First, It has occurred to me that my Exception Logger might be even more 
successful for me if other developers were also using it because users 
might have seen it before and trust it when they first see it in my 
apps. That obviously would only happen if quite a few developers were 
using it.


Anyway... sorry it's already getting long, and I AM trying to keep it 
from becoming a book. I have repackaged my Exception Logger and will 
release it in the next couple of days for other developers to use (the 
price is the good one - FREE). I will host the thing on my server (FYI 
it's a Cloud based server so we can increase capacity if needed) and any 
developers using it will be able to log in and view the exceptions their 
app has generated, and sort by time/date, user, and other fields.


NOW.. the question: I think the Exception Logger would be more 
successful getting the users to agree to be contacted IF their email 
addresses were kept confidential. Actually, I don't think there is much 
doubt that would be the case. BUT, there is a tradeoff. Obviously, most 
developers would prefer to see the email addresses so they can manage 
the contacts a bit more effectively without using my website to do it, 
BUT if the email addresses are not confidential, fewer users will give 
them.


So here are what I think are the options:

a)keep the email addresses confidential, but developers can send the 
user an email using my website, include both a reply address which goes 
to my website and then forwards the email to the developer, and also the 
developers email address so the user could respond directly to the 
developer if they choose. I'm sure this would have by far the highest 
success rate for getting contact info  but means devs have to use my 
website to send the first email at least.


b)give the user a choice of keeping the email address confidential 
or just giving it to the developer. This should also have a fairly high 
acceptance rate by the user, but complicates the process for them 
because they would actually have to read the instructions to figure out 
how it works, and quite possibly a few users would think they asked for 
their email addresses to be confidential, when they actually checked the 
other option, and would be upset if they found out later. It's also a 
bit more work for me, for maybe very little benefit.


c)Don't bother keeping the email addresses confidential. All my own 
apps work this way, and it is useful, but I'm sure either of the other 
two options would have a better success rate of obtaining the email 
addresses, and therefore would be better for most devs to get 
information about problems in their apps.


I don't try the a) or b) options for myself because obviously I could 
see the email addresses in my log files if I wanted to look, and it 
would be a little deceitful to tell the user their email would be 
confidential in that case, even if I did use them properly ... BUT, I 
can do that for other developers without stretching the truth at all, so 
I think it's worth the effort if other devs want to use it.


So, please let me know what your opinions are.

I'm also hoping to get some idea of how many developers might want to 
use this. I've already done almost all the work, so it will be released 
even if nobody wants to use it. It freaks me out a little to open up my 
server to an unknown amount of use, but I am well setup to increase 
server capacity quickly if needed, and I don't think the cost of doing 
this will be too horrible (I hope). ...



Sincerely,

Brad Gies
--

[android-developers] Exception Logging

2010-09-27 Thread Brad Gies


Just thought I'd let you all know that I have just updated my Exception 
Logger to Version 2 (0.9.5 RC1).


I fixed a bunch of bugs related to my converting it from my own use to 
something that almost any developer can use :). I've also updated the 
documentation considerably. YuviDroid helped out quite a bit over this 
weekend by testing and sending me results... so thanks.. it was much 
appreciated :).


Also, the web pages are functional now, so you can view the exceptions 
as you test. I will add some more features later, but they are at least 
functional.


Anyone that downloaded it in the last week DEFINITELY needs to download 
it again :


URLS are : .

Zip file (w/docs and and install files ) here :
http://bgies.com/media/exceptionlogger/exceptionlogger.zip

If you only want the docs:
http://bgies.com/media/exceptionlogger/bgies_Exception_Logger_Documentation.pdf 



Exception Logger Manager (for viewing the exceptions) :

http://bgies.com/index.php/software-developers/exception-logger-management.html



*What the Exception Logger does:*
When properly setup the Exception Logger logs ALL unhandled Exceptions 
in your Android app, and optionally can be setup to log your trapped 
exceptions, and user settings or other information also . The fields it 
logs are below:


   * Insert Time - Time and Date the exception was logged
   * Developer Key - Used to sort your exceptions (and make sure nobody
 else can see them)
   * Application Name - If you have multiple applications, you can sort
 on this
   * Activity Name - the activity that generated the exception.
   * Function Name - if you setup your app to use this, it will log the
 name of the function that generated the exception
   * Application Version - the integer version number from your
 manifest file
   * Device Type - The alphanumeric string from the Android framework
 (android.os.Build.MODEL)
   * Exception Logger Version - so you know if you are using the latest
 version of our API
   * SDK Version - The integer version of the Android SDK the device is
 running (android.os.Build.VERSION.SDK_INT)
   * Android Id - the Android unique Id. You can sort by it to see the
 exceptions happening to each user
   * Email Address - if the user chose to send it
   * Extras - The Extras field is a varchar(255) of whatever your
 application sets it to. Use it to send additional debugging
 information
   * IP Address - the IP Address logged by our server. May be helpful
 in some cases
   * Stacktrace - the complete stack trace at the time the exception
 occurred




--
Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

--
You received this message because you are subscribed to the Google
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] Exception in com.google.android.location.ConfirmAlertActivity

2009-12-07 Thread Vijay
I get a ResourceNotFoundException from
com.google.android.location.ConfirmAlertActivity. But I'm sure
secondary_text_dark.xml is in my base/core/res/res/color. Does anyone
know the reason?

Here is my log:

E/AndroidRuntime( 5629): Uncaught handler: thread
android.server.ServerThread exiting due to uncaught exception
E/AndroidRuntime( 5629): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
E/AndroidRuntime( 5629): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.google.android.location/
com.google.android.location.ConfirmAlertActivity}:
android.view.InflateException: Binary XML file line #54: Error
inflating class java.lang.reflect.Constructor
E/AndroidRuntime( 5629):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
E/AndroidRuntime( 5629):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
E/AndroidRuntime( 5629):at android.app.ActivityThread.access$2100
(ActivityThread.java:116)
E/AndroidRuntime( 5629):at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:1794)
E/AndroidRuntime( 5629):at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime( 5629):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 5629):at com.android.server.ServerThread.run
(SystemServer.java:411)
E/AndroidRuntime( 5629): Caused by: android.view.InflateException:
Binary XML file line #54: Error inflating class
java.lang.reflect.Constructor
E/AndroidRuntime( 5629):at android.view.LayoutInflater.createView
(LayoutInflater.java:512)
E/AndroidRuntime( 5629):at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:564)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.rInflate
(LayoutInflater.java:617)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.rInflate
(LayoutInflater.java:620)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.rInflate
(LayoutInflater.java:620)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.inflate
(LayoutInflater.java:407)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.inflate
(LayoutInflater.java:320)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.inflate
(LayoutInflater.java:276)
E/AndroidRuntime( 5629):at
com.android.internal.policy.impl.PhoneWindow.setContentView
(PhoneWindow.java:334)
E/AndroidRuntime( 5629):at
com.android.internal.app.AlertController.installContent
(AlertController.java:204)
E/AndroidRuntime( 5629):at
com.android.internal.app.AlertActivity.setupAlert(AlertActivity.java:
74)
E/AndroidRuntime( 5629):at
com.google.android.location.ConfirmAlertActivity.onCreate
(ConfirmAlertActivity.java:50)
E/AndroidRuntime( 5629):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/AndroidRuntime( 5629):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
E/AndroidRuntime( 5629):... 6 more
E/AndroidRuntime( 5629): Caused by:
java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5629):at
com.android.internal.widget.DialogTitle.(DialogTitle.java:38)
E/AndroidRuntime( 5629):at
java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5629):at java.lang.reflect.Constructor.newInstance
(Constructor.java:446)
E/AndroidRuntime( 5629):at android.view.LayoutInflater.createView
(LayoutInflater.java:499)
E/AndroidRuntime( 5629):... 19 more
E/AndroidRuntime( 5629): Caused by: android.content.res.Resources
$NotFoundException: File res/color/secondary_text_dark.xml from color
state list resource ID #0x0
E/AndroidRuntime( 5629):at
android.content.res.Resources.loadColorStateList(Resources.java:1873)
E/AndroidRuntime( 5629):at
android.content.res.TypedArray.getColorStateList(TypedArray.java:303)
E/AndroidRuntime( 5629):at android.widget.TextView.
(TextView.java:380)
E/AndroidRuntime( 5629):at android.widget.TextView.
(TextView.java:320)
E/AndroidRuntime( 5629):... 23 more
E/AndroidRuntime( 5629): Caused by: android.content.res.Resources
$NotFoundException: File res/color/secondary_text_dark.xml from xml
type colorstatelist resource ID #0x0
E/AndroidRuntime( 5629):at
android.content.res.Resources.loadXmlResourceParser(Resources.java:
1980)
E/AndroidRuntime( 5629):at
android.content.res.Resources.loadColorStateList(Resources.java:1868)
E/AndroidRuntime( 5629):... 26 more

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

2012-03-26 Thread B.Arunkumar
Hi,

I have got the following exception when an activity was opened.
The activity window finished unexpectedly with the following error in
Logcat. What does this mean?

E/InputDispatcher( 3102): channel '4093840976580ef8
com.example.OnVRViewer/com.example.OnVRViewer.OnVRViewer (server)' ~
Consumer closed input channel or an error occurred.  events=0x8

E/InputDispatcher( 3102): channel '40938ef8 com.example.OnVRViewer/
com.example.OnVRViewer.OnVRViewer (server)' ~ Channel is unrecoverably
broken and will be disposed!

E/InputDispatcher( 3102): channel '4097efa8 com.example.OnVRViewer/
com.example.OnVRViewer.Tabbar (server)' ~ Consumer closed input
channel or an error occurred.  events=0x8

E/InputDispatcher( 3102): channel '4097efa8 com.example.OnVRViewer/
com.example.OnVRViewer.Tabbar (server)' ~ Channel is unrecoverably
broken and will be disposed!

I/WindowManager( 3102): WINDOW DIED Window{40938ef8
com.example.OnVRViewer/com.example.OnVRViewer.OnVRViewer paused=false}

I/ActivityManager( 3102): Process com.example.OnVRViewer (pid 8060)
has died.

I/WindowManager( 3102): WINDOW DIED Window{4097efa8
com.example.OnVRViewer/com.example.OnVRViewer.Tabbar paused=false}

D/Zygote  ( 3092): Process 8060 terminated by signal (7)

E/InputDispatcher( 3102): channel '40976580 com.example.OnVRViewer/
com.example.OnVRViewer.RecordedTimeDetails (server)' ~ Consumer closed
input channel or an error occurred.  events=0x8

E/InputDispatcher( 3102): channel ' com.example.OnVRViewer/
com.example.OnVRViewer.RecordedTimeDetails (server)' ~ Channel is
unrecoverably broken and will be disposed!

E/InputDispatcher( 3102): channel '40a47e40 com.example.OnVRViewer/
com.example.OnVRViewer.AsyncRecordTrial (server)' ~ Consumer closed
input channel or an error occurred.  events=0x8

E/InputDispatcher( 3102): channel '40a47e40 com.example.OnVRViewer/
com.example.OnVRViewer.AsyncRecordTrial (server)' ~ Channel is
unrecoverably broken and will be disposed!

I/WindowManager( 3102): WINDOW DIED Window{40976580
com.example.OnVRViewer/com.example.OnVRViewer.RecordedTimeDetails
paused=false}

W/WindowManager( 3102): Failed looking up window

W/WindowManager( 3102): java.lang.IllegalArgumentException: Requested
window android.os.BinderProxy@409475d0 does not exist

W/WindowManager( 3102): at
com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:
8578)

W/WindowManager( 3102): at
com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:
8569)

W/WindowManager( 3102): at com.android.server.WindowManagerService
$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7398)

W/WindowManager( 3102): at
android.os.BinderProxy.sendDeathNotice(Binder.java:381)

W/WindowManager( 3102): at dalvik.system.NativeStart.run(Native
Method)

I/WindowManager( 3102): WIN DEATH: null

I/WindowManager( 3102): WIN DEATH: Window{40a47e40
com.example.OnVRViewer/com.example.OnVRViewer.AsyncRecordTrial
paused=false}

W/WindowManager( 3102): Failed looking up window

W/WindowManager( 3102): java.lang.IllegalArgumentException: Requested
window android.os.BinderProxy@4097edc8 does not exist

W/WindowManager( 3102): at
com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:
8578)

W/WindowManager( 3102): at
com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:
8569)

W/WindowManager( 3102): at com.android.server.WindowManagerService
$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7398)

W/WindowManager( 3102): at
android.os.BinderProxy.sendDeathNotice(Binder.java:381)

W/WindowManager( 3102): at dalvik.system.NativeStart.run(Native
Method)

I/WindowManager( 3102): WIN DEATH: null

Thank you,
B.Arunkumar

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

2011-11-29 Thread mpigio
When I start the emulator with my app I receive this error:
An unhandled win32 exception in emulator-arm.exe [2524]
or [3908] or [5008] or [1224]
How can I found the source of error?

I've Win XP and this solution is not good for me:
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/24b356ad-59ef-446f-aa8b-df6b55fa78bb

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] Exception Locking Canvas

2012-05-05 Thread Samuh
Activities in our application employ use of an OpenGL Surface that is
drawn behind the main content of the activity. Every time, the
activity is "entered into" a bitmap is captured and rendered on the GL
surface and every time it is paused the bitmap is removed.

It is observed that if we keep switching between activities, after
15-20 transitions we get "Canvas Lock exception". Also, with less
desperate navigational behavior, if the application is used for a
certain period of time, it becomes sluggish and prone to Canvas lock
exceptions.

E/ViewRootImpl(10414): IllegalArgumentException locking surface
E/ViewRootImpl(10414): java.lang.IllegalArgumentException
E/ViewRootImpl(10414):  at
android.view.Surface.lockCanvasNative(Native Method)
E/ViewRootImpl(10414):  at
android.view.Surface.lockCanvas(Surface.java:76)
E/ViewRootImpl(10414):  at
android.view.ViewRootImpl.draw(ViewRootImpl.java:1924)
E/ViewRootImpl(10414):  at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613)
E/ViewRootImpl(10414):  at
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
E/ViewRootImpl(10414):  at
android.os.Handler.dispatchMessage(Handler.java:99)
E/ViewRootImpl(10414):  at android.os.Looper.loop(Looper.java:137)
E/ViewRootImpl(10414):  at
android.app.ActivityThread.main(ActivityThread.java:4340)
E/ViewRootImpl(10414):  at
java.lang.reflect.Method.invokeNative(Native Method)
E/ViewRootImpl(10414):  at java.lang.reflect.Method.invoke(Method.java:
511)
E/ViewRootImpl(10414):  at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/ViewRootImpl(10414):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/ViewRootImpl(10414):  at dalvik.system.NativeStart.main(Native
Method)

We are on GB(2.3.3) build.

People have reported similar issue (code.google.com/p/android/issues/
detail?id=22406#c1) where the use-case sounds similar to the
navigational problem we are facing.

Questions :
1. Is this exception documented in detail?
2. What are the possible reasons for its occurence and what can be
done to avoid it?
3. Would fixing memory leaks alleviate the problem?

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


Re: [android-developers] Exception Handler

2012-11-20 Thread Nikolay Elenkov
On Wed, Nov 21, 2012 at 2:31 PM, Luiz Henrique  wrote:
> Hey Guys,
>
> I would like to remove the try/catch blocks from my business layer
> (exception like java.lang.Exception). Is there some approach like AOP where
> you can define an interceptor  and can use an unique method to handle catch
> exceptions?

This is hardly ACRA related, so maybe take it SO or a similar general purpose
forum. AOP only works if you are doing basically the same thing, for example
logging or re-throwing exceptions. If that is the only thing you need, ACRA
will so the job. For 'business logic' though, there will probably be 'business'
specific exception that you need to handle, and only your business classes
will have the knowledge about how to do so.

>
> Basically my idea is turn my business layer as clear as it possible.
>

It all depends on your definition of 'clear' and is generally a broad topic.
As I said, one way is to use RuntimeExceptions for everything and only
handle them at the outermost layer (i.e, activities or services). That may
or may not work well with your current design though.

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

2010-09-18 Thread Prakash Iyer
I have thought along similar lines. I think it should just be option a.
Don't confuse the user with options. In fact don't even allow user to reply
back directly.

On Sep 18, 2010 1:19 PM, "Brad Gies"  wrote:

 This is a bit long winded (sorry, but I need to explain what I'm doing
before I can ask the question).

Just wondering if I could get a few (hopefully few hundred) opinions on this
:

I developed an Exception Handler for my first Android app (released the
first month the market opened), which logs all uncaught exceptions to my
server, and since then I have gradually refined it and improved. I'm now
using it in my 4th public Android app and a few private apps, and I find it
extremely helpful to find bugs that don't happen to me when I'm testing.

One thing I added that is proving to be extremely useful is an AlertDialog
when the exception occurs asking the user if it is OK to contact him/her if
I need more information to be able to fix the problem, and a box for them to
enter their email address if they agree. I don't have good numbers for you
on the acceptance rate because most of my public apps already have the users
email address and for the private apps the company enforces their compliance
(or supplies the emails for me to use). BUT... it looks like about 20% of
users do enter their email address if asked, and that is more than enough to
be very useful.

I think I can increase the percentage of users that do supply their emails
addresses, and that is what my question is about :).  (I will ask it soon)

First, It has occurred to me that my Exception Logger might be even more
successful for me if other developers were also using it because users might
have seen it before and trust it when they first see it in my apps. That
obviously would only happen if quite a few developers were using it.

Anyway... sorry it's already getting long, and I AM trying to keep it from
becoming a book. I have repackaged my Exception Logger and will release it
in the next couple of days for other developers to use (the price is the
good one - FREE). I will host the thing on my server (FYI it's a Cloud based
server so we can increase capacity if needed) and any developers using it
will be able to log in and view the exceptions their app has generated, and
sort by time/date, user, and other fields.

NOW.. the question: I think the Exception Logger would be more successful
getting the users to agree to be contacted IF their email addresses were
kept confidential. Actually, I don't think there is much doubt that would be
the case. BUT, there is a tradeoff. Obviously, most developers would prefer
to see the email addresses so they can manage the contacts a bit more
effectively without using my website to do it, BUT if the email addresses
are not confidential, fewer users will give them.

So here are what I think are the options:

a)keep the email addresses confidential, but developers can send the
user an email using my website, include both a reply address which goes to
my website and then forwards the email to the developer, and also the
developers email address so the user could respond directly to the developer
if they choose. I'm sure this would have by far the highest success rate for
getting contact info  but means devs have to use my website to send the
first email at least.

b)give the user a choice of keeping the email address confidential or
just giving it to the developer. This should also have a fairly high
acceptance rate by the user, but complicates the process for them because
they would actually have to read the instructions to figure out how it
works, and quite possibly a few users would think they asked for their email
addresses to be confidential, when they actually checked the other option,
and would be upset if they found out later. It's also a bit more work for
me, for maybe very little benefit.

c)Don't bother keeping the email addresses confidential. All my own apps
work this way, and it is useful, but I'm sure either of the other two
options would have a better success rate of obtaining the email addresses,
and therefore would be better for most devs to get information about
problems in their apps.

I don't try the a) or b) options for myself because obviously I could see
the email addresses in my log files if I wanted to look, and it would be a
little deceitful to tell the user their email would be confidential in that
case, even if I did use them properly ... BUT, I can do that for other
developers without stretching the truth at all, so I think it's worth the
effort if other devs want to use it.

So, please let me know what your opinions are.

I'm also hoping to get some idea of how many developers might want to use
this. I've already done almost all the work, so it will be released even if
nobody wants to use it. It freaks me out a little to open up my server to an
unknown amount of use, but I am well setup to increase server capacity
quickly if needed, and I don't think the cos

Re: [android-developers] Exception Logging

2010-09-18 Thread Sean Chitwood
I believe option A is the best.

One thing you might consider as a premium option for developers is reporting
showing which crashes are more prevalent than others. I know Microsoft does
this internally for application crashes reported via Watson.

--Sean

Calendar: http://www.google.com/calendar/embed?src=darkmane%40gmail.com
Livejournal: http://darkmane.livejournal.com

Every 5 minutes you spend writing code in a new language is more useful than
5 hours reading blog posts about how great the language is.




On Sat, Sep 18, 2010 at 10:34 AM, Prakash Iyer  wrote:

> I have thought along similar lines. I think it should just be option a.
> Don't confuse the user with options. In fact don't even allow user to reply
> back directly.
>
> On Sep 18, 2010 1:19 PM, "Brad Gies"  wrote:
>
>  This is a bit long winded (sorry, but I need to explain what I'm doing
> before I can ask the question).
>
> Just wondering if I could get a few (hopefully few hundred) opinions on
> this :
>
> I developed an Exception Handler for my first Android app (released the
> first month the market opened), which logs all uncaught exceptions to my
> server, and since then I have gradually refined it and improved. I'm now
> using it in my 4th public Android app and a few private apps, and I find it
> extremely helpful to find bugs that don't happen to me when I'm testing.
>
> One thing I added that is proving to be extremely useful is an AlertDialog
> when the exception occurs asking the user if it is OK to contact him/her if
> I need more information to be able to fix the problem, and a box for them to
> enter their email address if they agree. I don't have good numbers for you
> on the acceptance rate because most of my public apps already have the users
> email address and for the private apps the company enforces their compliance
> (or supplies the emails for me to use). BUT... it looks like about 20% of
> users do enter their email address if asked, and that is more than enough to
> be very useful.
>
> I think I can increase the percentage of users that do supply their emails
> addresses, and that is what my question is about :).  (I will ask it soon)
>
> First, It has occurred to me that my Exception Logger might be even more
> successful for me if other developers were also using it because users might
> have seen it before and trust it when they first see it in my apps. That
> obviously would only happen if quite a few developers were using it.
>
> Anyway... sorry it's already getting long, and I AM trying to keep it from
> becoming a book. I have repackaged my Exception Logger and will release it
> in the next couple of days for other developers to use (the price is the
> good one - FREE). I will host the thing on my server (FYI it's a Cloud based
> server so we can increase capacity if needed) and any developers using it
> will be able to log in and view the exceptions their app has generated, and
> sort by time/date, user, and other fields.
>
> NOW.. the question: I think the Exception Logger would be more successful
> getting the users to agree to be contacted IF their email addresses were
> kept confidential. Actually, I don't think there is much doubt that would be
> the case. BUT, there is a tradeoff. Obviously, most developers would prefer
> to see the email addresses so they can manage the contacts a bit more
> effectively without using my website to do it, BUT if the email addresses
> are not confidential, fewer users will give them.
>
> So here are what I think are the options:
>
> a)keep the email addresses confidential, but developers can send the
> user an email using my website, include both a reply address which goes to
> my website and then forwards the email to the developer, and also the
> developers email address so the user could respond directly to the developer
> if they choose. I'm sure this would have by far the highest success rate for
> getting contact info  but means devs have to use my website to send the
> first email at least.
>
> b)give the user a choice of keeping the email address confidential or
> just giving it to the developer. This should also have a fairly high
> acceptance rate by the user, but complicates the process for them because
> they would actually have to read the instructions to figure out how it
> works, and quite possibly a few users would think they asked for their email
> addresses to be confidential, when they actually checked the other option,
> and would be upset if they found out later. It's also a bit more work for
> me, for maybe very little benefit.
>
> c)Don't bother keeping the email addresses confidential. All my own
> apps work this way, and it is useful, but I'm sure either of the other two
> options would have a better success rate of obtaining the email addresses,
> and therefore would be better for most devs to get information about
> problems in their apps.
>
> I don't try the a) or b) options for myself because obviously I could see
> the email

Re: [android-developers] Exception Logging

2010-09-18 Thread Brad Gies


If enough other devs do use it, I would put some effort into producing 
reports to make it more useful, but one option that I will do 
immediately is to put a button on the form listing your last ?? 
exceptions to download it in a comma delimited format so you can import 
it into a spreadsheet and do anything you want with it.


The only paid option I am even considering is putting an optional Pay 
Pal donate button on the web page the devs use to view the logged 
exceptions. I'd be happy if that even covered the additional server 
expenses.


I should also mention that devs will (soon) have the choice to send the 
exceptions to their own server if they prefer (the option is already in 
the code), but they will have to agree to some very specific provisions 
not to spam users before using it. When I have time to figure out the 
licensing, and set it up, I will put the code up on one of the open 
source sites so that other people can improve it.


Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 18/09/2010 10:53 AM, Sean Chitwood wrote:

I believe option A is the best.

One thing you might consider as a premium option for developers is 
reporting showing which crashes are more prevalent than others. I know 
Microsoft does this internally for application crashes reported via 
Watson.


--Sean

Calendar: http://www.google.com/calendar/embed?src=darkmane%40gmail.com
Livejournal: http://darkmane.livejournal.com

Every 5 minutes you spend writing code in a new language is more 
useful than 5 hours reading blog posts about how great the language is.





On Sat, Sep 18, 2010 at 10:34 AM, Prakash Iyer > wrote:


I have thought along similar lines. I think it should just be
option a. Don't confuse the user with options. In fact don't even
allow user to reply back directly.


On Sep 18, 2010 1:19 PM, "Brad Gies" mailto:rbg...@gmail.com>> wrote:

 This is a bit long winded (sorry, but I need to explain what I'm
doing before I can ask the question).

Just wondering if I could get a few (hopefully few hundred)
opinions on this :

I developed an Exception Handler for my first Android app
(released the first month the market opened), which logs all
uncaught exceptions to my server, and since then I have gradually
refined it and improved. I'm now using it in my 4th public
Android app and a few private apps, and I find it extremely
helpful to find bugs that don't happen to me when I'm testing.

One thing I added that is proving to be extremely useful is an
AlertDialog when the exception occurs asking the user if it is OK
to contact him/her if I need more information to be able to fix
the problem, and a box for them to enter their email address if
they agree. I don't have good numbers for you on the acceptance
rate because most of my public apps already have the users email
address and for the private apps the company enforces their
compliance (or supplies the emails for me to use). BUT... it
looks like about 20% of users do enter their email address if
asked, and that is more than enough to be very useful.

I think I can increase the percentage of users that do supply
their emails addresses, and that is what my question is about :).
 (I will ask it soon)

First, It has occurred to me that my Exception Logger might be
even more successful for me if other developers were also using
it because users might have seen it before and trust it when they
first see it in my apps. That obviously would only happen if
quite a few developers were using it.

Anyway... sorry it's already getting long, and I AM trying to
keep it from becoming a book. I have repackaged my Exception
Logger and will release it in the next couple of days for other
developers to use (the price is the good one - FREE). I will host
the thing on my server (FYI it's a Cloud based server so we can
increase capacity if needed) and any developers using it will be
able to log in and view the exceptions their app has generated,
and sort by time/date, user, and other fields.

NOW.. the question: I think the Exception Logger would be more
successful getting the users to agree to be contacted IF their
email addresses were kept confidential. Actually, I don't think
there is much doubt that would be the case. BUT, there is a
tradeoff. Obviously, most developers would prefer to see the
email addresses so they can manage the contacts a bit more

Re: [android-developers] Exception Logging

2010-09-20 Thread Brad Gies


Ok... I said I would have this ready by the end of the weekend, and it 
might still be the weekend somewhere :). Sleep got in the way of 
finishing it last night.


I have just packaged the API and uploaded it to my server. You can 
either download just the documentation or the entire .zip file (which 
includes the documentation).


Zip file here : http://bgies.com/media/exceptionlogger/exceptionlogger.zip
Doc file here : 
http://bgies.com/media/exceptionlogger/bgies_Exception_Logger_Documentation.pdf


Yeah... I know... I use long names :).

I think the package is ready to use as is, BUT don't take any chances 
with your project. BACK IT UP BEFORE INSTALLING THIS JUST IN CASE. I 
still have some work to do on the website so you can see you exceptions 
but it will be done within the next day or two. You can use it 
immediately by using this key : "DUMMYTESTKEY" for the developer key. 
When you use this key, the server doesn't log the exception, it simply 
echoes the parameters you sent, and if you are debugging you should see 
the returned values in Logcat.


To get the values logged, you need either a Test Developer Key (this 
will be limited to a couple of hundred log entries per day per key. The 
actual value will be floating target for now), or a Prod Developer Key 
(unlimited logging). To obtain those, you need to register on my website 
and wait for me to get around to creating one for you. For this first 
release, I will be a little cautious about giving out too many dev keys, 
so please have a little patience. I just want to be sure the server can 
easily handle the volume, and I want to make sure I didn't create any 
problems with the Exception Logger when I packaged it (my testing seems 
to indicate it is good, but I want to be sure).


PLEASE don't use this in any production apps for now. Consider this 
release a public BETA, just for debugging.


I've also created a forum, so if you could report any problems or 
criticisms there I would appreciate it:


http://bgies.com/index.php/forums/9-android-exception-logger.html

And please do give me some feedback, even it's only "I wouldn't use that 
if my life depended on it because ???".




Sincerely,

Brad Gies
---
Bistro Bot - Bistro Blurb
http://bgies.com
http://bistroblurb.com
http://ihottonight.com
http://forcethetruth.com
---

Everything in moderation, including abstinence

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead



--
You received this message because you are subscribed to the Google
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] Exception Browser not working

2010-03-09 Thread temp
Hi,

I have enabled exception browser from the development tools, but still
none of the exceptions are getting logged and displayed in the
exception browser. Also the LogCat displays error while storing the
exceptions in the data file.

Let me know if there are any other settings that needs to be
specified.

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] Exception: Finalizing cursor android.database.sqlite.SQLiteCursor

2009-05-06 Thread Meryl Silverburgh

I am seeing the exception in 'adb logcat'.  But I don't know if it is
caused by my application or android platform.
Can you please give me any idea how to troubleshoot this exception?

Thank you.

I/dalvikvm(  713): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm(  713): Ljava/lang/IllegalStateException;: Finalizing
cursor android.database.sqlite.sqlitecur...@435ca1c0 on contacts that
has not been deactivated or closed
I/dalvikvm(  713):  at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm(  713):  at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm(  713): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm(  713): Ljava/lang/IllegalStateException;: Finalizing
cursor android.database.sqlite.sqlitecur...@435c99b0 on contacts that
has not been deactivated or closed
I/dalvikvm(  713):  at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm(  713):  at dalvik.system.NativeStart.run(Native Method)

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

2012-12-12 Thread s_ali
Hi!

I am trying to make a client server scenario in android. In client project, 
emulator is acting like a client, and its working fine. But when I run the 
server code (using emulator), it gives an exception. The server project 
gives the correct output when I run it as a simple java project. 
The exception occurs on the execution of this line,
socket = serverSocket.accept();

Please tell me what to do to get rid of the exception.
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] EXCEPTION in SensorManager.java:521

2012-08-22 Thread mFor
OS : android 4.0.4

Log :

08-19 10:25:54.153   529   612 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM 
PROCESS: android.hardware.SensorManager$SensorThread
08-19 10:25:54.153   529   612 E AndroidRuntime: java.lang.ClassCastException: 
java.lang.String cannot be cast to 
android.hardware.SensorManager$ListenerDelegate
08-19 10:25:54.153   529   612 E AndroidRuntime:at 
android.hardware.SensorManager$SensorThread$SensorThreadRunnable.run(SensorManager.java:521)
08-19 10:25:54.153   529   612 E AndroidRuntime:at 
java.lang.Thread.run(Thread.java:856)
08-19 10:25:54.163   529   612 F libc: Fatal signal 11 (SIGSEGV) at 
0x005300a2 (code=1)
08-19 10:25:54.563   203   203 I DEBUG   : *** *** *** *** *** *** *** *** *** 
*** *** *** *** *** *** ***
08-19 10:25:54.563   203   203 I DEBUG   : Build fingerprint: ''
08-19 10:25:54.563   203   203 I DEBUG   : pid: 529, tid: 612  >>> 
system_server <<<
08-19 10:25:54.563   203   203 I DEBUG   : signal 11 (SIGSEGV), code 1 
(SEGV_MAPERR), fault addr 005300a2
08-19 10:25:54.563   203   203 I DEBUG   :  r0 0154b040  r1 000b  r2 
0053002e  r3 0001
08-19 10:25:54.563   203   203 I DEBUG   :  r4 57722460  r5 5ced5de8  r6 
01620ff0  r7 10f8
08-19 10:25:54.563   203   203 I DEBUG   :  r8 4084e2c0  r9 41b4e120  10 
5ced5dd4  fp 001b
08-19 10:25:54.563   203   203 I DEBUG   :  ip 00f8  sp 5dd99d70  lr 
  pc 408520dc  cpsr 2010
08-19 10:25:54.563   203   203 I DEBUG   :  d0  0074007300790073  d1  
0073005f006d0065
08-19 10:25:54.563   203   203 I DEBUG   :  d2  0065007600720065  d3  
00720063005f0072
08-19 10:25:54.563   203   203 I DEBUG   :  d4  3ff0  d5  
41e50ff041e59dd0
08-19 10:25:54.563   203   203 I DEBUG   :  d6  408041e50da8  d7  
3eab3f80
08-19 10:25:54.563   203   203 I DEBUG   :  d8    d9  

08-19 10:25:54.563   203   203 I DEBUG   :  d10   d11 

08-19 10:25:54.563   203   203 I DEBUG   :  d12   d13 

08-19 10:25:54.563   203   203 I DEBUG   :  d14   d15 

08-19 10:25:54.563   203   203 I DEBUG   :  d16 006f007200720045  d17 
0075006400200072
08-19 10:25:54.563   203   203 I DEBUG   :  d18 56e87a6856e87a30  d19 
56e87ad856e87aa0
08-19 10:25:54.563   203   203 I DEBUG   :  d20 56e87b4856e87b10  d21 
56e87bb856e87b80
08-19 10:25:54.563   203   203 I DEBUG   :  d22 56e87c2856e87bf0  d23 
56e87c9856e87c60
08-19 10:25:54.563   203   203 I DEBUG   :  d24   d25 

08-19 10:25:54.563   203   203 I DEBUG   :  d26   d27 

08-19 10:25:54.563   203   203 I DEBUG   :  d28 0100010001000100  d29 
0100010001000100
08-19 10:25:54.563   203   203 I DEBUG   :  d30   d31 

08-19 10:25:54.563   203   203 I DEBUG   :  scr 8012



java.lang.ClassCastException: java.lang.String cannot be cast to 
android.hardware.SensorManager$ListenerDelegate
at 
android.hardware.SensorManager$SensorThread$SensorThreadRunnable.run(SensorManager.java:521)
at java.lang.Thread.run(Thread.java:856)

--
Code:SensorManager.java

static final ArrayList sListeners =
new ArrayList();


for (int i=0 ; i here   ListenerDelegate listener = sListeners.get(i);
if (listener.hasSensor(sensorObject)) {
// this is asynchronous (okay to call
// with sListeners lock held).
listener.onSensorChangedLocked(sensorObject,
values, timestamp, accuracy);
}
}


We do not modify SensorManager.java ..
So how's it possible to 'sListeners.get(i)' returns String type?

There is no way to "ArrayList " has String type.. But it 
returns String...
WT...




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

2012-05-05 Thread Jason Teagle

E/ViewRootImpl(10414): IllegalArgumentException locking surface


I notice that it says 'illegal argument' - can you be absolutely sure that 
at the point where it fails, the Rect you are passing for the dirty area is 
a valid rect? Can you bounds check it against the extents of the surface as 
a sanity check?


Quite why it should fail after a while I don't know, but it might be a place 
to start looking...



--
You received this message because you are subscribed to the Google
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] Exception in Ant console

2008-12-10 Thread tharun

Hi,

When I tried to build the build.xml on Ant, I'm getting the following
error

D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant
Buildfile: build.xml

bin-dir:

dirs:

resource-src:
 [echo] Generating R.java...

BUILD FAILED
D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin
\build.xml:65:
Execute failed: java.io.IOException: CreateProcess: ..\android_sdk
\tools\aapt.ex
e compile -m -J src -M AndroidManifest.xml -S res -I ..\android_sdk/
android.jar
error=2

Total time: 0 seconds

I've set the Environment variable properly.

Regards,
tharun
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception in eclipse console

2008-11-12 Thread [EMAIL PROTECTED]

Hi,

I am running android HelloAndriod example under eclipse 3.4 on ubuntu.

But I see these exceptions:
[2008-11-12 10:56:37 - HelloAndroid] Failed to create debug key:
Cannot run program "keytool": java.io.IOException: error=2, No such
file or directory
[2008-11-12 10:56:37 - HelloAndroid] JAVA_HOME seems undefined,
setting it will help locating keytool automatically
[2008-11-12 10:56:37 - HelloAndroid] You can also manually execute the
following command:
[2008-11-12 10:56:37 - HelloAndroid] keytool -genkey -alias
AndroidDebugKey -keyalg RSA -dname "CN=Android Debug, O=Android, C=US"
-validity 365 -keypass android -keystore /home/yinglcs/.android/
debug.keystore -storepass android

Can you please tell me how to fix my problem?

Thank you.

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



[android-developers] Exception while using SetImageView

2017-09-08 Thread Usha Seetharaman
We are trying to set secondary toolbar view in chrome custom tabs. We are 
setting a dynamic image in remote view using the below method. We are 
getting exception. 

`remoteViews.setImageViewBitmap` and it is throwing following exception. 

We get the same error when we try Remoteviews.setImageViewResource() or 
setImageViewUri().

Any help is appreciated. 

 FATAL EXCEPTION: main

Process: 

android.widget.RemoteViews$ActionException: view: 
android.support.v7.widget.AppCompatImageView can't use method with 
RemoteViews: setImageBitmap(class android.graphics.Bitmap)

at 
android.widget.RemoteViews.getMethod(RemoteViews.java:855)

at android.widget.RemoteViews.-wrap5(RemoteViews.java)

at 
android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:1410)

at 
android.widget.RemoteViews$BitmapReflectionAction.apply(RemoteViews.java:1152)

at 
android.widget.RemoteViews.performApply(RemoteViews.java:3428)

at android.widget.RemoteViews.apply(RemoteViews.java:3165)

at android.widget.RemoteViews.apply(RemoteViews.java:3155)



-- 
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/04bbcd35-a33a-48fa-a9d6-e38dc16d0a9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] exception while creating activity

2010-12-13 Thread Honest
hello,

i am starting new activity from current activity but some how before
starting activity i am getting Null Pointer exception. and
startActivity() from source activity calls sucessfully. I am getting
Null Pointer exception. the following is code.

Intent intent = new Intent(PdfFileSelectActivity.this,
PdfViewerActivity.class)
.putExtra(EXTRA_PDFFILENAME, pdffilename)
.putExtra(EXTRA_USENIO, useNIO);


i checked intenet pdffilename variable and they are not null. and the
following is declaration in manifest file.

 

hope to hear soon.

-- 
You received this message because you are subscribed to the Google
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] [EXCEPTION IN SYSTEM PROCESS]

2010-10-25 Thread GPU
Hi ,

I am facing  the android crash in booting time  .From the log
crash happening from the SyncStorageEngine.java  ->writeAccountInfo
Locked.(when updating account from google apps accounts.db to /data/
sync/accounts.xml) .

  I am not able to find why this  happening only some times.
& in log i m able to see

"W/dalvikvm( 1318): threadid=81: thread exiting with uncaught
exception (group=0x2aac9a08)"  ,

 How to confirm this uncaught exception is throwing becuase of
NullPointerException in the writeAccountinfolocked() or any other
reason.

Is it wrong?
Accounts getting removed  mAuthorities.remove(ident);
android.content.SyncStorageEngine.doDatabaseCleanup(String[]
accounts);

in  writeAccountInfoLocked()
Only based on size (N) the mAuthorities written into xml. (Is it
right?)
(if size is 4 the 3rd mAuthorities removed in doDatabaseCleanup() when
tryinng to access it crash)
 final int N = mAuthorities.size();
for (int i=0; i wifi_connect_to_supplicant
E/WifiHW  ( 1318): wifi=> wpa_supplicant I/F /data/system/
wpa_supplicant/wlan0 is ready~~
I/gmail-ls( 1447): calculateUnknownSyncRationalesAndPurgeInBackground:
queueing
I/gmail-ls( 1447): calculateUnknownSyncRationalesAndPurgeInBackground:
running
[   47.119904] [msm-audio:audio_out.c:audio_disable]
[   47.120369] [msm-audio:audio_out.c:audio_dsp_event] CFG_MSG DISABLE
[   47.125496] [adsp:adsp.c:msm_adsp_disable] disable 'AUDPPTASK'
[   47.131488] [msm-audio:audpp.c:audpp_dsp_event] DISABLE
[   47.137578] [adsp:adsp.c:msm_adsp_disable_locked] disable interrupt
[   47.142949] [adsp:adsp.c:msm_adsp_put] closing module AUDPPTASK
[   47.148986] [msm-audio:audmgr.c:audmgr_disable] session 0x8046f658
[   47.155668] [msm-audio:audmgr.c:audmgr_rpc_thread] rpc_reply status
0
[   47.165866] [msm-audio:audmgr.c:process_audmgr_callback] DISABLED
V/WifiStateTracker( 1318): run DHCP thread~
I/wpa_supplicant( 1524): CTRL-EVENT-STATE-CHANGE id=-1 state=2
V/WifiMonitor( 1318): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 1318): Connection to supplicant established,
state=DISCONNECTED
[   47.596239] Unkown PRIVATE command , ignored
[   47.596783] Unkown PRIVATE command , ignored
[   47.599503] Unkown PRIVATE command , ignored
[   47.603811] Unkown PRIVATE command , ignored
[   47.608433] Unkown PRIVATE command , ignored
[   47.612371] Unkown PRIVATE command , ignored
[   47.616511] Unkown PRIVATE command , ignored
[   47.620953] Unkown PRIVATE command , ignored
[   47.625908] Unkown PRIVATE command , ignored
V/WifiStateTracker( 1318): Changing supplicant state: DISCONNECTED ==>
SCANNING
D/MountListener( 1318): handleEvent volume_unmounted:/sdcard
D/MountListener( 1318): handleEvent ums_disabled
D/MountListener( 1318): handleEvent ums_disconnected
D/StatusBarPolicy( 1318): zippykang::false
E/vold( 1212): Ext Volume name =
D/StatusBarPolicy( 1318): zippykang-2::
E/vold( 1212): Volume_name=
D/MountListener( 1318): handleEvent volume_checking:/sdcard
W/logwrapper( 1532): Unable to background process (No such file or
directory)
D/GpsLocationProvider( 1318): state: DISCONNECTED apnName: null
reason: radioTurnedOff
D/GpsLocationProvider( 1318): state: DISCONNECTED apnName: null
reason: gprsDetached
I/wpa_supplicant( 1524): CTRL-EVENT-SCAN-RESULTS  Ready
V/WifiStateTracker( 1318):
handleMessage:EVENT_SCAN_RESULTS_AVAILABLE:start
V/WifiStateTracker( 1318):
handleMessage:EVENT_SCAN_RESULTS_AVAILABLE:end
V/WifiStateTracker( 1318): setNotificationVisible : start
D/StatusBarPolicy( 1318): zippykang::false
D/StatusBarPolicy( 1318): zippykang-2::
I/StatusBarPolicy( 1318): updateTTY: enabled: false
I/StatusBarPolicy( 1318): updateTTY: set TTY off
D/MountListener( 1318): handleEvent volume_mounted:/sdcard
E/AudioMIO( 1217): ATS :: ClockStateUpdated in
E/AudioMIO( 1217): A/V clock stopped
E/AudioMIO( 1217): ATS :: ClockStateUpdated out
E/[AudioService]( 1318):
[sendVolumeUpdate]getStreamVolume(stream[   48.318491] init: sys_prop:
permission denied uid:1000  name:dtun.hcid_active
[   48.323869] init: sys_prop: permission denied uid:1000
name:dtun.obexd_active
Type) : 9
D/StatusBarPolicy( 1318): zippykang::false
[   48.337053] init: sys_prop: permission denied uid:1000
name:dtun.srv_active

D/StatusBarPolicy( 1318): zippykang-2::
I/BluetoothDeviceService( 1318): Receive message BT_BOOTUP
I/BluetoothDeviceService( 1318): enable...
D/BluetoothDeviceService( 1318): Bluetooth state 0 -> 1
D/WifiService( 1318): BroadcastReceiver :
android.intent.action.BATTERY_CHANGED
D/WifiService( 1318): ACTION_BATTERY_CHANGED pluggedType: 1
D/WifiService( 1318): ACTION_BATTERY_CHANGED : do not update WifiState
D/VolumePanel( 1318): onVolumeChanged(streamType: 3, flags: 0)
I/BluetoothA2dpService( 1318): Receive intent Intent
{ act=android.bluetooth.intent.action.BLUETOOTH_STATE_CHANGED
flg=0x2000 (has extras) }
I/BrcmBtServiceLoader( 1318): ***Received Bluetooth
UNKNOWN_STATE_CHANGE Event
V/BTL_CFG ( 1537): btl_cfg_get_btld_status : service.brcm.b

Re: [android-developers] Exception in socket programming

2012-12-12 Thread Kristopher Micinski
1.  You probably shouldn't be writing a server as an Android app.
That's just a bad idea.  It's going to kill the battery unless you
have really good motivation for doing so...
2.  You forgot to include the internet permission.

Kris

On Wed, Dec 12, 2012 at 9:28 PM, s_ali  wrote:
> Hi!
>
> I am trying to make a client server scenario in android. In client project,
> emulator is acting like a client, and its working fine. But when I run the
> server code (using emulator), it gives an exception. The server project
> gives the correct output when I run it as a simple java project.
> The exception occurs on the execution of this line,
> socket = serverSocket.accept();
>
> Please tell me what to do to get rid of the exception.
> 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

-- 
You received this message because you are subscribed to the Google
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] Exception in socket programming

2012-12-12 Thread Sara Ali
Actually I want two android phones to communicate with each other. For that
purpose, one phone would need to behave as a server.
Yeah, I now have added the internet permission, it does not crash now but I
am not getting any output.
I don't know how to run two android projects simultaneously, means, to run
two emulators (server and client) at the same time. Please tell me how can
do it.

On Thu, Dec 13, 2012 at 8:37 AM, Kristopher Micinski  wrote:

> 1.  You probably shouldn't be writing a server as an Android app.
> That's just a bad idea.  It's going to kill the battery unless you
> have really good motivation for doing so...
> 2.  You forgot to include the internet permission.
>
> Kris
>
> On Wed, Dec 12, 2012 at 9:28 PM, s_ali  wrote:
> > Hi!
> >
> > I am trying to make a client server scenario in android. In client
> project,
> > emulator is acting like a client, and its working fine. But when I run
> the
> > server code (using emulator), it gives an exception. The server project
> > gives the correct output when I run it as a simple java project.
> > The exception occurs on the execution of this line,
> > socket = serverSocket.accept();
> >
> > Please tell me what to do to get rid of the exception.
> > 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
>
> --
> You received this message because you are subscribed to the Google
> 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

Re: [android-developers] Exception in socket programming

2012-12-12 Thread Kristopher Micinski
FYI two phones communicating is *not* a good use case for a server...

As for your question, you can easily answer that by a quick Google
search "eclipse multiple emulators:"

http://stackoverflow.com/questions/1761246/possible-to-safely-run-multiple-android-emulators-on-the-same-machine-and-commun

Kris

On Wed, Dec 12, 2012 at 11:25 PM, Sara Ali  wrote:
> Actually I want two android phones to communicate with each other. For that
> purpose, one phone would need to behave as a server.
> Yeah, I now have added the internet permission, it does not crash now but I
> am not getting any output.
> I don't know how to run two android projects simultaneously, means, to run
> two emulators (server and client) at the same time. Please tell me how can
> do it.
>
>
> On Thu, Dec 13, 2012 at 8:37 AM, Kristopher Micinski
>  wrote:
>>
>> 1.  You probably shouldn't be writing a server as an Android app.
>> That's just a bad idea.  It's going to kill the battery unless you
>> have really good motivation for doing so...
>> 2.  You forgot to include the internet permission.
>>
>> Kris
>>
>> On Wed, Dec 12, 2012 at 9:28 PM, s_ali  wrote:
>> > Hi!
>> >
>> > I am trying to make a client server scenario in android. In client
>> > project,
>> > emulator is acting like a client, and its working fine. But when I run
>> > the
>> > server code (using emulator), it gives an exception. The server project
>> > gives the correct output when I run it as a simple java project.
>> > The exception occurs on the execution of this line,
>> > socket = serverSocket.accept();
>> >
>> > Please tell me what to do to get rid of the exception.
>> > 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
>>
>> --
>> You received this message because you are subscribed to the Google
>> 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] exception when create new AlertDialog

2013-04-14 Thread Carlos Calvo
Hello,

I have a ProgressDialog running. Execute method ".dismiss" for destroy them.

But when i create a new AlertDialog i take a exception because the 
progessdialog yet still show

*Exception *"Unable to add window -- token null is not for an application"

*The code:*

   if (pd.isShowing()){
pd.dismiss();
}
 MainActivity.this.runOnUiThread(new Runnable() {

public void run() {
  
 AlertDialog.Builder builder = new 
AlertDialog.Builder(getApplication());
builder.setTitle("Lo sentimos por el Fallo")
.setMessage("Resolveremos el fallo lo antes posible")
.setCancelable(false)
.setIcon(R.drawable.ic_exception)
.setPositiveButton("Enviar Fallo",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//enviar por mail traza exception
mDamageReport.submit( new Exception() );
finish();
}
})
.setNegativeButton("Cerrar",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int id) {
finish();
}
});

builder.create().show();

}
});

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




[android-developers] Exception while parsing json response....

2014-05-13 Thread Abhilash Baddam
Hi All,

I am trying to parse a json response using gson library. The response
should contain always only one object(site)
 I tried in so many ways but always getting the below exception.
But I am getting the below exception,

 com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected STRING but was BEGIN_OBJECT
at
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)

I have tried something like this,

Gson gson = new
Gson();
SiteDTO dto = new SiteDTO();//contains all setter and getter methods for
site object
//   Type type = new
TypeToken>() {
  // }.getType();
  //obj contains
  JSONObject array =
obj.optJSONObject("site");


 dto=gson.fromJson(array.toString(), SiteDTO.class); //getting exception at
this statement

   /*  JsonParser parser = new
JsonParser();
 JsonObject rootObejct =
parser.parse(obj.toString()).getAsJsonObject();
 JsonElement projectElement =
rootObejct.get("site");

   dto = gson.fromJson(projectElement,
SiteDTO.class);*/


Json String:

{
"success": true,
"site": {
"id": 15251,
"site_name": "yuwa",
"technology": "GSM",
"market": "ARKANSAS",
"region": "Central",
"address": "HIGHLAND STREET",
"city": "GASSAWAY",
"state": "WV",
"zip": 26624,
"latitude": 38.6676,
"longitude": -80.7711,
"continuus_id": "235300",
"attachments": [
{
"attachment_id": 3656,
"attachment_url": "
https://ldoapps.com/eams/web/uploads/sites/15251/4bd0c1fbcd29aa151db2850a52c81c8cbaabca2b/file_input.jpg
"
}
],
"suppliers": [
{
"company_id": 429
}
],
   "aspsuppliers": [],
"is_archived": false,
"site_supplier_section": true,
"sp_activity_section": true,
"sp_activity_quote_section": false,
"sov_section": false,
"wa_section": false,
"bom_section": false,
"cop_section": true,
"site_attachment_section": true,
"punch_list_section": false,
"site_supplier_checklist_section": false,
"cop_acknowledgement": true,
"customer": {}
}
}

Can anyone help me where I am doing mistake.

-- 
You received this message because you are subscribed to the Google
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] Exception when starting activity: android.os.TransactionTooLargeException

2014-08-09 Thread luca
Hi,

i launched my app and it crashed with the following exception stack trace:


E/JavaBinder(314): !!! FAILED BINDER TRANSACTION !!!
W/ActivityManager(314): Exception when starting activity SplashScreen
W/ActivityManager(314): android.os.TransactionTooLargeException
W/ActivityManager(314): at android.os.BinderProxy.transact(Native Method)
W/ActivityManager(314): at 
android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:660)
W/ActivityManager(314): at 
com.android.server.am.ActivityStack.realStartActivityLocked(ActivityStack.java:673)
W/ActivityManager(314): at 
com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:782)
W/ActivityManager(314): at 
com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1694)
W/ActivityManager(314): at 
com.android.server.am.ActivityStack.completePauseLocked(ActivityStack.java:1097)
W/ActivityManager(314): at 
com.android.server.am.ActivityStack.activityPaused(ActivityStack.java:1009)
W/ActivityManager(314): at 
com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:4162)
W/ActivityManager(314): at 
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)
W/ActivityManager(314): at 
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1610)
W/ActivityManager(314): at android.os.Binder.execTransact(Binder.java:338)
W/ActivityManager(314): at dalvik.system.NativeStart.run(Native Method)
W/ActivityManager(314): Force removing ActivityRecord{41c93388 
SplashScreen}: app died, no saved state
D/dalvikvm(23535): Late-enabling CheckJNI
I/MusicBrowser(10651): [MediaPlaybackService.java:1266:onReceive()] oo 
{intent=Intent { act=android.intent.action.CONFIGURATION_CHANGED 
flg=0x6010 }}
I/ActivityManager(314): Start proc [...] for activity SplashScreen: 
pid=23535 uid=10107 gids={1015, 3003}

The app is composed of a number of activities, some from third-party sw 
libs (ex: AdActivity of google, facebook login activity an so on). The most 
important ones are
1. splash screen activity (launcher)
2. main app activity

The SplashScreen activity has this intent:


  
  


while the main app activity has this:










because it can receive images.

The SplashScreen view is made of a relative layout with an image as a 
drawable and three textview that each show some text (version, app name and 
so on).
The drawable is a .png file of 960x640 (xhdpi).

I launched the app touching the icon (not by sharing an image with it: in 
that case only the main app would be started and not the splash screen 
activity) and it crashed. 
I have absolutely no idea of what happened, but it seems to me that the 
splash screen activity did not start at all.
Any idea?

-- 
You received this message because you are subscribed to the Google
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] Exception in AES-256 Algoritham.

2014-10-20 Thread sree android
Hi friends,

i am implementing json data decryption in android using AES-256, ECB mode.
In these server implementation is done in php using Rijndael encryption*
with 24 digit key and 32 digit initial vector,ECB mode.If i implement with
this key and initial vector in client i got Exceptions saying ECB mode
doesn't support IV(initial vector),If i change ECB mode to CBC mode it is
saying "IV length must be 16 bytes o*nly."

Please guide me how can i decrypt data in android using AES-256 algoritham.

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
--- 
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] exception when using mediaplayer.selecttrack(timed_text_track_id)

2015-12-29 Thread Gentian Bajraktari
hi, 

I get  timed_text_track_id using mediaplayer.trackinfo and use it to change 
internal subtitle of a given video stream 
as mediaplayer.selecttrack(timed_text_track_id).

when i use SelectTrack to change internal dvbsub subtitle track in this 
videoview i get an error as follows:

12-27 18:53:50.905: E/MediaPlayer(15688): internal/external state mismatch 
corrected
12-27 18:53:50.915: E/MediaPlayer(15688): error (100, 0)
12-27 18:53:51.385: E/AndroidRuntime(15688): FATAL EXCEPTION: main
12-27 18:53:51.385: E/AndroidRuntime(15688): Process: com.example.gent3, 
PID: 15688
12-27 18:53:51.385: E/AndroidRuntime(15688): java.lang.RuntimeException: 
failure code: -32
12-27 18:53:51.385: E/AndroidRuntime(15688): at 
android.media.MediaPlayer.invoke(MediaPlayer.java:710)
12-27 18:53:51.385: E/AndroidRuntime(15688): at 
android.media.MediaPlayer.selectOrDeselectInbandTrack(MediaPlayer.java:3067)
12-27 18:53:51.385: E/AndroidRuntime(15688): at 
android.media.MediaPlayer.selectOrDeselectTrack(MediaPlayer.java:3056)
12-27 18:53:51.385: E/AndroidRuntime(15688): at 
android.media.MediaPlayer.selectTrack(MediaPlayer.java:3014)
12-27 18:53:51.385: E/AndroidRuntime(15688): at 
com.example.gent3.TV$18.onClick(TV.java:1640)
12-27 18:53:51.385: E/AndroidRuntime(15688): at 
com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)

when i use same code to select an audio track on the same video stream 
there is no error and the audio track is changed. 

-- 
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/72c5294c-e799-40a2-88da-f4218bf8341b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] exception while creating activity

2010-12-14 Thread Narendra Bagade
pass intent object to startactivity() method.

Narendra

On Tue, Dec 14, 2010 at 1:11 PM, Honest  wrote:

> hello,
>
> i am starting new activity from current activity but some how before
> starting activity i am getting Null Pointer exception. and
> startActivity() from source activity calls sucessfully. I am getting
> Null Pointer exception. the following is code.
>
> Intent intent = new Intent(PdfFileSelectActivity.this,
> PdfViewerActivity.class)
>.putExtra(EXTRA_PDFFILENAME, pdffilename)
>.putExtra(EXTRA_USENIO, useNIO);
>
>
> i checked intenet pdffilename variable and they are not null. and the
> following is declaration in manifest file.
>
>  
>
> hope to hear soon.
>
> --
> You received this message because you are subscribed to the Google
> 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




-- 
Regards,
Narendra
.

-- 
You received this message because you are subscribed to the Google
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] exception while creating activity

2010-12-14 Thread Narendra Bagade
ohhh ,u have to create object of bundle first,then put your values in bundle
object


On Tue, Dec 14, 2010 at 3:15 PM, Narendra Bagade
wrote:

> pass intent object to startactivity() method.
>
> Narendra
>
>
> On Tue, Dec 14, 2010 at 1:11 PM, Honest  wrote:
>
>> hello,
>>
>> i am starting new activity from current activity but some how before
>> starting activity i am getting Null Pointer exception. and
>> startActivity() from source activity calls sucessfully. I am getting
>> Null Pointer exception. the following is code.
>>
>> Intent intent = new Intent(PdfFileSelectActivity.this,
>> PdfViewerActivity.class)
>>.putExtra(EXTRA_PDFFILENAME, pdffilename)
>>.putExtra(EXTRA_USENIO, useNIO);
>>
>>
>> i checked intenet pdffilename variable and they are not null. and the
>> following is declaration in manifest file.
>>
>>  
>>
>> hope to hear soon.
>>
>> --
>> You received this message because you are subscribed to the Google
>> 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
>
>
>
>
> --
> Regards,
> Narendra
> .
>



-- 
Regards,
Narendra
.

-- 
You received this message because you are subscribed to the Google
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] Exception while connecting to unternet

2010-09-21 Thread kampy
i am a newbie to android.when i was connecting throuh
urlConnection,its raising socket exception as permisssion denied,.
i have added uses-persmisssion for internet.
but still its thowing an exception.plz resolve this.

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


[android-developers] Exception when loading url with HttpURLConnection

2009-07-14 Thread Alex

String urlString = "http://bks7.books.google.com/books?
id=EBY4MAAJ&printsec=frontcover&img=1&zoom=5&sig=ACfU3U2NGdob1xFo6l1Y07qriP1eOHArDw&source=gbs_gdata";
URL url = new URL(urlString);
Bitmap bm = BitmapFactory.decodeStream(url.openStream());

Then, an exception pops up.
***
07-14 16:01:34.218: WARN/System.err(1219): java.io.IOException:
Received authentication challenge is null
07-14 16:01:34.228: WARN/System.err(1219): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequestInternal
(HttpURLConnection.java:1592)
07-14 16:01:34.238: WARN/System.err(1219): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.doRequest
(HttpURLConnection.java:1547)
07-14 16:01:34.258: WARN/System.err(1219): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:1055)
07-14 16:01:34.268: WARN/System.err(1219): at
java.net.URL.openStream(URL.java:674)
***

Actually, the url points to an image.
Seems it needs some kind of authentication to connect to the url.
But, I can open it with Firefox. Even in android, I can load it with
WebView.
Why can't I load the image with HttpURLConnection?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception error while building on Ant

2008-12-10 Thread tharun

Hi,

When try to build on Ant, I'm facing this problem,


D:\Tharun\DM_LJ\Android\apache-ant-1.7.1-bin\apache-ant-1.7.1\bin>ant -
buildfile C:\myAndroid\build.xml
Buildfile: C:\myAndroid\build.xml


dirs:
 [echo] Creating output directories if needed...


resource-src:
 [echo] Generating R.java / Manifest.java from the resources...


aidl:
 [echo] Compiling aidl files into Java classes...


compile:
[javac] Compiling 2 source files to C:\myAndroid\bin\classes


dex:
 [echo] Converting compiled files and external libraries into
bin/
classes.de
x...


package-res:


package-res-no-assets:
 [echo] Packaging resources...


debug:
 [echo] Packaging bin/HelloAndroid-debug.apk, and signing it with
a debug ke
y...
 [exec] java.lang.NoClassDefFoundError: com/android/prefs/
AndroidLocation$An
droidLocationException
 [exec] Exception in thread "main"


BUILD FAILED


Exception error is occurring.


How to resolve this?


Regards,
Tharun

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception: WakeLock finalized while still held

2009-01-21 Thread Adam K

Hi all,

I'm seeing the following error intermittently when testing my app:
01-20 23:56:52.794: DEBUG/dalvikvm(25525): GC freed 1616 objects /
94232 bytes in 87ms
01-20 23:56:52.874: ERROR/AndroidRuntime(25525): java.lang.Exception:
WakeLock finalized while still held: App Name
01-20 23:56:52.874: ERROR/AndroidRuntime(25525): at
android.os.PowerManager$WakeLock.finalize(PowerManager.java:295)
01-20 23:56:52.874: ERROR/AndroidRuntime(25525): at
dalvik.system.NativeStart.run(Native Method)

It looks like GC is cleaning my context while it is holding the
WakeLock, I'm using a static class to manage the wakelocks, how can I
ensure the context that holds the wakelock does not get GC'd?

Adam

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception while Inserting a new contact

2008-10-21 Thread Abraham

HI All,

I would like insert contacts using my application. I'm able to create
a contact if name is mentioned. When I attempt to insert the number
this user i get execptions.

Could some one pls let me know where I'm going wrong.


Code snippet:
 public int insertContactAsMyFave(Contacts contact)
{
//DISCLAIMER:-THIS CODE HAS NOT YET BEEN TESTED
ContentValues content = new ContentValues();
content.put(People.NAME, contact.getContactName());
//content.put(People.NUMBER, contact.getContactPhoneNumber());
content.put(People.CUSTOM_RINGTONE,
contact.getContactRingTone());
content.put(People.STARRED,true);

Uri mContacts = People.CONTENT_URI;
Uri newContactUri =
contactsCtx.getContentResolver().insert(mContacts, content);

mContacts = Phones.CONTENT_URI;
content.clear();

   //I GET EXCEPTION WHEN I EXECUTE THE FOLOWING LINES
OF CODE
content.put(Phones.PERSON_ID,
ContentUris.parseId(newContactUri));
content.put(Phones.NUMBER, contact.getContactPhoneNumber());
// insert the new phone number in the database
contactsCtx.getContentResolver().insert(Phones.CONTENT_URI,
content);
return (int)ContentUris.parseId(newContactUri);
}

Execption received:
10-21 15:51:46.729: ERROR/DatabaseUtils(93): Error inserting
isprimary=1 number_key= number= person=12 into
table  phones
10-21 15:51:46.729: ERROR/DatabaseUtils(93):
android.database.sqlite.SQLiteConstraintException: error code 19
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:
69)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.DatabaseUtils
$InsertHelper.insertInternal(DatabaseUtils.java:761)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.database.DatabaseUtils$InsertHelper.insert(DatabaseUtils.java:
882)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
com.android.providers.contacts.ContactsProvider.insertAndFixupPrimary(ContactsProvider.java:
1869)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
com.android.providers.contacts.ContactsProvider.insertInternal(ContactsProvider.java:
1575)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.content.SyncableContentProvider.insert(SyncableContentProvider.java:
312)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
139)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
124)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
android.os.Binder.execTransact(Binder.java:276)
10-21 15:51:46.729: ERROR/DatabaseUtils(93): at
dalvik.system.NativeStart.run(Native Method)
10-21 15:51:46.768: ERROR/JavaBinder(93): *** Uncaught remote
exception!  (Exceptions are not yet supported across processes.)
10-21 15:51:46.768: ERROR/JavaBinder(93): java.lang.RuntimeException:
error while inserting into phones, isprimary=1 number_key=
number= person=12
10-21 15:51:46.768: ERROR/JavaBinder(93): at
com.android.providers.contacts.ContactsProvider.insertAndFixupPrimary(ContactsProvider.java:
1872)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
com.android.providers.contacts.ContactsProvider.insertInternal(ContactsProvider.java:
1575)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.content.SyncableContentProvider.insert(SyncableContentProvider.java:
312)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
139)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
124)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
android.os.Binder.execTransact(Binder.java:276)
10-21 15:51:46.768: ERROR/JavaBinder(93): at
dalvik.system.NativeStart.run(Native Method)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception bitmap size exceeds VM budget

2009-02-12 Thread Graeme

Hi

I am trying to iterate through all the photo images (produced by ADP1
camera), held on external SD storage in an ADP1. I want to extract the
binary data for each image file, determine image size in bytes and
send the image data (possibly after compression) over a network
conection.

My code is generating an exception when I try to generate a Bitmap
based on Photos taken by the ADP1 Camera, stored physically on
External SD Card Storage. It looks like the image size is exhausting
VM for my application.

I attempt to extract a Bitmap via
android.provider.MediaStore.Images.Media.getBitmap() static member
function.

My code is (essentially)

// given long id which is the "_id" of an Image held in the
// Images ContentProvider

import android.provider.MediaStore.Images.Media;
import android.content.ContentUris;




String TAG="MyClass";
Uri externalContentUri = Media.EXTERNAL_CONTENT_URI ;
Uri imageUri = ContentUris.withAppendedId(externalContentUri, id);

try {
// Get a ContentResolver
ContentResolver cr = getContentResolver();
// Get a Bitmap
Bitmap bp=Media.getBitmap(cr, imageUri);
}
catch (Throwable t) {
   Log.e(TAG, "Exception " + t.getMessage() );
}

In the DDMS Log I get an Error Message

Exception bitmap size exceeds VM budget.

Is there a way to avoisd this ? Can I simultaneously compress and
extract the image data (say to a JPEG format) ?

thanks
Graeme
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception when starting activity: android.os.TransactionTooLargeException

2014-08-11 Thread Damien Cooke
Are you passing anything via an Intent?  If your Intent's payload is too
big you can get that error.

Damien


On Sun, Aug 10, 2014 at 6:29 AM, luca  wrote:

> Hi,
>
> i launched my app and it crashed with the following exception stack trace:
>
>
> E/JavaBinder(314): !!! FAILED BINDER TRANSACTION !!!
> W/ActivityManager(314): Exception when starting activity SplashScreen
> W/ActivityManager(314): android.os.TransactionTooLargeException
> W/ActivityManager(314): at android.os.BinderProxy.transact(Native Method)
> W/ActivityManager(314): at
> android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:660)
> W/ActivityManager(314): at
> com.android.server.am.ActivityStack.realStartActivityLocked(ActivityStack.java:673)
> W/ActivityManager(314): at
> com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:782)
> W/ActivityManager(314): at
> com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1694)
> W/ActivityManager(314): at
> com.android.server.am.ActivityStack.completePauseLocked(ActivityStack.java:1097)
> W/ActivityManager(314): at
> com.android.server.am.ActivityStack.activityPaused(ActivityStack.java:1009)
> W/ActivityManager(314): at
> com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:4162)
> W/ActivityManager(314): at
> android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)
> W/ActivityManager(314): at
> com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1610)
> W/ActivityManager(314): at android.os.Binder.execTransact(Binder.java:338)
> W/ActivityManager(314): at dalvik.system.NativeStart.run(Native Method)
> W/ActivityManager(314): Force removing ActivityRecord{41c93388
> SplashScreen}: app died, no saved state
> D/dalvikvm(23535): Late-enabling CheckJNI
> I/MusicBrowser(10651): [MediaPlaybackService.java:1266:onReceive()] oo
> {intent=Intent { act=android.intent.action.CONFIGURATION_CHANGED
> flg=0x6010 }}
> I/ActivityManager(314): Start proc [...] for activity SplashScreen:
> pid=23535 uid=10107 gids={1015, 3003}
>
> The app is composed of a number of activities, some from third-party sw
> libs (ex: AdActivity of google, facebook login activity an so on). The most
> important ones are
> 1. splash screen activity (launcher)
> 2. main app activity
>
> The SplashScreen activity has this intent:
>
> 
>   
>   
> 
>
> while the main app activity has this:
>
>
> 
> 
> 
> 
> 
> 
> 
>
> because it can receive images.
>
> The SplashScreen view is made of a relative layout with an image as a
> drawable and three textview that each show some text (version, app name and
> so on).
> The drawable is a .png file of 960x640 (xhdpi).
>
> I launched the app touching the icon (not by sharing an image with it: in
> that case only the main app would be started and not the splash screen
> activity) and it crashed.
> I have absolutely no idea of what happened, but it seems to me that the
> splash screen activity did not start at all.
> Any idea?
>
> --
> You received this message because you are subscribed to the Google
> 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.
>

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


Re: [android-developers] Exception when starting activity: android.os.TransactionTooLargeException

2014-08-12 Thread luca
The Splash Screen activity does not handle any intent. It just waits 1.5 
secs and display an image. After that, the main activity is called 
(via startActivity()).
The main activity does handle intents for incoming images.
However, that exception happened when i launched the app pressing its icon 
on the phone.
In this way, the splash screen activity is launched first.
The screen becomes blank and all i can do is to press the home button.
This exception happens rarely.

-- 
You received this message because you are subscribed to the Google
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] Exception in setDrawingCache in Android 1.5?

2010-04-19 Thread javame_android
Hi,

I am developing an application where I am using setDrawingCache and
then once I get the Bitmap I destroy the cache by using
destroyDrawingCache().

The application has been developed with Android SDK 1.6. When testing
the application in emulator with Android 1.5 the application throws
NullPointerException when try to manipulate the Bitmap returned by
getDrawingCache(). It probably gives error since getDrawingCache
returns null.

The interesting thing in this is that the NullPointerException comes
only after I run the application twice or thrice. It means I am able
to get the Bitmap for two times and then it throws this exception.

The error that I am getting is as below

java.lang.NullPointerException
E/AndroidRuntime( 1036):at
com.babbleville.HomeScreenActivity.resizeBitmap(HomeScreenActivity.java:
394)
E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity.access
$0(HomeScreenActivity.java:392)
E/AndroidRuntime( 1036):at com.babbleville.HomeScreenActivity
$1.handleMessage(HomeScreenActivity.java:327)
E/AndroidRuntime( 1036):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1036):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1036):at
android.app.ActivityThread.main(ActivityThread.java:3948)
E/AndroidRuntime( 1036):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1036):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1036):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
E/AndroidRuntime( 1036):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
E/AndroidRuntime( 1036):at dalvik.system.NativeStart.main(Native
Method)


Can someone please let me know the problem?


Regards
Sunil

-- 
You received this message because you are subscribed to the Google
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] Exception using ScrollView in landscape orientation

2011-03-01 Thread xoggoth
>From various threads I gather that Android should just use layout-land
automatically, I don't add to the java. I have a minimal layout
main.xml in layout-land  but when I use Numeric-key 9 or start the
application while it is already in landscape it stops unexpectedly and
displays a window ActivityThread.performLaunchActivity(ActivityThread
$ActivityRecord, Intent) line: 2496 saying source not found.

The same xml works fine in a Hello Android project that this one is
based on and I can't see any relevant differences in settings or
AndroidManifest.xml between the two projects. ScrollView does seem to
be the problem as it works fine if I remove it.

Grateful for any ideas on this.

main.xml in layout-land:

http://schemas.android.com/apk/res/
android"
android:id="@+id/scrollview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
 


.java
public class InvertsUK extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button help = (Button) findViewById(R.id.helpbutt);
help.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent myIntent = new Intent(view.getContext(),
ViewHelp.class);
startActivityForResult(myIntent, 0);
}
});
...another similar button
}
}

Debug:
DalvikVM[localhost:8619]
Thread [<3> main] (Suspended (exception RuntimeException))

ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
Intent) line: 2496

Logcat:
03-01 16:54:12.215: INFO/WindowManager(52): Setting rotation to 1,
animFlags=0
03-01 16:54:12.235: INFO/ActivityManager(52): Config changed:
{ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2
layout=18}
03-01 16:54:12.365: INFO/UsageStats(52): Unexpected resume of
com.inverts.uk while already resumed in com.inverts.uk
03-01 16:54:17.355: WARN/WindowManager(52): App freeze timeout
expired.
03-01 16:54:17.365: WARN/WindowManager(52): Force clearing freeze:
AppWindowToken{43e20b70 token=HistoryRecord{43cf8088
com.inverts.uk/.InvertsUK}}
03-01 16:54:19.545: DEBUG/dalvikvm(52): GC freed 2894 objects / 156632
bytes in 164ms


-- 
You received this message because you are subscribed to the Google
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] Exception locking surface - lockCanvas() returns a null?

2009-04-03 Thread mcmc

Everytime it hits the "c = mHolder.lockCanvas();" line, it pops up
with that same error mentioned below.

Also, I realize that c returns a null after called lockCanvas(), but
mHolder is still active. Why might this be?


I'm getting the following error as seen from the logcat window:

E/SurfaceComposerClient(  608): eLocked set when entering lock_layer
(), layer=1 (lcblk=0x410480a0), state=0022
E/SurfaceHolder(  608): Exception locking surface
E/SurfaceHolder(  608): java.lang.IllegalArgumentException
E/SurfaceHolder(  608): at
android.view.Surface.lockCanvasNative(Native Method)
E/SurfaceHolder(  608): at android.view.Surface.lockCanvas
(Surface.java:190)
E/SurfaceHolder(  608): at android.view.SurfaceView
$2.internalLockCanvas(SurfaceView.java:549)
E/SurfaceHolder(  608): at android.view.SurfaceView
$2.lockCanvas(SurfaceView.java:528)


This is the basis of my code, which is primarily based on the
lunarview:

@Override
public void run() {
while (mRun) {
Canvas c = null;
try {
mHolder = getHolder();  //make sure holder is updated
c = mHolder.lockCanvas();
synchronized (mHolder) {
if (mMode == STATE_RUNNING && c != null){
doDraw(c);
}
}
} finally {
// do this in a finally so that if an exception is thrown
// during the above, we don't leave the Surface in an
// inconsistent state
if (c != null) {
mHolder.unlockCanvasAndPost(c);
}
}
}
}


Can someone get back to me ASAP, this is urgent.

Thanks a lot,
mcmc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Exception - can anyone make sense of this?

2009-10-14 Thread Neilz

Hi. I'm hoping someone can help identify the cause of an exception I'm
getting. It happens when I use a SimpleCursorAdapter to set up a list
which populates each list row with a title, and an image thumbnail:

String[] from = new String[] { MyDbAdapter.KEY_DESC,
MyDbAdapter.KEY_IMAGE };
int[] to = new int[] { R.id.desc, R.id.myThumb };
ListAdapter adapter = new SimpleCursorAdapter(this, R.layout.my_row,
c, from, to);
setListAdapter(adapter );

The exception pours out into Logcat many, many times, and compounds
for each item I have in the list. So if the list is large, it takes
forever to display. Even having a couple of items is a pain.

Here's the Exception:

10-14 10:31:09.819: WARN/System.err(2645): java.io.IOException: Is a
directory
10-14 10:31:09.849: WARN/System.err(2645): at
org.apache.harmony.luni.platform.OSFileSystem.readImpl(Native Method)
10-14 10:31:09.859: WARN/System.err(2645): at
org.apache.harmony.luni.platform.OSFileSystem.read(OSFileSystem.java:
154)
10-14 10:31:09.859: WARN/System.err(2645): at
java.io.FileInputStream.read(FileInputStream.java:333)
10-14 10:31:09.869: WARN/System.err(2645): at
java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:200)
10-14 10:31:09.880: WARN/System.err(2645): at
java.io.BufferedInputStream.read(BufferedInputStream.java:350)
10-14 10:31:09.880: WARN/System.err(2645): at
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
10-14 10:31:09.880: WARN/System.err(2645): at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:375)
10-14 10:31:09.891: WARN/System.err(2645): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:171)
10-14 10:31:09.898: WARN/System.err(2645): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:196)
10-14 10:31:09.898: WARN/System.err(2645): at
android.graphics.drawable.Drawable.createFromPath(Drawable.java:762)
10-14 10:31:09.920: WARN/System.err(2645): at
android.widget.ImageView.resolveUri(ImageView.java:498)
10-14 10:31:09.920: WARN/System.err(2645): at
android.widget.ImageView.setImageURI(ImageView.java:287)
10-14 10:31:09.929: WARN/System.err(2645): at
android.widget.SimpleCursorAdapter.setViewImage
(SimpleCursorAdapter.java:216)
10-14 10:31:09.929: WARN/System.err(2645): at
android.widget.SimpleCursorAdapter.bindView(SimpleCursorAdapter.java:
162)
10-14 10:31:09.938: WARN/System.err(2645): at
android.widget.CursorAdapter.getView(CursorAdapter.java:186)
10-14 10:31:09.938: WARN/System.err(2645): at
android.widget.AbsListView.obtainView(AbsListView.java:1251)
10-14 10:31:09.938: WARN/System.err(2645): at
android.widget.ListView.makeAndAddView(ListView.java:1623)
10-14 10:31:09.949: WARN/System.err(2645): at
android.widget.ListView.fillDown(ListView.java:607)
10-14 10:31:09.949: WARN/System.err(2645): at
android.widget.ListView.fillFromTop(ListView.java:664)
10-14 10:31:09.960: WARN/System.err(2645): at
android.widget.ListView.layoutChildren(ListView.java:1481)
10-14 10:31:09.960: WARN/System.err(2645): at
android.widget.AbsListView.onLayout(AbsListView.java:1113)
10-14 10:31:09.970: WARN/System.err(2645): at
android.view.View.layout(View.java:6133)
10-14 10:31:09.979: WARN/System.err(2645): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
10-14 10:31:09.979: WARN/System.err(2645): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
10-14 10:31:09.989: WARN/System.err(2645): at
android.widget.LinearLayout.onLayout(LinearLayout.java:918)
10-14 10:31:09.989: WARN/System.err(2645): at
android.view.View.layout(View.java:6133)
10-14 10:31:09.999: WARN/System.err(2645): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
10-14 10:31:09.999: WARN/System.err(2645): at
android.view.View.layout(View.java:6133)
10-14 10:31:10.009: WARN/System.err(2645): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
10-14 10:31:10.009: WARN/System.err(2645): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
10-14 10:31:10.009: WARN/System.err(2645): at
android.widget.LinearLayout.onLayout(LinearLayout.java:918)
10-14 10:31:10.019: WARN/System.err(2645): at
android.view.View.layout(View.java:6133)
10-14 10:31:10.029: WARN/System.err(2645): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
10-14 10:31:10.029: WARN/System.err(2645): at
android.view.View.layout(View.java:6133)
10-14 10:31:10.038: WARN/System.err(2645): at
android.view.ViewRoot.performTraversals(ViewRoot.java:929)
10-14 10:31:10.038: WARN/System.err(2645): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
10-14 10:31:10.049: WARN/System.err(2645): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-14 10:31:10.049: WARN/System.err(2645): at
android.os.Looper.loop(Looper.java:123)
10-14 10:31:10.058: WARN/System.err(2645): at
android.app.ActivityThread.main(ActivityThread.java:

[android-developers] Exception chaos using the FragmentStatePagerAdapter (support package)

2012-07-19 Thread user123
I'm using the FragmentStatePagerAdapter in a ViewPager, in order to provide 
mutable content (FragmentPagerAdapter didn't work, it was not possible to 
change the content after having set it the first time).

Mainly it works, but it crashes frequently because of 
IllegalStateExceptions: "Fragment no longer exists" / "No view found for id 
0xcf for fragment" / "Fragment is no longer in the fragment manager" (and 
forgot the 4th one). There's nothing directly related to my code in the 
stack trace, all I know, is that it's somehow related with saving / 
restoring state, and trying to access not existing fragments.

The documentation in 
http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html
 doesn't 
give my any help, the description and example is very basic and don't say 
anything about having to care about saving / restoring fragment's state. 
And I don't have time to study all the source.

All the documentation says about requeriments is:

"When using FragmentPagerAdapter the host ViewPager must have a valid ID 
set.

Subclasses only need to implement 
getItem(int)
 and 
getCount()
 to 
have a working adapter."

I'm doing that. 

Can somebody help me out of this, at least giving me a logical background 
of these problems and what am I supposed to to? 

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

[android-developers] Exception when calling SchemaFactory.newInstance on Android 4.0

2011-11-14 Thread mike.one4...@yahoo.com
I have an android 4.0 app which try to call the following as
recommended in Android SDK:
SchemaFactory sf =
SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);

This gives me the following exception:
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

Here is my code:
btnSearch.setOnClickListener(new Button.OnClickListener(){
public void onClick(View v) {

try{
//no code before this line and exception threw right here.
SchemaFactory sf =
SchemaFactory.newInstance(javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI);

}

-- 
You received this message because you are subscribed to the Google
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] Exception in inner class of leanback library

2016-11-30 Thread tomas.paronai via Android Developers
Hello. I have updated the leanback support library from 23.1.1 to 25.0.1 
and I get the following crash:

11-30 14:18:30.974 25367-25367/com.economist.newton E/AndroidRuntime: FATAL 
>> EXCEPTION: main
>
>   
>> Process: com.economist.newton, PID: 25367
>
>   
>> java.lang.NullPointerException: Attempt to invoke virtual method 
>> 'android.support.v17.leanback.widget.Presenter$ViewHolder 
>> android.support.v17.leanback.widget.Presenter.onCreateViewHolder(android.view.ViewGroup)'
>>  
>> on a null object reference
>
>   
>> at 
>> android.support.v17.leanback.widget.ItemBridgeAdapter.onCreateViewHolder(ItemBridgeAdapter.java:315)
>
>   
>> at 
>> android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:6073)
>
>   
>> at 
>> android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5243)
>
>   
>> at 
>> android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5153)
>
>   
>> at 
>> android.support.v17.leanback.widget.GridLayoutManager.getViewForPosition(GridLayoutManager.java:971)
>
>   
>> at 
>> android.support.v17.leanback.widget.GridLayoutManager$2.createItem(GridLayoutManager.java:1464)
>
>   
>> at 
>> android.support.v17.leanback.widget.SingleRow.appendVisibleItems(SingleRow.java:111)
>
>   
>> at 
>> android.support.v17.leanback.widget.Grid.appendOneColumnVisibleItems(Grid.java:363)
>
>   
>> at 
>> android.support.v17.leanback.widget.GridLayoutManager.appendOneColumnVisibleItems(GridLayoutManager.java:1694)
>
>   
>> at 
>> android.support.v17.leanback.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:1897)
>
>   
>> at 
>> android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3374)
>
>   
>> at 
>> android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3183)
>
>   
>> at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3627)
>
>   
>> at android.view.View.layout(View.java:17523)
>
>   
>> at android.view.ViewGroup.layout(ViewGroup.java:5612)
>
>   
>> at 
>> android.support.v17.leanback.widget.ScaleFrameLayout.onLayout(ScaleFrameLayout.java:172)
>
>   
>> at android.view.View.layout(View.java:17523)
>
>   
>> at android.view.ViewGroup.layout(ViewGroup.java:5612)
>
>   
>> at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
>
>   
>> at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
>
>   
>> at android.view.View.layout(View.java:17523)
>
>   
>> at android.view.ViewGroup.layout(ViewGroup.java:5612)
>
>   
>> at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
>
>   
>> at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
>
>   
>> at android.view.View.layout(View.java:17523)
>
>   
>> at android.view.ViewGroup.layout(ViewGroup.java:5612)
>
>   
>> at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
>
>   

[android-developers] Exception in the bowels of Contact Manager?

2010-08-20 Thread Zsolt Vasvari
Hello, got the error below reported to me when reading a Contact.  I
am clueless as to what the problem.  The same code works almost every
time as I've only had this one report and I've never seen it happen
during testing.

The query I am exectuing is simply:

context.getContentResolver().query(Uri.parse(token), null, null, null,
null)

The token is just the URI originally obtained using
RawContacts.getContactLookupUri()

Anybody has any ideas what the problem could be or how to debug this?

Thanks!


java.lang.IllegalStateException: Couldn't init cursor window
at android.os.Parcel.readException(Parcel.java:1255)
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
160)
at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
114)
at
android.content.ContentProviderProxy.bulkQueryInternal(ContentProviderNative.java:
372)
at
android.content.ContentProviderProxy.query(ContentProviderNative.java:
408)
at android.content.ContentResolver.query(ContentResolver.java:245)
at
com.zvasvari.anmoneyp.devicecontacts.android5contacts.ContactsImpl.existsByToken(ContactsImpl.java:
331)
at
com.zvasvari.anmoneyp.app.contact.payee.activity.PayeeUtil.isExternal(PayeeUtil.java:
208)
at
com.zvasvari.anmoneyp.app.contact.payee.activity.List.isExternal(List.java:
51)
at
com.zvasvari.anmoneyp.app.contact.activity.List.bindListItemView(List.java:
411)
at com.zvasvari.anmoneyp.app.contact.activity.List
$2.bindView(List.java:390)

-- 
You received this message because you are subscribed to the Google
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] exception in getting data from cursor(database)

2011-02-27 Thread Honest
hello,

i am retrieving Cursor from database but when i am trying to get data
from cursor using colIndex. i am getting exception. can some one tell
me what is wrong in it. the following is code i am using . it is
giving exception at the sentence   data[i]=result.getString(colIndex);

/*code*/

db=new DBAdapter(this);
db.open();

Cursor result=db.getAllNames();
Log.e("column:",":"+ result.getColumnCount());
String data[]=new String[result.getCount()];


for(int i=0;ihttp://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Exception using ScrollView in landscape orientation

2011-03-01 Thread Kostya Vasilyev
If that's your whole main.xml, then a few things are missing, notably, 
there is no button with id=helpbutt, or any other buttons implied by 
"another similar button" comment in the code. You are probably getting a 
NullPointerException when calling "help.setOnClickListener".


Post logcat output here, including the part under "Caused by" so this 
can be verified.


And you should have a portrait layout, too (either in layout-port or 
just layout) so you can handle orientation changes.


-- Kostya

01.03.2011 20:09, xoggoth пишет:

> From various threads I gather that Android should just use layout-land
automatically, I don't add to the java. I have a minimal layout
main.xml in layout-land  but when I use Numeric-key 9 or start the
application while it is already in landscape it stops unexpectedly and
displays a window ActivityThread.performLaunchActivity(ActivityThread
$ActivityRecord, Intent) line: 2496 saying source not found.

The same xml works fine in a Hello Android project that this one is
based on and I can't see any relevant differences in settings or
AndroidManifest.xml between the two projects. ScrollView does seem to
be the problem as it works fine if I remove it.

Grateful for any ideas on this.

main.xml in layout-land:

 http://schemas.android.com/apk/res/
android"
android:id="@+id/scrollview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
  


.java
public class InvertsUK extends Activity {
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 Button help = (Button) findViewById(R.id.helpbutt);
 help.setOnClickListener(new View.OnClickListener() {
 public void onClick(View view) {
 Intent myIntent = new Intent(view.getContext(),
ViewHelp.class);
 startActivityForResult(myIntent, 0);
 }
 });
 ...another similar button
 }
}

Debug:
DalvikVM[localhost:8619]
Thread [<3>  main] (Suspended (exception RuntimeException))

ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
Intent) line: 2496

Logcat:
03-01 16:54:12.215: INFO/WindowManager(52): Setting rotation to 1,
animFlags=0
03-01 16:54:12.235: INFO/ActivityManager(52): Config changed:
{ scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=2
layout=18}
03-01 16:54:12.365: INFO/UsageStats(52): Unexpected resume of
com.inverts.uk while already resumed in com.inverts.uk
03-01 16:54:17.355: WARN/WindowManager(52): App freeze timeout
expired.
03-01 16:54:17.365: WARN/WindowManager(52): Force clearing freeze:
AppWindowToken{43e20b70 token=HistoryRecord{43cf8088
com.inverts.uk/.InvertsUK}}
03-01 16:54:19.545: DEBUG/dalvikvm(52): GC freed 2894 objects / 156632
bytes in 164ms





--
Kostya Vasilyev -- http://kmansoft.wordpress.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] Exception every time I launch the application

2010-10-08 Thread Pankaj
Hi all,

I get an exception every time I launch the application. Here is the
stacktrace for the exception


10-01 14:49:35.321: WARN/WindowManager(61): Exception when adding
starting window
10-01 14:49:35.321: WARN/WindowManager(61):
java.lang.RuntimeException: Binary XML file line #25: You must supply
a layout_height attribute.
10-01 14:49:35.321: WARN/WindowManager(61): at
android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:
3468)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:3547)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.widget.LinearLayout$LayoutParams.(LinearLayout.java:
1265)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:
1191)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:
2153)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:
2207)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:
1395)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:
818)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.server.WindowManagerService
$H.handleMessage(WindowManagerService.java:8794)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.os.Handler.dispatchMessage(Handler.java:99)
10-01 14:49:35.321: WARN/WindowManager(61): at
android.os.Looper.loop(Looper.java:123)
10-01 14:49:35.321: WARN/WindowManager(61): at
com.android.server.WindowManagerService
$WMThread.run(WindowManagerService.java:531)




I am also posting the XML files I'm using.





http://schemas.android.com/apk/res/
android"
android:id="@+id/arw_layout" android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

http://schemas.android.com/apk/res/
android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:gravity="center"
android:layout_alignParentLeft="true">








http://schemas.android.com/apk/res/android";
android:shape="rectangle">
  




http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
















@drawable/gradient






@style/
WindowTitleBackground





can anyone tell me which XML produces this exception.

I get it only when I launch the app. After that while browsing through
different activities no such exception occurs

-- 
You received this message because you are subscribed to the Google
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] Exception in Klasse ListPreference.java mit excerciser monkey

2011-03-07 Thread Leder
Hallo all,

ich habe ein Android Projekt, das mit dem "UI/Application Exerciser
Monkey" getestet wird. Nach event 2996 gibt es einen Systemcrash, der
vermutlich durch die Klasse ListPreference.java aus Android verursacht
wird: ArrayIndexOutOfBoundsException.

Ist so etwas bekannt? Ich konnte in den Foren nichts dazu finden!

Vielen Dank
Gerrit

-- ... schnipp:

:Switch:
#Intent;action=android.intent.action.MAIN;category=android.intent.categ
ory.LAUNCHER;launchFlags=0x1000;component="..."/.StartAc
tivity;end
// Allowing start of Intent { act=android.intent.action.MAIN
cat=[android.in
tent.category.LAUNCHER] cmp="..."/.StartActivity } in packag
e com.gigatronik.bluetronic
:Sending Pointer ACTION_DOWN x=107.0 y=477.0
:Sending Pointer ACTION_UP x=107.0 y=477.0
:Sending Pointer ACTION_DOWN x=425.0 y=146.0
// CRASH: "..." (pid 2094)
// Short Msg: java.lang.ArrayIndexOutOfBoundsException
// Long Msg: java.lang.ArrayIndexOutOfBoundsException
// Build Label: vodafone_uk/htc_bravo/bravo/bravo:2.2/
FRF91/284385:user/release-
keys
// Build Changelist: 284385
// Build Time: 1289310579000
// java.lang.ArrayIndexOutOfBoundsException
//  at
android.preference.ListPreference.onDialogClosed(ListPreference.java:
218)
//  at
android.preference.DialogPreference.onDismiss(DialogPreference.java:3
84)
//  at android.app.Dialog
$ListenersHandler.handleMessage(Dialog.java:1047)
//  at android.os.Handler.dispatchMessage(Handler.java:99)
//  at android.os.Looper.loop(Looper.java:144)
//  at android.app.ActivityThread.main(ActivityThread.java:4937)
//  at java.lang.reflect.Method.invokeNative(Native Method)
//  at java.lang.reflect.Method.invoke(Method.java:521)
//  at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit
.java:868)
//  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
626)
//  at dalvik.system.NativeStart.main(Native Method)
//
** Monkey aborted due to error.
Events injected: 2996
:Dropped: keys=0 pointers=0 trackballs=0 flips=0
## Network stats: elapsed time=30719ms (0ms mobile, 0ms wifi, 30719ms
not connec
ted)
** System appears to have crashed at event 2996 of 5000 using seed 0

-schnapp

-- 
You received this message because you are subscribed to the Google
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] Exception coming while shutting down android device

2012-03-08 Thread Mark Murphy
On Thu, Mar 8, 2012 at 5:25 AM, Abhishek Sharma  wrote:
> I want to shutdown android device from application on pressing key.

This is not possible from an ordinary SDK application.

> Code snippet:
> public void poweroff()
> {
>   ShutdownThread.shutdown(context, true);
> }

There is no ShutdownThread in the Android SDK.

-- 
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 2.5
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] Exception while calling web service----java.net.SocketException: Permission denied

2011-02-17 Thread Ravi
Hi,
  I am developing one application through which i am calling web
service.
  The web Service is hosted on the local machine,but while calling
web service i got
  java.net.SocketException: Permission denied this bug.
Mentioned internet permission in the manifest file
although, i am getting this.
  I am looking forward for positive response.

Thanks in Advance.
 Regards

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


Re: [android-developers] exception in getting data from cursor(database)

2011-02-27 Thread TreKing
On Sun, Feb 27, 2011 at 6:55 PM, Honest  wrote:

> i am getting exception. can some one tell me what is wrong in it.
>

Not if you don't even specify what the exception is.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
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] exception in getting data from cursor(database)

2011-02-27 Thread Tommy
It could be a mess of different things. Could you post the error? How many
times does it loop before the exception? You might want to do
result.getCount() -1;i++ I haven't worked much with arrays and getting the
number of elements back but in VB if you have 10 items it returns 10, but
since arrays are 0 based when you use a counter to ref the position in the
array you would need to make sure you only go to 9. If you go to the full
count length (10) you get an index out of bounds exception.

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Honest
Sent: Sunday, February 27, 2011 7:56 PM
To: Android Developers
Subject: [android-developers] exception in getting data from
cursor(database)

hello,

i am retrieving Cursor from database but when i am trying to get data from
cursor using colIndex. i am getting exception. can some one tell me what is
wrong in it. the following is code i am using . it is
giving exception at the sentence   data[i]=result.getString(colIndex);

/*code*/

db=new DBAdapter(this);
db.open();

Cursor result=db.getAllNames();
Log.e("column:",":"+ result.getColumnCount());
String data[]=new String[result.getCount()];


for(int i=0;ihttp://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] Exception when clearing tabs and onResume() from different applications

2009-12-09 Thread Miguel Paraz
Hi,
In my onResume() I have this, to recreate the tabs every time i run.
This is because the tab content changes depending on the program
state.

tabHost = getTabHost();
tabHost.setCurrentTab(0);
tabHost.clearAllTabs();
tabSpec = tabHost.newTabSpec("Label");
tabSpec.setContent(new Intent(this, ContentActivity.class));
// more tabs...

This works within the same application.
But when an external application is launched, or if the phone returns
from idle, this happens. It looks like an internal loop or race
condition. Is there a better way to rebuild the TabHost? This is on
Cupcake.

12-09 18:55:47.596 E/AndroidRuntime( 1009): Caused by:
java.lang.NullPointerException
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.widget.TabWidget.onFocusChange(TabWidget.java:241)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.View.onFocusChanged(View.java:2430)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.View.handleFocusGainInternal(View.java:2258)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.handleFocusGainInternal(ViewGroup.java:398)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.View.requestFocus(View.java:3232)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.requestFocus(ViewGroup.java:1005)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:
1050)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.requestFocus(ViewGroup.java:1009)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:
1050)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.requestFocus(ViewGroup.java:1006)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:
1050)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.requestFocus(ViewGroup.java:1006)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:
1050)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.requestFocus(ViewGroup.java:1006)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.View.requestFocus(View.java:3183)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewRoot.clearChildFocus(ViewRoot.java:1378)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.clearChildFocus(ViewGroup.java:501)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.clearChildFocus(ViewGroup.java:501)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.clearChildFocus(ViewGroup.java:501)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.clearChildFocus(ViewGroup.java:501)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.clearChildFocus(ViewGroup.java:501)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:2204)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.view.ViewGroup.removeAllViews(ViewGroup.java:2150)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.widget.TabHost.clearAllTabs(TabHost.java:214)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
xx.xx.xx.XXXActivity.onResume(XXXActivity.java:40)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:
1229)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.app.Activity.performResume(Activity.java:3530)
12-09 18:55:47.596 E/AndroidRuntime( 1009): at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2619)
12-09 18:55:47.596 E/AndroidRuntime( 1009): ... 10 more

-- 
You received this message because you are subscribed to the Google
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] exception while accessing MS SQL 2005 express using JDBC

2011-02-11 Thread Niket
Hi,
I downloaded JDBC driver from microsoft.com
(sqljdbc_3.0.1301.101_enu.exe), and use sqljdbc4.jar file in my code,
to connect with MS SQL 2005 Express.

I wrote very simple code. It provides exception while doing
getConnection().

String driver= "com.microsoft.sqlserver.jdbc.SQLServerDriver"; //
Start JDBC
String dbURL = "jdbc:sqlserver://192.168.1.2\
\sqlexpress;databaseName=dbname;encrypt=true;trustServerCertificate=false";
String user="sa",pass="abc@123";
java.sql.Connection dbConn = null;
try
{
Class.forName(driver);
dbConn = DriverManager.getConnection(dbURL,user,pass);
dbConn.close();
}
catch (Exception e)
{
e.printStackTrace();
}
**
code is working properly when it is run from windows system.
On android system,
"class.forname(driver);" is working properly.
"getconnection()" function fails; it throws exception that
"com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not
establish a secure connection to SQL Server by using Secure Sockets
Layer (SSL) encryption. Error: "Unable to make socket non blocking"."

Can you please help into this?

Thanks
Niket

-- 
You received this message because you are subscribed to the Google
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] Exception while calling web service----java.net.SocketException: Permission denied

2011-02-17 Thread Abhilash baddam
have u given the Internet Permissions in Manifest File.

On Fri, Feb 18, 2011 at 12:49 PM, Ravi  wrote:

> Hi,
>  I am developing one application through which i am calling web
> service.
>  The web Service is hosted on the local machine,but while calling
> web service i got
>  java.net.SocketException: Permission denied this bug.
>Mentioned internet permission in the manifest file
> although, i am getting this.
>  I am looking forward for positive response.
>
> Thanks in Advance.
> Regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> 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] Exception libcairo-2.dll Not Found (Mono.Cairo Error) in MonoAndroid

2012-01-02 Thread Pritish
Now this time I am using the Cairo.Matrix dll in my monoandroid
application to load the some System.Drawing.Drawing2D.Matix Class
Methods it works fine at build time  but at run time the Matrix class
from Cairo.Matrix gives an error "System.NullReferenceException:
Object reference not set to an instance of an object."
 when I intialize the Cairo.Matrix Class error is "Exception in
loading dicom filelibcairo-2.dll."

   This below code I am trying..
using System;
using System.Drawing;
using Medsynaptic.Common;
using Medsynaptic.Imaging1.Mathematics;
using Matrix = Cairo.Matrix;

public class SpatialTransform : ISpatialTransform
{
private Cairo.Matrix _cumulativeTransform;
private Cairo.Matrix _transform;
public PointF ConvertToDestination(PointF sourcePoint)
{
double x = 0.0, y = 0.0;
this.CumulativeTransform.TransformPoint(ref x, ref
y);
PointF point = new PointF((float)x, (float)y);
return point;
}
 Here it show Null Ref Exception:Object reference not set to an
instance of an object
public Cairo.Matrix CumulativeTransform
{
get
{
Calculate();
return _cumulativeTransform;
}
}
 protected virtual void Calculate()
{
if (!this.RecalculationRequired)
return;
  ERROR @ if condition:- Object reference not set to an
instance of an object
if (_cumulativeTransform == null)
_cumulativeTransform = new Cairo.Matrix();

   // _cumulativeTransform.Reset();

_cumulativeTransform.InitIdentity();
}
}


  so please help me for this it's very urgent.
Regards
Pritish M. Deshmukh

-- 
You received this message because you are subscribed to the Google
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] Exception is raised when remove the last item in ExpandedListView

2008-12-09 Thread Stanley.lei

Hi all,

I'm developing an application like management system, and I used the
widget ExpandedListView as the display view. Instead of connecting it
to sqlite database directly, I created two list as the dataset. The
detailed code is as following list:

private List>mGroupType = new
ArrayList>();
private List>> mGroupInfo = new
ArrayList>>();

private void showGroupView() {
// add layout to the view
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
LayoutParams para = new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT);
setContentView(layout, para);

// add expanded list view to layout
mListView = new ExpandableListView(this);
LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT);
layout.addView(mListView, params);

// set list view adapter
  mListAdapter = new SimpleExpandableListAdapter(
  this,
  mGroupType,
  android.R.layout.simple_expandable_list_item_1,
  new String[] {"GROUP_TYPE"},
  new int[] { android.R.id.text1 },
  mGroupInfo,
  android.R.layout.simple_expandable_list_item_2,
  new String[] {"GROUP_INFO" },
  new int[] { android.R.id.text1 }
  );
  mListView.setAdapter(mListAdapter);
  mListView.setOnChildClickListener(new OnChildClickListener() {

  public boolean onChildClick(ExpandableListView parent, View v,
  int groupPosition, int childPosition, long id) {
  return editGroup(groupPosition, childPosition, id);
  }

  });
}

private void refreshGroupData() {
// fresh mGroupType and mGroupInfo
mGroupType.clear();
mGroupInfo.clear();

fetchAllGroup(mGroupType, mGroupInfo);

((BaseExpandableListAdapter) mListAdapter).notifyDataSetChanged();
}

When I removed a item in the list, the method refreshGroupData() will
be called. Everything is ok except that when I tried to remove the
last item in the list, an exception was threw with the following trace
info:

12-10 11:18:49.738: ERROR/AndroidRuntime(194): Uncaught handler:
thread main exiting due to uncaught exception
12-10 11:18:49.997: ERROR/AndroidRuntime(194):
java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
java.util.ArrayList.get(ArrayList.java:350)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.widget.SimpleExpandableListAdapter.getChildrenCount
(SimpleExpandableListAdapter.java:255)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.widget.ExpandableListConnector.refreshExpGroupMetadataList
(ExpandableListConnector.java:489)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.widget.ExpandableListConnector.access$000
(ExpandableListConnector.java:49)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.widget.ExpandableListConnector$MyDataSetObserver.onChanged
(ExpandableListConnector.java:684)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.database.DataSetObservable.notifyChanged
(DataSetObservable.java:29)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.widget.BaseExpandableListAdapter.notifyDataSetChanged
(BaseExpandableListAdapter.java:56)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.ourdroid.account.GroupSetting.refreshGroupData(GroupSetting.java:
50)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.ourdroid.account.GroupSetting.deleteGroup(GroupSetting.java:135)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.ourdroid.account.GroupSetting.onOptionsItemSelected
(GroupSetting.java:109)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.app.Activity.onMenuItemSelected(Activity.java:1964)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected
(PhoneWindow.java:708)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:
138)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.android.internal.view.menu.MenuBuilder.performItemAction
(MenuBuilder.java:804)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.android.internal.view.menu.IconMenuView.invokeItem
(IconMenuView.java:435)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
com.android.internal.view.menu.IconMenuItemView.performClick
(IconMenuItemView.java:120)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.view.View.onTouchEvent(View.java:3523)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.widget.TextView.onTouchEvent(TextView.java:4410)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.view.View.dispatchTouchEvent(View.java:3178)
12-10 11:18:49.997: ERROR/AndroidRuntime(194): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857)
12-10 11:18:49.997: E

Re: [android-developers] exception while accessing MS SQL 2005 express using JDBC

2011-02-12 Thread Kostya Vasilyev
Looks like the driver wants to use an SSL socket in non-blocking mode, 
and Android networking code (taken from Apache Harmony) doesn't support it.


You could try setting "encrypt=false", or, if that's not acceptable, 
find another way to access the database (e.g. a web service).


-- Kostya

04.02.2011 7:55, Niket пишет:

"com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not
establish a secure connection to SQL Server by using Secure Sockets
Layer (SSL) encryption. Error: "Unable to make socket non blocking"."



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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


Re: [android-developers] Exception libcairo-2.dll Not Found (Mono.Cairo Error) in MonoAndroid

2012-01-02 Thread Mukesh Srivastav
I am sure, you are missing .so files which is a part of your library. you
need the .so files  "Add to build path" and things will work.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Sat, Dec 31, 2011 at 12:57 PM, Pritish  wrote:

> Now this time I am using the Cairo.Matrix dll in my monoandroid
> application to load the some System.Drawing.Drawing2D.Matix Class
> Methods it works fine at build time  but at run time the Matrix class
> from Cairo.Matrix gives an error "System.NullReferenceException:
> Object reference not set to an instance of an object."
>  when I intialize the Cairo.Matrix Class error is "Exception in
> loading dicom filelibcairo-2.dll."
>
>   This below code I am trying..
> using System;
> using System.Drawing;
> using Medsynaptic.Common;
> using Medsynaptic.Imaging1.Mathematics;
> using Matrix = Cairo.Matrix;
>
> public class SpatialTransform : ISpatialTransform
>{
> private Cairo.Matrix _cumulativeTransform;
>private Cairo.Matrix _transform;
> public PointF ConvertToDestination(PointF sourcePoint)
>{
>double x = 0.0, y = 0.0;
>this.CumulativeTransform.TransformPoint(ref x, ref
> y);
>PointF point = new PointF((float)x, (float)y);
>return point;
>}
>  Here it show Null Ref Exception:Object reference not set to an
> instance of an object
> public Cairo.Matrix CumulativeTransform
>{
>get
>{
>Calculate();
>return _cumulativeTransform;
>}
>}
>  protected virtual void Calculate()
>{
>if (!this.RecalculationRequired)
>return;
>  ERROR @ if condition:- Object reference not set to an
> instance of an object
>if (_cumulativeTransform == null)
>_cumulativeTransform = new Cairo.Matrix();
>
>   // _cumulativeTransform.Reset();
>
>_cumulativeTransform.InitIdentity();
> }
> }
>
>
>  so please help me for this it's very urgent.
> Regards
> Pritish M. Deshmukh
>
> --
> You received this message because you are subscribed to the Google
> 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] Exception on database query - table is empty / orderBy is not null

2008-08-31 Thread Yalcin

I am getting following exception during a database query wenn the
table is empty and orderBy is not null (either modified ASC or
modified DESC).
Is something is wrong hier?
---
logcat output
   android.database.sqlite.SQLiteException: no such column:
modified: ,
   while compiling: SELECT _id, name FROM client ORDER BY modified ASC
---

this code causes exception:

SQLiteDatabase db = mOpenHelper.getReadableDatabase();
Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, orderBy);


this code works:
SQLiteDatabase db = mOpenHelper.getWritableDatabase();
Cursor c = qb.query(db, projection, selection, selectionArgs,
null, null, null);

+++
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Exception in thread "main" java.lang.NullPointerException when using avdmanager create avd on command line

2017-09-02 Thread JeeJee Studio
Hi,

i'm getting an error while i want to create an avd via the avdmanager on 
the command line in win10.
In installed Oracle JAVA jdk 1.8.0_144 x64
then got the Command Line tools from the google page where Android Studio 
can be downloaded.

Unzipped it in c:\users\username\appdata\android-sdk\
and added the path to the environment of windows.
downloaded all needed packages with sdkmanager
so far so good.

then i did this command:
avdmanager create avd -n Android6 -k 
"system-images;android-23;google_apis;x86" -c 100M -f

Exception in thread "main" java.lang.NullPointerException
at 
com.android.sdklib.tool.AvdManagerCli.createAvd(AvdManagerCli.java:686)
at 
com.android.sdklib.tool.AvdManagerCli.doAction(AvdManagerCli.java:369)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:205)
at 
com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:195)

Can anyone tell what is going wrong here?

Thanks a lot.

Best regards,
Jerry

-- 
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/18808a10-d8da-4584-9f9e-620954cfd2fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Exception java.lang.RuntimeException: double ID in HttpTransportSE.call method using KSOAP to consume a WSDL Service

2012-05-16 Thread ingaponteca
I am trying to consume a web service from android and I got that the
application send the XML needed for my WebService.
I ran a sniffer, gather the XML sent by my application, copy-paste the
XML request and test it in SOAPUI client and works fine.

I can see that requestDump and respondDump are filled with the in and
out information inside the HttpTransportSE  object but the application
failed in the line:

aht.call(SOAP_ACTION_1, soapEnvelop);

It goes to the catch:
catch (Exception e)

And error is "java.lang.RuntimeException: double ID"

Any suggestion or possible errors.

I appreciate your help.

Below the Main Code:

where
   InClass and OutClass implements KvmSerializable.
   In InClass = Contains 3 Strings objects
   Out OutClass = Contains 6 Strings 1 Integer and 2 User defined
classes that also implements KvmSerializable and inside them there are
Strings and Integer variables.

Code:
===
String NAME_SPACE_1 = "http://name_space";;
String  URL_1 = "http://:/XXX//Service?wsdl";
String METHOD_NAME_1 = "searchMethod";
String SOAP_ACTION_1 = "";

SoapObject request = new SoapObject(NAME_SPACE_1, METHOD_NAME_1);

In InClass = new In();
In.mS = "1234";
PropertyInfo PI_In = new PropertyInfo();
PI_In.setName("In");
PI_In.setValue(InClass);
PI_In.setType(InClass.getClass());
request.addProperty(PI_In);

//Set the web service envelope
SoapSerializationEnvelope soapEnvelop = new
SoapSerializationEnvelope(SoapEnvelope.VER10);
soapEnvelop.setOutputSoapObject(request);
soapEnvelop.implicitTypes = true;
soapEnvelop.setAddAdornments(false);

//Setting output parameters
Out OutClass = new  Out();
soapEnvelop.addMapping(NAME_SPACE_1, "Out",new Out().getClass());

HttpTransportSE aht = new HttpTransportSE(URL_1);
aht.debug=true;

//Call the web service and retrieve result
try{
aht.call(SOAP_ACTION_1, soapEnvelop);
}
catch (IOException e) {
outputTextKSoap.setText("GetVersion " +
"IOException: "  + e);
} catch (XmlPullParserException e) {
outputTextKSoap.setText("GetVersion " +
"XmlPullParserException: " + e);
}
catch (Exception e) {
if(e != null && e.toString().equals("null"))
outputTextKSoap.setText("StackTrace: " +
e.getStackTrace().toString());
else
outputTextKSoap.setText("Exception is NULL");
}
}

requestDump
==
http://www.w3.org/2001/XMLSchema-instance";
xmlns:d="http://www.w3.org/2001/XMLSchema";
xmlns:c="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/";>


http://name_space";>

1234





-- 
You received this message because you are subscribed to the Google
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] Exception when leaving an activity (with the back button) which is binded to a Service

2008-08-22 Thread code_android_festival_way

Hello guys!

I'm having the following problem. I'm having an activity that starts a
background thread in order to bind to a service which does some work.
Now I've got the problem that when pressing the back button I get the
following exception:

08-22 17:09:46.460: ERROR/AndroidRuntime(26218): Uncaught handler:
thread Thread-8 exiting due to uncaught exception
08-22 17:09:46.460: ERROR/AndroidRuntime(26218):
java.lang.IllegalArgumentException: Service not
registered: [EMAIL PROTECTED]

I've done the following in the onPause() method:

this.unbindService(svcConn);
background.interrupt();
background = null;

I don't really know how to stop that thread properly when leaving the
activity. Any help would be appreciated!

Regards!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Exception e is a null string in HttpTransportSE.call method using KSOAP to consume a WSDL Service

2012-05-12 Thread ingaponteca
I am trying to consume a web service from android and I got that the
application send the  "XML right format" needed for my WebService. I
checked with a sniffer and test it in SOAPUI client.

I can see that requestDump and respondDump are filled with the in and
out information but the application failed in the line:

aht.call(SOAP_ACTION_1, soapEnvelop);

It goes to the catch:
catch (Exception e)

but e.toString() is equals to "null".

I cannot see any exception that give me a clue of the problem. I am
just blind.

Any suggestion or possible errors.

I appreciate your help.

Below the Main Code:

where
   InClass and OutClass implements KvmSerializable.
   In InClass = Contains 3 Strings objects
   Out OutClass = Contains 6 Strings 1 Integer and 2 User defined
classes that also implements KvmSerializable and inside them there are
Strings and Integer variables.

Code:
===
String NAME_SPACE_1 = "http://name_space";;
String  URL_1 = "http://:/XXX//Service?wsdl";
String METHOD_NAME_1 = "searchMethod";
String SOAP_ACTION_1 = "";

SoapObject request = new SoapObject(NAME_SPACE_1, METHOD_NAME_1);

In InClass = new In();
In.mS = "1234";
PropertyInfo PI_In = new PropertyInfo();
PI_In.setName("In");
PI_In.setValue(InClass);
PI_In.setType(InClass.getClass());
request.addProperty(PI_In);

//Set the web service envelope
SoapSerializationEnvelope soapEnvelop = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
//envelope.dotNet = false;
soapEnvelop.setOutputSoapObject(request);
//Remove extra entries in XML to format needed input XML
soapEnvelop.implicitTypes = true;
soapEnvelop.setAddAdornments(false);

//Setting output parameters
Out OutClass = new  Out();
soapEnvelop.addMapping(NAME_SPACE_1, "Out",new Out().getClass());

HttpTransportSE aht = new HttpTransportSE(URL_1);
aht.debug=true;

//Call the web service and retrieve result
try{
aht.call(SOAP_ACTION_1, soapEnvelop);
}
catch (IOException e) {
outputTextKSoap.setText("GetVersion " +
"IOException: "  + e);
} catch (XmlPullParserException e) {
outputTextKSoap.setText("GetVersion " +
"XmlPullParserException: " + e);
}
catch (Exception e) {
if(e != null && e.toString().equals("null"))
outputTextKSoap.setText("StackTrace: " +
e.getStackTrace().toString());
else
outputTextKSoap.setText("Exception is NULL");
}
}

requestDump
==
http://www.w3.org/2001/XMLSchema-instance";
xmlns:d="http://www.w3.org/2001/XMLSchema";
xmlns:c="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/";>


http://name_space";>

1234





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