I need to minimize my app and need to launch a browser(Any mobile browser/Firefox/Chrome/Safari) in iOS/Android mobile. If there any possible way to achieve it using Calabash.
Have ready to use any web drivers like Selenium / Watir.
Please provide your suggestions to overcome this issue. Thanks in Advance.
In Calabash iOS, you can background the app, but you cannot interact with any applications outside of your app.
# send the app to the background for 5 sec
> send_app_to_background 5
I have heard that some people have had success using watir from within Calabash to open and interact with a web browser on the host machine.
I do not know enough about Calabash Android to comment. I do know that the Calabash Android app_to_background function is not yet implemented.
Related
What is the proper way to have an app shell that simply loads a website. and properly handles orientation, etc?
We are releasing our app in a fragmented roll out - We have our mobile website completed, but require a native app to download, we will be swapping the 'guts' of our app in a few months with proper native code, so want to simply open the website up if people download our app for now
I found stuff like this
https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/
I also know that a webview can be used, but is that the proper way to do that?
For iOS, WKWebView is definitely the way to go moving forward after iOS 8.0 with its technology almost similar to Safari's Web View Controller. It is highly customizable and you may want to check out the documentation here to learn more.
I'd like to know if it's a way to write a mobile application which can purchase products through OpenCart website. Here are two possible methods I can think of. Please suggest which one is better or if there is another better way:
OMF - OpenCart mobile framework. I guest it's just a theme for the open cart website. Is it possible to run this inside PhoneGap ?
OpenCart Restful API. We can build the native UI in mobile application. But if there are any limitations?
I'll appreciate if anybody who have experience to build the open cart website for the mobile application advise. Thank you so much.
I shall answer because I was working on somewhat similar project before. Your suggested solutions first.
1] Using phonegap you develop hybrid mobile apps which run on webview on respected mobile platforms. And I don't recommend this method because what it does is renders the exact website DOM in mobile's webview and it will get rejected by Apple since they won't allow this due to native design guidelines consistency. So, unless you are only targeting Android users, forget this option.
2] Building native mobile app is preferable. However I should give you a heads-up that Opencart has prewritten APIs for Orders, customers, shipping, vouchers etc but not for products. You will have to manually write it.
I can't figure out what limitations you are referring. Obviously, in a mobile app the desktop version extensions won't work. the requirement mentioned in the first line of question can certainly be meet using API with native development.
This maybe a basic question, but I really wanted to ask it.
Consider a web application which is deployed on a cloud server and I want it to be available offline on a mobile(android device). Is it possible? Or will there be a separate installation on every mobile? How does phone gap or cordova help achieve it?
Yes it is possible. Cordova is an android application that has a webview (like a browser) for you to display an html app which is normally build with html+javascript. But cordova/phonegap applications should be made simpler than usual web application since smartphones has limited resources, unlike normal servers. There will be separate installation per mobile.
Phone Gap, Cordova etc. build native application, each user must install it to work offline. You can also build such native application manually by yourself with WebView. It can be easy to build but may require to changes in business logic to separate handle offline case, like store data locally and then sync when go online - this depend of application.
Does anyone know of an easy way to present an android app through a website? Maybe the equivalent of an emulator running on a webpage. It would be great for demonstrating app functionality via the web and doing basic initial customer design approval without them having to install an app. It would also be good for marketing existing apps.
I think creating a video is the best way. If you are on a mac, try this:
Screenflow
If you are on Windows, try this:
Camtasia
I use ScreenFlow and then put the video on my website for clients to see.
You can use Droid VNC Server on your own handset and connect an android handset to your Network, then give them a webpage with the HTML web viewer of Droid VNC server. That would probably give you the best solution and would be transparent for the customer.
Do this
Install the ADB Driver to directly debug the app in Android Phone
Open Android Studio, directly run your app in Android phone.
Click the Capture icon. its capture the screenshot of android phone.
4.See the images , Android Studio have own Screenshoter, Video Recorder.
5.No Need of Third party Softwares.
Hope this helpful.
Happy Coding :)
Android being based on Java, I guess one could adapt the emulator for a webbrowser version, but this would be quite long, and inefficient.
If you forced your user to download the emulator (you could package it without the whole sdk), you could make a batch script to launch it and install your apk, but for a lambda user this would be too much trouble to test one app.
The only solutions left are
making a video of your app's features (you could then add subtitles and graphic design to enhance a point in the video)
make a fake version using flash or HTML5 / javascript
make a java applet (you could then reuse some of your code, and only redesign the GUI)
I would recommed using TeamViewer or other simmilar remote access/remote desktop sharing solution.
Teamviewer is free.
ps.
i know this is not on webpage, but i figure if you'll be presenting this could be a good option.
I have an app in Android Market which is a standalone app that's essentially a full conduit to an SQLite Database(add, change, delete, inquiry). Some of my potential clients have asked to see a sample of my work, but they don't have an Android device.
Other than just showing them screenshots etc., is there a way I could have them go to a website where they can actually run it & check it out.
I'm thinking there would be a programming element involved (convert app to a mobile website essentially?), hence posted this question here.
Not quite sure where to get started. Any help would be appreciated.
You can use one of the patterns like MVC/MVP/MVVM to create your core library and then develop additional UI variants for different clients: Android, java applet etc.
Alternatively you can develop a mobile web site as you suggested and use simple android app to navigate built-in browser to it. This might be somewhat transparent to most users. I think Android MSN client uses such an approach.
I see 2 relatively easy options.
Give them an .apk designed to only
run on the emulator (you can check
the ID, the emulator ID is 00000...)
and they can boot up an emulator and
run it. If you're worried about them
reverse engineering your .apk you
probably shouldn't go down this
route. Or if you don't want them to
have to install the emulator
Set up a virtual machine and let
your clients remote desktop into it.
Give them permissions to only run
the emulator or however you want to
set it up