• Breaking News

    [Android][timeline][#f39c12]

    Sunday, February 16, 2020

    GitHub - akexorcist/Android-Localization: Let's make language swithching in your app with easy way Android Dev

    GitHub - akexorcist/Android-Localization: Let's make language swithching in your app with easy way Android Dev


    GitHub - akexorcist/Android-Localization: Let's make language swithching in your app with easy way

    Posted: 16 Feb 2020 08:04 AM PST

    Session - A Signal protocol fork with decentralized servers and no need for a phone number

    Posted: 16 Feb 2020 03:17 PM PST

    r/androidapps suggest I cross-post this...

    Session is a cross-platform, anonymous and decentralized messaging application. You don't need a phone number or email address to make an account.

    Session uses the Loki Service Node network to route the data, for which the nodes are rewarded with $LOKI. The Loki Network itself is made up of some ~1000 community operated Service Nodes where 44% of the supply is held in the SNs - about US$7.5 million at the moment.

    I love Signal, but I don't love the attached phone numbers or central servers, but I know there's a challenge in allowing an altruistic intention over a financial incentive for the node operators - Sybil resistance. By using Loki's Service Node network, the crypto-economics is designed in a way that a bad actor would drive the price exponentially up while trying to accumulate enough Loki to be able to perform any traffic analysis on the routed data.

    Think of it as a Signal fork meets a Monero fork meets an incentivized TOR network.

    Web: getsession.org

    Whitepaper: https://getsession.org/wp-content/uploads/2020/02/Session-Whitepaper.pdf

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

    How to properly handle this IOException

    Posted: 16 Feb 2020 10:49 AM PST

    I am trying to follow an online tutorial to see how okhttp works for requests in android studio using kotlin.

    I have managed to implement it successfully for when the request is good.

    However when the request is unsuccessful (invalid search by the user, api not working properly, too many requests etc.) My app just crashes and closes down.

    How can I edit my code so the error is handled properly and the app doesn't have to shut down.

    example:

    The user enters a key that is not valid so the api request fails.

    I don't want the app to close but a toast to pop up saying "check your input is valid".

    How can I do this?

    val url = "www.google.com" val request = Request.Builder().url(url).build() val client = OkHttpClient() client.newCall(request).enqueue(object : Callback { override fun onResponse(call: Call, response: Response) { //code if request is successful. } override fun onFailure(call: Call, e: IOException) { //code if request was unsuccessful } }) 
    submitted by /u/ikihsin2
    [link] [comments]

    Developing your own Dynamic Feature

    Posted: 16 Feb 2020 12:42 PM PST

    Properly manage FragmentTransaction backstack

    Posted: 16 Feb 2020 12:23 AM PST

    If I have a host activity `MainActivity` and I first set up a `MainMenuFragment` then when i click the play button it opens up the `GameFragment` . If I click a back button i want it to take me back to the `MainMenuFragment` . I don't want to do a `FragmentTransaction.replace()` when I go back to the `MainMenuFragment` because I don't want it to reload the `MainMenuFragment` , i want it to preserve the state of the `MainMenuFragment`

    So i tried to set this all up with calls to `addToBackStack()` and `popBackStack()` but that doesnt work because I can see that `FragmentTransaction.backStackEntryCount` keeps incrementing as I navigate from the `MainMenuFragment` to the `GameFragment` and back and forth.

    Is there a straightforward approach to this?

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

    What are your pain points when you're writing animations?

    Posted: 16 Feb 2020 07:46 AM PST

    Hi Reddit,

    Last time I posted here your comments we're extremely helpful.

    I'm working on a talk about MotionLayout and I would love to hear what pain points are you facing or you faced in the past when building animations in Android.

    So, if you have any pain points, leave a comment or send me a message.

    Thanks

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

    How to setup a server to blackbox apps?

    Posted: 16 Feb 2020 11:59 AM PST

    Trying to blackbox test a few applications. I want to setup a cleanroom environment where I proxy app connections to a server that I control. I can get the proxy working but there are several services the app expects... Any way to fake these services to better understand how the app communicates?

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

    Facebook Developer Individual Verification Limitations

    Posted: 16 Feb 2020 11:41 AM PST

    Hello, I am trying to create an Android app for school that creates an aggregated timeline of users social medias. I have recently applied for individual verification to access the old Instagram api but just read this article detailing limitations for individual devs (https://developers.facebook.com/docs/apps/review/#individual-verification)

    It says I won't be able to ask users for permission to access user_posts . Am I pretty much done for or is there I way to be able to use these parts of the API if I am not a business?

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

    Are there any worthwhile android courses online?

    Posted: 16 Feb 2020 11:10 AM PST

    Hi I have been trying to learn android development for the past month.

    In this time I have learnt the basics of Kotlin (I had studied some java in college a while ago but was recommended to try kotlin so I did).

    And even have built a few very small beginner apps as I learn best by doing.

    However I have noticed that I don't know good practises, my code is not very good and I don't have a good grasp on a lot of technical things (I don't know what a fragment is, I don't know how best to manage the lifestyle of an activity).

    Are there any good online course that will give me this in a more structured way whilst still giving me ample opportunity to practise coding. I am really struggling at the moment.

    Thanks!

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

    "Compatible side by side NDK version was not found. Default is 20.0.5594570."

    Posted: 16 Feb 2020 07:22 AM PST

    This showed up as a Build warning right after I added Firebase Vision Image Labeling (or maybe that's just a coincidence). I do not need the NDK, why is this showing up? I don't have any installed.

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

    Recyclerview parent content

    Posted: 15 Feb 2020 10:30 PM PST

    Hello guys,

    need some help with recyclerview. I have an object "Order" which has a Date property and a list of products for that order. The current behaviour I have is that recyclerview shows a list of products and if you tap on one of them it opens another list which shows a list of products for that order. I would like to get rid of that second screen which shows recyclerview of products. Instead, I would like to use just one recyclerview which shows a list of products. Each card shows a date of order and bellows it would output the products of that order. Any suggestions on how can I achieve that?

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

    Is there a keycode I can send via ADB to toggle a button in Settings to be on?

    Posted: 16 Feb 2020 08:05 AM PST

    Sending KEYCODE_ENTER does a toggle. But I need it to be on, never off.

    Or is there a way to always swipe right on a particular element using ADB or UiAutomator?

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

    Accidentally Released App to All Users, how to revert to closed Alpha?

    Posted: 15 Feb 2020 10:24 PM PST

    Accidentally Released App to All Users, how to revert to closed Alpha?

    yes, title.

    Stupid me did this when I tried to update my alpha apk, I updated it the right way but there was this HUGE blue button saying "Release Production" so I thought I had to click it to update the apk.

    Silly me it got into play Store and now I had to force unpublish it.

    But now I am not sure if my alpha opt-in link is working or it is even able to update as the app says it's unpublished.

    • How do I remove this Production track? I think this is what makes the APP appear on the play store

    https://preview.redd.it/7jivlidvb8h41.png?width=975&format=png&auto=webp&s=d006f2b81fa15b4f90cabb7535c68159f51bccf3

    edit: I updated alpha app and it seems it did update and appears on play store (only for users who have installed the alpha version before) but I wonder how I am going to share the app for new users without publishing... any help is appreciated.

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

    How to pass object from function to oncreate method in android

    Posted: 16 Feb 2020 06:23 AM PST

    Hi I have the following code:

    class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) button_search.setOnClickListener { val search = editText_user_search.text.toString() fetchJson(search) val intent = Intent(this, WeatherForecast::class.java) } } } private fun fetchJson(userSearch: String){ println("Attempting to fetch JSON") val url = "https://api.openweathermap.org/data/2.5/weather?q=$userSearch&appid=MY_API_KEY" //val url = "https://api.letsbuildthatapp.com/youtube/home_feed" println("the url is $url") val request = Request.Builder().url(url).build() val client = OkHttpClient() client.newCall(request).enqueue(object : Callback { override fun onResponse(call: Call, response: Response){ val body = response.body?.string() val gson = GsonBuilder().create() val weatherinfo: WeatherInfo = gson.fromJson(body, WeatherInfo::class.java) } override fun onFailure(call: Call, e: IOException) { println("Failed to execute request.") } }) } 

    The idea is to take a user input (a city), do a get request (to get weather info about that city), use gson to turn it into a object then access fields of that object to put it onto a intent to pass to a new activity.

    The problem here is that the object I want to access in onCreate, weatherInfo, is created during the function onResponse function inside the fetchJson function.

    What is the best way to pass this information so I can add to my intent the following line intent.putStringExtra("City", weatherInfo.name)
    so I can access it on another activity.

    If there is a best practise for handling this situation I would be grateful to know!

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

    MediaMetadataRetriever throws Illegal Argument Excetion only on Android 10

    Posted: 16 Feb 2020 05:45 AM PST

    if i change target sdk to 29, MetadataRetriever's setDataPath method throws the Error only on Android 10. So, i changed back to 28 and it works just fine. But why? Any news that i've missed?

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

    How is it possible for AutoCompleteTextView's item selection listener to return the wrong item when user selects an item?

    Posted: 16 Feb 2020 03:28 AM PST

    Hello! I was wondering if that's ever happened to you?

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

    I want to show images uploaded on firebase storage in google drive in custom tab. Is it even possible?

    Posted: 16 Feb 2020 02:55 AM PST

    I am working on an app, in which, i am uploading images to firebase in jpg. Then when user request for preview of that image. so it should be shown in customTab of google drive as it provide interface to display images and stuff. I want know, is this even possible or i have to upload images to google drive directly? Any suggestion will be helpful.

    Thanks in advance.

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

    What's the difference between ApkBuilder, apkzlib and zipflinger/signflinger?

    Posted: 16 Feb 2020 02:32 AM PST

    App Inventor currently uses ApkBuilder to add dex files and native libs to the APK file. However, as ApkBuilder is officially removed last year and in the process of upgrading the build tools that App Inventor uses to compile APK files, I am looking for replacement for ApkBuilder.

    I also asked this a year ago to no avail https://www.reddit.com/r/androiddev/comments/a9cj2z/what_is_the_alternative_to_apkbuilder/

    Is Zipflinger more efficient and faster than the former two?

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

    java.lang.BootstrapMethodError

    Posted: 16 Feb 2020 12:31 AM PST

    Hello! I'm a noob when it comes to Android dev. I'm trying to create an app that makes use of Bitnami Parse Server in AWS. The app used to work a few months ago, but now I'm getting an error and I have no idea as to what it is. Help in a newbie context would be appreciated! Thanks.

    The error:

    2020-02-16 13:58:00.922 9701-9741/com.example.parseprojectstarter E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1 Process: com.example.parseprojectstarter, PID: 9701 java.lang.BootstrapMethodError: Exception from call site #4 bootstrap method at okhttp3.internal.Util.<clinit>(Util.java:87) at okhttp3.internal.Util.immutableList(Util.java:234) at okhttp3.OkHttpClient.<clinit>(OkHttpClient.java:124) at okhttp3.OkHttpClient$Builder.<init>(OkHttpClient.java:449) at com.parse.ParsePlugins.restClient(ParsePlugins.java:116) at com.parse.Parse.getEventuallyQueue(Parse.java:410) at com.parse.Parse.access$000(Parse.java:39) at com.parse.Parse$1.call(Parse.java:165) at com.parse.Parse$1.call(Parse.java:162) at bolts.Task$4.run(Task.java:357) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.ClassCastException: Bootstrap method returned null 
    submitted by /u/goushiquej
    [link] [comments]

    Why is my intent getstringextra returning null?

    Posted: 15 Feb 2020 04:10 PM PST

    Hi I am trying to pass a string from one activity to another like so.

    On my main activity I take the text from the editText_user_search.

    class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { 

    super.onCreate(savedInstanceState) setContentView(R.layout.activity_main)

     button_search.setOnClickListener { 

    val intent = Intent(this, SecondActivity::class.java) intent.putExtra("USER_SEARCH", editText_user_search.text) startActivity(intent) }

    } }

    Then on my second activity I do the following

    class SecondActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { 

    super.onCreate(savedInstanceState) setContentView(R.layout.activity_second) val search = intent.getStringExtra("USER_SEARCH") textView.text = search } }

    When I print to debug I can see editText_user_search.text contains whatever I enter before searching on the mainactivity, but intent.getStringExtra("USER_SEARCH") is returning null on the secondactivity.

    What am I doing wrong?

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

    Any dark mood apps?

    Posted: 16 Feb 2020 07:09 AM PST

    I was looking for a apps, are really really can making my theme dark mood....... By the way, huawei nove 4 here's.

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

    Do any of you initialize FirebaseApp later (manually)?

    Posted: 15 Feb 2020 05:14 PM PST

    Hi all - I've been looking at my app start-up time and it seems like a good chunk of it is spent initializing FirebaseApp and Crashlytics.

    I don't have actual code to do that (other than the manifest entry and the gson file) but I am wondering if it would make more sense to initialize later, maybe lazily, since the analytics are not super important.

    Have any of you managed to pull that off or will it be a nightmare?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel