This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.crashlytics.android.Crashlytics; | |
import io.fabric.sdk.android.Fabric; | |
public class MainActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Fabric.with(this, new Crashlytics()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
Fabric.with(this, new Crashlytics()); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.shishirstudio.CreashlyticsDemo"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application | |
android:name=".MyApplication" | |
android:allowBackup="true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean onCreateOptionsMenu(final Menu menu) { | |
getMenuInflater().inflate(R.menu.menu_main, menu); | |
final MenuItem searchItem = menu.findItem(R.id.search); | |
SearchView searchView = (android.widget.SearchView) searchItem.getActionView(); | |
// Detect SearchView icon clicks | |
searchView.setOnSearchClickListener(new View.OnClickListener() { | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('connection.php'); | |
$title=$_POST['title']; | |
$mes=$_POST['details']; | |
$loc=$_POST['loc']; | |
$blood=$_POST['blood']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BusStation { | |
private static EventBus sBus; | |
public static EventBus getBus() { | |
if (sBus == null) | |
sBus = EventBus.getDefault(); | |
return sBus; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Animation fadeIn = new AlphaAnimation(0, 1); | |
fadeIn.setInterpolator(new DecelerateInterpolator()); //add this | |
fadeIn.setDuration(1500); | |
Animation fadeOut = new AlphaAnimation(1, 0); | |
fadeOut.setInterpolator(new AccelerateInterpolator()); //and this | |
fadeOut.setStartOffset(3000); | |
fadeOut.setDuration(1500); | |
AnimationSet animation = new AnimationSet(false); //change to false |