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

KeyBoard in the way

$
0
0

Hi all I have a window with two text fields and two buttons.When I'm on the second text field, the keyboard is in the way of the buttons. And thus, there is no way to press the buttons. I need to turn the device sideways and a 'done button' appears in my text field which, if clicked, will remove the keyboard. But in the future, I will be locking my app to portrait so I'm just wondering how to solve this issue. Is there a specific keyboard I can call which will have a button to remove the keyboard or anything like that?


working with tableview and http request

$
0
0

now i had made http request and i got the data from server but i wont to make a function that when the data is more 5 make pager like page 1 page 2 and spilt the data in this pager can i

var data,xhr
data = [];
xhr = Titanium.Network.createHTTPClient();
xhr.open('GET', 'xxxxxxxxxxxxxxxxxxxxxxxxx');
xhr.send();
xhr.onload = function(e) {
    if (e.success) {
        $.loading.hide();
        $.projectsTbl.setVisible(true);
        var doc = this.responseXML.documentElement;
        var items = doc.getElementsByTagName("item");
        for (var i = 0; i < items.length; i++) {
            data.push(Alloy.createController('tableViewRow', {
                title : items.item(i).getElementsByTagName("title").item(0).text,
                desc : items.item(i).getElementsByTagName("description").item(0).text,
                link : items.item(i).getElementsByTagName("link").item(0).text
            }).getView());
        }
        $.projectsTbl.setData(data);
         if(data.length > 5){
             // make the pager            
          }
    }
};
can any one help me

Cannot ADD ids to ACL object

$
0
0

Hey,

I'm trying to add IDs to existing ACL OBJECT I have response "ok", but ids is not added to ACL OBJECT I'm using Android JAVA (not Titanium)

here is my code:__

Map<String, Object> data = new HashMap<String, Object>();
data.put("id", "523584bc51f25a0b2000932c");  //my ACL Object ID
data.put("reader_ids", "522c50746f27b60b0d00b9bb"); // my friend's ID
data.put("writer_ids", "522c50746f27b60b0d00b9bb"); // my friend's ID
CCResponse response = sdk.sendRequest("acls/add.json", CCRequestMethod.POST, data);
__and Response that I got:

Parameters {"id" => "523584bc51f25a0b2000932c", "writers_ids" => "522c50746f27b60b0d00b9bb", "readers_ids" => "522c50746f27b60b0d00b9bb", "controller" => "acls", "action" => "add", "version" => "v1", "format" => "json" }

but actually when I'm checking the ACL object I'm the only reader & writer... here's the example:

id 523584bc51f25a0b2000932c name ?1379242676343 created_at 2013-09-15T09:58:20+0000 updated_at 2013-09-15T09:58:20+0000 user Pavel (522d822ea7a0670b0f01053a) readers ["522d822ea7a0670b0f01053a"] writers ["522d822ea7a0670b0f01053a"]

What am I doing wrong ? Why ACL Object was not updated ???

Messages show inbox skip and limit

$
0
0

Hello, how i can get messages from user inbox with limit and skip attributes from Appcelerator Cloud instead of page and per_page, is it possible? Thank you very much)

Quiet Media Player Audio and Play Sound How to ?

$
0
0

Hi All,

I have been looking for ages now and cannot find a solution, anyone with an idea or a method would be doing me a massive favour.

I need to play a short audio mp3 file no longer than 30 seconds, what i need is to be able to mute/quieten any other audio/music while this is playing.

this needs to work in both Android and IOS i have tried

var file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'etc/' + filename);
    var sound = Titanium.Media.createSound({
        url : file.nativePath
    });
    sound.play();
and
var file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'etc/' + filename);
        var audioPlayer = Ti.Media.createAudioPlayer({
            url : file,
            allowBackground : true,
            autoplay:true
        });
 
        audioPlayer.start();
        audioPlayer.addEventListener('change', function(e) {
            Ti.API.info('State: ' + e.description + ' (' + e.state + ')');
            if(e.state == audioPlayer.STATE_STOPPED)
            {
                audioPlayer.release();
            }
        });
But no of them do what i require, the first one plays the audio with the music in the background and the other sample dose not play anything at all.

Thanks for your help. Regards Luke

Send UDP data from iOS Simulator to localhost

$
0
0

I'm using the UDP module for iOS from GitHub (ti.udp-iphone-1.1.zip)

I wan't to send data and inspect that data with nc (netcat)

I can get two terminal windows to send and receive data using nc but I can't get my app to send data to the listening terminal.

Any sugestions?

