What are the fundamental quantities?
tl;dr; Length, time and Length measured in meters (1m), symbol L Time measured in seconds (1s), symbol T Mass measured in kilograms (1kg), symbol M Derived quntities e.g. [Speed] = [L] / [T]
tl;dr; Length, time and Length measured in meters (1m), symbol L Time measured in seconds (1s), symbol T Mass measured in kilograms (1kg), symbol M Derived quntities e.g. [Speed] = [L] / [T]
Consider Volley a 2.0 version of Android Asynchronous Http Client. A major advantage of Volley over ASyncTask is that you can do multiple requests simultaneously without the overhead of thread management. Gradle Add implementation ‘com.android.volley:volley:1.2.1’ to your module gradle dependencies. Basic Anatomy of a Volley Request val queue = Volley.newRequestQueue(context) val stringRequest = StringRequest( Request.Method.GET,…
Beta decay is the process where a nucleon decays into either an electron or a positron. β− decay (electron emission) n → p + e− + ν A neutron decays into proton, an electron and an anti-neutrino. β+ decay (positron emission) p → n + e++ νe A proton decays into a neutron, a positron…
Adding a splash screen to your app can be done in a five-step process Add a background_color.xml <?xml version=”1.0″ encoding=”utf-8″?> <shape xmlns:android=”http://schemas.android.com/apk/res/android” android:shape=”rectangle”> <solid android:color=”@color/black” /> </shape> Add splashscreen.xml <?xml version=”1.0″ encoding=”utf-8″?> <layer-list xmlns:android=”http://schemas.android.com/apk/res/android”> <item android:drawable=”@drawable/background_color”/> <item> <bitmap android:gravity=”center” android:src=”@drawable/prestissimo_logo_green”/> </item> </layer-list> Add themes.xml <style name=”SplashTheme” parent=”Theme.MaterialComponents.Light.NoActionBar”> <item name=”android:windowBackground”>@drawable/splashscreen</item> <item name=”android:statusBarColor”>@color/pg_green</item> </style> Add new activity:…
In Passing data between fragments using SafeArgs I showed You how to pass data between -well- fragments. This included all basic / built-in types like Strings and Integers. In this part I will show you how you can pass custom objects.
If you want to add another language for your app do the following Create a new folder e.g. app/src/main/res/values-de Add strings.xml into this folder Translate the content The cool thing about translation in android is that you can do it incrementally: when there is no translation for a string resource in a locale Android will…
App Gradle plugins { id ‘androidx.navigation.safeargs.kotlin Project Gradle dependencies { classpath “androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5″ nav_graph.xml <fragment> <action android:id=”@+id/action_SecondFragment_to_FirstFragment” app:destination=”@id/FirstFragment” /> <argument android:name=”myArg” app:argType=”integer” /> FirstFragment import com.example.codelabsfirstappwithkotlin.databinding.FragmentFirstBinding val action = FirstFragmentDirections.actionFirstFragmentToSecondFragment(currentCount) findNavController().navigate(action) SecondFragment import androidx.navigation.fragment.navArgs val args: SecondFragmentArgs by navArgs() val count = args.myArg
Reminder: A Container is a running instance of an Image Docker CLI commands Command Meaning docker info This command displays system wide information regarding the Docker installation docker pull download an image from dockerhub docker images show list of locally available docker image docker start start container docker stop stop container docker run pulls image,…
Get Device Info The device command gives you info about connected well devices $adb devices -l List of devices attached LGD8559ea73a60 device product:g3_global_com model:LG_D855 device:g3 transport_id:2 Shell $ adb shell Services shell@g3:/ $ service list Found 132 services: 0 AtCmdFwd: [com.qualcomm.atfwd.IAtCmdFwd] … Device Properties shell@g3:/ $ getprop [DEVICE_PROVISIONED]: [1] … Get CPU information shell@g3:/…
My tale of woe When I started to write my first ebook I decided to use pandoc to transform markdown into pdf. It basically looked like this pandoc metadata_de.yaml -o ./level_up_de.pdf –from markdown -V lang=de-DE level_up_de.md This simple command can be pasted into the command line everytime I want to build a new version of…