• Breaking News

    Saturday, March 5, 2022

    Android Dev - App Feedback Thread - March 04, 2022

    Android Dev - App Feedback Thread - March 04, 2022


    App Feedback Thread - March 04, 2022

    Posted: 04 Mar 2022 06:00 AM PST

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make a top level comment
    • must make an effort to respond to questions and feedback from commenters
    • app may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

    submitted by /u/AutoModerator
    [link] [comments]

    Urgent! I’m giving away full source code of my GIF Creator App for any your donation to my father. We are in Ukraine and he needs medicine

    Posted: 04 Mar 2022 02:10 AM PST

    TL;DR We are in Ukraine. It is war here. My father needs medicines but the reserves are low and the prices are crazy expensive now. I will send you a link to the full source code package of native Android and iOS GIF Creator apps for any donation.

    DONATION LINK HAS BEEN REMOVED - SEE UPDATES BELOW.

    Not a scam! I can give you any proof you want. My Reddit account is not new and I have never asked for any donations here. Similarly I have never self promoted here.

    To moderators: Please if you think this is not appropriate for this subreddit DON'T just delete it - relocate to the proper one. We have network problems and I am afraid it can take a while until I have another chance to compose Reddit post.

    My earnings depended on freelance jobs. Now all my previous clients are simply ignoring my help requests. I am kind of in panic right now and can't think straight. Please help. It seems Reddit is the only place I can ask for it. My other relatives are in the occupied area I cannot reach.

    The apps I am giving away are the only ones I have access to (I lost my main computer while relocating to a more safe zone). I hope I can recreate my other apps some day because my programming skills are still with me.

    I promise once all this sh*t is over I will gift everyone who will donate any sum today. I was working on a nice side project when this war started. If I manage to launch it I will give free premium access to any of you.

    Guys, thank you in advance and sorry to bother any of you. I never thought I would be in such circumstances.

    UPDATE 1: My father has just uploaded a few photos with Thank You letter and his passport so that you will have no doubts that this is a legit story https://postimg.cc/gallery/7q2XkRw

    The windows have been destroyed because of the nearby bombing.

    My father has been diagnosed with Ankylosing spondylitis. He needs to take Celecoxib every day for pain relief. He took last pill five days ago.

    UPDATE 2: Someone tried to hack the bank account so the bank blocked cards. We are trying to resolve this issue. Total hell :(

    UPDATE 3: Bad news. Bank support said they will unlock the card during the next 3 days. During this time we will not be able to access current funds and to receive new donations. I don't know what else can I do.

    One thing I want to emphasize is how great this community is. No one asked for an app link - people donated money just to support some stranger in a difficult situation. Unfortunately, a good chunk of donations were rejected. I will keep you updated once I figure out more reliable donation link.

    I am going to post a link to the apps for everyone: https://drive.google.com/drive/folders/1-KHurxLhUrxuVl6IKAl-r0HKqXw0sKkt?usp=sharing

    At this point it is not about goods exchange it is about being a human.

    submitted by /u/stuffokator
    [link] [comments]

    Android Studio Dolphin Canary 5 now available

    Posted: 04 Mar 2022 11:58 AM PST

    Jetpack compose routing with bottom navigation bar and standalone full screen pages

    Posted: 04 Mar 2022 12:30 PM PST

    Coming from flutter I was tasked with creating a base architecture for our native android projects(jetpack compose). Most tutorials and videos talk about either bottom navigation bar or navigating from one full screen page to another.

    But a production grade application might have both. I tried out an incredibly complex routing system. Check this repo.

    But for some reason I cannot get it to work. If you run the application on the home screen you'll find a search bar which is basically a clickable box and is supposed to navigate to the fullscreen search page but I keep getting a java null pointer exception.

    The goal was to create some sort of functional routing so that I can simply call router.openSearchPage and the routing mechanism will take care of the rest.

    This is the approach I took with flutter. I had functions and calling them would just work.

    I tried to make the approach as dynamic as possible but unfortunately cannot get it to work.

    I already asked a question on stack overflow but got no answer so far. This is the original question if you do not want to download and run the repo.

    SearchBar code is located at ui/components/cards/SearchBarCard and I have a separate package for routing.

    Help would be much appreciated

    submitted by /u/fh_arnob
    [link] [comments]

    Android Nightmares😱 | Base classes

    Posted: 04 Mar 2022 05:41 AM PST

    cashapp/molecule : Build a StateFlow stream using Jetpack Compose

    Posted: 04 Mar 2022 06:15 AM PST

    I need help, please !! the menu is not showing in the bottom navigation view

    Posted: 04 Mar 2022 03:58 PM PST

    this is my activity

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout\_width="match\_parent" android:layout\_height="match\_parent" tools:context=".activities.MainActivity">
    <FrameLayout android:id="@+id/fragment\_container" android:layout\_width="match\_parent" android:layout\_height="match\_parent" android:layout\_above="@id/bottom\_nav\_view" />
    <com.google.android.material.bottomnavigation.BottomNavigationView android:id="@+id/bottom\_nav\_view" android:layout\_width="match\_parent" android:layout\_height="wrap\_content" android:layout\_alignParentBottom="true" app:menu="@menu/bottom\_nav" />
    </RelativeLayout>

    and this is the menu:

    <?xml version="1.0" encoding="utf-8"?>
    <menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:title="Home" android:icon="@drawable/ic\_home" />
    <item android:title="Shopping Bag" android:icon="@drawable/ic\_shopping\_bag" />
    <item android:title="Profile" android:icon="@drawable/ic\_person" />
    </menu>

    submitted by /u/DowntownLength2973
    [link] [comments]

    Can I register a UK or US business and use it in my Google Play Merchant account?

    Posted: 04 Mar 2022 10:34 AM PST

    Hi,

    My apologies if this post is not programming-related.

    My country is not supported by Google Play Merchant, so I can't sell my apps, I'm thinking about opening a business in US or UK using a third-party website such as startglobal, clemta or firstbase.

    These services will provide me with the following :

    • Name check and clearance
    • Formation and EIN
    • Registered agent
    • US Address with Mail forwarding
    • US Phone number
    • US Business bank account with Debit card

    Google asks for (National Card ID, Driver License, or Passport) to get my payment account verified (for the UK, European zone, and Brazilian law).

    I'm afraid if I opened a business (it cost almost $600) and the Google reject or ask for an extra document that I don't own.

    What do you think guys, please, I need your advice?

    submitted by /u/Heromimox
    [link] [comments]

    FCM Data Notification & Network Access

    Posted: 04 Mar 2022 01:39 PM PST

    I have a Android Service which listens to FCM Data notification. I am getting Notifications without any problem, when I receive any data notification, my code makes a "Web Request" using wifi/data....now most of the time it works, however if leave my phone unattended for a period of time, then Web Request simply fails. is there something I can do to have my web request work every time a Data FCM notification is received?

    [Service(Exported =true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class MessageRcvdSvc : FirebaseMessagingService { //Make WebRequest <-- Fails when phone was not used for few hours. } 
    submitted by /u/Prudent_Astronaut716
    [link] [comments]

    How does Gradle handles overlapping implementations?

    Posted: 04 Mar 2022 01:36 PM PST

    I have a pure java package on jitpack.

    I then plan on creating another package that merges both MyJavaPackage with android functionality. MyJavaPackageAndroidUtils

    In the MyJavaPackageAndroidUtils package I need to implement both (?):

    implementation 'com.github.Me:MyPackage:v0.X.X-alpha' 

    and:

    implementation "androidx.something:something:X.X.X" 

    Now if I implement MyPackageAndroidUtils on my actual android app project, that implements both MyPackage && androidx.something. Are MyJavaPackage and androidx.something downloaded and compiled twice?

    What if MyPackageAndroidUtils has a different version of androidx.something than the one in my android app??

    submitted by /u/DelarkArms
    [link] [comments]

    Null values

    Posted: 04 Mar 2022 08:41 PM PST

    Null values

    Hi guys. I am trying to fetch the data from the Firebase Database but unfortunately, the values are null. who can help me?

    package com.example.smartwallet; import android.content.Intent; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; public class BusinesscardFragment extends Fragment { TextView firstname, lastname, companyName,companyAddress,companyPhone,email; //global variables to hold user data inside this activity String _firstname, _lastname, _companyName, _companyAddress, _companyPhone, _email; private View rootView; @Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated( view, savedInstanceState ); } @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootView = inflater.inflate(R.layout.fragment_businesscard, container, false); // Inflate the layout for this fragment //Hooks firstname = rootView.findViewById( R.id.firstnameC ); lastname = rootView.findViewById( R.id.lastnameC ); email = rootView.findViewById( R.id.emailC ); companyName = rootView.findViewById( R.id.companyName ); companyAddress = rootView.findViewById( R.id.companyAddress ); companyPhone = rootView.findViewById( R.id.companyPhone ); //Show All Data showAllUserData(); return rootView; } private void showAllUserData() { Intent intent = getActivity().getIntent(); _email = intent.getStringExtra( "email" ); _firstname = intent.getStringExtra( "firstName" ); _lastname = intent.getStringExtra( "lastName" ); _companyName = intent.getStringExtra( "companyName" ); _companyAddress = intent.getStringExtra( "companyAddress" ); _companyPhone = intent.getStringExtra( "companyPhone" ); firstname.setText(String.valueOf(_firstname ) ); lastname.setText(String.valueOf( _lastname )); email.setText(String.valueOf( _email )); companyName.setText( String.valueOf(_companyName )); companyAddress.setText( String.valueOf(_companyAddress )); companyPhone.setText(String.valueOf( _companyPhone )); } } 

    https://preview.redd.it/cidy7p6avhl81.png?width=419&format=png&auto=webp&s=05091b16c3dfd5768ffd971ba2b7a14e067d627b

    The intent is from Login activity to BussinesscardFragment.

    package com.example.smartwallet; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.Button; import android.widget.EditText; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; import com.google.android.material.textfield.TextInputLayout; import com.google.firebase.auth.AuthResult; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseUser; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.Query; import com.google.firebase.database.ValueEventListener; public class Login extends AppCompatActivity { EditText mEmail, mPassword; TextInputLayout email, password; Button mLogin; TextView mRegister, mForgot; ProgressBar progressBar; FirebaseAuth fAuth; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); mEmail = findViewById(R.id.email); mPassword = findViewById(R.id.password); mLogin = findViewById(R.id.login); mRegister = findViewById(R.id.register); mForgot = findViewById(R.id.forgotpass); fAuth= FirebaseAuth.getInstance(); progressBar= findViewById(R.id.progressbar); mLogin.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { String email = mEmail.getText().toString().trim(); String password = mPassword.getText().toString().trim(); if (TextUtils.isEmpty(email)){ mEmail.setError("Email si Required."); return; } if (TextUtils.isEmpty(password)){ mPassword.setError("Password is Required."); return; } if (password.length() < 6) { mPassword.setError("The Password must contain more than 6 characters."); return; } progressBar.setVisibility(View.VISIBLE); //authenticate the user fAuth.signInWithEmailAndPassword(email,password).addOnCompleteListener(new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if(task.isSuccessful()){ FirebaseUser user= FirebaseAuth.getInstance().getCurrentUser(); if (user.isEmailVerified()){ startActivity( new Intent(Login.this, MainActivity.class) ); }else { user.sendEmailVerification(); Toast.makeText( Login.this,"Check your email to verify your account!", Toast.LENGTH_LONG ).show(); progressBar.setVisibility(View.INVISIBLE); } }else{ Toast.makeText(Login.this, "Error ! " + task.getException().getMessage(), Toast.LENGTH_SHORT).show(); progressBar.setVisibility(View.INVISIBLE); } } }); } }); mRegister.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { startActivity(new Intent(getApplicationContext(), Register.class)); } }); } public void loginUser(View view){ isUser(); } private void isUser() { String userEnteredEmail = email.getEditText().getText().toString().trim(); String userEnteredPassword = password.getEditText().getText().toString().trim(); DatabaseReference reference = FirebaseDatabase.getInstance().getReference("users"); Query checkUser = reference.orderByChild( "email" ).equalTo( userEnteredEmail ); checkUser.addListenerForSingleValueEvent( new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) { if (dataSnapshot.exists()){ String passwordFromDB = dataSnapshot.child( userEnteredEmail ).child( "password" ).getValue(String.class); if (passwordFromDB.equals( userEnteredPassword )){ String firstNameFromDB = dataSnapshot.child( userEnteredEmail ).child( "firstName" ).getValue(String.class); String lastNameFromDB = dataSnapshot.child( userEnteredEmail ).child( "lastName" ).getValue(String.class); String emailFromDB = dataSnapshot.child( userEnteredEmail ).child( "email" ).getValue(String.class); String companyAddressFromDB = dataSnapshot.child( userEnteredEmail ).child( "companyAddress" ).getValue(String.class); String companyNameFromDB = dataSnapshot.child( userEnteredEmail ).child( "companyName" ).getValue(String.class); String companyPhoneFromDB = dataSnapshot.child( userEnteredEmail ).child( "companyPhone" ).getValue(String.class); Intent intent= new Intent (Login.this,BusinesscardFragment.class); intent.putExtra( "firstName",firstNameFromDB ); intent.putExtra( "lastName",lastNameFromDB ); intent.putExtra( "email",emailFromDB ); intent.putExtra( "companyAddress",companyAddressFromDB ); intent.putExtra( "companyName",companyNameFromDB ); intent.putExtra( "companyPhone",companyPhoneFromDB ); intent.putExtra( "password",passwordFromDB ); startActivity( intent ); } } } @Override public void onCancelled(@NonNull DatabaseError error) { } } ); } } 
    submitted by /u/Hopeful-Climate1124
    [link] [comments]

    Canadian Developer TAX on Earnings

    Posted: 04 Mar 2022 11:53 AM PST

    So, I have an app and all the sales are from outside Canada . My question is Do I have to pay gst/hst when I'm gonna pay tax? Do I need to register GST number if my earnings pass any amount?

    or just I have to pay tax as self employed income?

    submitted by /u/latestexample
    [link] [comments]

    How to setup a waterfall in ironsource platform

    Posted: 04 Mar 2022 10:49 AM PST

    Hello So im using ironsource as mediation with admob and meta audience network I want to place admob first so the ads shows from admob come first then the rest But since meta audience network using bidding system I can't manage to place it second to admob since each of them in a separated section. So please anyone who has experience with this platform. I need help to do the latter

    submitted by /u/AKBIROCK
    [link] [comments]

    Why my app is not responsive to different screen size of mobiles

    Posted: 04 Mar 2022 02:51 AM PST

    Hi, I am learning android, and I'm a very beginner in it. I am trying to develop an app but stuck with login activity UI. Its not responsive. Its working fine on my device but when I try it on my friends phone, activity doesn't fit on its screen. Views gets smaller or larger, views get extra spacing etc. I figured out that We don't have to use hard code sizes, margins etc. So, made dimensions.xml for small, normal and large devices. Put different sizes with same name in and then used those dimensions in xml code. But still my issue is not fixed.

    In short, what if two devices which are accessing same dimension.xml but have different screen width and height. How can I make my responsive to those?

    Sorry if I haven't explained well about the problem. But please help me. I'm stuck in it for a week now.

    submitted by /u/Disastrous-Pumpkin19
    [link] [comments]

    Package Installer dialog on dismiss problem

    Posted: 04 Mar 2022 08:28 AM PST

    Package Installer API to install apk and when confirm dialog pops up, if user click outside the dialog, dialog will dismiss without any callback or status change from session.

    Any solution to this problem ?

    submitted by /u/Mikelsk
    [link] [comments]

    Android Studio Dolphin Canary 4 now available

    Posted: 03 Mar 2022 02:58 PM PST

    Admob policy site behaviour navigation

    Posted: 04 Mar 2022 07:36 AM PST

    I have published my app one month ago and now admob retricted ad serving and the policy violation is site behaviour navigation. I think my app has good navigation. Link to my app: https://play.google.com/store/apps/details?id=com.DCZT.wordlus

    submitted by /u/DCZT97
    [link] [comments]

    Android approval process is strange lately

    Posted: 04 Mar 2022 05:45 AM PST

    I've had the same app on the Play Store for years and never had an update rejected. Recently had an updated rejected because it wasn't "formatted for specific screen sizes". I was confused because the updates had nothing to do with UI changes.

    On a whim I decided maybe they were confused on my screenshots and I needed to update them anyhow. Those screenshots were rejected because they had "transparency" in them. So I reverted to the original screenshots. This is when it gets strange. My app was rejected again but for a new, completely different reason then the original.

    So I had no clue what the issue is. It's obvious they have low-level people doing cursory "testing" of apps and they seem to have no knowledge of what previous "testers" did.

    Now it gets even stranger. I decided to just update the version codes and resubmit for approval and my app was approved.

    Then I decided to fix the transparency is my updated screenshots and submitted those but those were rejected because they said my app didn't look like the screenshots, whatever that means.

    I understand they don't have Stanford Comp. Sci. majors in these app approval positions but it just seems random and chaotic.

    So I guess the lesson is, if you're app is rejected for random reasons just keep re-submitting it for approval.

    submitted by /u/puppiadog
    [link] [comments]

    COVID exposure notifications.

    Posted: 04 Mar 2022 04:34 AM PST

    Hello everyone,

    This is probably random and late to ask this question but, how does the covid exposure apps work?

    I'm currently working on a project for my CS degree and the idea is nearly the same. Basically what we want to do is find a way for the phones to communicate with bluetooth? I don't know if that's suitable because you need to pair the devices to share data right?

    Can anyone please explain how did Google and Apple do it? I read the API documentation online but they explain nothing about the "exchange random codes" part. Thanks in advance!!

    submitted by /u/tryTothrowItTHIStime
    [link] [comments]

    When should I seperate app ideas?

    Posted: 04 Mar 2022 04:29 AM PST

    My first published app on Google Play main idea is that it recommends video games based on a specific genre, also as a bonus I made a section that displays the limited time free PC games but I found other apps based on this section alone.

    So is it better to seperate this section or could people be searching for both features in one app?

    submitted by /u/RadioactiveG
    [link] [comments]

    Newbie In Need Of Help

    Posted: 03 Mar 2022 02:45 PM PST

    I'm still learning a lot about Android and programming in general, so I had a few things I wanted to ask:

    1. I've seen highly functional guitar tuner applications. How do those work exactly? How can someone analyze sound waves using Android to determine whether or not an instrument note is on point? Which classes would be used? What's the basic concept?

    2. How does an application such as Snapchat work (in regards to live-filtering photos)? How does one apply such complex filters to the camera utility that perfectly fits a unique individual's facial structure?

    3. How do applications like Expedia work, in regards to fetching data from other airline websites and comparing prices? I'm familiar with Retrofit and JSoup, but not every website has a public API for us developers to use. JSoup, of course, is a little more flexible in terms of fetching data, but applications such as Expedia have always been a mystery to me.

    4. Finally, how does someone create detailed animations for his application (such as splash screens or unique navigations). I know about SVG files, but I there's slim to no information about how to make them properly. Are there any websites you would recommend for obtaining nice animations or graphics in general?

    Any advice or tips would be greatly appreciated. Thanks!

    submitted by /u/burbanktee
    [link] [comments]

    MVVM Unit testing on Android - Howtodoandroid

    Posted: 03 Mar 2022 04:04 AM PST

    Learning the basics of kotlin from hyperskill and a half dozen other websites... At what point do I move onto an actual product I would like to make?

    Posted: 03 Mar 2022 06:10 PM PST

    It's still hard for me to say to myself hey I need a while loop here or I need to reverse a hashmap. Like I know how to google them and what they do I guess, but figuring out what needs to be implemented breaks my brain.

    But at what point do I just draw something up that I want to try and make and just google every part separately and start piecing it together? if that makes sense. Like I want an image view to be swipable so do I just google that then move onto the next section or do I have to memorize everything? I feel like I'm drowning trying to make a project I actually care about

    submitted by /u/No-Tie-5552
    [link] [comments]

    Good practice for multithreading (Java)?

    Posted: 03 Mar 2022 04:37 AM PST

    In my app, I update the user's GPS location on a separate thread and there are other processes (like creating a bitmap, etc.) that are performed on non-UI threads. Right now I declare these threads at the application level and destroy them only when the user closes the app. I tried declaring the threads inside the activity but configuration changes destroy the threads and that's not what I want. So, my question is whether my approach is the correct one? Is there a third-party library that can abstract out the process of creating and destroying separate threads?

    submitted by /u/zimmer550king
    [link] [comments]

    changing content of gradle aar files

    Posted: 03 Mar 2022 03:33 PM PST

    Firstly I am a beginner and my english is not so good.

    I installed a library and it has some problems. I can fix this by changing 2-3 lines of code but i can't figure out how to do. I am changing codes from aar files but android studio still see the old version of files. Any help or idea?

    submitted by /u/TheW1tnessHasSpoken
    [link] [comments]

    How to use Hilt in a Library

    Posted: 03 Mar 2022 02:44 PM PST

    Is there a way to use Hilt in library and the client app might use dagger/hilt/nothing.
    I already looked at the custom component part of hilt but i am confused on
    where will the "@HiltAndroidApp" annotation goes if the client app is not using Hilt.

    submitted by /u/rvjain
    [link] [comments]

    No comments:

    Post a Comment