var UDP = require('ti.udp');
Alloy.Globals.socket = UDP.createSocket();
Alloy.Globals.socket.start({ port: 61016 });
Alloy.Globals.socket.sendString({
    host: "127.0.0.1",
    data: "test"
});
and in terminal window
$ nc -l 61016
I'm using Titanium SDK 3.2.1.GA and OS X 10.7.5

iOS 7 Warning: App references non-public selectors

$
0
0

I'm trying to submit my app to Apple for approval but ran into a problem when validating the build.

I get this error: The app references non-public selectors in Payload/My App.app/My App Name: focused

I have no idea what this means. I didn't change much from my iOS6 build and never had this happen before. Does anyone know how to fix this?

Thanks

error in alloy compiler

$
0
0
when i run the appliaction this error appers to me [ERROR] : (message, line, col, pos); [ERROR] : [ERROR] : (/usr/local/lib/node_modules/alloy/node_modules/uglify-js/lib/parse.js:185:18) [ERROR] : (/usr/local/lib/node_modules/alloy/node_modules/uglify-js/lib/parse.js:199:11) [ERROR] : (/usr/local/lib/node_modules/alloy/node_modules/uglify-js/lib/parse.js:638:9) [ERROR] : Alloy compiler failed note -> CLI version 3.1.2, Titanium SDK version 3.1.2.GA

Local sound files not playing on iOS 7device (SDK 3.1.3), but works fine in Simulator

$
0
0

I'm updating an existing, published iPad app, to target iOS 7.

The existing version of app plays sound (from local .wav files) fine under iOS 6, but not iOS 7.

However, when I rebuild the app in the environment detailed below, sound plays in the Simulator, but not on the device.

The latest Kitchen Sink sample has the same problem.

The volume level on the iPad is set correctly, and sound otherwise seems to be working (i.e., the music ap works fine).

I noticed this JIRA entry:

https://jira.appcelerator.org/browse/TIMOB-14453, "iOS7: Local with File is not playing sound".

The bug is marked fixed in SDK 3.1.2.

So, it sounds like this is a known - and fixed - problem, that SDK 3.1.3 should have picked up. But not for me.

Has anyone else run across this?

Many thanks in advance.

+++

Environment: Titanium Studio, build: 3.1.2.201308091617 SDK: 3.1.3.v20130912132758 Device: iPad 3 running latest iOS 7 - "GM" seed

Background Audio On Android

$
0
0

Hi All

I have a multi platform audio app using titaniums video player background audio works great on ios, but on android i cant seem to find anyway to get background audio to work as soon as i click the home button audio stops straight away any suggestions is this even possible?

Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
    title : 'Test',
    backgroundColor : '#fff',
    exitOnClose : true
});
 
// Change to a valid URL
var contentURL = "http://www.example.com/stream.mp4";
 
var openButton = Ti.UI.createButton({
    title : "Start Video",
    top : "0dp",
    height : "40dp",
    left : "10dp",
    right : "10dp"
});
 
openButton.addEventListener('click', function() {
    var activeMovie = Titanium.Media.createVideoPlayer({
        url : contentURL,
        backgroundColor : 'blue',
        movieControlMode : Titanium.Media.VIDEO_CONTROL_DEFAULT,
        scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FILL,
        fullscreen : true,
        autoplay : true
    });
 
    var closeButton = Ti.UI.createButton({
        title : "Exit Video",
        top : "0dp",
        height : "40dp",
        left : "10dp",
        right : "10dp"
    });
 
    closeButton.addEventListener('click', function() {
        activeMovie.hide();
        activeMovie.release();
        activeMovie = null;
    });
 
    activeMovie.add(closeButton);
});
win.add(openButton);
win.open();
Thanks

Webview problem with Alloy on iPad with SplitWindow

$
0
0

I've been having some problems with a WebView in my first Alloy application. Everything works fine on the iPhone (simulator and device). Its only on the iPad that I have a problem - the difference in the code being that I am using a SplitWindow for the iPad. The WebView appears to work ok in the iPad simulator but on the device itself it seems to run very slowly and always crashes after I have clicked on a few links. I have re-produced the problem in a basic app here. Am I doing something wrong? Could someone try and re-produce this on their iPad and see if they get the same issue? I am using the latest version of the Titanium SDK and compiling to the latest iOS SDK (6.1). My iPad is an iPad 3.

Index.js

$.index.open();
Index.xml
<Alloy>
    <SplitWindow id="index" showMasterInPortrait = "true" formFactor="tablet" platform="ios">
        <Require src="master"/>
        <Require src="detail"/>
   </SplitWindow>
</Alloy>
master.xml
<Alloy>
    <Window>
    </Window>
</Alloy>
detail.xml
<Alloy>
    <Window title = "Detail">
            <Require src="webViewWin"/>
    </Window>
