Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95dbaeb

Browse files
committed
GTAcampuS version 1.1
Secure password, LAN support
1 parent 038aa21 commit 95dbaeb

File tree

8 files changed

+7
-11
lines changed

8 files changed

+7
-11
lines changed

workspace/GTAcampuS/.settings/org.eclipse.core.resources.prefs

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

workspace/GTAcampuS/.settings/org.eclipse.jdt.core.prefs

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

workspace/GTAcampuS/bin/classes.dex

104 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

workspace/GTAcampuS/src/com/example/gtacampus/Inbox.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected void onListItemClick(ListView l, View v, int position, long id) {
102102
super.onListItemClick(l, v, position, id);
103103
String[] parts = listadapter[position].split(" . ");
104104
pos=Integer.parseInt(parts[0]);
105-
if(mWifi.isConnected()||mob.isConnected()){
105+
if(mWifi.isConnected()||mob.isConnected() || lan.isConnected()){
106106
if(!checkfiles("gtacinbox.php"))
107107
{
108108
showDialog(CONFIG);
@@ -243,13 +243,15 @@ public void run() {
243243

244244
public void onClick(View v) {
245245
// TODO Auto-generated method stub
246-
ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
247-
NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
248-
NetworkInfo mob = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
249246
if (mWifi.isConnected() || mob.isConnected()|| lan.isConnected()) {
247+
if(checkfiles("gtacampus.php")){
250248
Intent i= new Intent(Inbox.this,Messages.class);
251249
startActivity(i);
252-
finish();
250+
finish();}
251+
else
252+
Toast.makeText(getBaseContext(),"Web Service file not found!. Configure your server properly" , Toast.LENGTH_LONG).show();
253+
254+
253255
}
254256
else
255257
Toast.makeText(getBaseContext(), "Get an active Internet connection first", Toast.LENGTH_LONG).show();

0 commit comments

Comments
 (0)