Skip to content

Commit

Permalink
help and guide work done
Browse files Browse the repository at this point in the history
removing doctor login for the time being
  • Loading branch information
humayuntanwar committed Feb 19, 2018
1 parent e685322 commit 3151551
Show file tree
Hide file tree
Showing 36 changed files with 1,028 additions and 146 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Mon Feb 19 02:32:25 PKT 2018
#Tue Feb 20 01:39:54 PKT 2018
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-xhdpi-v4\\app_banner.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\res\\merged\\androidTest\\debug\\drawable-xhdpi-v4\\app_banner.png
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-mdpi-v4\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\res\\merged\\androidTest\\debug\\drawable-mdpi-v4\\app_icon.png
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Mon Feb 19 02:32:02 PKT 2018
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-mdpi\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-mdpi-v4\\app_icon.png
#Tue Feb 20 01:39:29 PKT 2018
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-xhdpi\\app_banner.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-xhdpi-v4\\app_banner.png
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-mdpi\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\debug\\res\\drawable-mdpi-v4\\app_icon.png
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Mon Feb 19 02:32:27 PKT 2018
#Tue Feb 20 01:40:01 PKT 2018
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-mdpi\\app_icon.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\default\\res\\drawable-mdpi-v4\\app_icon.png
C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\src\\main\\res\\drawable-xhdpi\\app_banner.png=C\:\\Users\\HumayunT\\AndroidStudioProjects\\TemplateUI\\ModelM1\\build\\intermediates\\bundles\\default\\res\\drawable-xhdpi-v4\\app_banner.png
Binary file modified ModelM1/build/outputs/aar/ModelM1-debug.aar
Binary file not shown.
Binary file modified ModelM1/build/outputs/aar/ModelM1-release.aar
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ dependencies {
})
compile files('libs/build/java/vuforia/Vuforia.jar')
compile project(':ModelM1')
//compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.10'

compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
Expand All @@ -43,8 +45,6 @@ dependencies {
compile 'com.android.support:support-v4:25.3.1'
compile 'com.google.android.gms:play-services-places:11.2.0'
testCompile 'junit:junit:4.12'
//compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.10'

}
apply plugin: 'com.google.gms.google-services'

13 changes: 10 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,19 @@
android:name=".MainPanel.LocateDoctorMap"
android:label="@string/title_activity_locate_doctor_map" />
<activity android:name=".SingleItem.singleItemDiet" />
<activity android:name=".SingleItem.singleItemExercise"
android:hardwareAccelerated="false"/>
<activity
android:name=".SingleItem.singleItemExercise"
android:hardwareAccelerated="false" />
<activity
android:name=".guidetry"
android:label="@string/title_activity_guidetry"
android:theme="@style/AppTheme.NoActionBar"></activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".About" />
<activity android:name=".Features" />
<activity android:name=".singleItemFeature" />
<activity android:name=".Contactus" />
<activity android:name=".TermsCondition" />
<activity android:name=".Faq"></activity>
</application>

</manifest>
Binary file modified app/src/main/assets/gestationtry.db
Binary file not shown.
13 changes: 13 additions & 0 deletions app/src/main/java/com/example/humayunt/templateui/About.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.humayunt.templateui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class About extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
package com.example.humayunt.templateui.Adapter;

/**
* Created by HumayunT on 2/19/2018.
*/

import android.app.Activity;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.humayunt.templateui.DataModel.featureDataModel;
;
import com.example.humayunt.templateui.R;
import com.example.humayunt.templateui.SingleItem.singleItemDiet;
import com.example.humayunt.templateui.singleItemFeature;

import java.util.ArrayList;
public class FeatureRetriever extends RecyclerView.Adapter<FeatureRetriever.DataObjectHolder> implements OnClickListener{
ArrayList<featureDataModel> Show;
private Activity activity;
private String cat_id;
private DataObjectHolder holder;
int i = 0;
private LayoutInflater mLayoutInflater = null;
private String name;
private String str_flag = "";

public static class DataObjectHolder extends ViewHolder {
public ImageView img;
public RelativeLayout layout;
public TextView tvCity;
public TextView tvName;

public DataObjectHolder(View itemView) {
super(itemView);
this.layout = (RelativeLayout) itemView.findViewById(R.id.dmodel);
this.tvName = (TextView) itemView.findViewById(R.id.tv1);
// this.tvCity = (TextView) itemView.findViewById(R.id.txt_city_griditemlayout);
this.img = (ImageView) itemView.findViewById(R.id.im1);
}
}

public void onClick(View v) {
}

public FeatureRetriever(Activity activity2, ArrayList<featureDataModel> contacts) {
this.activity = activity2;
this.Show = contacts;
this.mLayoutInflater = (LayoutInflater) this.activity.getSystemService("layout_inflater");
}

public DataObjectHolder onCreateViewHolder(ViewGroup parent, int viewType) {
this.holder = new DataObjectHolder(this.mLayoutInflater.inflate(R.layout.featurelist, null));
return this.holder;
}

public void onBindViewHolder(DataObjectHolder holder, final int position) {
holder.layout.setOnClickListener(new OnClickListener() {
public void onClick(View v) {

Intent intent = new Intent(v.getContext(),singleItemFeature.class);
intent.putExtra("month", ( FeatureRetriever.this.Show.get(position)).getMonth());
v.getContext().startActivity(intent);
}
});
holder.tvName.setText("Month : " + ( this.Show.get(position)).getName());
// holder.tvCity.setText("Feature : " + ( this.Show.get(position)).getHowuse());
//holder.img.setImageBitmap(( this.Show.get(position)).getImg());
}

public int getItemCount() {
return this.Show.size();
}
}