</Alloy>
webViewWin.xml
<Alloy>
    <WebView url = "http://www.bbc.co.uk" id="webView"/>
</Alloy>
If I run that on my device and try and click on a few links, I get a crash.

thanks

Richard

Disable Screenshot IOS and Android

$
0
0

All,

Is there a way to disable the screenshot function found in the later rev. of android and then later in IOS ? Or is there a way to trigger something else when the phone takes a screen shot? I have an app that uses proprietary data from a server that can not be distributed. While I understand that someone can take a photo with another phone or a camera but I want to make sure that I am taking necessary steps to assist in the protection of the information.

Thanks John

Storekit Issue When Redirected Outside of App to Update Apple Content

$
0
0

I've been using the Storekit module from the marketplace to do in-app purchases through Apple. I'm running in to an issue when users are redirected outside of the app to review Apple's TOS or to update their credit card information. The issue is that my callback function is not being invoked when they return to the app. I have had 400 purchases, and only about 5 issues, but I'd still like to alleviate the issue all together. Has anyone run in to this issue before? Thanks in advance!

This is my code:

Storekit.purchase(product, function (evt) {
    switch (evt.state) {
        case Storekit.FAILED:
            if(callback) callback();
            if (!evt.cancelled) {
                alert('ERROR: Buying failed! ' + evt.message);
            }
            break;
        case Storekit.PURCHASED:
        case Storekit.RESTORED:
            alert("You have successfully purchased this content.");
            unlockItem(user, callback);
            break;
    }
});

iOS "A connection failure occurred" HTTPClient error

$
0
0

Application type: mobile Titanium SDK: 3.1.2.GA Platform & version: iOS 6.1 Device: iOS simulator and device Host Operating System: OSX 10.8.4

i have been debugging an HTTPClient problem on iOS for over a day now but with no luck. i have HTTPClient call that returns a json string from a java servlet. when executed, the request reaches the server normally but when printing the data to the response output stream i get "A connection failure occurred" error. its like a one way communication. the returned json string is valid and i even tried to use "text/plain" as a response header Content-Type but still with no luck. All works well on android. any ideas what might be the problem???

Client:

var isLoggedInXhr = Titanium.Network.createHTTPClient({
        //enableKeepAlive : true,
        //timeout : 60000
    });
    isLoggedInXhr.onload = function() {
        var jsonObj = JSON.parse(this.responseText);
        if (!jsonObj.error) {
            if (jsonObj.isUserAuthenticated) {
                var Navigator = require('ui/common/Navigator');
                var navInst = Navigator.getInstance();
                navInst.setLoggedIn(true);
                navInst.init();
            } else {
                var Navigator = require('ui/common/Navigator');
                var navInst = Navigator.getInstance();
                navInst.setLoggedIn(false);
                navInst.init();
            }
        }
        //alert(this.responseText);
    };
    isLoggedInXhr.onerror = function(e) {
        alert(e.error);
    };
    Ti.API.info(Ti.App.Properties.getString('remoteServlet'));
 
    isLoggedInXhr.open("POST", Ti.App.Properties.getString('remoteServlet'));
    isLoggedInXhr = Cookies.setupHttpClient(isLoggedInXhr);
    isLoggedInXhr.send({
        "action" : "getCurrentLoggedInUser"
    });
the Cookies.setupHttpClient(isLoggedInXhr); sets header Cookies
Cookies.setupHttpClient = function(client) {
    if (Utils.isAndriod) {
        var header = "language=" + language + "; countryCode=" + countryCode + "; countryId=" + countryId;
        if (sessionId != null)
            header += "; JSESSIONID=" + sessionId;
        client.setRequestHeader("Cookie", header);
    } else {
        client.setRequestHeader("Cookie", "language=" + language);
        client.setRequestHeader("Cookie", "countryCode=" + countryCode);
        client.setRequestHeader("Cookie", "countryId=" + countryId);
        if (sessionId != null)
            client.setRequestHeader("Cookie", "JSESSIONID=" + sessionId);
    }
    return client;
};

Server (servlet):

public void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
 
        String json = "";
        String action = request.getParameter("action");
 
        if (action != null) {
            if (action.equals("getCurrentLoggedInUser")) {
                json = getCurrentLoggedInUser();
            }
        }
 
        response.setContentType("application/json");
        response.setHeader("Content-Type", "application/json");
        response.setCharacterEncoding("UTF-8");
 
        ServletOutputStream out = response.getOutputStream();
        out.print(json);
        out.flush();
        out.close();
    }

iOS& selected picker row

$
0
0

Has anyone found a way to make the selected picker row font bigger on ios7?

The date picker that is built in works this way and has a nice magnify effect as you scroll the selection in, but other pickers that i create all have the same font size for all rows.

