• Breaking News

    Wednesday, January 20, 2021

    Android Dev - DIY — Device lab

    Android Dev - DIY — Device lab


    DIY — Device lab

    Posted: 20 Jan 2021 06:49 AM PST

    Augmented reality SDK to draw 3d models over QR codes

    Posted: 20 Jan 2021 04:55 AM PST

    I've conducted research before posting of course.

    1. Google AR Core: doesn't fit, since their augmented images require sizes bigger than 15cm x 15cm, which is too big for a QR code ( they usually start from 2cm x 2cm). Usually it still recognizes images of 10cm x 6cm still, but didn't try it out with QR code. Also seems to require NDK knowledge ( not sure about this one, please correct me if I'm wrong)
    2. Vuforia SDK: fits, but not free & requires knowledge of C++ or Unity, which is something that I'd avoid if possible. Their Native SDK requires integrating a 3rd party libraries, rendering engine or game engine that support 3D model loading and rendering in one or more of the desired 3D formats. Or implementing your own 3D format loader and your own rendering code to support a specific 3D model format
    3. Wikitude: fits, also not free:Native API - requires the rendering of augmentations to be done by you ( complexity )JavaScript API - includes an integrated 3D rendering engine, but I assume some JS knowledge is also needed.
    4. easy ar - documentation is so bad that i've left it out as the last resort.

    Other sdks that I'll be investigating will be maxst, deepAR, kudan.What I'm trying to achieve is basically attaching stickers on qr codes, smth like inkhunter app.Would appreciate advices from those, who already had similar experience

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

    Providing operating system compatibility on a large scale

    Posted: 20 Jan 2021 02:37 AM PST

    How did you get your first Android job?

    Posted: 19 Jan 2021 05:02 PM PST

    Hey everyone, I am sort of still new to Android Development (~1 year of self learning) and I am starting to feel comfortable about my android knowledge and plan to start searching my first position. I wanted to ask you guys, what actually got you your first job as an Android Developer?

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

    how do i allow access to external storage on some apps and adb

    Posted: 20 Jan 2021 04:11 AM PST

    android 11. Can't push files to ext storage says it's read only system.

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

    An easy way to collect crash reports in our Android libraries

    Posted: 20 Jan 2021 07:09 AM PST

    Wikileaks android internals book

    Posted: 19 Jan 2021 08:26 PM PST

    This is old news from 2017, but I found out googling around that the full text of "Android internals" textbook was published on Wikileaks in a large dump of files acquired from the CIA. According to the author's website, the book made it onto Wikileaks because a CIA agent uploaded it to their internal servers.

    I know this is only tangentially related to android development, but I thought it was a cool story. I hope y'all enjoy.

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

    requireActivity() throwing exception inside onViewCreated() in Fragments

    Posted: 20 Jan 2021 02:31 AM PST

    Hi,

    I recently worked on a feature and after my first feature pull request, I received a lot of comments in my PR regarding not to use activity!! or requireActivity() because it can throw exceptions and always wrap them around ?.let {}

    My argument was it's technically not possible for host Activity to be null before onDetach() of fragment is called in any case (process death, configuration change etc. )

    But since they are much more experienced than me, I am confused whether I have some misunderstanding of lifecycles and edge cases or they just don't want to take risks with the lifecycles of the android framework.

    Can someone from their experience tell me if they have faced such crashes in their apps or such issues ?

    All of the code is synchronous and after onViewCreated(). Example code snippet:

    override fun onViewCreated(...) {

    textView.text = "test" // using kotlin synthetics val viewModel = getViewModel<HomeViewModel>(requireActivity()) // high level function which returns a view model and takes notnull lifecycleOwner // received a comment to use ?.let {} checks instead of using requireActivity() 
    submitted by /u/jeevan_o11
    [link] [comments]

    Freelance rate?

    Posted: 20 Jan 2021 05:57 AM PST

    Hey friends,
    What do you typically charge for freelance? Do you differentiate the rate buy how complex the project is?

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

    How to make specific app connect only when VPN active and make it's traffic only go with VPN tunnel

    Posted: 20 Jan 2021 04:07 AM PST

    Android Studio 4.1.2 Stable released

    Posted: 19 Jan 2021 11:01 AM PST

    Release notes don't appear to be available yet... anyone know what's up?

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

    Get rating metadata form a list of song (MP3) in android using android.media.Rating

    Posted: 20 Jan 2021 02:23 AM PST

    I need to retrieve the rating from a list of all the songs in a phone. Currently I have them on a File List. Some metadata can be listed with MediaMetadataRetriever but the ratings saved in the song by BlackPlayer EX can't, so I need to extract them with another method. I've found "android.media.Rating" but with no luck.

    My code so far:

    String musicPath = Environment.getExternalStorageDirectory().toString() + "/Music";textView.setText(musicPath);File directory = new File(musicPath);textView.setText("On it");MP3FileFilter fileFilter = new MP3FileFilter();List songsFiles = listFiles(directory, fileFilter, true);MediaMetadataRetriever mmr = new MediaMetadataRetriever();for(int i = 0; i<songsFiles.size(); i++){String song = songsFiles.get(i).toString();mmr.setDataSource(song);((Rating) songsFiles.get(i)).getStarRating();}

    The error displaying is pretty obvious but I can't find a way to solve it:

    java.io.File cannot be cast to android.media.Rating 

    Thanks in advance.

    EDIT:

    MP3File musicFile = (MP3File) AudioFileIO.read((File) songsFiles.get(i));
    if (musicFile != null && musicFile.hasID3v2Tag()) {
    ID3v23Frame frame = (ID3v23Frame) musicFile.getID3v2Tag().getFrame(ID3v24Frames.FRAME_ID_POPULARIMETER);
    FrameBodyPOPM body = (FrameBodyPOPM) frame.getBody();
    Long irating = body.getRating();

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

    I am curious about how does Window VGA work.

    Posted: 20 Jan 2021 01:56 AM PST

    So I've been using this awesome tool from wdziemia available on google play (no this is not an add for it).

    But I am wondering how does it actually work ?

    Is there some api that android exposes to make view inspection of any app possible ? Or ?
    Does anyone have an idea ?

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

    Dynamic Versioning - Automatically advance your app version and version code (based on git commits and tags)

    Posted: 20 Jan 2021 12:43 AM PST

    How to prevent phones from shutting down my app while it is running?

    Posted: 19 Jan 2021 07:11 PM PST

    I have a meditation app. Many users complain that phones close the app when the meditation is longer than 10 minutes. (This mostly happens to Huawei, Redmi but also Samsung). I realize that this might have to do with the phone settings. But I am wondering if there is a known fix for that. Appreciate any advice.

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

    Was wondering if anyone could identify what program is being used in this screenshot.

    Posted: 19 Jan 2021 10:42 PM PST

    Making a food delivery app with flutter

    Posted: 19 Jan 2021 12:24 PM PST

    Migrate Jetpack Compose to existing ViewBinding?

    Posted: 19 Jan 2021 07:52 PM PST

    Anyone has experiences partially migrate existing view system (XMLs with ViewBinding) with Compose?

    I've checked this is possible: official docs & here (video)

    But I also occurred to this post regarding an issue here that needs to have different modules for Compose & DataBinding (I assume this is also happened in ViewBinding, because using `kapt` as well)

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

    How about services?

    Posted: 19 Jan 2021 11:13 AM PST

    What do you think guys about services? Do you know good tutorials? Do you use this staff at work? I understand many things in android but services are my nightmare, I don't understand how write it.

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

    Expecting member declaration, Kotlin

    Posted: 19 Jan 2021 04:07 PM PST

     val ss = SpannableString("Android is a Software stack") val clickableSpan = object: ClickableSpan() { override fun onClick(textView:View) { startActivity(Intent(this@SignUpActivity, SignInActivity::class.java)) } override fun updateDrawState(ds: TextPaint) { super.updateDrawState(ds) ds.setUnderlineText(false) } } ss.setSpan(clickableSpan, 22, 27, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) val textView = findViewById(R.id.hello) as TextView textView.setText(ss) textView.setMovementMethod(LinkMovementMethod.getInstance()) textView.setHighlightColor(Color.TRANSPARENT) 

    Brand new to Kotlin, why am I getting an "Expecting member declaration" on ss?

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

    Meme Maker - Most Complex thing I have ever developed!

    Posted: 18 Jan 2021 08:16 AM PST

    Best practises when refactoring a java code into Kotlin with MVVM?

    Posted: 19 Jan 2021 03:16 PM PST

    I need some guidance on what to consider when refactoring a large and in production Android App from Java to Kotlin with MVVM

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

    No comments:

    Post a Comment