Hackathon in Connectmedica, Warsaw
Connectmedica Hackathon - Have fun, making apps, meet amazing people Saturday, February 7, 2015 This will be (afik) the second hackathon in Connectmedica, Warsaw, Poland. Last time I was having…
Connectmedica Hackathon - Have fun, making apps, meet amazing people Saturday, February 7, 2015 This will be (afik) the second hackathon in Connectmedica, Warsaw, Poland. Last time I was having…
Here is another short (IMHO) example how to post in android app. private void postSms(String text) { URL url; HttpURLConnection urlConnection = null; try { url = new URL("http://yourserver.com/sendsms"); urlConnection…
Here is a short example how to create notification with default stuff but different sound: NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_launcher) .setContentTitle("title") .setStyle(new NotificationCompat.BigTextStyle() .bigText("message")) .setContentText("message") .setAutoCancel(true) .setSound(soundUri) .setDefaults(NotificationCompat.DEFAULT_ALL ^…
Here is a short example code how to do it: I've created xml file shape.xml and one method for flexible changing color of shape. shape.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"…
Here is short and quite (imho) understanding part of code: //starting #1 AlarmManager alarmManager = (AlarmManager) getActivity().getSystemService(Context.ALARM_SERVICE); Intent intent = new Intent(getActivity(), MyReceiver.class); intent.setAction(MyReceiver.ACTION_ALARM_RECEIVER);//my custom string action name PendingIntent pendingIntent…
Here is simple example how to create simple checkable list item with checbox. This a code for widget: public class CheckableTextView extends LinearLayout { private TextView checkLabel; private CheckBox checkBox;…
All you need is to write few additional params in Mainifest. Let's say you are in MainActivity, then you go to SettingsActivity. All what you want to just go back…
During my one day project for a client I had to use (I hate it) android's ratingbar component. One of the pointed task in project was to use a bit…
Hi, today I was working on MultiSelectListPreference in PreferenceFragment screen. I was going to have multi select list where user would be able select items. Each selected item would be…
During my graduation work I had to use navigation drawer for menu list. What is more, I also needed pull to refresh layout. Both items are very sensitive and its…