Profile:- Name(can update his/her name), email, mobile, Password(it will navigate to new activity where user will change password) Basic info Medications Health Chart(It will contain all the health related problems of user& a clear button to clear the list) Medication:- As soon as the user select his/her disease the medication prior to it will be saved in this section. It will further contain options like:- Remind me to take dosage through out the day(In the form of a check box & Push notification)(Table in DB) Recommended by doctor(user can type in the medication recommended by doctor as a record and in order to get regular reminders on daily intake)(Table in DB) Home page:- It will contain tiles in the form of a GRID VIEW. The grid view will hold an on click animation Table in DB It will navigate user to further related problems or diseases! After clicking on a particular option there would pop up a di...
Android lets your application connect to the internet or any other local network and allows you to perform network operations. A device can have various types of network connections. This chapter focuses on using either a Wi-Fi or a mobile network connection. Checking Network Connection Before you perform any network operations, you must first check that are you connected to that network or internet e.t.c. For this android provides ConnectivityManager class. You need to instantiate an object of this class by calling getSystemService() method. Its syntax is given below − ConnectivityManager check = ( ConnectivityManager ) this . context . getSystemService ( Context . CONNECTIVITY_SERVICE ); Once you instantiate the object of ConnectivityManager class, you can use getAllNetworkInfo method to get the information of all the networks. This method returns an array of NetworkInfo . So you have to receive it like this. NetworkInfo [] ...
WebView is a view that display web pages inside your application. You can also specify HTML string and can show it inside your application using WebView. WebView makes turns your application to a web application. In order to add WebView to your application, you have to add <WebView> element to your xml layout file. Its syntax is as follows − <WebView xmlns:android = "http://schemas.android.com/apk/res/android" android:id = "@+id/webview" android:layout_width = "fill_parent" android:layout_height = "fill_parent" /> In order to use it, you have to get a reference of this view in Java file. To get a reference, create an object of the class WebView. Its syntax is − WebView browser = (WebView) findViewById(R.id.webview); In order to load a web url into the WebView, you need to call a method loadUrl(String url) of the WebView class, specifying the required url. Its syntax is: browser.loadUrl("http://www.tu...
Comments
Post a Comment