Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Error when closing window on Android in Alloy

$
0
0

Device: Samsung Galaxy Note 3 - Android 4.3 Titanium SDK: 3.1.3.GA

I have an Android app with two windows: an index with a table and a thread window.

The thread is opened with a click on a tablerow:

function listItemClick(e){
    var questionId = e.row.myId;
    var thread = Alloy.createController('thread', {
        questionDetails : questionId
    }).getView();
    thread.open();
}
In this thread window I have an image with a click event listener to close:
$.thread.addEventListener('close', function() {
        $.destroy();
});
 
function closeThread(){
    $.thread.close();
}
Now, on my device I have to click sometimes 5 times to close the thread. My adb logs (on every click):
D/dalvikvm(19965): GC_CONCURRENT freed 5525K, 74% free 34785K/131064K, paused 5ms+39ms, total 126ms
D/InputReader(  793): Input event: value=1 when=323476482961000
I/InputReader(  793): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.20645 ] when=323476483021000
I/InputDispatcher(  793): Delivering touch to: action: 0x0
D/InputReader(  793): Input event: value=0 when=323476595081000
I/InputReader(  793): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=323476595083000
I/InputDispatcher(  793): Delivering touch to: action: 0x1
E/DatabaseUtils(  793): Writing exception to parcel
E/DatabaseUtils(  793): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils(  793):     at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13077)
E/DatabaseUtils(  793):     at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2021)
E/DatabaseUtils(  793):     at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:577)
E/DatabaseUtils(  793):     at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
E/DatabaseUtils(  793):     at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
E/DatabaseUtils(  793):     at android.os.Binder.execTransact(Binder.java:388)
E/DatabaseUtils(  793):     at dalvik.system.NativeStart.run(Native Method)
W/ActivityManager(  793): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
D/TimaService(  793): TIMA: TimaService scheduler is intialized. 
D/TimaService(  793): TIMA: checkEvent, operation: 50000 subject: 10000
I am really out of ideas what the problem can be...hope for any help

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>