Mostrar mensagens com a etiqueta Android. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta Android. Mostrar todas as mensagens

11 abril 2023

Android: Update activity with android:exported

I have this error in my Android Apllication and I found this solution......




I’ve got every activity, service, and receiver setting the android:exported attribute and I’m still seeing the same error

This also happened to me.

If your using external libraries that add any of these components to your Manifest file and they aren’t prepared for this new rule you’ll need to add them individually.





25 março 2023

Android Studio error "Installed Build Tools revision 31.0.0 is corrupted"

 First of all, I faced this issue in Android Studio 4.2.2 and you do not need to downgrade the SDK build tool from 31 to 30 or change compile SDK version.

The main problem is the two files missing in SDK build tool 31 that are:

  1. dx.bat
  2. dx.jar

The solution is that these files are named d8 in the file location so changing their name to dx will solve the error.

The steps are below.

For Windows

  1. go to the location

     "C:\Users\user\AppData\Local\Android\Sdk\build-tools\31.0.0"
    
  2. find a file named d8.bat. This is a Windows batch file.

  3. rename d8.bat to dx.bat.

  4. in the folder lib ("C:\Users\user\AppData\Local\Android\Sdk\build-tools\31.0.0\lib")

  5. rename d8.jar to dx.jar

Remember AppData is a hidden folder. Turn on hidden items to see the AppData folder.

For macOS or Linux

Run the following in the Terminal:

# change below to your Android SDK path
cd ~/Library/Android/sdk/build-tools/31.0.0 \
  && mv d8 dx \
  && cd lib  \
  && mv d8.jar dx.jar

Now run your project.



Source: https://stackoverflow.com/questions/68387270/android-studio-error-installed-build-tools-revision-31-0-0-is-corrupted

03 dezembro 2020

WebArticle - 8 Common Mistakes in Android Development





1. Things Should Be Where They’re Supposed to Be (Strings, Colors)
2. Not Using Fragments
3. Not Using Data Bindings or View Bindings
4. Not Using Kotlin and Coroutines
5. Design Mistakes
6. Not Being Aware of Security Flaws
7. Not Being Aware of Android Studio’s Capabilities
8. Not Using Jetpack Libraries

Source: medium.com

21 janeiro 2019

Android - To implement in 2019



  • Android’s ViewModel Component 
  • LiveData
  • MVVM
  • WorkManager
  • Fastlane
  • Tablet Layouts
  • ConstraintLayout
  • Non Blocking UI
  • Material Design & Dark Mode
  • Unit Tests
  • Kotlin
  • Coroutines


Full article in medium.com

02 maio 2018

Run4All - Agenda de Eventos Running



Agenda de Eventos de Running (Trail, Estrada, Caminhada) em Portugal

Características:
- lista de eventos running
- detalhes do evento
- visualização da localização no mapa
- possibilidade de gestão de favoritos
- visualização de lista offline
- listagem de novos eventos adicionados nos últimos 7 dias
- Filtrar lista por tipo de actividade

Eventos de Running, com detalhes como:
- data do evento
- data limite de inscrição
- localização
- tipo de evento: Trail, Estrada, Caminhada
- distâncias
- url de mais informações

Este projeto continua em desenvolvimento ativo, para sugestões de melhoria, comunicação de problemas ou mesmo adicionar mais eventos poderão contactar através do email
run4allapp@gmail.com



Podes contribuir com um pequeno donativo para ajudar na manutenção da aplicação e para apoio a novos desenvolvimentos.


21 setembro 2015

Install Intel Virtualization Technology

When you try install Intel Virtualization Technology located in 
...\androidSdk\sdk\extras\intel\Hardware_Accelerated_Execution_Manager

you can get following error


The first solution are:
  • VT-x and VT-d turned on in BIOS
  • Don't have Hyper-V enabled on
But the error may continue to appear, the other solution is

If you have avast antivirus installed this can be the problem.
I uninstalled Avast and rebooted. 
Then I was able to install HAXM.
After the installation of HAXM i reinstalled avast.


This solved my problem.

20 setembro 2015

Web Article - Android: Boost up the Android emulator speed up to 400% on Intel based architecture

Okay, it is slow. Then what can we do about it?