SDK: 3.1.3.20130916153052 Platform: iOS


IOS 7 - how to open a window in tab

$
0
0

I have following code to open a window in tab

var c = Alloy.createController('win2', g.globalGet('hometab')).getView();
    g.globalGet('hometab').open(c, {
        animated : true
    });
this works fine in ios 6 but same does not work in iOS 7 it does open but behind the current window

listenig for activity lifecycle events

$
0
0

I have built a simple android native module for an appcelerator project. And in the index.js file of the app that will be using the module, i need to listen for the basic android lifecycle calls.. onPause, resume, create, start, etc.. I am not a JS developer and have found the documentation for appcelerator vague and just awful..

can someone please tell me how from the index.js file i can listen for the lifecycle events?

below is my current index.js of my titanium app but the listeners are not firing..

// TODO: write your module tests here
var cueserviceinterface = require('com.mypackage.sof');
Ti.API.info("module is => " + cueserviceinterface);
 
 
Ti.App.addEventListener('create', function(e){
    Ti.API.info("ON CREATE");
    cueserviceinterface.startForegroundService();
});
 
Ti.App.addEventListener('start', function(e){
    Ti.API.info("ON START");
});
 
Ti.App.addEventListener('resume', function(e){
    Ti.API.info("ON RESUME");
});
 
Ti.App.addEventListener('pause', function(e){
    Ti.API.info("ON PAUSE");
});
 
Ti.App.addEventListener('stop', function(e){
    Ti.API.info("ON STOP");
});
 
Ti.App.addEventListener('destroy', function(e){
    Ti.API.info("ON DESTROY");
});
 
 
function doClick(e) {
    $.label.text = "Service Started";
 
 
    //$.label.text = cueserviceinterface.getDefaultLauncher();  
}
 
 
function hideBar(e){
    cueserviceinterface.hideNotificationAlert();
}
 
function showBar(e){
    cueserviceinterface.showNotificationAlert();
}
 
function changeCorey(e){
    cueserviceinterface.setNowHelping("Corey A.");
}
 
function changeErik(e){
    cueserviceinterface.setNowHelping("Erik L.");
}
 
function showUPNext(e){
    cueserviceinterface.setUpNext("Jesus Christ");
}
function launchYouTube(e){
    cueserviceinterface.startNewIntent("com.google.android.youtube.HomeActivity","com.google.android.youtube");
}
function authenticate(e){
    cueserviceinterface.launchSettings();
}
$.index.open();

Sluggishness of table view on android

$
0
0

I am using a table view with custom rows , having multiple images and labels , creating this table in a stand alone application works pretty good but when I use the same table view in my app , it works fine on iOS , but turns out to be really sluggish on android. Would be great if anyone could suggest a few points to optimize table view performance on android. I am already using class names for the custom rows. Following are the system details : Titanium Studio, build: 3.1.2.201308091617, Titanium SDK version :3.1.2.GA, OS : OS X 10.8.2 (12C60)

Titanium 3.1.1 Android 4.3 and 2.3.3 emulator crash

$
0
0

Application type: mobile

Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1)

Platform & version: Android 4.3 and 2.3.3

Device: Android emulator and Samsung Galaxy S2 with Android 4.0.3

Host Operating System: OSX 10.8.4 Mountain Lion

Titanium Studio: build: 3.1.1.201306112235

Hello guys,

I'm currently having some issues with running my app on the Android emulator and thought maybe someone could help. The problem is that when I launch the app on android emulator (2.3.3 or 4.3) or on actual device (Samsung Galaxy S2) it will crash.

I have to mention that on IPhone simulator won't crash. Android 2.3.3 emulator will load the app but then it's crashing repeateadly (reloads then crashes infintely). On android 4.3 emulator it's just a black screen when launching the app. From the logs I see that's something native...and has to do with corrupted memory but there are multiple errors among which I don't know which is more severe :)

I tried to re-install Android SDK and after that the Titanium Studio. It didn't change anything.

