Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

revert

  • Loading branch information...
commit 4e2215097d256d81b8d455603d637775e7613990 1 parent 8727de4
@mandarmulherkar mandarmulherkar authored
View
4 AndroidManifest.xml
@@ -64,6 +64,10 @@
android:theme="@android:style/Theme.NoTitleBar">
</activity>
+ <activity android:name="com.parking.utils.Utility"
+ android:theme="@android:style/Theme.NoTitleBar">
+ </activity>
+
<!-- In App Billing Test -->
<activity android:name="com.parking.billing.ParkingPayment"
android:theme="@android:style/Theme.NoTitleBar">
View
10 src/com/parking/auth/GetAccountListActivity.java
@@ -1,8 +1,5 @@
package com.parking.auth;
-import com.parking.application.ParkingApplication;
-import com.parking.dashboard.R;
-
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.ListActivity;
@@ -14,7 +11,10 @@
import android.widget.ArrayAdapter;
import android.widget.ListView;
-public class GetAccountListActivity extends ListActivity {
+import com.parking.application.ParkingApplication;
+import com.parking.dashboard.R;
+
+public class GetAccountListActivity extends ListActivity{
protected AccountManager accountManager;
protected Intent intent;
@@ -43,4 +43,6 @@ protected void onListItemClick(ListView l, View v, int position, long id) {
startActivity(intent);
finish();
}
+
+
}
View
6 src/com/parking/billing/ParkingPayment.java
@@ -55,8 +55,6 @@
import com.parking.application.ParkingApplication;
import com.parking.auth.AsyncTaskResultNotifierInterface;
-import com.parking.auth.RegisterUserActivity;
-import com.parking.auth.RegisterUserAsyncTask;
import com.parking.billing.BillingConstants.PurchaseState;
import com.parking.billing.BillingConstants.ResponseCode;
import com.parking.billing.BillingService.RequestPurchase;
@@ -65,12 +63,13 @@
import com.parking.dashboard.activity.DashboardActivity;
import com.parking.datamanager.ParkingLocationDataEntry;
import com.parking.utils.LocationUtility;
+import com.parking.utils.Utility;
/**
* A sample application that demonstrates in-app billing.
*/
public class ParkingPayment extends Activity implements OnClickListener,
- OnItemSelectedListener {
+ OnItemSelectedListener{
private static final String TAG = "Dungeons";
/**
@@ -659,4 +658,5 @@ public View getDropDownView(int position, View convertView, ViewGroup parent) {
return view;
}
}
+
}
View
4 src/com/parking/dashboard/activity/DashboardActivity.java
@@ -20,8 +20,9 @@
import com.parking.locatemycar.LocateMyCar;
import com.parking.payforspot.PayForSpot;
import com.parking.paymenthistory.PaymentHistory;
-import com.parking.towingcontacts.TowingContacts;
import com.parking.rulesandregulations.RulesandRegulations;
+import com.parking.towingcontacts.TowingContacts;
+import com.parking.utils.Utility;
public class DashboardActivity extends Activity{
private static final String TAG = DashboardActivity.class.getSimpleName();
@@ -133,4 +134,5 @@ protected void onResume()
Authenticator.authenticate(this.getBaseContext());
}
}
+
}
View
3  src/com/parking/findparking/FindParkingList.java
@@ -1,10 +1,8 @@
package com.parking.findparking;
import java.util.ArrayList;
-import java.util.List;
import android.app.Activity;
-import android.app.SearchManager.OnCancelListener;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
@@ -59,4 +57,5 @@ public void onClick(View arg0) {
}
+
}
View
4 src/com/parking/findparking/FindParkingMap.java
@@ -6,7 +6,6 @@
import java.util.Vector;
import android.content.Context;
-import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.location.Geocoder;
import android.location.Location;
@@ -31,7 +30,7 @@
import com.parking.utils.LocationUtility;
import com.parking.utils.ParkingConstants;
-public class FindParkingMap extends MapActivity {
+public class FindParkingMap extends MapActivity{
private static final String TAG = "FindParkingMap";
private static MapView mapView;
@@ -239,4 +238,5 @@ private static void updateNewLocationOnMap(Location currentNewLocation) {
}
+
}
View
3  src/com/parking/findparking/FindParkingTabs.java
@@ -17,7 +17,7 @@
import com.parking.dashboard.R;
-public class FindParkingTabs extends TabActivity {
+public class FindParkingTabs extends TabActivity{
public void onCreate(Bundle savedInstanceState) {
@@ -47,4 +47,5 @@ public void onCreate(Bundle savedInstanceState) {
tabHost.setCurrentTab(0);
}
+
}
View
2  src/com/parking/locatemycar/LocateMyCar.java
@@ -5,4 +5,6 @@
public class LocateMyCar extends Activity{
+
+
}
View
10 src/com/parking/paymenthistory/PaymentHistory.java
@@ -4,17 +4,14 @@
import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
-import android.util.Log;
-import android.view.View;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;
import com.parking.billing.PurchaseDatabase;
import com.parking.dashboard.R;
import com.parking.dashboard.activity.DashboardActivity;
-import com.parking.utils.IDashoard;
-public class PaymentHistory extends ListActivity implements IDashoard{
+public class PaymentHistory extends ListActivity{
private PurchaseDatabase historyTable;
private Cursor historyCursor;
@@ -56,10 +53,5 @@ private void queryHistory() {
//historyCursor.
}
-
- public void openHomePage(View v){
- Log.e("HomeButton", "OK");
- }
-
}
View
6 src/com/parking/rulesandregulations/RulesandRegulations.java
@@ -3,13 +3,11 @@
import android.app.Activity;
import android.os.Bundle;
-import android.util.Log;
import android.webkit.WebView;
import com.parking.dashboard.R;
-import com.parking.dashboard.activity.DashboardActivity;
-public class RulesandRegulations extends Activity {
+public class RulesandRegulations extends Activity{
@Override
@@ -22,4 +20,6 @@ public void onCreate(Bundle savedInstanceState) {
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadUrl("http://www.sandiego.gov/parking/enforcement/");
}
+
+
}
View
1  src/com/parking/towingcontacts/TowingContacts.java
@@ -1,6 +1,5 @@
package com.parking.towingcontacts;
-
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
View
12 src/com/parking/utils/Utility.java
@@ -1,12 +1,18 @@
package com.parking.utils;
-import android.util.Log;
+import android.app.Activity;
+import android.content.Intent;
import android.view.View;
-public class Utility {
+import com.parking.dashboard.activity.DashboardActivity;
+
+public class Utility{
public static void openHomePage(View v){
- Log.e("HomeButton", "OK");
+ Intent intent = new Intent(DashboardActivity.myContext, DashboardActivity.class);
+ intent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
+ DashboardActivity.myContext.startActivity(intent);
+
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.