Skip to content

Commit 52e23e0

Browse files
Latest android and java code changes
1 parent 575eda9 commit 52e23e0

File tree

89 files changed

+1064
-163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1064
-163
lines changed

ActivityExamples/.idea/dictionaries/mahesha.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

ActivityExamples/.idea/encodings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

ActivityExamples/.idea/inspectionProfiles/Project_Default.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ActivityExamples/.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ActivityExamples/.idea/misc.xml

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ActivityExamples/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ActivityExamples/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dependencies {
8181
androidTestCompile "com.google.dexmaker:dexmaker-mockito:1.2"
8282
compile 'com.google.android.gms:play-services-appindexing:9.2.1'
8383
compile 'com.google.android.gms:play-services-location:9.2.1'
84-
compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
84+
compile('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
8585
transitive = true;
8686
}
8787
}

ActivityExamples/app/src/main/AndroidManifest.xml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,37 @@
243243
<category android:name="android.intent.category.LAUNCHER" />
244244
</intent-filter>
245245
</activity>
246-
<activity android:name=".LanguageActivity"
247-
android:theme="@style/AppTheme.NoActionBar"/>
248-
<activity android:name="com.example.mahesha.networkRV.FullImageActivity"/>
249-
<activity android:name="com.example.mahesha.networkRV.AndroidGridLayoutActivity"/>
246+
<activity
247+
android:name=".LanguageActivity"
248+
android:theme="@style/AppTheme.NoActionBar" />
249+
<activity android:name="com.example.mahesha.networkRV.FullImageActivity" />
250+
<activity android:name="com.example.mahesha.networkRV.AndroidGridLayoutActivity" />
251+
<activity
252+
android:name="com.example.mahesha.searchimp.SearchCountryActivity"
253+
android:label="@string/app_name"
254+
android:theme="@style/DarkActionBar">
255+
<meta-data
256+
android:name="android.app.default_searchable"
257+
android:value=".SearchableActivity" />
258+
</activity>
259+
<activity
260+
android:name="com.example.mahesha.searchimp.SearchableActivity"
261+
android:theme="@style/DarkActionBar">
262+
<intent-filter>
263+
<action android:name="android.intent.action.SEARCH" />
264+
</intent-filter>
265+
<meta-data
266+
android:name="android.app.searchable"
267+
android:resource="@xml/searchable" />
268+
</activity>
269+
<activity
270+
android:name="com.example.mahesha.searchimp.CountryActivity"
271+
android:theme="@style/DarkActionBar" />
272+
273+
<provider
274+
android:name="com.example.mahesha.searchimp.CountryContentProvider"
275+
android:authorities="com.example.mahesha.CountryContentProvider"
276+
android:exported="true" />
250277
</application>
251278

252279
</manifest>

ActivityExamples/app/src/main/java/com/example/mahesha/activityexamples/LauncherActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
import android.view.View;
1111

1212
import com.example.mahesha.utility.Session;
13+
import com.crashlytics.android.Crashlytics;
14+
import io.fabric.sdk.android.Fabric;
1315

1416
public class LauncherActivity extends AppCompatActivity {
1517
private Session session;
1618
@Override
1719
protected void onCreate(Bundle savedInstanceState) {
1820
super.onCreate(savedInstanceState);
21+
Fabric.with(this, new Crashlytics());
1922
setContentView(R.layout.activity_launcher);
2023
session = new Session(LauncherActivity.this);
2124
// Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);

ActivityExamples/app/src/main/java/com/example/mahesha/activityexamples/MainActivity.java

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.example.mahesha.layoutsexample.LinearActivity;
1616
import com.example.mahesha.layoutsexample.RelativeExampleActivity;
1717
import com.example.mahesha.maps.MapsActivity;
18+
import com.example.mahesha.model.ProfileMaster;
1819
import com.example.mahesha.networkRV.AndroidGridLayoutActivity;
1920
import com.example.mahesha.notificatons.EffectiveNavagationActivity;
2021
import com.example.mahesha.notificatons.NotificaionActivity;
@@ -37,6 +38,15 @@ protected void onCreate(Bundle savedInstanceState) {
3738
Button fragments= (Button) findViewById(R.id.bt_fragments);
3839
Button maps= (Button) findViewById(R.id.bt_maps);
3940
Button widgets= (Button) findViewById(R.id.bt_widgets);
41+
ProfileMaster obj = new ProfileMaster();
42+
obj.setUsername("Mahesh");
43+
obj.setMobile("8114446564");
44+
obj.setEmail("Mahesh@nals");
45+
obj.setCity("Bangalore");
46+
obj.setState("Ktaka");
47+
obj.setArea("Bang");
48+
obj.setPassword("Mahesh30");
49+
// db.createProfileUser(obj);
4050
fragments.setOnClickListener(this);
4151
maps.setOnClickListener(this);
4252
widgets.setOnClickListener(this);
@@ -57,40 +67,40 @@ protected void onCreate(Bundle savedInstanceState) {
5767
protected void onRestart() {
5868
super.onRestart();
5969
Log.e("MainActivity","on restart");
60-
Toast.makeText(this, "onRestart", Toast.LENGTH_SHORT).show();
70+
// Toast.makeText(this, "onRestart", Toast.LENGTH_SHORT).show();
6171
}
6272

6373
@Override
6474
protected void onStart() {
6575
super.onStart();
66-
Toast.makeText(this, "onStart", Toast.LENGTH_SHORT).show();
76+
// Toast.makeText(this, "onStart", Toast.LENGTH_SHORT).show();
6777
}
6878

6979
@Override
7080
protected void onResume() {
7181
super.onResume();
72-
Toast.makeText(this, "onResume", Toast.LENGTH_SHORT).show();
82+
// Toast.makeText(this, "onResume", Toast.LENGTH_SHORT).show();
7383
// The activity has become visible (it is now "resumed").
7484
}
7585

7686
@Override
7787
protected void onPause() {
7888
super.onPause();
79-
Toast.makeText(this, "onPause", Toast.LENGTH_SHORT).show();
89+
// Toast.makeText(this, "onPause", Toast.LENGTH_SHORT).show();
8090
// Another activity is taking focus (this activity is about to be "paused").
8191
}
8292

8393
@Override
8494
protected void onStop() {
8595
super.onStop();
86-
Toast.makeText(this, "onStop", Toast.LENGTH_SHORT).show();
96+
// Toast.makeText(this, "onStop", Toast.LENGTH_SHORT).show();
8797
// The activity is no longer visible (it is now "stopped")
8898
}
8999

90100
@Override
91101
protected void onDestroy() {
92102
super.onDestroy();
93-
Toast.makeText(this, "onDestroy", Toast.LENGTH_SHORT).show();
103+
// Toast.makeText(this, "onDestroy", Toast.LENGTH_SHORT).show();
94104
// The activity is about to be destroyed.
95105
}
96106

0 commit comments

Comments
 (0)