Categories
Mastering Development

Android Studio Google Map doesn’t load

If I use it on the Phone I can see the Google letters from the Map but nothing else, If I extract the Code to an extra app inside a Linear Layout as the same Map Fragment it works great. but not inside the hole app. It’s inside a Linear Layout as a Map Fragment […]

Categories
Android User Help

Why my data saved in SQLite cannot be displayed on other Activity? [closed]

What I was trying to do here is to display the data in SQLite on my Profile page. But I can’t seem to display the data saved to the Profile page. I don’t know what’s the problem here, there are no errors in my codes and the application can be run perfectly. I just can’t […]

Categories
Mastering Development

Problem with Intent that takes and ID from Firebase Database

I have a problem with the Intent from a class that sends an extra string with Course_ID as you can see in the Firebase Database image. Sometimes in class UploadFile.class, the String that get the intent with extra string (that contains Course_ID), gets a null value. If you can recommend me a new method to […]

Categories
Android User Help

How can I start an activity when the app is not running or in background ,change in child node of Firebase database should invoke the activity

Below is the activity and Checkforrecievingcall() is the method to invoke the calling activity to the other user phone. What is the best way to invoke calling activity when app is in the background or not running? Can someone help me with this? Your suggestions will be appreciated.Thank you package com.example.game.videochat; import android.app.Activity; import android.content.Intent; […]

Categories
Android User Help

How do I upload my image to firebase storage with the user name who uploads it (Already Login process done)

//This is my upoading image activity to firebase public static final int CAMERA_PERM_CODE = 101; public static final int CAMERA_REQUEST_CODE = 102; public static final int GALLERY_REQUEST_CODE = 105; ImageView selectedImage; String currentPhotoPath; Button cameraBtn,galleryBtn; StorageReference storageReference; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_upload); BottomNavigationView bottomNavigationView = findViewById(R.id.bottom_navigation); bottomNavigationView.setSelectedItemId(R.id.upload); bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() { @Override public […]

Categories
Mastering Development

What is the VINTF manifest in android studio? Have an error

2020-04-22 16:14:49.759 1809-1809/? E/servicemanager: Could not find android.hardware.power.IPower/default in the VINTF manifest. This keeps popping up. Am coding a camera, that when a button is clicked, an image is cropped. Here is a custom view I am adding to a fragment. public class DrawView extends View { Point[] points = new Point[4]; /** * point1 […]

Categories
Mastering Development

Android Storage Write on Emulator

I am developing and android application with emulator of Android Studio 3.6. I am using a virtual device of Nexus 7 with andoird 10. I have given permission on the manifest file and I have asked for the user to give permission for read write to the external storage. Although permissions are ok I can […]

Categories
Mastering Development

Exception: Attempt to invoke virtual method ‘android.content.res.Resources android.content.Context.getResources()’ on a null object reference

When i am trying to add two string variable msg and phoneNo in the TextView through setter method present in MainActivity.java (which is called by dow() method which is present in MyReceiver.java) a Runtime Exception (shown below) occurs When onReceive method in MyReceiver.java file is called by broadcastReceiver. I am unable to understand the Exceptio […]

Categories
Mastering Development

Attempt to invoke virtual method ‘double android.location.Location.getLatitude()’ on a null object reference,

MainFragment.java package com.example.nitctraveltogether.ui; import android.Manifest; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Build; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Toast; import com.example.nitctraveltogether.Drawer; import com.example.nitctraveltogether.Splashscreen; import com.example.nitctraveltogether.home; import androidx.annotation.NonNull; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.fragment.app.Fragment; import com.example.nitctraveltogether.MainActivity; import com.example.nitctraveltogether.R; import com.firebase.geofire.GeoFire; import com.firebase.geofire.GeoLocation; import com.firebase.geofire.GeoQuery; import com.firebase.geofire.GeoQueryEventListener; […]

Categories
Development

How to access Latitude and Longitude as variables from Service?

I’m having trouble trying to get the latitude and longitude from my Service and store them as variables so I can access them from other classes I’m building. I want to have them equal to the current latitude and longitude of the user and update them through the interval set in the requestLocation() method. I […]