How to console cordova applications in browser - android

This is the first time, I am working on cordova applications. I created a dummy application as per documentation and tested in simulator working fine.
Now I made an .APK file and installed in my own android device, there also working fine. Whenever I am modified anything, I have to make APK file and re-installing... these everything taking time for my development.So I decided to test application directly in my device instead of simulator. I Goggled and found URL-1 URL-2, They are suggesting,we can overcome this with USB cable. As per their suggestions I did it, now directly I am running application into my device(I mean no need to make APK file).
Note : I am using Eclipse,windows7 for my development.
Until now, this was fine, but the problem I am not able to console . If I test my application with simulators I can console in browser using chrome tools, that way I can identify what going wrong. I can put breakpoints there and I can debug.
I don't want to test with simulators(I want to test directly with my devices), but I can't able to see console If I test with my own device.
Regarding this, I searched but I didn't find any solutions. can anyone help me.
Basically
I want to test my application directly with my device(don't want to test with simulators)
I want to console
I did first point with USB, I didn't find any way for my second point. can anyone help me .
Thanks.

You have a few options: The easiest option is to use alerts instead of console logs. This is a little annoying still since you potentially get a bunch of alerts, but it's definitely better than rebuilding and/or redeploying your cordova application every time you want to test something.
If you are set on using console.log(), you need to install abd and use logcat. For information on setting this up, check this url:
https://developer.mozilla.org/en-US/Firefox_OS/Debugging/On-device_console_logging
You can run this command in your terminal to output the logs once you have installed abd:
abd logcat

I am using gapDebug app to debug my applications. It's very simple.

Related

How to run my iOS app on iOS emulator (like emu/cider app) in Android?

This is my first question on Stack Overflow, so sorry in advance if I asked the question in the wrong place or messed up.
I have this project where I am repurposing an old android tablet for the project. I need to make an app which will always be open on the tablet. The problem is, I am not proficient in making apps for Android. So, I thought let me run an iOS emulator (like iemu or Cider APK). Then, I realized I don't know how to put my app on the emulator.
I was thinking of ad hoc, but I am not sure if it will work. Then I though about stuff like Snapchat ++ or Instagram ++. How do they distribute it? For those who are unfamiliar with it watch this video starting at 1:55.
So in short, can I put my iOS app on the emulator or is it just better to get better at making android apps?
Thanks in advance
Based on my quick research I checked just briefly bunch of articles about Cider APK or iEMU APK and also comments and I downloaded one app but didn't run it because its basically distributed from some google drive account and looks quite dangerous to run on my phone.
But based on my understanding how this is actually doable https://appetize.io looks like only way, as this is merely some remote virtualization solution and they have business model instead of ad scam business model as those others. appetize.io runs in browser and has a free plan with limitations but usable , also they allow to upload your apk to their server to run it on their iOS devices that is basically visible in web browser, while quite slow but working and its real thing and useful.
I am guessing you would get Cider APK or iEMU APK.
I have never done it myself but I know it's doable. Read their documentation.
Install the emulator in your IDE and run by choosing the desired destination.
Hope this helps.
http://www.androidcrush.com/run-ios-apps-on-android/

how to use foxpro in android

I have a running app on fox pro which is developed using DOS. And its working very fine on the computer system. But due to the requirement of the users, now they want it to run on the android device.
So
1. Can you please tell me whether any plugin or bridge is already there in the market or should I have to develop one. I am basically looking for the bridge which can make communication between Android and fox pro. I don't know whether this is possible or not.
2. Any solution to open console in the android device where I can execute DOS commands in Android device like I do in the computer system.
Specifically I don't want for redevelopment, but if there is no way to achieve then let's see.
Apparently, you can run DOSbox under Android:
http://androiddosbox.appspot.com/
I've never tried this, but maybe it will provide what you're looking for.
Between a combination of psgsdk and Appery.io and software that helps convert screens from SCX files into Appery, this is a lot easier now. I've done this several times and have apps in both Google play and IOS app store that are FoxPro apps. The back end and all code is Visual FoxPro and the front end is Appery. #abigdreamer on twitter gets ahold of me -- let me know if I can help -- Know this post is years old but others might need the same.

Installing apk without user input

I have been searching the internet wildly for an answer to this question.
We are creating custom android app for internal use only and we would be installing that on custom andoid devices. We would like to have full control of the device through the app. The end user of this device is not meant to use anything other than the app on this device. I have sealed out all the possibilities of getting out of the app except this one possibility where the program tries to update itself and asks for user permission.
Let me repeat again, This app is not meant to be put on market, only for use with custom devices designed for specific purpose. So security is not an issue here.
The device is rooted and we have done a lot of alterations with it. But I cant quite figure out how to make this update work.
If you have any ideas/solution please share it with me. I can do anything with my device, (even dig a hole in it if required :P) as they would be custom made, and would be packaged with us before going out. Just have to make it work.
If you are talking about internally installing the APK with like an update application specifically designed to update your other application which is not managed by Google Play you may want to look into this. So between xjaphx's answer and the link I just shared you will be able to install and maintain updates.
This is as simple as how it works.
Pre-condition:
Get devices rooted
Prepare Android development environment (Android SDK, platforms-tools)
A cable to connect PC and devices.
Steps:
Open command-line if Windows or shell if Linux
type: "adb push YourApp.apk /system/app"
That's done for installation of the app. Reboot and check whether your app works or not.

Will Development on my Android Phone Cause Problems?

I would like to start looking at development for Android applications (nothing huge, just for learning). Before I begin, I would like to find out whether or not development on the Android phone I use daily would be corrupted or changed in some way if I used it as a development device.
I probably won't put anything on the Market, but I would just like to test out how everything "works" with Android development.
Any help that will guide me is great.
Thanks.
It shouldn't cause any problems at all. The only problem I can imagine is that you have to enable installation of applications from unknown sources (i.e. not the marketplace). You just need to be sensible not to go installing applications from dodgy places.
No, not at all! Sorry for the shortness of the answer, but that's it.
The only problem I can think of is writing to internal memory more than usual, but if you install a lot of new apps, the effect will be the same, so it's nothing special. And as alextsc said, if you write something and it doesn't work, just remove it, and that's all.
Not at all. But even better, when you set everything up (Eclipse, the Android SDK and the ADT Eclipse plugin) you'll also get an Android emulator that you can test your development projects on virtually.
Still, it's just fine (and recommended) to do testing on an actual device, but if you're just playing around, you can likely just use the emulator and only deploy to your device if the end result is something you'd like to show off to your friends!
Best of luck!
Hey in addition to the above answers,
You should actually test on your device when you are making an app that uses one of the following :
GPS, or wi-fi to get user location
when you want to use any phone sensor in your app
when you are trying to integrate camera/ camcorder in your app
also you might need to actually test phone call/sms functionality integrated in an app
otherwise the emulator just works fine

how to find the errors of a non market android app when running in a device

i am trying to run a non market app in my device. I am just trying to learn from that .apk file. The tutorial of the app says that it works good and fine. The app has worked in one of my device, but not working in other device. How can i know the errors which causing the app to get crashed....
I would suggest that you dont need to install and run the SDK to find out the stack trace. There are many applications available in the market that will let you view the log cat on the device.
I would beware though, that if you are not a software engineer, or dont have specific knowledge of android/java then the contents of the log might not be of much use to you.
Do you have an Android development environment set up? If you're using Eclipse, you can: connect your device via USB, select it in the Devices pane of the DDMS perspective, and watch the LogCat window for exceptions or other clues to the cause of the problem.
You can use remote stack trace plugin like http://code.google.com/p/android-remote-stacktrace/

Categories

Resources