Permalink
Browse files

layout for the example

  • Loading branch information...
1 parent 8f75102 commit a816e544f3c8dff9371d208e82510cb606e1a18c Jon Vlachoyiannis committed Mar 18, 2011
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,16 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
-<TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="@string/hello"
- />
-<Button android:id="@+id/crash_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Crash!" />
-</LinearLayout>
+<RelativeLayout
+ android:id="@+id/widget29"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <TextView
+ android:id="@+id/widget32"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/legal"
+ android:textSize="8px"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentRight="true" />
+
+ <Button
+ android:id="@+id/crush_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Crush this app"
+ android:layout_centerVertical="true"
+ android:layout_centerHorizontal="true" />
+
+ <TextView
+ android:id="@+id/widget31"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/info"
+ android:textSize="12px"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true" />
+
+</RelativeLayout>
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="hello">Crush the app, reopen it and check your dashboard.</string>
+ <string name="info">Crush this app and data will be sent to your Sfalma.com dashboard.</string>
+ <string name="legal">Sfalma.com 2011</string>
<string name="app_name">Sfalma Example</string>
</resources>
@@ -124,10 +124,6 @@ public static void submitError(int sTimeout, Date occuredAt, final String stackt
try {
Log.d(G.TAG, "Transmitting stack trace: " + stacktrace);
- if (occuredAt != null)
- SfalmaHandler.ShowToast("Sending old crashes");
- else
- SfalmaHandler.ShowToast("Helping the app becoming better!");
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpParams params = httpClient.getParams();
@@ -52,7 +52,6 @@
import android.location.LocationManager;
import android.location.LocationListener;
import android.location.Location;
-import android.widget.Toast;
/**
@@ -99,11 +98,11 @@
* @param processor
*/
public static boolean setup(Context context, final Processor processor, String apiKey) {
- // Make sure this is only called once.
G.API_KEY = apiKey;
gContext = context;
+ // Make sure this is only called once.
if (sSetupCalled) {
// Tell the task that it now has a new context.
if (sTask != null && !sTask.postProcessingDone()) {
@@ -529,11 +528,4 @@ public static String isGPSOn() {
return gps_status;
}
- public static void ShowToast(final String message) {
- CharSequence text = message;
-
- int duration = Toast.LENGTH_SHORT;
- Toast.makeText(gContext, text, duration).show();
- }
-
}

0 comments on commit a816e54

Please sign in to comment.