Merge branch 'master' of https://github.com/sagidayan/TheSocialNotework-Android
This commit is contained in:
commit
c68dd0fad4
3 changed files with 3 additions and 7 deletions
|
@ -5,7 +5,7 @@
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="distributionType" value="LOCAL" />
|
<option name="distributionType" value="LOCAL" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
<option name="gradleHome" value="$APPLICATION_HOME_DIR$/gradle/gradle-2.10" />
|
<option name="gradleHome" value="C:\Program Files\Android\Android Studio\gradle\gradle-2.10" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
|
|
|
@ -32,12 +32,6 @@ public class HeavyWorker extends AsyncTask< String , Context , Void > {
|
||||||
|
|
||||||
PersonalSpaceActivity ps = (PersonalSpaceActivity)targetCtx;
|
PersonalSpaceActivity ps = (PersonalSpaceActivity)targetCtx;
|
||||||
ps.getAllNotes();
|
ps.getAllNotes();
|
||||||
try {
|
|
||||||
Thread.sleep(5000);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return null ;
|
return null ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,11 +57,13 @@ public class PersonalSpaceActivity extends AppCompatActivity {
|
||||||
setContentView(R.layout.activity_personal_space);
|
setContentView(R.layout.activity_personal_space);
|
||||||
Bundle b = getIntent().getExtras();
|
Bundle b = getIntent().getExtras();
|
||||||
userId = b.getString("user_id");
|
userId = b.getString("user_id");
|
||||||
|
Log.d(TAG,"-------------------------USER ID: "+ userId);
|
||||||
|
|
||||||
this.locationPermission = true;
|
this.locationPermission = true;
|
||||||
|
|
||||||
//check for permission
|
//check for permission
|
||||||
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, FINE_PERM);
|
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, FINE_PERM);
|
||||||
|
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.INTERNET}, FINE_PERM);
|
||||||
|
|
||||||
|
|
||||||
this.noteList = (ListView) findViewById(R.id.ps_list_listview);
|
this.noteList = (ListView) findViewById(R.id.ps_list_listview);
|
||||||
|
|
Loading…
Reference in a new issue