App Feedback Thread - April 25, 2020 Android Dev |
- App Feedback Thread - April 25, 2020
- Github Template for starting an Android app project with: 100% Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc dependencies already set up.
- My first app with Kotlin: Coronavirus Stats. Any reviews? (Source code in comments)
- Were you affected by the Google Maps crash? Are you planning some fallback to prevent similar scenario in the future?
- What are the benefits of Timber?
- AsyncAndroid - "Be Together even When We're Apart". A new YouTube channel gathering collections of developer-created content from just some of the amazing members of the Android community and publishes them in drops so that we all can share, teach, learn, and connect remotely.
- Preview of Harmony: A multi-process safe SharedPreference
- SoundSpice, An open-source music player for Android
- Which one of these 2 courses should i take?
- How to open a small window with buttons in current activity?
- Spring Io for Restful app
- How to decouple threading and execution (e.g: RxJava, Coroutine) from repositories and use cases?
- In App Billing library - latest
- Dagger SPI - Extending Dagger with custom Dependency Graph validations
- A post I wrote on AssistedInject with Dagger SubComponents
- Switching between Activity and Fragment crashes app
- Realm Guide: From Zero to Give Up
- Open Source: Zeplin Android App!
- How to begin with native android development?
- How to make unique request codes for PendingIntent?
- Spinner won't work with me
- Do you face latency problems in your app?
- Need help testing app on Samsung phones
- Check out this easy to use android/kotlin form validation library.
- Android Studio: No "Android" Button - I don´t know which Setting is missing.
- I'm thinking of making a youtube tutorial. What do you think i should demonstrate / teach?
App Feedback Thread - April 25, 2020 Posted: 25 Apr 2020 05:28 AM PDT This thread is for getting feedback on your own apps. Developers:
Commenters:
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. - Da Mods [link] [comments] | ||
Posted: 25 Apr 2020 03:38 AM PDT
| ||
My first app with Kotlin: Coronavirus Stats. Any reviews? (Source code in comments) Posted: 25 Apr 2020 12:44 PM PDT
| ||
Posted: 25 Apr 2020 06:49 AM PDT Context: Yesterday a bug in the Google Maps SDK started causing crashes on all the apps that were using it causing a major disruption. Here the issue track on Google's end: https://issuetracker.google.com/issues/154855417 Did someone have a fallback in place to prevent such crashes? Or similarly if someone is working on a potential fallback solution to switch to another Map provider at runtime? [link] [comments] | ||
What are the benefits of Timber? Posted: 25 Apr 2020 08:29 AM PDT For logging in complex apps (including logging in production) I used Slf4j + Logback combo in the past, wrapped in my own Logger class (or any other name, really). This way I can use many pre-existing encoders, appenders and policies, or write my own (if I have special requirements). Nowadays, I see developers use Timber more and more. Undoubtedly, for simple logging requirements (like just limiting logcat to debug builds), Timber is cool. But, as far as I can see, if I'd need to implement any reasonably-complex logging strategy, I'd need to augment Timber with the same Logback (or something similar). So, in essense, Timber would become an additional dependency. What benefits do I get from Timber to justify adding it as a dependency? [link] [comments] | ||
Posted: 24 Apr 2020 09:19 PM PDT
| ||
Preview of Harmony: A multi-process safe SharedPreference Posted: 25 Apr 2020 03:54 PM PDT https://github.com/pablobaxter/HarmonyPreferences I know there are other "multi-process SharedPreference" libraries out there like Tray (https://github.com/grandcentrix/tray) and Tencent's MMKV (https://github.com/Tencent/MMKV), but what bothered me about them was the use of either NDK or that it used a ContentProvider. I didn't want something to depend on a second process starting, especially if I needed the preference data early. Harmony uses no ContentProviders, is available as quickly as SharedPreferences (first read does memory caching), and has no native code (NDK). It implements the `SharedPreference` interface, and is completely functional. All you have to do to get it is call `Harmony.getSharedPreferences(context, "pref_name")` in Java or `Context.getHarmonyPrefs("pref_name")` in Kotlin. I'm still actively developing on it (mostly unit and performance tests), so use it at your own risk if you decide to run with it. I know some of use have suffered dealing with multi-process apps and sharing app data between it, so I'm hoping some find this potentially useful. [link] [comments] | ||
SoundSpice, An open-source music player for Android Posted: 25 Apr 2020 02:25 PM PDT
| ||
Which one of these 2 courses should i take? Posted: 25 Apr 2020 01:18 PM PDT Hi! I want to learn Android Development with Kotlin and am confused that which course should i take. Your suggestion and recommendation will be appreciated. [link] [comments] | ||
How to open a small window with buttons in current activity? Posted: 25 Apr 2020 11:07 AM PDT Hello, I'm trying to do what the title says, in Android Studio. I've made an image to show you what I mean: What I want is to be able to click on a button to open said window. I want to be able to open the same window by clicking in any button, not just one, so I'd prefer something that doesn't need to be tied to a single button if possible so I don't have to repeat code. How could I do it? Thank you in advance! [link] [comments] | ||
Posted: 25 Apr 2020 10:36 AM PDT Hello everyone! I am trying to use spring in my mobile app. I will be using it to contact with my google app engine server. However I am having a lot of trouble installing the latest version and doc. on the internet isn't helping me much... Does anyone know how to install spring in Android Studio with Gradle? Thank you very much EDIT: apparently spring isn't android studio compatible. I should be using Retrofit instead [link] [comments] | ||
How to decouple threading and execution (e.g: RxJava, Coroutine) from repositories and use cases? Posted: 25 Apr 2020 01:56 AM PDT Decoupling the dependencies into modules will help you to easily maintain the code, test and replace dependencies. That's cool, but all the tutorials that I'm watching they are implementing directly RxJava and Coroutine directly into the modules. High level modules will look something like this: RxJava: Coroutine: And in order to interrupt or cancel the execution, we need to store the RxJava's disposable into a CompositeDisposable and for the Coroutine a list of jobs that we can cancel. Let's say we're having a RegisterUserUseCase within our ViewModel, and when the onCleared is called we call the use case's class dispose function: What if in the future I want to replace RxJava or Coroutine with something else? Let's say I want to use Realm/Firebase or some other 3rd party library. Realm and firebase are using their own observable pattern/callbacks and if I remove RxJava or Coroutine I need to refactor the whole module(s), because I directly used RxJava and Coroutine (all functions are declared suspend and I need to remove the suspend name; etc). Declaring RxJava or Coroutines directly doesn't contradict with the ideaology of clean architecture/S.O.L.I.D? All I can think now is having another layer of abstraction where the interface class are having the basic CRUD operations and lifecycle calls (create/destroy) and within this layer to implement the data storing logic. [link] [comments] | ||
In App Billing library - latest Posted: 25 Apr 2020 01:46 PM PDT I have developed an app which contains some in app purchases. Google has released a new billing library and I cannot find any tutorials on that and neither does google have a java code in its github examples. I have written some code can anyone here help me with it. I have submitted the app in internal track but when opening the page it shows nothing and the logcat too shows no error. [link] [comments] | ||
Dagger SPI - Extending Dagger with custom Dependency Graph validations Posted: 25 Apr 2020 03:29 AM PDT
| ||
A post I wrote on AssistedInject with Dagger SubComponents Posted: 25 Apr 2020 12:46 PM PDT
| ||
Switching between Activity and Fragment crashes app Posted: 25 Apr 2020 11:47 AM PDT I can switch from the Fragment to the Activity just fine, but after one or two times going back and forth from the Activity to the Fragment, it crashes the app. Anyone know why this is happening and how to fix this? Fragment: startActivity(intent); break; Activity: try { HomeFragment fragment = new HomeFragment(); FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.add(R.id.home_frag_id, fragment); transaction.commit(); } catch(IllegalArgumentException ex) { ex.printStackTrace(); } break; [link] [comments] | ||
Realm Guide: From Zero to Give Up Posted: 25 Apr 2020 10:15 AM PDT
| ||
Open Source: Zeplin Android App! Posted: 25 Apr 2020 09:41 AM PDT
| ||
How to begin with native android development? Posted: 25 Apr 2020 09:14 AM PDT I've been working with Flutter to build hybrid mobile apps for Android and iOS. But now, I want to start learning native android development and I want some tips for how to migrate for developing apps with Flutter to native android development. If you have courses indications, articles, feel free to share with me. Cheers! :) [link] [comments] | ||
How to make unique request codes for PendingIntent? Posted: 25 Apr 2020 08:48 AM PDT So i'm making an alarmclock app Right now if i set the request code to 1, it will obviously be overwritten once another alarm is created if the pending intent with code 1 still exists. What is good practice here? Can i use Alarm.toString().hashCode() as a unique request code? That would be really convenient. Or should I increment an integer in shared preferences for each pending intent? [link] [comments] | ||
Posted: 25 Apr 2020 08:46 AM PDT hi every body i have a small error in my code but i can't find enywhere can some one please read the code and tell where is it am trying to make a surface calculator and use spinner to swith between them by apear some feild and Gone other help this the code //the code start herepublic class MainActivity extends AppCompatActivity { private EditText Rectangle_width ; private EditText Rectangle_height ; private EditText triangle_height ; private EditText triangle_base; private EditText Circle_reduis; private TextView Result; private Spinner spinner; private Button Calculate; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Rectangle_width=(EditText) findViewById(R.id.Main_rec_WidthID); Rectangle_height=(EditText) findViewById(R.id.Main_rec_HeightID); triangle_height = (EditText)findViewById(R.id.Main_traingle_HeightID); Calculate = (Button)findViewById(R.id.Calculate); triangle_base = (EditText)findViewById(R.id.Main_traingle_BaseID); Result=(TextView)findViewById(R.id.Result); //Circle (pi*r*r) //Rectangle (height*width) //triangle (base *height*0.5) spinner = (Spinner) findViewById(R.id.SpinnerID); spinner.setSelection(0); //the prblem start herespinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { switch (i){ case 0: triangle_base.setVisibility(View.GONE); triangle_height.setVisibility(View.GONE); Circle_reduis.setVisibility(View.GONE); Rectangle_height.setVisibility(View.VISIBLE); Rectangle_width.setVisibility(View.VISIBLE); break; case 1: triangle_base.setVisibility(View.VISIBLE); triangle_height.setVisibility(View.VISIBLE); Circle_reduis.setVisibility(View.GONE); Rectangle_height.setVisibility(View.GONE); Rectangle_width.setVisibility(View.GONE); break; case 2: triangle_base.setVisibility(View.GONE); triangle_height.setVisibility(View.GONE); Circle_reduis.setVisibility(View.VISIBLE); Rectangle_height.setVisibility(View.GONE); Rectangle_width.setVisibility(View.GONE); break; } } public void onNothingSelected(AdapterView<?> adapterView) { } }); [link] [comments] | ||
Do you face latency problems in your app? Posted: 25 Apr 2020 08:28 AM PDT Hey guys, I've got a few questions towards mobile apps developers.
Our team is playing around this idea, but we are not quite sure it is relevant enough to build a product for it. Any input is highly appreciated. I can provide further details if you want to discuss this. [link] [comments] | ||
Need help testing app on Samsung phones Posted: 25 Apr 2020 08:17 AM PDT Hello. After last update of app I get numerous reports from Samsung phone users that they are unable to pick a photo. I have another test build but unfortunately I don't have any Samsung devices to test it, and both builds work just fine on my Pixel 3 so I can't be sure the fix will apply for Samsung devices.App is a paid app on Google Play so I can't publicly provide test APK but I'll send you APK and short instructions on how to test it after you PM me. This should take no more than 10 minutes of your time total, looking forward for Reddit's help! Best regards, Oleksandr [link] [comments] | ||
Check out this easy to use android/kotlin form validation library. Posted: 25 Apr 2020 07:47 AM PDT Recently, I have developed an Android form validation library. It is highly customizable and easy to use. This library will works with TextView, EditText, AppCompatEditText, TextInputEditText, TextInputLayout and CheckBox. This library is designed in such a way that It's easy to add support for new widgets and add new rules. Github: https://github.com/Dhaval2404/android-form-validation [link] [comments] | ||
Android Studio: No "Android" Button - I don´t know which Setting is missing. Posted: 25 Apr 2020 07:24 AM PDT I would like to open a APK in my Android Studio (Version 3.6.3) to see the structure of it. As you see in this picture: https://imgur.com/a/jdGTB15 under "1." there is no option to choose "Android" as seen in Nr. "2". My question for you: How do I enable the "Android" Button in the Drop down menu, so that i am able to see the structure as seen in "2." Hope it´s clear. i really don´t know what I can do. Thank you in Advance!! [link] [comments] | ||
I'm thinking of making a youtube tutorial. What do you think i should demonstrate / teach? Posted: 25 Apr 2020 07:23 AM PDT |
You are subscribed to email updates from Developing Android Apps. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment