I found sencha touch interesting andafter trying a default app in web, wanted to do some app for mobile devices. I was trying to wrap sencha touch with phonegap in eclipse for android by following the steps as mentioned in (this link) http://bgmemo.com/tutorial-sencha-touch-and-phonegap/. But as soon as i launch emulator a white screen with name android appears and within seconds i get error as "The Requested file was not found./android_asset/www/index.html(no such file directory) (file:///android_asset//www//index.html)". I am not getting errors in console. Any solutions plz?
1)I have already tried (this)http://www.robertkehoe.com/2013/01/fix-for-phonegap-connection-to-server-was-unsuccessful/
The entire Sencha touch project should be in www folder. Then the application will be launched. You can write script to compile your sencha touch project and then copy the project contents to www.
The directory 'www' is the entry for the hybrid applicatoin. Try this and let me know.
Related
I have written a Flutter app which implements several deep links with package uni_links. The deep links work correctly with adb commands. Then I created actions.xml in this path:
D:\Android\AndroidStudioProjects\FlutterProjects\garage_controller\android\app\src\main\res\xml\actions.xml
I also added the following lines in AndroidManifest.xml:
<meta-data
android:name="com.google.android.actions"
android:resource="#xml/actions" />
Android Studio highlighted "#xml/actions" in red and complains that it cannot resolve the symbol. I have other parts of AndroidManifest highlighted red. I guess these errors are because of Flutter.
I uploaded the app to Google Play and started internal testing. When I ran App Action Test Tool (AATT), I got the following error:
No Android Module with actions file reference found. You need one Android Module with an actions file reference.
My questions are:
Does App Actions work in a Flutter App?
Does AATT work on a Flutter App?
Why do I get the "cannot resolve symbol" error for "#xml/actions"? I think I put everything in the right place. Thanks for your help.
I got it fixed. Basically everything was done correctly in my Flutter app. The path of actions.xml was also correct. The issue is with AATT which does not know where to find actions.xml in a Flutter app. I just had to open the Android portion of the app in Android Studio. Then AATT knew where to find the file. Google did not put a lot of AI in its tool. More details in here: https://issuetracker.google.com/issues/204233238
I'm using facebook sdk 7.18.0 with Unity.
When I Build And Run, it opens in a browser window and this error is shown.
FileNotFoundExceptin: Could not load file or assembly 'Facebook.Unity.Canvas' or one of its dependencies
But when I run the unity project by clicking the Play button, it works fine.
Is this because, Facebook sdk for unity doesn't support running in the browser?
Appreciate any help to resolve this issue.
I'm trying to implement mobile application using Ionic. I'm following this, but unfortunately logging in doesn't work on real device. It works fine in the browser and the emulator. I did every step from the tutorial, I did the tutorial 2-3 times and still get the same error.
I am logged in successfully on my device but then I see the following screen:
I already have both urls as redirect urls in my application settings in FB.
http://localhost:5000/oauthcallback.html
https://www.facebook.com/connect/login_success.html
I tried to debug OpenFB with alerts. I can see "cordova events" alert but then I have alerts on the first lines of loginWindow_loadStartHandler and loginWindow_exitHandler but they are not executed. I guess that the problem is there but I have no idea how to fix it.
if (runningInCordova) {
alert("cordova events");
loginWindow.addEventListener('loadstart', loginWindow_loadStartHandler);
loginWindow.addEventListener('exit', loginWindow_exitHandler);
}
Also I have some questions about Ionic and Phonegap.
I use Ubuntu and I am trying to build iOS and Android applications.
My application's structure is:
app/
hooks/
platforms/
plugins/
scss/
www/
Also I have InAppBrowser plugin:
cordova plugin add org.apache.cordova.inappbrowser
but this plugin is not part of app/www folder.
I am trying to build a phonegap application in their site. I made a .rar file of the app/www folder content and upload it. Everything seems to be fine. But in Phonegap site when I click PLUGINS, I see This application has no plugins. How should I add inappbrowser to the application, maybe that is the reason why my FB authentication doesn't work. If I build the whole app folder, again I see the same message - This application has no plugins.
So when create an archive file of the content for Phonegap, which folder I should archive - the whole app folder with all subfolders or only app/www? What is the correct flow? Also how crossplatform app should now about added plugins?
I ran into this issue today, if someone is still looking for the solution for this:
loginWindow.addEventListener('loadstart',
loginWindow_loadStartHandler);
is implemented in the js file, but the loadstart event never fires on my Android (but works on WindowsPhone cordova javascript app), instead i added:
loginWindow.addEventListener('loadstop',
loginWindow_loadStartHandler);
,which works on both Android and WP (with InAppBrowser 1.2.0), IOS test is still ahead.
I'm just getting started on Samsung Smart TV development, and so far my first baby step has been a big failure.
I am running Linux, and because I already have Eclipse installed and configured for Android development, I haven't had success in getting the Smart TV SDK installed and working. However, encouraged by How to build & deploy a Samsung SmartTV app without the IDE (e.g: on Linux), I have decided to go forward without it.
I do have the VirtualBox emulator running, however. So right now, I have built a basic app from the example here:
http://www.samsungdforum.com/upload_files/files/guide/data/html/html_2/getting_started/coding_js.html
And would like to see if I can just get it to start up on my emulator.
If I understand correctly, I need to take the directory structure of my app (with config.xml, index.html, and the Resources, JavaScript and CSS folders), package it into a .zip, and drop it in the "Apps" folder I have shared with the emulator. But when I do that, if I go to the emulator, refresh it, and hit "Open App", I am presented with an empty App list.
I know that the emulator is seeing the Apps folder, because if I put a subdirectory in it, then that directory shows in the Apps list in the emulator. But it's not showing the .zip file for my app.
I have been scouring the web for any useful information, but all tutorials just say something along the lines of "now test the app in your emulator to make sure it works. Now on to deployment...". Nobody gives any information on how to test the app in the emulator.
Can someone please shine some light on this for me?
Unzip your app in the app folder it should look like this
Samsung TV SDK 4\apps\yourapp\index.html
Samsung TV SDK 4\apps\yourapp\config.xml
Samsung TV SDK 4\apps\yourapp\other files and folders
I am new to sencha touch. I want to create a mobile application in eclipse ide.
Can anyone tell me how to do that? I got many links for creating web app but none for mobile app.
The first thing I recommend is that you get started with sencha command, this will help you when building out the app for native packaging, not to mention creating an initial app for you with the basic essentials: http://docs.sencha.com/touch/2-0/#!/guide/command
Android Packaging: http://docs.sencha.com/touch/2-0/#!/guide/native_android
iOS Packaging: http://docs.sencha.com/touch/2-0/#!/guide/native_packaging
This next one talks about phonegap and working with eclipse... which since sencha command is available, 3rd party sdk's like phonegap would be the only rrason to compile in eclipse, otherwise sencha command can handle it.... http://andidog.de/blog/2012/06/packaging-a-sencha-touch-2-application-with-phonegap-for-android/