• Breaking News

    [Android][timeline][#f39c12]

    Saturday, August 31, 2019

    App Feedback Thread - August 31, 2019 Android Dev

    App Feedback Thread - August 31, 2019 Android Dev


    App Feedback Thread - August 31, 2019

    Posted: 31 Aug 2019 05:29 AM PDT

    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 top level comment
    • must make effort to respond to questions and feedback from commenters
    • 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.

    - Da Mods

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

    Android in Depth

    Posted: 31 Aug 2019 08:15 AM PDT

    Can you recommend me some references like books/websites/etc to Android OS in depth, i mean like: - how the OS was built - how the .apk file structured, build, and compiled - the OS architecture - etc

    The search result i get are all about building android app (activity, services, broadcast, etc). can't think the keywoard to search on google 🤔. I want to know whats happening behind the scene of that phone 🤔

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

    What is the correct user expectation on text alignment, when English is used together with Arabic language? (Any Arabic Dev here?)

    Posted: 31 Aug 2019 11:04 AM PDT

    Hello all, since I'm getting quite a number of demand, to localize the app into Arabic, I decide to give it a try.

    My plan is to invest a few hundred dollar (USD), to purchase a translation service to translate the string.xml

    However, I still need to familiar myself with the Arabic culture, writing system and their user behavior, before I jump into it.

    I was wondering, what is the correct user expectation on text alignment, when English is used together with Arabic language?

    For example : https://i.stack.imgur.com/XFc6c.png

    For instance, in the 1st line, the text is aligned toward right. How I type are

    1. I type انا احبك
    2. I type [space]
    3. I type "hello"

    In the 2nd line, the text is aligned toward left. How I type are

    1. I type "hello"
    2. I type [space]
    3. I type انا احبك

    I was wondering, which text alignment is the correct user expectation?

    Thanks.

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

    Square / Contour : Layouts with lambdas

    Posted: 30 Aug 2019 06:58 PM PDT

    Mvvm - databinding - navigation question

    Posted: 31 Aug 2019 12:45 PM PDT

    Hey guys, I am pretty new in jetpack components. I am building an app and I use databinding and bind the view model with the layout. Then I want to perform when a button is clicked a navigation to the next fragment. How can I achieve this from the viewmodel and not from the fragment ? I know that the viewmodel should not have any references to views and context (exception application context). Any help and explanation is appreciated!

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

    Potential traps to know about as an Android developer

    Posted: 31 Aug 2019 09:31 AM PDT

    VMR-Link: A small library I created

    Posted: 31 Aug 2019 02:18 PM PDT

    https://github.com/JohnOberhauser/VMR-Link

    I created a new library to help out with linking your view model and repository layer. I was wondering if anyone would be willing to check it out and give some feedback. It's pretty small, just 3 classes. I give a short rundown on what it does and how to use it in the github readme.

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

    Anyone else didn't received any reminders about Target Audience settings?

    Posted: 31 Aug 2019 12:53 PM PDT

    Hello,

    I've received mail about this in May. Then i forgot about it. Luckily i've seen posts on Reddit about it. So i quickly filled it just right now.

    I wonder why i haven't received any e-mails with reminders. Just first mail in May.

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

    Support for Different Screen sizes

    Posted: 31 Aug 2019 08:49 AM PDT

    Hi,

    I am fairly new to App dev and created a calculator as a part of learning app development. The calculator works just fine on my device (Poco F1) and Samsing s10+ but when i deploy it on any other with with a bit different screen size like a 5.5 inch screen or 5 inch the layout get cut or goes out of the screen or its alignment does not remain what i want and I am not able to figure out why?

    I have created the whole layout in Constraint layout

    Also when i change the screen size in Android studio it shows up just fine but when i deploy the app on a similar screen size it goes out of the screen or its alignment goes nuts

    I have attached some pics

    S10+, Poco f1, One plus 5, Onplus 6

    https://ibb.co/XYgYH7C

    One plus 5T

    https://ibb.co/t4MKvTj

    device with 6.2 inch display

    https://ibb.co/HrLfv0V

    device with 5.0 inch display

    https://ibb.co/VJrXtrf

    Here is a link to my project:

    https://github.com/saksham0804/Calculator

    Direct layout link:

    https://github.com/saksham0804/Calculator/blob/master/app/src/main/res/layout/activity_main.xml

    Any help would be appreciated

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

    Cant find game in play store search

    Posted: 31 Aug 2019 01:13 AM PDT

    Hi guys, I just launched an android game a few days ago. The app is published and downloadable through its link. But I cannot find the game in the google play store if I search for it by name. I even added the company name to the game name. Still couldn't find it. It has 10 downloads so far. What am I doing wrong?

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

    [Paid Reward] S9's Infinity AOD Effect on S10

    Posted: 31 Aug 2019 12:17 PM PDT

    Hi there, I'm offering a payment reward of $50 to whoever makes this work out.

    I've always loved the stock Infinity effect for AOD on the S9 and always thought it was incredible and a huge shame that no one has ever done anything about it, and that Samsung never made it a public and separate release.

    I would love for someone to possibly create an app or something that would port the S9 Infinity AOD effect over to the S10 AOD. I am NOT asking for some sort of GIF. I want the genuine effect where the glitter-stars are affected by axis sensors.

    I don't want it to be linked to the Infinity wallpapers which was necessary for the AOD stars to show.

    Hopefully this can be done or recreated somehow without rooting phone etc.

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

    SQLite vs Firebase

    Posted: 31 Aug 2019 12:09 PM PDT

    Hello everyone, I want to create a to-do-list in android studio which will require a database. So, I searched the internet about the two and got some differences but still i'm not able to decide what to use!

    So, I wanted suggestions as in what to use. Thank You

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

    Can/Should you unit test a repository?

    Posted: 31 Aug 2019 10:48 AM PDT

    Did some research and I'm getting lots of mixed answers.

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

    Google deletes my klient's bussines app, now don't know what to do.

    Posted: 30 Aug 2019 11:54 PM PDT

    Hey, I have and app for a client, which needed to read call_log, just for something like, that they easily can create job event, that they call with some company or client for x minutes/hours. This application is for Lawyers. I didn't do some shady jobs with the data.

    So they deleted my app, so I decided to strip down everything which they might find bad and publish a new version with same package id (simply like update to that deleted app) and then they wrote that they review it and now I am looking and nothing and I got an email with some generic ass stuff wrote in it:

    Your app needs to use runtime permissions for us to complete the review. Please update your app to target API level 26 or above. If you have APKs in different tracks of the app releases section of your Play Console, please deactivate non-compliant APKs before submitting your app again. For additional guidance, please review the documentation on how to request app permissions.

    To this point, runtime permission was never a problem, so I am not sure what to do.

    Google were far better few years back and I have to say that I gave Apple too much shit, because, now their developer console is light years ahead.

    Is there any section on Google Play Console, where can you see some more details what's wrong about my recent update or where can I write on some of support? I am desperate. There is going to be a fine, if that does not work in like 3 days, hefty fine.

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

    What are some responsibilities for Interactors/UseCases domain layer in clean Architecture ?

    Posted: 31 Aug 2019 12:58 AM PDT

    I have seen some of the source codes where Interactors/UseCases like this which have some logic shall i can just use only Repository in order to get the data? what problems Interactors/UseCases solved ?

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

    ImageViewHolder.getAdapterPosition() /.getLayout position does not give the right current position in recyclerview

    Posted: 31 Aug 2019 07:26 AM PDT

    Hi guys,

    I am using a RecyclerView to display a bunch of images that I've uploaded to firebase. When I click on an image, a popupMenu appears with some buttons to add and delete that image.

    I want to get my recyclerView's actual position to then parse that position into a Firebase query to add that image to a different "table" or delete it.

    The problem I have is that .getAdapterPosition() does not return the real current item position in the RecylerView. Sometimes it skips a number, and when I'm scrolling back up it doesn't go like 6,5,4...,0.

    I must be doing something wrong, please help.

    I have also tried .getLayoutPosition() and .getItemId()...

    Please check my code here : https://stackoverflow.com/questions/57730327/imageviewholder-getadapterposition-getlayoutposition-does-not-work.

    Thank you for your help.

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

    Customizing my Android phone?

    Posted: 31 Aug 2019 01:07 PM PDT

    Recently I've been trying to customize my Moto g6 play running os 9 I've tried around 12 apps but nothing will let me customize the fine parts of my phone Is there any app or apk that will allow me to customize those finer things?

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

    Private resources in Android library

    Posted: 31 Aug 2019 01:38 AM PDT

    Hi I am creating a android library. I have added few vector image XML files in the library resources to use in the library.

    But the problem is those resources are also accessible to users of my library.

    Is there any way to make those vector resources private for my library use only?

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

    How Applications recognise the users

    Posted: 31 Aug 2019 09:32 AM PDT

    Hello , I used one week premium service on an android app offer it for first time users .
    Then tbh I thought myself as smart clever hacker ! ,I uninstalled application cleared all data cashed , installed it again with totally new account . But it catched my ass telling me that I used welcome offer before .
    How does it recognise my mobile device , I wonder if it has access to distinguish my phone Mac or IMEI numbers or it know from my Google play account ?

    However I checked permissions this app asks for , storage, camera and location which I never granted it.

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

    This is my recyclerView-adapter-viewHolder framework, could we talk about its pros and cons?

    Posted: 31 Aug 2019 12:05 AM PDT

    all the time, I need to write to many kinds of list page(activity), I have to find out a way to write less code, do more thing.

    we have so many different view type in the same list, so, I really don't want to define the View type enum. so , I used class.hashcode as view type.

    This is SimpleAdapter

    It just do some things:

    1.hold a Cell List

    2.hold a map , view type -> Cell, so I can know invoke which cell to create View Holder.

    3.invoke Cell's onCreateViewHolder, onBindxxxxx, so we just need this only one Adapter, don't need to write more Adapter

    class SimpleAdapter : RecyclerView.Adapter<VH>() { var list: List<Cell<*>> = emptyList() var vt2cell: SparseArray<Cell<*>> = SparseArray() override fun getItemViewType(position: Int): Int { val code = list[position].getViewType() vt2cell.put(code, list[position]) return code } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VH { return vt2cell.get(viewType).onCreateViewHolder(parent) } override fun getItemCount(): Int = list.size override fun onBindViewHolder(holder: VH, position: Int) { list[position].onBindData(holder) } } 

    This is VH(ViewHolder)

    class VH(itemView: View) : RecyclerView.ViewHolder(itemView) { } 

    This is Cell(connect your custom data and adapter, put createViewHolder, bindData and handle click togather)

    abstract class Cell<T> { var data: Any? = null fun getViewType(): Int { return this.javaClass.hashCode() } constructor() {} constructor(d: T) { data = d } abstract fun id(): Long /** * create view holder and view * */ abstract fun onCreateViewHolder(parentView: ViewGroup): VH /** * bind data to views * */ abstract fun onBindData(vh: VH) } 

    So, that is my framework. how to use it ? it was very easy!!

    if you have two type data, User, Group

    just like this:

     private fun buildList(groups: List<Group>, users: List<User>): List<Cell<*>> { val ret = ArrayList<Cell<*>>() groups.forEach { group -> ret.add(object : Cell<Group>(group) { override fun id(): Long { return group.id.toLong() } override fun onCreateViewHolder(parentView: ViewGroup): VH { val vh = VH(GroupView(parentView.context)) // create your item view return vh } override fun onBindData(vh: VH) { val groupView = vh.itemView as GroupView groupView.getRoot().setOnLongClickListener { // set onclick showMenu(it!!, group) false } groupView.setData(group) } }) } // it is same for user list, just add them into cell list users.forEach { user -> ret.add(object: Cell<User>(user) { // create view holder // bind data // add listener and handle them }) } return ret } 

    OK, it is my example code, as you can see, you don't need to create view type, because each inner class will be a view type, you just need to convert your data list to a Cell list, and put it to adapter, that's ok

    It looks perfect, but I have some confuzed!

    There are some cons:

    1.If just create a new User, I will re-build the whole Cell list, maybe I just create a new Cell<User> is ok.

    2.I use diffUtil for this, but is not working well. I haven't find the reason yet.

    3.more memory usage, 100 User means 100 Cell wrapper, I don't know whether this way is the best practice.

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

    Calling java code from ndk.

    Posted: 30 Aug 2019 07:22 PM PDT

    I dont want to call c++ from java, at all, ever, because I am using NativeActivity. However, I need to call some java code from c++. How do I do this? Is it even possible? jni.h FindClass is not finding my class.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel