Android Home Automation development necessary to take care - android

i was working on android home automation app , basic things to take care while doing this user based app like , i should sync data with server on i should keep data in local, please give me links of libraries if some one worked . help me to build this product .

Use firbase database provided by google its way easier to handle data syncronization and offline maintainance.doc link here
also a youtube link if you have no idea how firebase works video tutorial link

Related

Get referring url for Android or iOS installation

We have several landing pages that link to Google Play and iOS App Store. I would love to know the landing page that a person came from within the app code. I have searched around and can't find any clear answer. Lots of gray area.
I just want to access the landing page URL in Java or Swift.
I realize iOS and Android are two separate beasts. But does anyone know how I could achieve this?
You will need to use Firebase Dynamic Links this helps you create various links using various alternatives as shown in this quote from the official Firebase source:
You create a Dynamic Link either by using the Firebase console, using a REST API, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain specific to your app.
Then your app can access the link in code using Java or Swift and the link will work even if the user has your app already in their phone and you can set a logic to handle that too and the links are also automatically direct the user to AppStore or PlayStore depending on which device is used.
Dont worry about whether the link will work for both Android and iOS and you can use the api to access the link as this quote says.
With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they can be taken to the equivalent content on your website.
In addition, Dynamic Links work across app installs: if a user opens a Dynamic Link on iOS or Android and doesn't have your app installed, the user can be prompted to install it; then, after installation, your app starts and can access the link.
You can get more information on dynamic links here and check if it will solve your problem.

how can i add from my webpage to my android app with out updating the apk everytime?

hi guys i am constantly updating my website and i want all the stuff i update to appear in my app. so i don't have to make a new ".apk" update every time i add new stuff to my website.
would i use some sort of site scraping method?
what i would like to do is as new stuff gets added to my website it automatically pushes it to my app in some way
could some one at least point me in the right direction as i have only just got my head round setting up my website. please be nice and if u don't think this is worded right I am sorry.
An idea is to organize all your resource data in a REST web services and both website and Android App to get data from Web Services. So the data will be kept in one place (one place to do the updates) and be viewed from different platforms in your case a Web site and an Android App. However this is a very general architectural solution.
If you add a WebView to your application and point that to your website the application would always fetch the latest version. I think this would be a quick and easy option for you. Link to documentation: http://developer.android.com/reference/android/webkit/WebView.html
This would though require an internet connection for the user every time they use the application.
Here is the guide to web view API's https://developer.android.com/guide/webapps/webview.html

Android simple chat using firebase implementation on github

Hi can anybody have a suggestion on how t implements this simple android chat app in github? https://github.com/firebase/AndroidChat . i need to implement that link for exercising on how to create a simple chat application for android using firebase live. It says there to change the URL in “mainactivity” afterward i do not have any idea at all. i am new in firebase and did make some research on how to manage app. unfortunately I’ve seen this source in github. But the thing is that I don’t have any idea on how to implement it. Suggestions guys on how to run into i think HTML and it will be link on my URL in firebase?
Hoping someone can view this.
It says you need the URL to point to your own Firebase server. It is free and easy to create.
When you stand on the Viewing my first app screen in Firebase, you can see your Firebase's URL in the browser, which is what you need in MainActivity.
Have you checked out the Firebase quickstart guide?
If you take a look at the sample project's dashboard in your browser, you can see this data structure:
chat
randomlyGeneratedMessageId1
author: "jane1994"
message: "hi there"
randomlyGeneratedMessageId2
author: "johndoe"
message: "asdasd"
You are going to have the same data structure. It is automatically created if you write and send a message from the example app.
EDIT:
It is much simpler than you think. No localhost or anything is involved. Steps:
Have a Firebase account
Log in
Click here
Now you can see all the data you have in the cloud. It is already live. If you give the .apk to any friend and they run the app on their Android device, they can already send data through the app to your own server.
EDIT2:
The thing you found on GitHub is an Android Studio project. You can only open and run it using Android Studio.
After you compile the project using Android Studio and you have the .apk, you can use it as any other .apk.

How to check updates of a website automatically regularly?

I want to know is there any way to check updates of a website regularly?
I am a student. My exam schedules comes in university web site .I don't wanna miss that. So is there any way I can check this details automatically? I am using android and Ubuntu. Please help me. I don't think that the website have rss feed.
The website http://changemon.com/ is one of many website trackers that will send you an email when a website element is changed.
If you prefer a more diy solution, there is always use a scraping tool such as scrapy (python) http://scrapy.org/ and create your own project.

How to implement 'invite to download' feature in a Cordova/PhoneGap application on Android?

I would like to include a menu item in my Android app (built using Cordova/PhoneGap) that provides users with the ability to invite their friends to download the app from Google Play.
Does anyone know of an existing solution for this? I have not had much luck finding one.
On BlackBerry10, this is extremely easy to do (literally 1 line of code). It leverages the OS and BBM to share the download URL of your app with your closest friends:
blackberry.bbm.platform.users.inviteToDownload();
link
Please tell me something similar like this exists for Android (iOS?) ? Thank you.
I use this plugin and works perfectly: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
It's a sharing plugin that allows a lot of configuration options. You could configure it so users share a link to your app on Google Play. The documentation explains how to set everything up.

Categories

Resources