<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fahime Zivdar</title>
    <description>The latest articles on DEV Community by Fahime Zivdar (@fahimezv).</description>
    <link>https://dev.to/fahimezv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F587487%2F63f9cd34-956f-45cb-a9bc-898f9cb19cf5.jpeg</url>
      <title>DEV Community: Fahime Zivdar</title>
      <link>https://dev.to/fahimezv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fahimezv"/>
    <language>en</language>
    <item>
      <title>Difference null-safety in java and kotlin 
</title>
      <dc:creator>Fahime Zivdar</dc:creator>
      <pubDate>Wed, 11 Aug 2021 04:33:06 +0000</pubDate>
      <link>https://dev.to/fahimezv/difference-null-safety-in-java-and-kotlin-24n9</link>
      <guid>https://dev.to/fahimezv/difference-null-safety-in-java-and-kotlin-24n9</guid>
      <description>&lt;p&gt;The kotlin is &lt;b&gt;null-safety&lt;/b&gt; unlike java&lt;br&gt;
In the java the codes in  compile time they are null .So that's why may occur&lt;b&gt;NullPointerException&lt;/b&gt;.&lt;br&gt;
For example: when  defined a variable. the variable may be null &lt;br&gt;
To avoid being &lt;b&gt;null&lt;/b&gt; variable. &lt;br&gt;
We have to use &lt;b&gt;&lt;a class="mentioned-user" href="https://dev.to/notnull"&gt;@notnull&lt;/a&gt;
&lt;/b&gt;.and then variable is safe.&lt;br&gt;
In the kotlin by default all of thing is &lt;b&gt;not null&lt;/b&gt;.&lt;br&gt;
When defining a variable, we can define the initial value in &lt;b&gt;Nullable&lt;/b&gt;.&lt;br&gt;
Before compiling because IDE Is smart, checks Nullable &lt;/p&gt;

</description>
    </item>
    <item>
      <title>List of ADB for Android</title>
      <dc:creator>Fahime Zivdar</dc:creator>
      <pubDate>Thu, 20 May 2021 07:23:18 +0000</pubDate>
      <link>https://dev.to/fahimezv/list-of-adb-for-android-7dd</link>
      <guid>https://dev.to/fahimezv/list-of-adb-for-android-7dd</guid>
      <description>&lt;p&gt;&lt;b&gt;==&amp;gt; Install app&lt;/b&gt;
&lt;br&gt;
adb install Myapp.apk
&lt;br&gt;
adb -d  install Myapp.apk  //-d (directs command to the connected USB device.)
&lt;br&gt;
adb -e  install Myapp.apk    //-e (directs command to the running emulator.)
&lt;br&gt;
adb -s  install Myapp.apk    //-s &lt;br&gt;
adb -p  install Myapp.apk    //-p &lt;br&gt;
------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Uninstall app&lt;br&gt;&lt;/b&gt;

adb uninstall com.package.myapp&lt;br&gt;
adb uninstall -k com.facebook.katana //-k Keep the data and cache directories around after package removal.&lt;br&gt;
------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Logcat  &lt;/b&gt;&lt;br&gt;

adb logcat                       //displays the log data onto the screen&lt;br&gt;
adb logcat -c                    //you can clear the existing logs on an Android device.&lt;br&gt;
adb logcat -d &amp;gt; [path_to_file]   //you can save the logcat output to a file on your computer.&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Reboot device&lt;br&gt;&lt;/b&gt;

adb reboot                //ADB can be used to reboot your device, useful when your hardware buttons aren’t working.&lt;br&gt;
adb reboot bootloader     //Reboots the device into the Fastboot or Bootloader mode.&lt;br&gt;
adb reboot recovery       //Reboots the device into recovery mode.&lt;br&gt;

-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Bugreport&lt;br&gt;&lt;/b&gt;

adb bugreport             //Displays the Android device &lt;br&gt;information such as dumpsys, dumpstate and logcat data on the screen.&lt;br&gt;
adb jdwp                  //Lists the JDWP (Java Debug Wire Protocol) processes on the device. if you’re not already aware of it, chances are you don’t have to worry about it either.&lt;br&gt;

-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Server&lt;br&gt;&lt;/b&gt;

adb start-server          //Starts the adb server process.&lt;br&gt;
adb kill-server           //Stops the adb server process (terminal adb.exe process).&lt;br&gt;

-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Files&lt;br&gt;&lt;/b&gt;

adb pull /sdcard/screenrecord.mp4         //This command can be used to pull any files from your device and save it on your computer. To download or pull a file from your Android device to the SDK platform-tools directory, use&lt;br&gt;
adb pull /sdcard/screenrecord.mp4 e:\    //If you want to download a file from your phone’s storage to a specific drive on your computer, execute the this command&lt;br&gt;

adb push Myapp.apk /sdcard               //This command can be used to push a file from your computer to your device. If the file to be pushed it save in the SDK folder, use&lt;br&gt;
adb push e:\Myapp.apk /sdcard            // To push or send a file to your Android from a specific drive on your computer, use&lt;br&gt;

-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt;  Permissions&lt;br&gt;&lt;/b&gt;

adb shell pm reset-permissions -p com.package.myapp   // Reset App's permission &lt;br&gt;
adb shell pm grant [packageName] [Permission]         // Grant a permission to an app&lt;br&gt;
adb shell pm revoke [packageName] [Permission]        // Revoke a permission from an app&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Package info&lt;br&gt;&lt;/b&gt;

adb shell list packages                // list package names&lt;br&gt;
adb shell list packages -r             // list package name + path to apks&lt;br&gt;
adb shell list packages -3             // list third party package names&lt;br&gt;
adb shell list packages -s             // list only system packages&lt;br&gt;
adb shell list packages -u             // list package names + uninstalled&lt;br&gt;
adb shell dumpsys package packages     // list info on all apps&lt;br&gt;
adb shell dump                   // list info on one package&lt;br&gt;
adb shell path                // path to the apk file&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Print text&lt;br&gt;&lt;/b&gt;

adb shell input text 'Hello world'&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;
&lt;b&gt;
==&amp;gt; Screenshot&lt;br&gt;&lt;/b&gt;

adb shell screencap -p /sdcard/screenshot.png&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Monkey
&lt;br&gt;&lt;/b&gt;
adb shell monkey -p com.myAppPackage -v 10000 -s 100    // Monkey is generating 10.000 random events on the device&lt;br&gt;
-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Other&lt;/b&gt;&lt;br&gt;
adb backup              // Create a full backup of phone and save &lt;br&gt;to the computer
adb restore             // Restore a backup to phone&lt;br&gt;
adb sideload            // Push and flash custom ROMs&lt;br&gt;

-----------------------------------------------------------------------&lt;br&gt;

&lt;b&gt;==&amp;gt; Connection Managment&lt;br&gt;&lt;/b&gt;

adb tcpip 5555                 // Set the target device to listen for a TCP/IP connection on port 5555&lt;br&gt;
adb connect 192.168.1.20:5555 // Connect to the device by its IP address&lt;br&gt;
adb disconnect                // Disconnect the USB cable from the target device.&lt;br&gt;
adb devices                   // You can generate a list of attached devices&lt;br&gt;
&lt;/p&gt;

</description>
      <category>android</category>
      <category>adb</category>
    </item>
  </channel>
</rss>