13 changes: 13 additions & 0 deletions app/src/main/java/com/example/humayunt/templateui/Contactus.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.humayunt.templateui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Contactus extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contactus);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.example.humayunt.templateui.DataModel;

/**
* Created by HumayunT on 2/19/2018.
*/

public class featureDataModel {
private String month;
private String name,howuse;

public featureDataModel() {
}

public String getMonth() {
return month;
}

public void setMonth(String month) {
this.month = month;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getHowuse() {
return howuse;
}

public void setHowuse(String howuse) {
this.howuse = howuse;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.example.humayunt.templateui.DataModel.DietsDataModel;
import com.example.humayunt.templateui.DataModel.ExerciseDataModel;
import com.example.humayunt.templateui.DataModel.TwodDataModel;
import com.example.humayunt.templateui.DataModel.featureDataModel;

import java.io.File;
import java.io.FileOutputStream;
Expand Down Expand Up @@ -169,4 +170,25 @@ public ArrayList<ExerciseDataModel> getExcercise() {
}
return ExerciseArray;
}

public ArrayList<featureDataModel> getFeature() {
ArrayList<featureDataModel> ExerciseArray = new ArrayList();
String selectQuery = "SELECT * FROM features";
Log.d("rawquery", "inputs" + selectQuery);
Cursor cursor = this.db.rawQuery(selectQuery, null);
if (cursor.moveToFirst()) {
do {
featureDataModel fDD = new featureDataModel();
// byte[] byteArray = cursor.getBlob(2);
// Bitmap bm = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length);
fDD.setMonth(cursor.getString(0));

fDD.setName(cursor.getString(1) != null ? cursor.getString(1) : "No Fact Available ");
// fDD.setRepition(cursor.getString(4));
// itto.setImg(bm);
ExerciseArray.add(fDD);
} while (cursor.moveToNext());
}
return ExerciseArray;
}
}
57 changes: 57 additions & 0 deletions app/src/main/java/com/example/humayunt/templateui/Faq.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package com.example.humayunt.templateui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class Faq extends AppCompatActivity {
TextView faq;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_faq);
faq = (TextView) findViewById(R.id.faqs);
faq.setText("Is the Mobile App secure?\n" +
"\n" +
"Yes! All critical information is encrypted and no personal information is stored on your mobile device. However, mobile devices do offer you the ability to store your login information for apps installed on the device. If you choose to store your login information, any person who has access to your mobile device can access your account.\n" +
"\n" +

"\n" +
"What features does the Mobile App have?\n" +
"\n" +
"Both the Mobile Apps and the Mobile Web App give you the ability to you to access your account information, view news releases, report an outage, and contact us via email or phone.\n" +
"\n" +
"Once you've installed a Mobile App on your phone, you'll also have the ability to view a map of our offices and payment locations.\n" +
"\n" +

"\n" +
"How do I get the Mobile App for my phone?\n" +
"\n" +
"Simply look for our name in the App Store or in the Android Market. In the Android Market, if you can't find our App, that likely means your phone is not supported - see the list of supported operating systems.\n" +
"\n" +

"\n" +
"Do I have to buy the Mobile App?\n" +
"\n" +
"No. Our Mobile App is completely free to download and install.\n" +
"\n" +

"\n" +
"I have multiple accounts. Can I see them all in the Mobile App and the Mobile Website?\n" +
"\n" +
"Yes. Once you've logged in, you'll be asked to select the account you wish to view. If you only have one account, the details for that account will show up as soon as you log in.\n" +
"\n" +

"\n" +
"How current is the account information I see in the Mobile App?\n" +
"\n" +
"The information you see in the Mobile App and in the Mobile Website is shown in real-time, so it's always accurate. However, if you keep the Mobile App or Mobile Website open for an extended period of time, you should refresh the page by selecting a new option in order to ensure the information is still current.\n" +
"\n" +

"\n" +
"How do I find your offices and payment locations? Do I have to log in first?\n" +
"\n" +
"You do not have to log in to view addresses or maps to our office locations or even to get our contact information. Simply open the App and use the \"Offices\" link on the main screen.");
}
}
76 changes: 76 additions & 0 deletions app/src/main/java/com/example/humayunt/templateui/Features.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package com.example.humayunt.templateui;

import android.database.SQLException;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.example.humayunt.templateui.Adapter.DietsRetriever;
import com.example.humayunt.templateui.Adapter.FeatureRetriever;
import com.example.humayunt.templateui.DataModel.DietsDataModel;
import com.example.humayunt.templateui.DataModel.featureDataModel;
import com.example.humayunt.templateui.DatabaseHandler;
import com.example.humayunt.templateui.R;

import java.io.IOException;
import java.util.ArrayList;

public class Features extends AppCompatActivity {
DatabaseHandler db;
RecyclerView list;

public Features() throws IOException {
}

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_features);

this.list = (RecyclerView) findViewById(R.id.recyclerView);
this.list.setHasFixedSize(true);
this.list.setLayoutManager(new LinearLayoutManager(getApplicationContext()));
RetriveDataFromDB();
//initializing the productlist

}
protected void RetriveDataFromDB() {
try {
this.db = new DatabaseHandler(this);
} catch (IOException e) {
e.printStackTrace();
}
try {
this.db.createdatabase();
try {
this.db.opendatabase();
ArrayList<featureDataModel> menuItems = new ArrayList();
menuItems.clear();
ArrayList<featureDataModel> contacts = this.db.getFeature();
Log.e("Array", ">>" + menuItems.size());
this.list.setAdapter(new FeatureRetriever(this, contacts));
} catch (SQLException sqle) {
throw sqle;
}
} catch (IOException e2) {
throw new Error("Unable to create database");
}
}


}


Loading

0 comments on commit 3151551

Please sign in to comment.