Website to android app approach - java

I'm a newbie android developer and we have a website that sells some stuff (using a payment gateway), you can also login on the site using credentials, facebook, or google+ login. Now we have a need for an android and iOS app. What is the best approach to port the site functionalities to Android or iOS app? What are the issues I need to consider when I choose one approach? What would be the best approach: native, hybrid (phonegap, xamarine etc.) or using wrapped (using webview as far as I know)? I'm especially interested in the user login part (because I want the user to be able to login to his account if it exists and if not to create it using the website API endpoint - this is how I imagine it), how to solve that when choosing between these approaches? Any suggestions (answers, comments, links, books) would be helpful.
Thanks

My sugestion is to do native, always can reach more performance in multi thread ,high concurrency transactions and heavy applications.
For android, you can build from source an application, and export the html/css content to the smartphone using android.webkit.WebView. Take a look:
https://developer.android.com/reference/android/webkit/WebView.html
I think is a excellent solution for your problem.

Related

FaceBook Page Crawling

I was developing a social media aggregator and was wondering if there was a way to crawl FaceBook, Twitter and other social media networking sites, by using Java Code. I want to crawl specific data from FaceBook Pages. Do I require specific permissions from FaceBook or any other requirement?
Technically yes... #2
https://www.facebook.com/legal/terms
If you're building it in Java as a Robot, I've had more success using JS and a local/remote webserver. Though this in theory is more easily detected
If you're building it as an essentially automated web browser as long as you rate limit yourself and add in a little random wait there is no good way of detecting it.
Yes according to https://www.facebook.com/apps/site_scraping_tos_terms.php you need written permission from Facebook if you are going to crawl them.

Google App Engine Create New Google Account

I am working on a requirement in which I have to create new registration module for creating a new account on google. I plan to used google app engine with Java environment.
Now I have no idea for meet this requirement.
Can you advise me to create this module.
And I have another one question, does Google APP (Free Edition) use SSO or not?
To my understanding Gae does use sine sign on
I would suggest you to take a look at documentation on GAE here
And a small article written for authentication by me here
When user is redirected to Google login screen, and he does not have an ID, he can create one ( I would first suggest you to work on part where user is forwarded to login screen and is asked to login, you will understand what I mean)
As far SSO, there are discussions here and here which do suggest it can work with proper configuration. Hope this helps

Facebook Android sdk and Facebook app overlapping

I have developed an Android game that integrates facebook SDK for checking if one has liked and sharing results.
I heard from my mate that he had problem that made him unable to use the like for reward feature on my app, so I decided to install facebook app myself to check out the problem.
For some reason if I am trying to access the fb api reading data from URL "https://api.facebook.com/method/pages.isFan?format=json&access_token=ACCESS_TOKEN&page_id=PAGE_ID" it opens up facebook app on Android which only flashes and then turns off.. How can I avoid this or is there better way to check if one has liked my page in order to give him reward?
I haven't used the Facebook API, but the Facebook app is probably opening because it's listening for broadcast Intents to "api.facebook.com". You could explicitly send the intent to a browser package instead, but this isn't a good solution as there are many browsers.
I would try to do a HTTPS request using a Loader to fetch and parse the json. Have you tried this yet?
I can't paste any code right now, sorry.
From your comment to above Answer , Glad to know that you solved your problem,
Here is the answer for your Question
is there better way to check if one has liked my page
You can surely use FQL - Facebook Query Language to do this, given under the developer documentation in Facebook site.
There are Two different table
1.Page - where you can get all the detail about the page
2.Page_Fan - which you can use to know the fan-id for the page

java or php for developing database driven android app

I have an existing PHP MySQL web app that I want to make an android app for to look up account info, get status info for work orders, upload photos, etc.
I'm new to Android Dev and found a site phpforandroid.net that says I can use PHP to build android apps. 6 years ago I did a basic Java class n learned a little about Java, but not much.
I want to have a login to the app, then present a menu to drill further into heir account info.
My first choice would be PHP if the database interaction can happen, but I don't really know. Anyone else gone down the PHP db driven route, or is Java the way I should go? Any tutorials you would recommend?
What are the community thoughts? THanks.
Why don't you build a smartphone compatible website (i.e. with jQuery Mobile)? You could use your existing PHP knowledge and the app would run on any descent smartphone, not only Android.
How about a mobile version of your web app? You could make it work on other phone platforms, you'd have full control over the code, instant updates without bothering the end user.

Blackberry apps: Native or webapps?

I have read the Blackberry documentation and it is possible to push a notification from a webapp. I am planning to create a Blackberry application that compliments to our webapps. But I am still left in the middle whether to develop a webapp or native Blackberry app. I have also look at how a webapp runs on Blackberry browser and it looks smooth.
From your experience does the native app offer something that the webapp doesn't? Bonus question, is Facebook and Twitter app on Blackberry a native app or a webapp? If it is a webapp, is it possible to make a launcher for the application on Blackberry?
Thanks for your help.
Facebook and Twitter are on both types. The web apps are just a website formatted for a small screen so anything you do in say asp.net will show on a blackberry web app if you program it to. The native app just feels like part of my phone. You can save data on the phone so if your app is a relating to news or something that would be stored I can read it offline or slow connectivity (camping, rural areas, etc...). It can also interact with other feature that blackberry offers such as contacts, email, media player, etc...
If you would like to save anything for the user to view without pinging the internet a native app would be preferred.
It's possible to create a launcher but I haven't created one so I'm not sure of the details. I would assume it's just an app that opens the browser to your URL.
One more thing about a web app would be if your application stores users settings (twitter auth key, etc...) they would need to be stored on your server and not the users phone adding more expense and maintenance.
Good Luck.
Widget is not supported for device software less than 5 , you combine both of web and native development by using browser field ,but you need to consider that its Java Script support is poor
Let's not forget that the blackberry browser is really bad as well. I don't know any BB users who would want to use a web application because of that.
When it comes to native apps, you have some choice however and you are not restricted to java (depending on which OS version you want to target). In addition to the mentioned Java, you can use Widget (link for resources) that behaves like a native app, but can be accessed like a web app.
I was just at innoTech and they had a whole session on this topic. But instead of recaping it let me just post the funny video they showed at the end which sums it all up.
Mobile Dev Rap Battle: Native Code vs. Web Apps

Categories