• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

java

  1. U

    Apps error: cannot find symbol import com.urbannet.ryamusicplayer.BuildConfig;

    I am working on an open-source project based on Phonograph. I renamed the package/domain name and I am getting the error: "C:\Users\user\AndroidStudioProjects\Rya Music Player\Play Store\Rya Music Player\app\src\main\java\com\urbannet\ryamusicplayer\glide\BlurTransformation.java:19: error...
  2. P

    Slide from one html page to another

    I am making an android book app with java using web view and my pages in html. As I am new to this, I am trying to find how to slide from one html page to another instead of clicking buttons. please if you know how , set an example because like I said I am new to this. here is a link to the...
  3. Z

    How to use sessions between my Android app and my Java webapp?

    Hello everyone, I'm developing an Android app for my website. It relies heavily on Get requests and Put requests (of course, it includes authentification). I read that android applications don't support sessions as browsers do. Right now, the servlet I made can deliver content to my...
  4. F

    Apps Help with sending info from Fragments

    Hi guys, new to app development and new to the forum. Am actually enjoying developing apps as opposed to programs because of the layout designer in android studio but recently have run into a real annoying issue that I can't seem to solve. I'm trying to write an app that allows a user to send...
  5. rowlanda38

    Help How do i delete items from a sqlite databse?

    I am creating a basic app where i can add customers to a database and display them on another screen, i have set up everything using recyclerview and card views to display the customers and that works fine, but im not sure how i set it up so that i can delete the customers. i have added a button...
  6. ninodor

    Help Weird android system behavior if application is running more than ~8 hours

    im currently building a digital signage app, which is running on displays which are based on android 7.*. Everything is working perfectly, except a weird OS behavior: After a while (6-9h) of running the app, android minimizes my application, i don't get any error logs nor do i get a exception...
  7. Mohamed13

    I have error message in Build Output

    The error message saying "AAPT: error: 'matchmaker' is incompatible with attribute layout_constraintTop_toTopOf (attr) reference|enum [parent=0]. How to fix it? <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout...
  8. Mohamed13

    Help How to fix this error message

    Android manifest code <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.example.Second app"> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="26" />...
  9. Mohamed13

    How to fix error coding

    Android manifest. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.secondapp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="23"...
  10. Mohamed13

    How do you fix androidmanifest coding

    My code is <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.Second app"> <application android:allowBackup="true" android:icon="@Mipmap/ic_launcher" android:label="@String/app_name"...
  11. Mohamed13

    I have few problems with android studio

    1, I am trying to put an image on my design but it doesn't show up. I put the code in and the code is... <ImageView android:layout_width="match_parent" android:layout_height="300dp" android:background="@drawable/blue_background" app:layout_constraintEnd_toEndOf="parent"...
  12. N

    Need help with Android / Java development

    Good afternoon, members of the forum. I have an application, with MainActivity, which starts a service when the application starts. The service sends a POST request to the server every 10 seconds. Everything is fine, requests are received, but only before the phone screen is locked. If the...
  13. A

    Fatal Exception: java.lang.IllegalArgumentException width and height must be > 0 on Chromecast imple

    I am trying to implement Chromecast functionality using casty sdk. Ref: https://github.com/DroidsOnRoids/Casty But always getting Fatal Exception: java.lang.IllegalArgumentException width and height must be > 0 android.view.View.draw (View.java:21594) Below is my code //Oncreate()...
  14. A

    Apps Android Service With Wake Lock and Intent Redelivery Still Gets Killed When Screen Turns off

    I created a service that is supposed to run in the background on a button press and stop on a button press. It's started from a fragment and not an Activity. I can get it to start and run while the screen is on, but the moment my screen turns off, its onDestroy method is called and stops itself...
  15. Dnlaua

    Is there any way to put a ViewPager2 inside an AlertDialog?

    I'm losing my mind. Spent over 5 hours rearranging code thinking I was one step away from fixing the issue due to being able to have half the functionality with one parameter change, and the other half of the functionality with a different parameter. I WAS WRONG. NOT CLOSE. I'm hoping you guys...
  16. R

    App Inventor How to pass the Selected Image To ImageView From ArrayList

    CardView Been clicked and gallery opened, Selected an Image, I'm trying to pass the image selected from the gallery and pass to ImagePreview inside the CardView , the cardview is generated via ArrayList. I'm getting the error like delivering a result java.lang.RuntimeException: Failure...
  17. G

    Apps Why won't my Android Room Update my Table?

    This is an issue I had posted elsewhere (StackOverflow and JavaRanch) but I had to abandon 5 months ago. Now that I'm back on this project this issue is still present and I'm not sure how to resolve it. I never received a comment or suggestion on previous posts and thought someone may have a...
  18. Gleis

    Apps Android Studio - App closes when you press the main button even thought the code is working fine !

    Tried many methods by changing the code, but it closes every time I press the "Try" button. You can find the Design, XML & Java code below. Also Android Studio is up to date. The "//" is the old code I tried. public class MainActivity extends AppCompatActivity { //int randomNumber...
  19. A

    Apps Android Retrofit: Unable to upload image to server. Uploads 0 kb image when using file_put_contents

    Hi, I am trying to use retrofit to upload an image from the android device to mysql database and server. Below is the java code that I am using for uploading the image: ``` private void uploadImage() { Bitmap fullSizeBitmap = BitmapFactory.decodeFile(pathToFile); Bitmap...
  20. Gleis

    Android Studio - Infer Constraints?

    Hi guys! The issue is clear, I design the app, and when I run the emulator the app looks different. I use the same device for design and emulator (Pixel 3 XL). Apparently I needed to click in one of the attributes on the design page and then click "Infer Constraints". I still have some issues...
  21. Gleis

    App Inventor Which is the best OS to choose in Android Studio?

    Hey guys! I was just wondering, which is the best OS to choose when opening a new project in Android Studio? Is there any other difference, except for the numbers of users using that specific operating system? And which one you recommend me use? Editied : OS=Minimum API level Thanks :)
  22. A

    Apps Android Bluetooth discoverable time is always 120 seconds

    According to a documentation if you set the EXTRA_DISCOVERABLE_DURATION extra's value to 0, the device is always discoverable. Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE)...
  23. Cinemato

    App Inventor How to make a text view equal to firebase string

    Hello, I'm making a project using android studio and java. I have some data in a realtime firebase database and I'm trying to take the data in an activity then making a text view in another activity have the value of that data. I was able to get the data but I when I try to set the textview to...
  24. R

    Themes Dark Mode in Shared preferences

    I made a dark mode in the settings of my apps and it worked out perfectly BUT I can't save it in SharedPreferences so it will stay how I choose it. I can do a background color in my SharedPreferences but this setting always causes Errors. What do I wrong? I hope someone can help me make it work...
  25. A

    Help How to use tess-two in an android project?

    Is there anyone that can guide me step by step on how to use the tess-two library in an android project. I am confused on what to follow as articles online have a weird process to follow while the github repo merely mentions to add a line to the build.gradle. Is there anyone that can help me...
Back
Top Bottom