• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, July 3, 2019

    I have met these amazing guys from Serbia and Kosovo at Droidcon Berlin. Android Dev

    I have met these amazing guys from Serbia and Kosovo at Droidcon Berlin. Android Dev


    I have met these amazing guys from Serbia and Kosovo at Droidcon Berlin.

    Posted: 03 Jul 2019 11:00 AM PDT

    [WTF PSA] Huawei killing wake locks after a while

    Posted: 03 Jul 2019 06:37 AM PDT

    Maybe this is common knowledge, but I just learned that Huawei does not honor wake locks after a while, just like that, because Huawei decided it was a cool thing to do for claiming insane battery life. To workaround it, it seems that you have to use a whitelisted wake lock name.

    GOOGLE, HOW THIS ASSCLOWNERY WAS ALLOWED ? Gapps should be denied to manufacturers breaking Android as documented.

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

    The CommonsBlog — Leaky APIs are Leaky

    Posted: 03 Jul 2019 10:20 AM PDT

    Code Review for my app

    Posted: 03 Jul 2019 02:42 AM PDT

    Hey! I did this app for a recruitment process https://github.com/marciarocha/DormManager . I sent it already and I am waiting for the final answer *fingers crossed*

    I basically just want to know if I am on the right path for a clean mvvm architecture and get feedback from other android devs. Hope this is the right place for it.

    Thanks!

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

    I released my first app today. I learned a lot during the development.

    Posted: 03 Jul 2019 12:23 PM PDT

    Around 5-6 weeks ago I got the idea to develope a music app using guitar chords that I've recorded. I started out from zero, not having any experience beforehand.

    Today I released the app. I learned a lot during development and I will continue working on apps. I already have several ideas.

    Some features of the app:

    ● Choose from 96 jazz guitar chords, including 7sus4, m7 and 7#9 chords.

    ● Every sample was recorded with a Fender Stratocaster.

    ● Non-intrusive ads:

    The app only features a single banner ad at the bottom of the screen.

    ● Play back the samples at half-speed:

    With a click of a button you can play back the chords at half speed an octave lower.

    You can download the FREE version here:

    https://play.google.com/store/apps/details?id=com.jazz.jazzguitarchordpads

    If you want to support me you can buy the ad-free version here for 0.99:

    https://play.google.com/store/apps/details?id=com.jazz.jazzguitarchordpadspaid

    Have fun with it, and tell me what you think!

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

    Any recommendations for mobile app development frameworks? I've already tried Xamarin, Ionic, React Native, and NativeScript, and ran into issues with each of them.

    Posted: 03 Jul 2019 01:50 PM PDT

    Xamarin: Can't use this framework because it runs on .NET Standard and some of the code in our backend requires .NET Framework (specifically the System.Web namespace).

    Ionic: This one is kinda iffy - it's not compatible with VS2019 due to being based on Cordova which is not supported by VS2019, so we'd have to stick with VS2017 and not upgrade as planned, or use 2017 just for the mobile app, or something...

    React Native and NativeScript I'm just trying to get up and running and I'm running into issues I keep posting about on Stack Overflow...

    Any others I may have missed? :)

    edit: I did have a thought regarding Xamarin - maybe if it were possible to fully encapsulate the mobile UI and not actually reference the .NET backend from the mobile UI, like I'd be doing anyway with a JS framework, then I could do this?

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

    Google Play Update time

    Posted: 03 Jul 2019 01:01 PM PDT

    Hey guys. I've posted an important update of my Apps and it's already 9 hours since google play store says it's processing. (Uploaded at 12:55pm, now it's 10:01pm) Usually it takes me max 2-3 hours to update my App. If it was a minor update I wouldn't care but it's a major update. It's fucking up my schedule..

    Anyone with the same problem?

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

    Fast and efficient latex library

    Posted: 03 Jul 2019 02:11 AM PDT

    Can someone suggest me some fast efficient latext parsing library that can parse and display latext symbol and math equation in a TextView without using webview( as I have used some WebView based implementation but all are very slow).

    I will be using this library to show item in recycler view.

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

    How do you usually prevent launching 2 same Activity

    Posted: 03 Jul 2019 11:53 AM PDT

    Sometimes, if you tap on a button (or anything) too fast, you will end up launching 2 or more same Activity.

    To prevent such, we use

    intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);

    Those intent flags are extremely complex, and we have no idea what is the exact meaning of each flag. To achieve multiple same activities prevention, there are other different suggestions like

    • Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
    • android:launchMode="singleInstance"
    • Various combinations of Intent.FLAG_ACTIVITY_REORDER_TO_FRONT, Intent.FLAG_ACTIVITY_SINGLE_TOP and Intent.FLAG_ACTIVITY_CLEAR_TOP

    I was wondering, is using combination "Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP", is the correct way?

    As, there are so many different options on this, and no one seems to know the exact answer - https://stackoverflow.com/questions/10614565/how-to-avoid-multiple-instances-of-same-activity , https://stackoverflow.com/questions/12197868/how-to-launch-activity-with-flag-reorder-to-front-and-flag-clear-top

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

    If the Google Cloud Platform free trial ends, can I still use the Places API Key?

    Posted: 03 Jul 2019 04:28 PM PDT

    The Places API has a $200 monthly credit, but to be able to use it one must have an active billing account and without this billing account I cannot do even a single request. (The prediction list does not displays).

    But the TOS of the Google Cloud Platform states that by choosing the free trial (activating your billing account), once upon reaching 12 months(end of the trial) "All resources you created during the trial are stopped". Does this includes the API key?

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

    Android Q has the new AudioPlaybackCapture APl

    Posted: 03 Jul 2019 08:56 AM PDT

    Flutter and Kotlin Multiplatform relationship - are they competitors? [Article]

    Posted: 03 Jul 2019 03:32 AM PDT

    Is everyone using BigQuery for Analytics?

    Posted: 03 Jul 2019 05:03 AM PDT

    We use Fabric events for our Point of Sale apps and found them perfect - brilliant level of flexibility to just track event counts with custom data. For example if a lot of transactions fail for a particular merchant, I could tell straight away who the merchant was and what the error message from our server was from the event.

    You can't see any of this in Firebase Analytics because you are only allowed to track 10 parameters for the whole app. People are saying you need to tie it to BigQuery so obviously Google have hobbled FA to get you onto a pay as you go plan.

    BigQuery seems extremely over the top for what I want to do, are there any good alternatives?

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

    Can't set span with more than 1 word (new to java and androiddev)

    Posted: 03 Jul 2019 12:43 PM PDT

    I'm 100% new to java and android studio. I do have some background on processing, so I thought I'd be able to create this app and proposed it as a school project. The idea is to have a speech-to-text function (for the deaf people), and if some word is unknown to the user, he can click it and the first image on google should appear as a pop-up. The speech recognition is fully functional. But I'm in some trouble getting the strings to be clickable. With one word the app doesn't crash (though I think it is still not clickable), but when I speak anything with more than 1 word, it crashes. The code and more background available here: https://stackoverflow.com/questions/56675089/cant-set-span-with-more-than-1-word

    I have already searched a lot, and I sent some emails (but no answers). I'd really appreciate a reply, please at least give me a hint on what is wrong.

    Sorry for the grammar errors, I'm from Brazil (sorry for the bad code as well! haha).

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

    Error: didn't find class .MainActivity

    Posted: 03 Jul 2019 12:25 PM PDT

    EDIT: SOLVED - main activity had a uppercase extension. MainActivity.Java instead of MainActivity.java

    I'm working on a minimal android application made from scratch without android studio and I've encountered a problem that doesn't appear to have any clear solution.

    I'm able to build and install the app via gradle installDebug but when I try to run it on my device (Xiaomi Mi 5s, Android 9, LineageOS 16.0) it instantly crashes. After inspecting logcat for the error, I get the message:

    E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.decenet/com.example.decenet.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.decenet.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.decenet-oEO8ntosvf5W56DVrMmxzw==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.decenet-oEO8ntosvf5W56DVrMmxzw==/lib/arm64, /system/lib64, /vendor/lib64]] 

    I've already tried reinstalling the android sdk, java sdk, and gradle with no luck. Cleaning the project via gradle doesn't help either.

    Here's all the source code

    AndroidManifest.xml:

    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.decenet"> <application android:label="Decenet"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> 

    MainActivity.Java

    package com.example.decenet; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView label = new TextView(this); label.setText("Hello world!"); setContentView(label); } } 

    build.gradle

    buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:+' } } allprojects { repositories { google() jcenter() } } apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.0" defaultConfig { applicationId "com.example.decenet" minSdkVersion 28 targetSdkVersion 29 } } 

    Any help is appreciated, thanks in advance.

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

    Admob alternatives for Adult app

    Posted: 03 Jul 2019 12:19 PM PDT

    I have an (somewhat) adult app that I have published on the Play store. The app doesn't even contain any pornography , but it's mostly just text. I have been running Admob ads on it for a year before Google decided to stop serving ads in my app. I tried to appeal explaining there is no pornography, no nudity, and it's just mostly based on text content, and they refused. If you're curious about the app, search for 'Masturbation Calculator'

    So now I am adless , have no way to make revenue. If anyone has a better appeal reason I should submit , let me know. I'm looking for an Admob alternative who would allow my app, and still give me good revenue.

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

    Opinion needed to implement "Remove Ads" option

    Posted: 03 Jul 2019 06:20 AM PDT

    I want to implement an option in my app to remove ads. I'm using Google play billing APIs. I just want to ask which one is a good approach for this option.

    Should I make it a one time purchase? Or should I make it a subscription?

    Which one is better?

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

    AVD on AS 3.4 and AMD Ryzen?

    Posted: 03 Jul 2019 10:52 AM PDT

    I've been having difficulties running an AVD on my new computer that uses an AMD Ryzen CPU.

    Under Windows features, I've enabled both Hyper-V and Hyper-V Platform. I've installed all the latest updates on Android Studio and the motherboard has enabled virtualization in the BIOS settings.

    Anyone here successfully running an AVD on their Windows 10 + Ryzen computer? How did you go about it?

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

    Portrait for phones and lanscape for tablets?

    Posted: 03 Jul 2019 10:40 AM PDT

    I really need the app to be in portrait mode only when it is on a phone, and landscape mode in a tablet. In my manifest, have declared "nosensor" on my SplashActivity, and used "locked" in screenOrientation for my other activities; while also reading if it is a Tablet or not in my App class. I also rotate the screen on the SplashActivity if it is a tablet, to force it to landscape, and then the user is unable to rotate the activity. So far this is what have worked the best.

    Unfortunately, this method has a lot of glitches and crashes with abnormal use (ie: pausing the app, rotate the screen and coming back), forcing my app to rotate, or even to crash (because I use different layouts for portrait and landscape, having landscape different elements to be a more tablet-oriented design) so, playing with the app lifecycle allows several glitches to occur. What is the best way to implement this feature without having to patch the entire application?

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

    Android Q will have better gaming stream audio

    Posted: 03 Jul 2019 09:26 AM PDT

    Is it still worth learning Java for Android Development in 2019?

    Posted: 03 Jul 2019 09:15 AM PDT

    Minimal Android ROM

    Posted: 03 Jul 2019 03:11 PM PDT

    I'm looking for a custom Android ROM that will only have the following aspects:

    Camera

    GPS

    Text/call

    Is there one that already exists? How hard would it be to create my own/slim down an existing one?

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

    network on main thread driving crazy, only in release!!!

    Posted: 03 Jul 2019 08:32 AM PDT

    Hello, this happened first time in my career so far.. I have a regular rxJava request, which downloads a file from url and saves it in internal storage.. it worked in debug and passed all tests. All of the sudden it creates a network on main thread only in release mode... I thought proguard was an issue, but no help... I even can't debug it, because it is in the release mode:
    Maybe android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork has to do with it?

    2019-07-03 18:26:25.168 29130-29130/? W/System.err: android.os.NetworkOnMainThreadException 2019-07-03 18:26:25.168 29130-29130/? W/System.err: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1513) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at com.android.org.conscrypt.Platform.blockGuardOnNetwork(Platform.java:415) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at com.android.org.conscrypt.ConscryptFileDescriptorSocket$SSLInputStream.read(ConscryptFileDescriptorSocket.java:527) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at g.q.b(Unknown Source:37) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at g.b.b(Unknown Source:7) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at g.v.b(Unknown Source:24) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at f.a.d.b$a.b(Unknown Source:4) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at f.a.d.b$e.b(Unknown Source:23) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at g.v.b(Unknown Source:24) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at g.l.b(Unknown Source:2) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at i.v.b(Unknown Source:0) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at g.u.read(Unknown Source:29) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at java.io.InputStream.read(InputStream.java:101) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at b.c.a.e.e.a(Unknown Source:26) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at b.c.a.c.c.a(Unknown Source:51) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at b.c.a.c.c.accept(Unknown Source:2) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at c.c.e.d.d.a(Unknown Source:8) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at c.c.e.e.b.i$a.d(Unknown Source:47) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at c.c.e.e.b.i$a.run(Unknown Source:8) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at c.c.a.b.c$b.run(Unknown Source:2) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at android.os.Handler.handleCallback(Handler.java:873) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:99) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at android.os.Looper.loop(Looper.java:193) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6692) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 2019-07-03 18:26:25.169 29130-29130/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 

    Writing to file with legacy Java code:

    public class TemplateStoringHelper { public void storeData(InputStream inputStream, String path) { int count = 0; FileOutputStream output = null; try { output = new FileOutputStream(path); } catch (FileNotFoundException e) { e.printStackTrace(); } byte data[] = new byte[1024]; long total = 0; while (true) { try { if (!((count = inputStream.read(data)) != -1)) break; } catch (IOException e) { e.printStackTrace(); } total += count; try { output.write(data, 0, count); } catch (IOException e) { e.printStackTrace(); } } try { if (output != null) { output.flush(); } } catch (IOException e) { e.printStackTrace(); } try { if (output != null) { output.close(); } } catch (IOException e) { e.printStackTrace(); } try { inputStream.close(); } catch (IOException e) { e.printStackTrace(); } } } 

    And here is rxjava regular method:

     fun handleDownload(viewModelScopeDisposable: CompositeDisposable) { viewModelScopeDisposable.add(RetrofitFactory.makeRetrofitServiceDownload().download(url) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe({ val path = applicationContext.filesDir.toString() + "/" + countryISO + ".zip" templateStoringHelper.storeData(it.byteStream(), path) }, { error -> error.printStackTrace() })) 
    submitted by /u/wellbranding
    [link] [comments]

    Android Q will have better game streaming audio

    Posted: 03 Jul 2019 08:26 AM PDT

    Kotlin Coroutines in instrumentation tests?

    Posted: 03 Jul 2019 04:19 AM PDT

    I have problem making coroutines work in AndroidTest folder.

    They work well in unit tests in test folder.

    I have the following lines in my app level build.gradle file

    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.40"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.40"

    androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0-M2'
    testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0-M2'

    The error is the following:

    Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-core' that satisfies the version constraints:

    Dependency path 'App:app:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.2'

    Constraint path 'App:app:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.2.2}' because of the following reason: freeDebugRuntimeClasspath uses version 1.2.2

    Dependency path 'App:app:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0-M2' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-M2'

    Dependency path 'App:app:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.2' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.2'

    Perhaps the problem is the lack of updated coroutine test library. I think it is not available.

    Anyway to make this work?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel