Pages

Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Monday, January 6, 2020

Fedora 31 : Can be better? part 004.

The common question of any Fedora Linux user: Can be better?.
Yes, we can fix some common errors...
This is a common error generated by the GTK on Fedora distro applications:
[mythcat@desk bin]$ ./studio.sh 

(java:12631): Gtk-WARNING **: 11:45:47.061: Unable to locate theme engine in module_path: "murrine",

(java:12631): Gtk-WARNING **: 11:45:47.061: Unable to locate theme engine in module_path: "murrine",

(java:12631): Gtk-WARNING **: 11:45:47.106: Unable to locate theme engine in module_path: "murrine",
...
First, find the running GUI environment from the terminal:
[mythcat@desk ~]$ echo $XDG_CURRENT_DESKTOP
X-Cinnamon
This allows us to know that the issue may be a GTK theme package.
[root@desk bin]# dnf install gtk-murrine-engine.x86_64
Last metadata expiration check: 0:45:00 ago on Mon 06 Jan 2020 11:14:27 AM EET.
Dependencies resolved.
...
Installed:
  gtk-murrine-engine-0.98.2-17.fc31.x86_64                                      

Complete!
Now the Android Studio works well without warning errors:
[mythcat@desk bin]$ ./studio.sh 
Jan 06, 2020 12:00:51 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
...

Saturday, June 23, 2018

Fedora 28 : Starting develop with Flutter .

Today I started with another programming language Dart and Flutter.
The development team tell us about Flutter:
Flutter is Google's mobile UI framework for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
You can read more about this on official webpage:
About linux setup you can read here.
You need also to download the Android Studio I.D.E from official webpage.
You need to install some packages using dnf tool:
[mythcat@desk ~]# dnf install libstdc++.i686
[mythcat@desk ~]#  dnf install curl
Unzip theAndroid Studio I.D.E.into android-studio folder and start it to make settings for android SDK and AVD emulated device:
[mythcat@desk ~]$ cd android-studio/
[mythcat@desk android-studio]$ ls 
bin        gradle                 jre  license      NOTICE.txt
build.txt  Install-Linux-tar.txt  lib  LICENSE.txt  plugins
[mythcat@desk android-studio]$ cd bin/
[mythcat@desk bin]$ ls
appletviewer.policy  idea.properties  printenv.py         studio.sh
format.sh            inspect.sh       restart.py          studio.vmoptions
fsnotifier           lldb             studio64.vmoptions
fsnotifier64         log.xml          studio.png
[mythcat@desk bin]$ ./studio.sh 
Select Plugins to add Dart and Flotter plugins:
You need to install Dart and Flotter plugins, use search:

Download and unarchive the Flutter from official webpage.
Next steps is to set the path for the Flutter and make settings for android licenses:
[mythcat@desk ~]$ export PATH=`pwd`/flutter/bin:$PATH
[mythcat@desk ~]$ cd flutter/
[mythcat@desk flutter]$ ls
analysis_options_repo.yaml  bin              flutter_console.bat  README.md
analysis_options.yaml       CONTRIBUTING.md  LICENSE              version
appveyor.yml                dev              packages
AUTHORS                     examples         PATENTS
[mythcat@desk flutter]$ cd bin/
[mythcat@desk bin]$ ls
cache  flutter  flutter.bat  internal
[mythcat@desk bin]$ ./flutter doctor --android-licenses
Warning: File /home/mythcat/.android/repositories.cfg could not be loaded.      
All SDK package licenses accepted.======] 100% Computing updates...             
[mythcat@desk bin]$ ./flutter doctor 
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] Android Studio (version 3.1)
[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.

Use flutter command to get more help :
[mythcat@desk bin]$ ./flutter
Manage your Flutter app development.

Common commands:

  flutter create output directory=""
    Create a new Flutter project in the specified directory.

  flutter run [options]
    Run your Flutter application on an attached device or in an emulator.

Usage: flutter  [arguments]

Global options:
-h, --help            Print this usage information.
-v, --verbose         Noisy logging, including all shell commands executed.
-d, --device-id       Target device id or name (prefixes allowed).
    --version         Reports the version of this tool.
    --bug-report      Captures a bug report file to submit to the Flutter team (contains local paths, device
                      identifiers, and log snippets).

    --flutter-root    The root directory of the Flutter repository (uses $FLUTTER_ROOT if set).

Available commands:
  analyze          Analyze the project's Dart code.
  build            Flutter build commands.
  channel          List or switch flutter channels.
  clean            Delete the build/ directory.
  config           Configure Flutter settings.
  create           Create a new Flutter project.
  devices          List all connected devices.
  doctor           Show information about the installed tooling.
  drive            Runs Flutter Driver tests for the current project.
  emulators        List and launch available emulators.
  format           Format one or more dart files.
  fuchsia_reload   Hot reload on Fuchsia.
  help             Display help information for flutter.
  install          Install a Flutter app on an attached device.
  logs             Show log output for running Flutter apps.
  packages         Commands for managing Flutter packages.
  precache         Populates the Flutter tool's cache of binary artifacts.
  run              Run your Flutter app on an attached device.
  screenshot       Take a screenshot from a connected device.
  stop             Stop your Flutter app on an attached device.
  test             Run Flutter unit tests for the current project.
  trace            Start and stop tracing for a running Flutter app.
  upgrade          Upgrade your copy of Flutter.

Run "flutter help " for more information about a command. 
                                                                                                                                                                                                                                                                                                
Run "flutter help -v" for verbose help output, including less commonly used options.
Restart the Android Studio and create your first Flutter application.
You need to have all settings for your devices or emulated AVD devices to build and develop your android application.

Friday, March 17, 2017

Measure the charging with Ampere.

This android application let you to know more about your battery.
Just use it to measure the charging and discharging current of your battery.
-
Or, you can also use a hardware device and Fedora 25 to have a great life.

Saturday, May 21, 2016

LibreOffice Viewer - tested.

I like LibreOffice because is opensource with a great team development.
Can be used with Windows and Linux.
Today I will told about the Android OS and LibreOffice.
LibreOffice is now available on Android as a native application with this formats:
• Open Document Format (odt, ods and odp);
• Microsoft Office 2007/2010/2013 (docx, xlsx and pptx);
• Microsoft Office 97/2000/XP/2003 (doc, xls and ppt).
Named LibreOffice Viewer comes with a first preview of the editing functionality and is sized to APK:48 MB / App installed:81 MB.
I think is need to improve this application with viewer for epub and some ebook document formats.
This will remove some applications.
Note: Microsoft Office come with 1GB of RAM and also can be used.

Wednesday, September 30, 2015

News: Google Play Store increasing file size .

To help developers build apps , Google Play Store increasing file size limit from 50 MB to 100 MB.
Seam Google wants to encourage developers to create richer apps and games.
Also, users will see a warning only when the app exceeds the 100MB quota and makes use of Expansion Files.
You can read more at support googleplay apk

Tuesday, July 21, 2015

Google Shutting Down Google+ Photos !

Google announced in a post on its social network site, it will begin winding down Google+ Photos: on August 1st we’ll start to shut down Google+ Photos -- initially on Android, and soon thereafter on the Web and iOS. How to fix that ... ? So you need to download the new Google Photos today for uninterrupted access to all your photos, videos and albums. To do that use android.apps.photos. With the new app you’ll still be able to backup, edit, and share your photos and videos, with unlimited storage, automatic organization, and more. The biggest difference is that :
  • Google+ users had to actually visit the network on the web to access photos;
  • Google Photos has its own dedicated web interface.
Also your photos and video will still remain available for download through Google Takeout - a program that allows users to download a copy of their data stored within Google products.

Thursday, August 15, 2013

Few tutorials with pygame and android ...

Linux can be a goof tool for development...

In the last days I deal with pygame and android.

So if you want to make applications for your tablet or mobile phone then see this:

pygame-first-interface-part-4

working-with-pygame-subset-for-android

working-with-android-emulator-part-001

... also I saw the pygame can give some errors on android. I got this error : android pygame error : failed to dequeue buffer from native window.

So if is somebody know pygame then you can read more here.

Sunday, June 30, 2013

Using .bashrc function to connect and debug your android application.

This is a simple way to use your tablet device to debug your android applications.

Go to root account and open the .bashrc file.

Type the next source code using your home folder account.

function tablet()
{
cd /home/free-tutorials/android-studio/sdk/platform-tools/
./adb kill-server
./adb server
./adb devices
}

Restart your terminal, connect your tablet device .

Now you can use this command : tablet to start connection with your tablet.

If you want to see more about programming android application under Fedora distro , just go to this website.

Monday, February 4, 2013

News: DroidCleaner App infects connected PCs

Linux friends with android device another problem can infect your device.
DroidCleaner, an Android app that claims to free up smartphone memory but actually infects connected PCs, has been removed from Google Play but is still available from third-party app stores.
Read more here.

Thursday, August 30, 2012

Using SL4A bash shell script to connect Linux with Android tablet .

Using Linux with Android OS is very simple.
I install the next two android application: sl4a_r6.apk and PythonForAndroid-r7b1.apk.
Use the PythonForAndroid-r7b1.apk just if you want to write some python scripts.
We can download it from here.
The first: sl4a_r6 it's used to write and run scripts like bash shell, HTML, Java, Python.
With this, the SL4A provides and make APIs available via JSON RPC calls.
The PythonForAndroid-r7b1 allow you to install python modules...
We can read more on this website.
Let's start with one simple bash shell script.
We will make a shell script to test the connection between Linux and Android tablet.
The connection will be through a wireless router that has opened the port through which the communication.
Tablet has Android 4.0.
We use the Linux command NC, see: nc command.
This is the script on the tablet and it will run first.
nc -l -p 7000
See the next image:

Button 1 - run the script
Button 2 - edit the script
Button 3 - save the script
Button 4 - remove the script
Use the next command with your IP on the Linux terminal.
nc xxx.xxx.xxx.xxx 7000
If you type something in your terminal you will see on a tablet.
The input from my linux terminal can be seen in the next image:

Ant this is the output on my tablet.

We can test multiple features of command nc.
I'm just curious if you have some new ideas on this subject.

Friday, August 24, 2012

News: New GTK3 theme make your Linux to look like an Android

The new GTK3 theme inspired by Android will make your Linux nicer.
reNIX Gnome Shell theme: [link]
reNIX (for Chrome/Chromium): [link]

Friday, August 10, 2012

News: Google Translate Android can translate from pictures.

News about Google Translate Android.
Use camera to take a picture and brush text to translate - available on Android 2.3 and above.
Get instant translation results as you type.
Choose dialect preference for speech input.
Japanese handwriting now recognizes multiple characters at once.
Added access network state permission to check network availability when sending requests.
Try this on play.google.com

Monday, September 26, 2011

Android ARM Assembly by Vikram Aggarwal

Today I read an interesting article about Android.
The article is written by the developers Vikram Aggarwal, a software engineer at Google.
This article - tutorial consists of a series on learning ARM assembly on Android.
Its subject is "...calling Assembly code from Android applications".
The tutorial contains the necessary source code and details for the reader to understand how it works.
For those who have never used Gas (GNU Assembler), this article is of interest much.
I wonder if there is anyone interested in the Fedora community to write Android applications.
This article can be read here.