Let us go through steps to solve the slowness problem of Android emulator;
  1. First, let us delegate the rendering process to host GPU instead of overhead our CPU by this process, it will make it happy. Do it by checking "Use Host GPU" checkbox in AVD’s edit window.
    The screen should now look better and be more responsive. That is because the CPU is happy to not dealing with the tedious work of doing rendering anymore. However, that is still not fast enough.
    a2
  2. Second we need to download Intel Atom (x86) system image for each Android version you need to use for testing.
    a3
  3. Third, download Intel x86 Emulator Accelerator (HAXM, for Mac and Windows only). This will enable virtual machine acceleration capabilities of the Intel CPU, from Android SDK manager –> tools. Or install it from Intel site.
    a4
  4. The SDK only copies the Intel HAXM executable on your machine, and it is up to you to install the executable.
    To install the Intel HAXM executable, search your hard drive for IntelHaxm.exe (or IntelHAXM.dmg on Mac OS X). If you left everything to default, it should be located at%Android_HOME%\sdk\extras\Intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe.
    Intel HAXM only works in combination with one of the Intel® Atom™ processor x86 system images.
    a5
  5. In order to be able to install the Intel HAXM, you need to have Intel VT-x enabled in your BIOS, otherwise you will get an error like this during install.
    a5b

    Enabling Intel VT (Virtualization Technology)
    a6

    How do I enable Intel VT in your machine BIOS?
    1. Boot into BIOS.
    2. Select "Config".
    3. Select "CPU".
    4. Press enter at "Intel Virtualization Technology".
    5. Select "Disable".
    6. Press F10 and select Yes.
    7. Boot into Windows then shutdown the system.
    8. Boot into BIOS again.
    9. Select "Enable" – Intel Virtualization Technology.
    10. Press F10 and select Yes.
  6. After installation goes successful, edit your AVD and chose Intel® Atom (x86).
    a8
  7. Finally Hit okay, then lunch your cake and definitely enjoy the speed.
VIP Note:
You could say that this level of speed should be sufficient. That may be true, but an issue with the Intel x86 images is that you do not get Google Apps, they only come with ARM images. This is important if you are testing an app that usesGMaps, or Google Play Services.

Source: javacodegeeks.com

17 novembro 2014

04 novembro 2014

Adding a library/JAR to an Eclipse Android project

Steps:
  1. Download the library to your host development system.
  2. Create a new folder, libs, in your Eclipse/Android project.
  3. Right-click libs and choose Import -> General -> File System, then Next, Browse in the filesystem to find the library's parent directory (i.e.: where you downloaded it to).
  4. Click OK, then click the directory name (not the checkbox) in the left pane, then check the relevant JAR in the right pane. This puts the library into your project (physically).
  5. Right-click on your project, choose Build Path -> Configure Build Path, then click the Libraries tab, then Add JARs..., navigate to your new JAR in the libs directory and add it. (This, incidentally, is the moment at which your new JAR is converted for use on Android.)
NOTE
Step 5 may not be needed, if the lib is already included in your build path. Just ensure that its existence first before adding it.

Source: stackoverflow

02 outubro 2014

Android LX - Descobre o que há de novo no Android - 14OUT2014


O Android LX está agendado para o próximo dia 14 de Outubro, no Hotel Florida, pelas 19h00 e, entre outras coisas, terá na agenda apresentações técnicas sobre desenvolvimento para Android.



21 julho 2014

Android - Remover pasta no File Explorer

Passos para apagar uma pasta no File Explorer

1 - Usando a linha de comandos (CMD) aceder a "platform-tools" do Android SDK
ex: C:\...\androidSdk\adt-bundle-windows-x86_64-20130917\sdk\platform-tools

2 - Executar o seguinte comando
#adb shell

3 - Entrar no sdcard
#cd sdcard

4 - Remover o directorio pretendido
#rm -r nomePasta





17 novembro 2013

Web Tutorials

Web Tutorials

JAVA
Simple Java Database Swing Application
How to Send Email from Java Program with Example
Java ResourceBundle Example

Creating Maven Projects
Hibernate 3 with Maven 2 and MySQL 5 Example (XML Mapping and Annotation)
How to create a EJB 3.x project using Maven in Eclipse – Part 1
Setup of Dynamic Web Project using Maven
Create Web Application Project with Maven Example

JMS
Spring JMS Example

Java EE7 and Maven
Java EE7 and Maven project for newbies - part1 part2 part3 part4 part5 part6 part7 part8
Spring JPA Data + Hibernate + MySQL + MAVEN
Spring MVC Hello World Example
Spring MVC File Upload Example
Spring MVC beginner tutorial with Spring Tool Suite IDE
Upload Files to Database with Spring MVC and Hibernate

Logging 
Logback
Logback Configuration Example

WELD - Java Contexts and Dependency Injection for the Java EE platform (CDI)
DI (Dependency Injection) / CDI – Basics
Writing JSR-352 style jobs with Spring Batch Part 2: Dependency injection

Spring Data MongoDB
Spring Data MongoDB with Java config

JPA
JPA Tutorial: Setting Up JPA in a Java SE Environment
JPA Tutorial: Mapping Entities – Part 1 - Part 2 - Part 3

Hibernate
Hibernate annotations example
Hibernate tutorial with Eclipse

Persistence
The DAO with JPA and Spring
How to maintain history of tables in Hibernate

Android Tutorials
Android Development Tutorial