I attached the logs but they are very huge...sory for that :(

If someone has any ideas on this issue, please help.

Thank you !

The logs for Android 4.3 emulator:

` [INFO] Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1) [INFO] Fastdev server running, deploying in Fastdev mode [INFO] Copying CommonJS modules... [INFO] Copying project resources.. [INFO] Tiapp.xml unchanged, skipping class generation [INFO] Force including all modules... [INFO] Compiling Javascript Resources ... [INFO] Waiting for SDCard to become available.. [INFO] Re-launching application ... c1rca Error killing app, result: ['App not connected'] [INFO] Launching application ... c1rca [INFO] : Project built successfully in 3s 188ms [INFO] : Running logcat process: python "/Users/programm/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py" "logcat" "/Users/programm/Downloads/adt-bundle-mac-x86_64-20130717/sdk" "-e" [INFO][PeopleSearchIndexManage( 807)] Rebuilding index...

[ERROR][StrictMode( 702)] A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.

[ERROR][StrictMode( 702)] java.lang.Throwable: Explicit termination method 'close' not called

[ERROR][StrictMode( 702)] at dalvik.system.CloseGuard.open(CloseGuard.java:184) [ERROR][StrictMode( 702)] at java.io.FileInputStream.<init>(FileInputStream.java:80) [ERROR][StrictMode( 702)] at dalvik.system.NativeStart.main(Native Method) [ERROR][GCM ( 702)] Missing token, falling back to GSF

[WARN][Bundle ( 702)] Key GOOG.USER_SERIAL expected String but value was a java.lang.Integer. The default value <null> was returned. [WARN][Bundle ( 702)] Attempt to cast generated internal exception: [WARN][Bundle ( 702)] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) [WARN][Bundle ( 702)] at android.os.HandlerThread.run(HandlerThread.java:61) [INFO][PeopleSearchIndexManage( 807)] Rebuilding index done. [INFO][dalvikvm-heap( 766)] Grow heap (frag case) to 16.615MB for 1286224-byte allocation [INFO][MediaProvider( 669)] Upgrading media database from version 0 to 601, which will destroy all old data

[ERROR][StrictMode( 1114)] A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. [ERROR][StrictMode( 1114)] java.lang.Throwable: Explicit termination method 'release' not called

[INFO][GCM ( 807)] Message from Bundle[{error=AUTHENTICATION_FAILED}] null [ERROR][GCM ( 807)] Failed registration AUTHENTICATION_FAILED [WARN][Uploader( 807)] No account for auth token provided [ERROR][StrictMode( 702)] A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. [ERROR][StrictMode( 702)] java.lang.Throwable: Explicit termination method 'close' not called

[ERROR][StrictMode( 702)] at android.os.Looper.loop(Looper.java:137) [ERROR][StrictMode( 702)] at android.os.HandlerThread.run(HandlerThread.java:61)

[ERROR][SQLiteLog( 1042)] (1) no such table: Account

[WARN][EmailProvider( 1042)] Exception cleaning EmailProvider.dbandroid.database.sqlite.SQLiteException: no such table: Account (code 1): , while compiling: delete from Account WHERE displayName ISNULL;

[ERROR][BluetoothAdapter( 646)] Bluetooth binder is null [INFO][GCoreUlr( 598)] Ensuring that reporting is stopped because of reasons: (no Google accounts)

[INFO][SystemUpdateService( 702)] cancelUpdate (empty URL) [WARN][GCM ( 702)] DIR: /data/data/com.google.android.gms/app_APP /data/data/com.google.android.gsf [WARN][dalvikvm( 1275)] PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. [WARN][dalvikvm( 1275)] PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.

[INFO][ActivityManager( 330)] Start proc com.google.android.apps.maps for service com.google.android.apps.maps/com.google.android.apps.gmm.ulr.GcoreUlrService: pid=1275 uid=10026 gids={50026, 3003, 1015, 1028} [INFO][GCoreUlr( 598)] Ensuring that reporting is stopped because of reasons: (no Google accounts)

[ERROR][WVMExtractor( 40)] Failed to open libwvm.so

[ERROR][SQLiteDatabase( 766)] Error inserting preview_bitmap=[B@418dca38 size=168x134 name=Widget:com.android.email/com.android.email.provider.WidgetProvider

[ERROR][SQLiteDatabase( 766)] android.database.sqlite.SQLiteConstraintException: columns name, size are not unique (code 19) [ERROR][SQLiteDatabase( 766)] at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)

state=CONNECTING [WARN][dalvikvm( 1323)] PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. [WARN][dalvikvm( 1323)] PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.

[INFO][ActivityManager( 330)] Start proc com.svox.pico for service com.svox.pico/.PicoService: pid=1323 uid=10032 gids={50032, 1015, 1028} [INFO][TextToSpeech( 1275)] Sucessfully bound to com.svox.pico [INFO][PackageManager( 330)] Running dexopt on: com.svox.pico [ERROR][GCoreUlr( 598)] Failed to retrieve GMM settings, proceeding without them [ERROR][GCoreUlr( 598)] java.util.concurrent.TimeoutException [ERROR][GCoreUlr( 598)] at eha.a(SourceFile:80) [ERROR][GCoreUlr( 598)] at android.os.HandlerThread.run(HandlerThread.java:61)

[WARN][MediaScanner( 669)] Error opening directory '/storage/sdcard/.android_secure/', skipping: Permission denied. [WARN][PeopleReceiver( 807)] Received unexcepted broadcast: android.intent.action.PACKAGE_CHANGED

[INFO][ContactDirectoryManager( 724)] deleted 0 stale rows which don't have any relevant directory [INFO][ContactDirectoryManager( 724)] Discovered 0 contact directories in 4477ms [INFO][ContactsProvider( 724)] Locale has changed from null to en_US [INFO][ContactsDatabaseHelper( 724)] Switching to locale en_US (ICU v50.1.1.3)

[WARN][zipro ( 660)] Unable to open zip '/data/local/tmp/app.apk': No such file or directory

[WARN][PackageParser( 660)] Unable to read AndroidManifest.xml of /data/local/tmp/app.apk

[WARN][PackageParser( 660)] java.io.FileNotFoundException: AndroidManifest.xml

[WARN][PackageParser( 660)] at android.content.res.AssetManager.openXmlAssetNative(Native Method) [WARN][PackageParser( 660)] at dalvik.system.NativeStart.run(Native Method) [WARN][DefContainer( 660)] Failed to parse package [WARN][ActivityManager( 330)] No content provider found for permission revoke: file:///data/local/tmp/app.apk

[ERROR][cutils-trace( 1388)] Error opening trace file: No such file or directory (2)

[INFO][ActivityManager( 330)] START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.c1rca.c1rca/.C1rcaActivity} from pid 1388

[INFO][dalvikvm-heap( 330)] Grow heap (frag case) to 7.185MB for 1536016-byte allocation [INFO][dalvikvm( 1399)] Turning on JNI app bug workarounds for target SDK version 8...

[INFO][ActivityManager( 330)] Start proc com.c1rca.c1rca for activity com.c1rca.c1rca/.C1rcaActivity: pid=1399 uid=10050 gids={50050, 1015, 3003, 1028} [INFO][ARMAssembler( 37)] generated scanline__00000077:03515104_00009001_00000000 [131 ipp] (153 ins) at [0x4191d1f0:0x4191d454] in 9293002 ns

[ERROR][TiApplication( 1399)] (KrollRuntimeThread) [912,966] APP PROXY: ti.modules.titanium.app.AppModule@417a98d8 [WARN][V8Object( 1399)] Runtime disposed, cannot set property 'userAgent' [INFO][ActivityManager( 330)] START u0 {cmp=com.c1rca.c1rca/org.appcelerator.titanium.TiActivity (has extras)} from pid 1399 [INFO][TiAPI ( 1399)] Stored login

[INFO][dalvikvm-heap( 1399)] Grow heap (frag case) to 4.723MB for 1536016-byte allocation [INFO][dalvikvm-heap( 1399)] Grow heap (frag case) to 5.629MB for 635812-byte allocation [WARN][TiUIActivityIndicator( 1399)] (main) [234,1341] Invalid value "0" for style.

[ERROR][dalvikvm( 1399)] JNI ERROR (app bug): local reference table overflow (max=512)

[WARN][dalvikvm( 1399)] JNI local reference table (0x2a22cfa0) dump: [WARN][dalvikvm( 1399)] Last 10 entries (of 512): [WARN][dalvikvm( 1399)] 511: 0x4196b738 org.appcelerator.kroll.KrollDict [WARN][dalvikvm( 1399)] 510: 0x417b11c8 org.appcelerator.titanium.proxy.ActivityProxy [WARN][dalvikvm( 1399)] 509: 0x4178faa0 ti.modules.titanium.ui.TabGroupProxy [WARN][dalvikvm( 1399)] 508: 0x41a9bfc8 org.appcelerator.titanium.proxy.ActionBarProxy [WARN][dalvikvm( 1399)] 507: 0x41791940 ti.modules.titanium.ui.TabProxy [WARN][dalvikvm( 1399)] 506: 0x417b11c8 org.appcelerator.titanium.proxy.ActivityProxy

[WARN][dalvikvm( 1399)] Summary: [WARN][dalvikvm( 1399)] 1 of java.lang.String [WARN][dalvikvm( 1399)] 1 of java.util.HashMap$KeySet [WARN][dalvikvm( 1399)] 2 of org.appcelerator.kroll.runtime.v8.V8Object (2 unique instances) [WARN][dalvikvm( 1399)] 127 of org.appcelerator.titanium.proxy.ActivityProxy (1 unique instances) [WARN][dalvikvm( 1399)] 2 of org.appcelerator.kroll.KrollDict (2 unique instances) [WARN][dalvikvm( 1399)] 127 of ti.modules.titanium.ui.TabGroupProxy (1 unique instances) [WARN][dalvikvm( 1399)] 127 of ti.modules.titanium.ui.TabProxy (1 unique instances) [WARN][dalvikvm( 1399)] 125 of org.appcelerator.titanium.proxy.ActionBarProxy (1 unique instances)

[ERROR][dalvikvm( 1399)] Failed adding to JNI local ref table (has 512 entries)

[ERROR][dalvikvm( 1399)] VM aborting

F/libc ( 1399): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 1417 (KrollRuntimeThr)

[INFO][DEBUG ( 35)] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** [INFO][DEBUG ( 35)] Build fingerprint: 'generic/google_sdk/generic:4.3/JB_MR2/774058:eng/test-keys' [INFO][DEBUG ( 35)] Revision: '0' [INFO][DEBUG ( 35)] pid: 1399, tid: 1417, name: UNKNOWN >>> com.c1rca.c1rca <<< [INFO][DEBUG ( 35)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d

[INFO][WindowState( 330)] WIN DEATH: Window{41765ab0 u0 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity} [INFO][WindowManager( 330)] Screenshot max retries 4 of Token{41752648 ActivityRecord{417637b0 u0 com.c1rca.c1rca/org.appcelerator.titanium.TiActivity}} appWin=Window{41762950 u0 Starting com.c1rca.c1rca} drawState=4

android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:635) [WARN][ActivityManager( 330)] at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:990)

[WARN][ActivityManager( 330)] at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:834

com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java [INFO][ActivityManager( 330)] Start proc com.c1rca.c1rca for activity com.c1rca.c1rca/.C1rcaActivity: pid=1428 uid=10050 gids={50050, 1015, 3003, 1028} [INFO][ActivityManager( 330)] Process com.c1rca.c1rca (pid 1399) has died and restarted (pid 1428).

[ERROR][NativeCrashListener( 330)] Unable to report native crash

[ERROR][NativeCrashListener( 330)] java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1

[ERROR][NativeCrashListener( 330)] at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) [ERROR][NativeCrashListener( 330)] at java.util.ArrayList.get(ArrayList.java:308) [ERROR][NativeCrashListener( 330)] at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86) `

The logs for Android 2.3.3 emulator:

` [INFO] Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1)

[WARN][InputManagerService( 62)] Got RemoteException sending setActive(false) notification to pid 618 uid 10038 [INFO][ActivityManager( 62)] Displayed com.c1rca.c1rca/.C1rcaActivity: +4m47s976ms (total +3s554ms) [INFO][ActivityManager( 62)] Displayed com.c1rca.c1rca/org.appcelerator.titanium.TiActivity: +1s588ms [INFO][EventLogService( 194)] Aggregate from 1379503037486 (log), 1379503037486 (data)

[WARN][dalvikvm( 634)] ReferenceTable overflow (max=512)

[WARN][dalvikvm( 634)] Last 10 entries in JNI local reference table: [WARN][dalvikvm( 634)] 502: 0x406773d0 cls=Lti/modules/titanium/ui/TabGroupProxy; (164 bytes) [WARN][dalvikvm( 634)] 503: 0x40680028 cls=Lorg/appcelerator/titanium/proxy/ActivityProxy; (92 bytes) [WARN][dalvikvm( 634)] 504: 0x40679208 cls=Lti/modules/titanium/ui/TabProxy; (116 bytes) [WARN][dalvikvm( 634)] 505: 0x406773d0 cls=Lti/modules/titanium/ui/TabGroupProxy; (164 bytes)

[ERROR][dalvikvm( 634)] Failed adding to JNI local ref table (has 512 entries)

[INFO][dalvikvm( 634)] "KrollRuntimeThread" prio=5 tid=10 RUNNABLE [INFO][dalvikvm( 634)] | group="main" sCount=0 dsCount=0 obj=0x40627d00 self=0x2cea70 [INFO][dalvikvm( 634)] | sysTid=644 nice=0 sched=0/0 cgrp=default handle=2947344

[ERROR][dalvikvm( 634)] VM aborting

[INFO][DEBUG ( 31)] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** [INFO][DEBUG ( 31)] Build fingerprint: 'generic/google_sdk/generic:2.3.4/GINGERBREAD/123630:eng/test-keys' [INFO][DEBUG ( 31)] pid: 634, tid: 644 >>> com.c1rca.c1rca <<<

[INFO][DEBUG ( 31)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d

[INFO][DEBUG ( 31)] r0 fffffec4 r1 deadd00d r2 00000026 r3 00000000 [INFO][DEBUG ( 31)] r4 800a45c0 r5 40013be0 r6 002ceba8 r7 41924f9c [INFO][DEBUG ( 31)] r8 80d67478 r9 002f7dec 10 40673a08 fp 002f7de8 [INFO][DEBUG ( 31)] ip 800a4720 sp 4431ec28 lr afd19375 pc 80045a4a cpsr 20000030 [INFO][DEBUG ( 31)] #00 pc 00045a4a /system/lib/libdvm.so [INFO][DEBUG ( 31)] #01 pc 00049e06 /system/lib/libdvm.so

[ERROR][InputDispatcher( 62)] channel '407a9e78 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8

[ERROR][InputDispatcher( 62)] channel '407a9e78 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

[INFO][ActivityManager( 62)] Process com.c1rca.c1rca (pid 634) has died. [INFO][WindowManager( 62)] WIN DEATH: Window{407a9e78 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity paused=false}

[ERROR][TiApplication( 651)] (KrollRuntimeThread) [514,514] APP PROXY: ti.modules.titanium.app.AppModule@406425c0

[WARN][V8Object( 651)] Runtime disposed, cannot set property 'userAgent' [INFO][dalvikvm( 651)] Could not find method org.appcelerator.titanium.TiBaseActivity.getActionBar, referenced from method ti.modules.titanium.ui.TabGroupProxy.windowCreated [WARN][dalvikvm( 651)] VFY: unable to resolve virtual method 7642: Lorg/appcelerator/titanium/TiBaseActivity;.getActionBar ()Landroid/app/ActionBar; [INFO][ActivityManager( 62)] Starting: Intent { cmp=com.c1rca.c1rca/org.appcelerator.titanium.TiActivity (has extras) } from pid 651 [INFO][TiAPI ( 651)] Stored login [INFO][TiAPI ( 651)] storedUsername:null [INFO][TiAPI ( 651)] storedPwdHash:null [INFO][TiAPI ( 651)] Ti.App.FriendName: 0

[WARN][dalvikvm( 651)] ReferenceTable overflow (max=512) [WARN][dalvikvm( 651)] Last 10 entries in JNI local reference table: [WARN][dalvikvm( 651)] 502: 0x406778e0 cls=Lti/modules/titanium/ui/TabGroupProxy; (164 bytes)

[WARN][dalvikvm( 651)] JNI local reference table summary (512 entries):

[[ERROR][dalvikvm( 651)] Failed adding to JNI local ref table (has 512 entries)

[INFO][dalvikvm( 651)] "KrollRuntimeThread" prio=5 tid=10 RUNNABLE org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [INFO][dalvikvm( 651)] [ERROR][dalvikvm( 651)] VM aborting [INFO][DEBUG ( 31)] Build fingerprint: 'generic/google_sdk/generic:2.3.4/GINGERBREAD/123630:eng/test-keys' [INFO][DEBUG ( 31)] pid: 651, tid: 661 >>> com.c1rca.c1rca <<< [###[INFO][DEBUG ( 31)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d [INFO][DEBUG ( 31)] r0 fffffec4 r1 deadd00d r2 00000026 r3 00000000

[INFO][BootReceiver( 62)] Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE) [ERROR][InputDispatcher( 62)] channel '4072fe10 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 [ERROR][InputDispatcher( 62)] channel '4072fe10 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Channel is unrecoverably broken and will be disposed! [INFO][ActivityManager( 62)] Process com.c1rca.c1rca (pid 651) has died. [INFO][WindowManager( 62)] WIN DEATH: Window{4072fe10 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity paused=false} [INFO][ActivityManager( 62)] Start proc com.c1rca.c1rca for activity com.c1rca.c1rca/.C1rcaActivity: pid=667 uid=10038 gids={1015, 3003} [INFO][dalvikvm( 667)] Could not find method android.app.Application.onTrimMemory, referenced from method org.appcelerator.titanium.TiApplication.onTrimMemory [WARN][dalvikvm( 667)] VFY: unable to resolve virtual method 123: Landroid/app/Application;.onTrimMemory (I)V `

Barcode

$
0
0
i m trying to use a barcode module (com.mwaysolutions.barcode) but i m getting an error while compiling project . the error is : [ERROR] Error(s) compiling generated Java code [ERROR] org\appcelerator\titanium\TiApplication.clas(org\appcelerator\titanium:TiApplication.class): warning: Cannot find annotation method 'value()' in type 'android.annotation.SuppressLint': class file for android.annotation.SuppressLint not found \BarcodeExampleApplication.java:40: cannot find symbol symbol : class TitaniumBarcodeBootstrap location: package com.mwaysolutions.barcode runtime.addExternalModule("com.mwaysolutions.barcode", com.mwaysolutions.barcode.TitaniumBarcodeBootstrap.class); 1 error any help???
Viewing all 8068 articles
Browse latest View live




Latest Images