• Breaking News

    Sunday, April 19, 2020

    Android Dev - QR Scanning using CameraX

    Android Dev - QR Scanning using CameraX


    QR Scanning using CameraX

    Posted: 19 Apr 2020 02:33 AM PDT

    kiwibrowser/src-Source-code used in Kiwi Browser for Android

    Posted: 19 Apr 2020 04:24 AM PDT

    I hate this so much...

    Posted: 18 Apr 2020 09:04 AM PDT

    What are the steps you take when building apps?

    Posted: 19 Apr 2020 07:54 AM PDT

    Do you first design the layout, then code, then polish etc?

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

    Python code in android studio?

    Posted: 19 Apr 2020 07:40 AM PDT

    I have ORB feature detection algorithm using OpenCV written in python. I want to use the output of this algorithm in android studio for my applciation. Is it possible?

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

    "Action Required: Your app is not compliant with Google Play Policies" - What action?

    Posted: 19 Apr 2020 02:34 AM PDT

    "Action Required: Your app is not compliant with Google Play Policies" - What action?

    My app got rejected as it's not compliant with Google Play Policies. That's fine, but I would like to know exactly what is wrong with it so I can address it. Instead, this is what I get:

    https://preview.redd.it/jk6qkq8yuqt41.png?width=827&format=png&auto=webp&s=eb0af0ecf1bdb9c2c8c0d154070759f9d5bd5ecf

    ...a very generic email that tells me nothing. How difficult is for them to write the exact reason(s)?

    I have filed an appeal and hopefully a real person will have a look into it.

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

    ExoPlayer on ViewPager

    Posted: 19 Apr 2020 04:14 AM PDT

    I'm using a viewpager to show videos using ExoPlayer, which I have one fragment which is creating multiple instances for every swipe and data, on swipe of that it should ideally play the one which is currently visible but that's not happening.

    The previous fragment video is not stopping. How to handle this?

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

    Is it possible to convert personal Google Play account to a business one?

    Posted: 18 Apr 2020 11:36 PM PDT

    Currently I have my personal Google account with a possibility to publish on the Google Play.

    1. Can I convert it to a business account without creating a new Google account?
    2. The other scenario: if I create a merchant account on the top of my personal account, will I be able to convert it to a business one with previously and personally created merchant account?
    submitted by /u/mattmaniak
    [link] [comments]

    org.threeten.bp.LocalDateTime and java.time.LocalDateTime from 3rd party lib?

    Posted: 18 Apr 2020 10:47 PM PDT

    I'm developing an Android app using a 3rd party library which uses LocalDataTime. I'm want to support API 23 so I'm using ThreeTenABP but the library isn't. Any suggestions about how to deal with that?

    Full disclosure: I'm also the author of the 3rd part library. But changing that would require making changes in other places too. So I'd rather not do that.

    One solution would be to use unix timestamps for dates in transit... But I thought we were past that. Anyway, how are you guys dealing with it?

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

    Is Firebase Free? Everything You Need to Know about Firebase Pricing

    Posted: 19 Apr 2020 07:32 AM PDT

    Kotlin Native android

    Posted: 19 Apr 2020 06:05 AM PDT

    What benefits Kotlin Native will bring to Android ecosystem, any chance to remove Java?

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

    Late Career Change Advice?

    Posted: 18 Apr 2020 03:24 PM PDT

    I work in the construction industry and although the money is relatively good, the job is very stressful, keeps me up at night, the hours are ridiculous and it just doesn't fit well with my character. I've always loved tech and wanted to work in IT and this COVID lockdown was the perfect opportunity for me to invest all this free time into seriously working to make the move. I've been using all my free time to study Java in the hopes I can eventually make a few apps that will provide a good income or even manage a complete career change.

    It's been three weeks and I'm going through the MOOC course, I've bought a few courses on Udemy, the Head First book (although I'm yet to open that) and have been using youtube extensively. I'm obviously still a beginner but I'm a bit concerned if this is all a bit futile.

    Is a few months enough to get your head around Java or do you need a few years to actually be proficient enough to make money from this (either with getting a job as a Java developer or making a half decent app)? Does anyone know if developing Android apps actually do provide an income that will pay the bills - what's ad revenue like? Any middle-aged men make a late career change into Java and it paid off?

    I'm sorry if this post is not allowed.

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

    I need help to understand what I do wrong in development

    Posted: 19 Apr 2020 04:35 AM PDT

    I don't have a lot of experience in android development, and now I have one main problem - I don't understand what I do wrong in my apps.

    I tried to some interview with test tasks, and always I got the answer - my code not enough quality. I read a lot of different articles and watched videos about the right app architecture, best approaches. Then I created this app.
    My goal was to use the main modern android components in this app. For example, I used LiveData, DataSource, and DiffUtils for RecyclerView with the images list, WorkManager for loading data.
    But I still not sure that my approach is right. If somebody can help me, please view my app and write some advice for me. I will accept all advices, my goal to understand what I can improve.

    This is the link for GitHub repository: https://github.com/devapro/SpaceWallpaper
    It is my first post on reddit)

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

    Database Inspector

    Posted: 18 Apr 2020 11:49 AM PDT

    Need help getting an Android app developed.

    Posted: 19 Apr 2020 06:22 AM PDT

    I have an app idea that I want to pursue getting developed. I already have an outline of its functions and have even gotten an interactive mock-up created of it. I'm looking for a person or company who would be willing to help me continue this process in creating a beta version.

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

    Should I switch to Kotlin?

    Posted: 18 Apr 2020 08:31 PM PDT

    I've been making small apps for a while as a hobby but only now getting serious about it. I'm happy with programming with java but I've seen a lot of people making the switch. Are there any advantages with using kotlin? If you switched from java to kotlin, what made you switch? Thanks in advance

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

    How much data does it require for the popup add in various apps?

    Posted: 18 Apr 2020 11:45 PM PDT

    Asking because I am testing some apps for data stealing.

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

    Understanding Auth

    Posted: 18 Apr 2020 03:13 PM PDT

    The Google Sign In with 0Auth looks cool. But there is a thing that I cant really get a good grasp of. How does it protect the API within the application?

    I was asked to develop an app. After some time, I was requested to add some "Google authentication". Because apparently, our API is "exposed" (from what I understand, everyone can access the api). Our API is made made from a rest framework.

    I have implemented the "Google Auth" (where a pop up appears with a list of accounts). And I cant see how that protects the API.

    Here's an example of the flow of the app: Log in with your account, then log in to work with time and location.

    So I really dont get it. I think at somepoint when the user signs in with Google, I should ping the API for verification right? Cause if not, It just looks like I just need an email from the organization just to access the app. And in order to be truly secure, my app suppose to send an access token for every transactions right?

    Please enlighten me.

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

    Updating values of listView inside viewPager2 triggered by Switch view?

    Posted: 18 Apr 2020 08:46 PM PDT

    Hi, somewhat new to Android development here. I have implemented a ListViewwhich is contained inside of a ViewPager2 view. The ListView takes data from an offline database that is stored in the assets folder of my project, so after swiping between different positions of the ViewPager2. I also have a Switch, that, when toggled, will either show or hide some items in the list. I have 2 problems:

    1. When I scroll to a different page, sometimes the items take some time to update the values. I am using viewPager.registerOnPageChangeCallback()to update the values with listViewAdapter!!.notifyDataSetChanged().
    2. Upon clicking the switch, the listView on the current page is not updated. When I scroll to the next or previous one, it updates but I need it to update immediately on toggling the switch.

    Here's all the relevant code:

    viewPager.registerOnPageChangeCallback() in onCreate() in MainActivity:

    viewPager.registerOnPageChangeCallback(object : ViewPager2.OnPageChangeCallback() { override fun onPageScrolled( position: Int, positionOffset: Float, positionOffsetPixels: Int ) { super.onPageScrolled(position, positionOffset, positionOffsetPixels) viewOffset = viewPager.currentItem - beginningPos todayIs() // adapter!!.updateValues() pageAdapter.listAdapterHelper.notifyDataSetChanged() listViewAdapter!!.notifyDataSetChanged() lastPos = position lastOffset = positionOffset } }) 

    switch listener in onCreate() in MainActivity:

     switch.setOnCheckedChangeListener { buttonView, isChecked -> pageAdapter.notifyDataSetChanged() viewPager.adapter!!.notifyDataSetChanged() pageAdapter.notifyItemChanged(viewPager.currentItem) pageAdapter.listAdapterHelper.notifyDataSetChanged() listViewAdapter!!.notifyDataSetChanged() } 

    As you can see, using notifyDataSetChanged() from both the listViewAdapter and the viewPagerAdapter doesn't work.

    classes forviewPager2 and adapter for listview:

    class ViewPagerFragment(var fragmentActivity: FragmentActivity) : Fragment() { // var expandableListView: ExpandableListView? = null // var adapter: ExpandableListHelper? = null var listView : ListView? = null var listViewAdapterHelper : ListAdapterHelper? = null var switch : Switch? = null override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View = inflater.inflate(R.layout.view_pager_layout, container, false) override fun onViewCreated(view: View, savedInstanceState: Bundle?) { listView = view.findViewById(R.id.list_view) listViewAdapterHelper = ListAdapterHelper(context!!, fragmentActivity) listView!!.adapter = listViewAdapterHelper } } val pages = 365 class ViewPagerAdapter( var fa: FragmentActivity, var listAdapterHelper: ListAdapterHelper, var viewPager2: ViewPager2, var switch: Switch ) : FragmentStateAdapter(fa) { override fun getItemCount(): Int = pages override fun createFragment(position: Int): Fragment { return ViewPagerFragment(fa) } } class ListAdapterHelper(var context: Context, var fr: FragmentActivity) : BaseAdapter() { var db = DatabaseUtility(context, mainTimes) var timeMap = db.getAllTimes(viewOffset) var switch: Switch = fr.findViewById<Switch>(R.id.switch) override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View { var convertView = convertView if (convertView == null) { val layoutInflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater convertView = layoutInflater.inflate(R.layout.times_list_view, null) } timeMap = db.getAllTimes(viewOffset) var timeMap = timeMap.toMutableMap() timeMap.remove("Date") val title = convertView!!.findViewById<TextView>(R.id.title) val time = convertView.findViewById<TextView>(R.id.time) title.text = allTimesList[position] time.text = timeMap[timeMap.keys.toList()[position]] if(switch.isChecked) { time.visibility = View.VISIBLE title.visibility = View.VISIBLE if(title.text == "condition") { title.setTextAppearance(R.style.small_time_style) title.setPadding(20, 3, 20, 35) time.setTextAppearance(R.style.small_timing) time.setPadding(20, 3, 20, 35) } else { title.setTextAppearance(R.style.title_Style) title.setPadding(20) time.setTextAppearance(R.style.Timing_Style) time.setPadding(20) } } else { if(title.text == "condition") { title.visibility = View.GONE time.visibility = View.GONE } else { time.visibility = View.VISIBLE title.visibility = View.VISIBLE } } return convertView } override fun getItem(position: Int): Any { return allTimesList[position] } override fun isEnabled(position: Int): Boolean { return false } override fun getItemId(position: Int): Long { return position.toLong() } override fun getCount(): Int { return allTimesList.size } } 

    Any guidance would be appreciated. Is there any other way that I should be doing this?

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

    ADB Wifi Debug

    Posted: 18 Apr 2020 08:45 PM PDT

    Is it possible to adb wifi debug if my computer is on the ethernet and my phone is on wifi?

    I tried; but it doesn't work. Is there a way to connect via adb or are there alternatives?

    cannot connect to ip address: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

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

    How can I get iMessage on Android without a Mac?

    Posted: 19 Apr 2020 02:37 AM PDT

    First of all, I don't know where this should be posted. Android subreddit or iOS?

    Hi, I would like to know if it is possible to get iMessage on Android. I Do not have a Mac, and Running Mac OS via VirtualBox results in getting an error about not being authorized. I have an Jailbroken iPad 6th Gen on iOS 13.3.1, an Android Device running Android 9.0, And a Windows 10 Computer.

    What are my options?

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

    How do I get absolute path of an object in android studio?

    Posted: 18 Apr 2020 08:36 PM PDT

    In windows you can just say c:/users/desktop/thisfile.exe . But how do I do it in android. I want to interact with a file or folder that's almost alway there.

    EDIT: every android tutorial I see seems to use Environment.getExternalStorageDirectory() but it is deprecated. Suggest me a new method please.

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

    anybody having a big drop in admob impressions?

    Posted: 18 Apr 2020 03:28 PM PDT

    Is there any downsides to have BaseFragment with an argument?

    Posted: 18 Apr 2020 03:11 PM PDT

    👋 I use Jatpack navigation, this is my declaration of BaseFragment:

    abstract class BaseFragment<BINDING : ViewDataBinding, VIEW_MODEL : BaseViewModel>(private val layoutId: Int) : Fragment() {...} 

    so I can have fragments like this:

    class DocumentsFragment : BaseFragment<FragmentDocumentsBinding, DocumentsViewModel>(R.layout.fragment_documents) 

    My question is, we know we should never have parameters in Fragments to restore states and all, but could Base fragments have them?

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

    No comments:

    Post a Comment