Skip to content

Android Blog

Android Blog is the place where I put code possible to be reused in near future.

Android Blog

Android Blog is the place where I put code possible to be reused in near future.

  • Home
    • Home
    • working
Non-Android

Rooting Nexus 6 7.1.1

sorsaresorsare 12/04/2018 0 Comments

There are 6 simple steps for rooting Android 7.1.1 for nexus 6: 1 adb reboot bootloader 2 fastboot oem unlock 3 fastboot flash recovery twrp-3.2.1-0-shamu.img https://dl.twrp.me/shamu/twrp-3.2.1-0-shamu.img.html 4 go to recovery…

Android

Short command checking if Google Analytics is working

sorsaresorsare 18/11/2016 0 Comments

These are two commands: adb shell setprop log.tag.GAv4 DEBUG adb logcat -s GAv4

Android

Example how to hide and show floating action button while scrolling the list (code not optimized well)

sorsaresorsare 17/05/2016 0 Comments

//this example is for recyclerView but it can be used somewhere else recyclerView.setOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { super.onScrollStateChanged(recyclerView, newState); } @Override public void onScrolled(RecyclerView…

Android

Working example POST in android

sorsaresorsare 02/02/2015 0 Comments

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…

Non-Android

Working example – changing drawable background in runtime, dynamically

sorsaresorsare 22/01/2015 0 Comments

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"…

Android

Working example of setting alarm with repeating stuff, checking if alarm was set with pendingIntent

sorsaresorsare 21/01/2015 0 Comments

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…

Android

Custom checkable list item with checkbox (layout+code)

sorsaresorsare 07/01/2015 0 Comments

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;…

Android

Pretty nice decimal format for polish currencies

sorsaresorsare 10/12/2014 0 Comments

Here is the simple sample code which converts pretty nice for example polish currencies to float and from float to polish format. These are the spoiler results: DecimalUtil.getInstance().parse("1 123,44) ->…

  • Android
  • Android UX
  • Non-Android
  • Uncategorized

Tags

adb android apk app bat batch calendar change code color command connect convert custom device drawable emulator example ffmpeg filter gcm gradle greasemonkey install java javascript linux mac notepad++ post preview remove rename root screen script service shape shell solution style time windows working xml

Archives

  • April 2024
  • November 2023
  • August 2023
  • May 2023
  • March 2023
  • December 2022
  • September 2022
  • June 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • March 2021
  • December 2020
  • March 2020
  • January 2020
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • June 2018
  • May 2018
  • April 2018
  • February 2018
  • January 2018
  • December 2017
  • August 2017
  • July 2017
  • June 2017
  • April 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • August 2016
  • June 2016
  • May 2016
  • February 2016
  • January 2016
  • September 2015
  • July 2015
  • June 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014

You Missed

Non-Android

Read books

Non-Android

ebook-meta to bulk rename mobi and azw3 file names to $title – $author(s)

Android

Android – how to obtain resource from Android’s internal resources

Uncategorized

How to connect remote to emulator in another PC (macOS)

Android Blog

Android Blog is the place where I put code possible to be reused in near future.

Copyright © All rights reserved | Blogus by Themeansar.