Micro blog about Answer to the Ultimate Question of Life, the Universe, and Everything
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home
  3. Android

New and improved my list of best applications

Details
Written by: Stanko Milosev
Category: Android
Published: 04 January 2021
Last Updated: 09 November 2021
Hits: 1909
Here I already gave one list of android application which I was using. Here is new one:

Waze
WhatsApp
Sports Tracker
Facebook
Twitter
OpenVPN Connect
Remote Desktop 8
Komoot
Shazam
TubeMate
Equalizer + Pro
TeamViewer
VLC
Contacts
Google Calendar
Microsoft Teams
Google Home
Solid Explorer File Manager

New line

Details
Written by: Stanko Milosev
Category: Android
Published: 15 April 2016
Last Updated: 15 April 2016
Hits: 4000

Recently I had a problem that I needed to send some text from Android over webview to JavaScript, but with new lines included, problem was that webview didn't respect \r\n.

This is my solution:

...
receivedPacket = new DatagramPacket(buf, buf.length);
...
final String strReceivedPacket = new String(receivedPacket.getData(), 0, receivedPacket.getLength()).replaceAll("\r\n", "\\\\r\\\\n");

Command line building and installing - gradle and adb

Details
Written by: Stanko Milosev
Category: Android
Published: 08 March 2016
Last Updated: 08 March 2016
Hits: 4723

Just a few comments on my investigation about building and installing Android application.

In Linux go to root folder of your application and write something like:

./gradlew build

build means build.gradle actually, or something like  ./gradlew assembleDebug, with that you will build application with debug type. Check the source in /app/build.gradle.

After building we can install application with command like:

adb install -d -r myApp.apk

Where:

-d Direct an adb command to the only attached USB device.
-r Reinstall an exisiting app, keeping its data.

Border around controls

Details
Written by: Stanko Milosev
Category: Android
Published: 20 January 2016
Last Updated: 20 January 2016
Hits: 4469

For example we have view:

<TextView
	android:layout_width="wrap_content"
	android:layout_height="wrap_content"
	android:text="Hello World!"
	android:background="@drawable/black"/>

Notice line:

android:background="@drawable/black"

This means that I've created new file in drawable folder /app/src/main/res/drawable/black.xml which looks like:

<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
    <solid android:color="#ffffff" />
    <stroke android:width="1dip" android:color="#000000"/>
</shape>
  1. AsyncTask
  2. Example of buttons one under another one
  3. Align button to the bottom of page
  4. Getting rid of e-mail icon

Page 7 of 11

  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11