Categories
Android Database Development Firebase

How to count the number of periods a student presents on a given days in Firebase real time database on Android?

here is a result of the code for com(R)020-09 I am trying to develop an android application for student attendance taker and I want to count the number of periods a student exists to calculate the percentage of his or her presence. but it doesn’t return the correct values. Please help me I am a […]

Categories
Android Development Firebase

Mock firebase android applicattion

I’m new in programming and i have to create a simple application with a database. I’m using Firebase realtime database and I have no idea how to do unit tests. How can I mock database and push there some fake data to test? Can you show me an example?

Categories
Android Cryptocurrency Development Ethereum Java

Web3J Java Android SendAsync Error

I am trying to interact with a method in my smart contract. The method is a simple method where you send a string value to a global variable. I end up using a SendAsync which appears to initially work, but the data isn’t being sent. The code I am trying to get working is as […]

Categories
Android Development

Android – RuntimeException due to a Resources$NotFoundException

Morning everybody, I have a weird problem with a production app. Some users get a RuntimeException apparently due to a ResourceNotFoundException. I got the crash via Sentry but cannot reproduce it on any of my devices. The error seems to be on the splash.xml that can not be found, but this file is located in […]

Categories
Android Development

Android FCM total sent notifications much higher compared to received

We’ve noticed in the firebase console that under the cloud messaging report the total number of push notifications that are sent is much higher than the ones received. It can be as 15k push notifications sent and only 3.5k received or 7.6k sent and 2.6k received. Is there a reason for the difference being this […]

Categories
Android Development Google Linux Ubuntu

How can I run full the Android OS, including Google Play Store, on Ubuntu 18.04?

I want to play Android games on Ubuntu 18.04. Some games are linked to my Google account so I probably need to run the Play Games and Play Store. Note that similar questions have been posted here before but those posts are quite old and the main answers no longer seems to apply to 18.04 […]

Categories
Android Development

Android gradle build failed – duplicate entry

After implementing Firebase in app messages I’ve got problem with building my app. I added to my gradle file dependencies : implementation ‘com.google.firebase:firebase-inappmessaging-display:19.0.2’ implementation ‘com.google.firebase:firebase-analytics:17.1.0′ and now I’m receiving an error : Warning: Exception while processing task java.io.IOException: Can’t write [/Applications/LandLord/app/build/intermediates/transforms/proguard/prod/release/0.jar] (Can’t read [/Users/rg/.gradle/caches/modules-2/files-2.1/com.google.android/annotations/4.1.1.4/a1678ba907bf92691d879fef34e1a187038f9259/annotations-4.1.1.4.jar(;;;;;;;**.class)] (Duplicate jar entry [android/annotation/TargetApi.class])) Thread(Tasks limiter_5): destruction :app:transformClassesAndResourcesWithProguardForProdRelease FAILED after checking […]

Categories
Android Development Firebase Plugins

Permission denied with Firebase distribution android app using service account credentials mode

I’m trying to migrate from Fabric to Firebase since Fabric will not be available beyond March 31, 2020. I already have done the first steps: adding plugins and dependencies to gradle, adding analytics json file, even crash reporting, and all seems correct because I can see data in the Firebase console (analytics and crashes). But […]

Categories
Android Development Drivers Linux Ubuntu

Ubuntu doesn’t show content of USB Flash recognize Android devices after installing cannot printer driver anymore

i have some problem with opening USB drive flash (get Input/output error like this post)and recognizing my android mobile phone (USB cable) to my Ubuntu 18.04 after trying to install the Canon MF4410 printer driver on my Ubuntu last night. So there is some report of last USB connection to my PC: [ 1092.880599] r8169 […]

Categories
Android Development

presence on Facebook Canvas, appwarp android game

I created an Android Game using Appwarp and now I want to connect players using facebook. I read the docs for a few hours and now I am uncertain where to go next. I understand Game Requests in facebook requires “presence on Facebook Canvas”. How do you do that? My app is a game and […]