• Breaking News

    Saturday, June 12, 2021

    Android Dev - Help us improve Android Virtual Devices for automated testing!

    Android Dev - Help us improve Android Virtual Devices for automated testing!


    Help us improve Android Virtual Devices for automated testing!

    Posted: 10 Jun 2021 09:42 AM PDT

    Hello all!

    My name is Adarsh and I'm a product manager on the Android Studio team. We've been thinking a lot about how we might optimize Android Virtual Device (AVD) performance when running your automated tests.

    To help us understand how to best approach this project, we would really appreciate getting some feedback via the survey link below:

    https://google.qualtrics.com/jfe/form/SV_3fJCtgZvuJe2fHM?link=87R41d0t9

    So, if you're currently using AVDs for your automated tests, and you have a moment to help us make that experience better, please take the survey :)

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

    Android 12 becomes the most downloaded Android test version in history

    Posted: 11 Jun 2021 09:45 PM PDT

    when you have a Repository exposing data with Flow. do you collect it inside the ViewModel or the Fragment?

    Posted: 11 Jun 2021 08:49 PM PDT

    I'm confused about Flow a bit. is it "acceptable" to collect the data inside the ViewModel, work with the data and then notify the fragment of changes using LiveData? or should the fragment collect the data directly and mediate to ViewModel to do any computation?

    I find the ViewModel doing the collection a little more effective since unlike LiveData you don't need an observer (i.e. no need for a fragment to observe)

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

    What is the best way to naming anything inside resources folder in Android Studio?

    Posted: 12 Jun 2021 01:24 AM PDT

    I don't have any problem with naming anything inside Java such as :

    1. Variables
    2. Methods
    3. Classes
    4. Objects
    5. Parameters
    6. Etc...

    But the problem is with naming anything inside resources folder in Android Studio, What is the best way to name those :

    1. Files Inside Drawable Folder
    2. Files Inside Layout Folder
    3. Files Inside Menu Folder
    4. Variables Inside Colors File
    5. Variables Inside Strings File
    6. Identifiers
    7. And a lot of things who i can't count them
    submitted by /u/DismalCall5534
    [link] [comments]

    Change of Developer name on Google Play and huge drop in downloads

    Posted: 11 Jun 2021 11:54 PM PDT

    About 3 days ago I modified my developer name on Google Play by removing the word "Free" as required by the new metadata policy that will be introduced later this year.

    After this, in the last 2 days, all downloads across every apps in the account dropped by about 70% suddenly. This happened to different subsets of Apps on the same account, so it shouldn't be niche specific.

    Did anyone ever experience a big drop in downloads after changing the developer name?

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

    How can I translate Android's Developer Guides into different languages?

    Posted: 11 Jun 2021 03:35 PM PDT

    Link

    You can choose different languages to read the guides (on the browser mainly), but not all languages are supported. I can't seem to find info on where I can contribute to this. I would like to translate these for free. Does anyone know how can do that?

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

    �� The Story of My First A-ha Moment With Jetpack Compose

    Posted: 11 Jun 2021 02:01 PM PDT

    Wrapping composable with Surface() composable covers the nested composable //Jetpack Compose

    Posted: 12 Jun 2021 04:01 AM PDT

    @Composable fun Greeting(name: String) { Surface(color = Color.Yellow) { Text(text = "Hello $name!", modifier = Modifier.padding(24.dp)) } } 
    submitted by /u/alfkk
    [link] [comments]

    SquircleView - A library with support for Squircle buttons, images and layouts

    Posted: 11 Jun 2021 12:03 PM PDT

    A curated list of awesome Jetpack Compose libraries

    Posted: 11 Jun 2021 04:27 AM PDT

    Any way to see what version my testers have downloaded?

    Posted: 12 Jun 2021 03:02 AM PDT

    Hi everyone!

    On Apple TestFlight I'm shown a list of my invited testers with which version of the app they have most recently installed.

    Is there any way to see this in Google Play Console? Apologies if I'm missing something obvious, but all I can see is the list of email addresses under the "Testers" tab in my "Closed Testing" Alpha track.

    Thanks

    Simon

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

    easy app builder then android studio

    Posted: 12 Jun 2021 02:37 AM PDT

    Hi all brilliant minds out there. I want to create a simple client server app mostly like todo list. I tried android studio but UI designing in android studio is not my thing. Can you suggest me some way to use something like Qt, python etc to build android app. Or drag and drop style? The developed app must be monetizable with adsense etc. and it should be free to develop.

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

    Play Store - Internal app sharing does not work?

    Posted: 12 Jun 2021 02:06 AM PDT

    I am trying to upload my app using internal app sharing last 2 days, but no matter what I do, I cant make it work - now almost 3 days already...This is what I did:

    1. In Console I clicked on app -> release -> internal app sharing
    2. I uploaded apk
    3. I enabled "Anyone you shared the link with can download" (and just to be sure, also added myself into email list both UPLOADERS AND TESTERS and also Downloaders)

    APK was sucessfully uploaded, no error code, and then I copied the link and sent to my device.

    But for the world of me I can not download apk I just uploaded. When I try to open the link on my phone, it opens webpage displaying this and when I click on "OPEN IN PLAY STORE", it just takes me to Play Store, but there is only official version available (not the internal version I uploaded).

    Am I doing anything wrong? Why such a simple thing does not work?

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

    Virtual Cam on Android

    Posted: 11 Jun 2021 06:11 PM PDT

    Is there any way to get a virtual cam on an Android device or emulator? So when i go on my Camera it shows a special video or a livestream? Because my Problem is i wanna livestream stuff on tiktok but tiktok only allows to use your integrated phone camera. Is there a way to bypass this problem through a virtual cam? If anybody can give me a working solution i can paypal him 10€ :D.

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

    Adaptive+ SDK - In-app offers on your Splash Screen. Kotlin/Java

    Posted: 11 Jun 2021 07:46 PM PDT

    Android studio XML file - Android Studio Fundamentals

    Posted: 12 Jun 2021 02:09 AM PDT

    Android Developers Backstage: Episode 166: Security Deposit

    Posted: 11 Jun 2021 10:20 PM PDT

    Mobile Developers Cafe - Weekly Newsletter for Mobile Developers

    Posted: 11 Jun 2021 03:43 AM PDT

    Weekly Anything Goes Thread - June 11, 2021

    Posted: 11 Jun 2021 06:00 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Android Project Error

    Posted: 11 Jun 2021 01:14 PM PDT

    Hi There,

    I'm fairly new to Android Studio and am running into an error trying to open a test Project.

    The project seems to call features for Java 8, and it's using the Gradle Build system.

    When I import the project, I receive the following error message -

    A problem occurred evaluating project ':app'.
    > Could not initialize class com.android.repository.api.RepoManager

    My thought is to install Java 8 JDK and attempt to Build and run the app.

    Has anyone else seen the error above? How can I bypass or correct this issue?

    Am I thinking about this in an incorrect way?

    Thanks,

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

    local stored lyrics on mobile app counts as copyright infringement?

    Posted: 11 Jun 2021 07:06 AM PDT

    I am planning to develop a music app and planning to publish it to apple iOS app store and google play store. This app will NOT download any lyrics from internet or will NOT provide any lyrics from any sources. Because lyrics has copyrights and a lot of lyrics provider website and services shut down. Only if the user owns a lyrics file and copies it to app's folder by himself, this app will show the lyrics while playing that music. Do you think this will be counted as copyright infringement and my app and my developer account will be terminated by Apple and Google?

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

    Visual Studio/Xamarin -> Unity

    Posted: 11 Jun 2021 12:41 PM PDT

    This is probably going to sound ridiculous, but stick with me, please! I'm working on a project where I need to adapt a previous application to work within Unity.

    The previous project was developed in Visual Studio, in C#, using Xamarin for cross platform development on both Android and iOS, and used both pre-developed and third-party NuGet packages. The key function from this past project is that it allows for searching, connection, and streaming of data over Bluetooth from some proprietary hardware. Although the hardware sticks to the Bluetooth protocol, there are additional security layers added (for security, I've been told...), as well as the functionality for all the data streaming, etc. I could in theory write it myself, but I have been told there is a lot to it and it would not be easy (especially with my knowledge in the area).

    I need to get this Bluetooth functionality working in Unity, because we're using Vuforia and the best development platform for Vuforia, as far as I can tell, is in Unity. Not to mention I am somewhat familiar with Unity and the graphic engine is helpful. Right now I am only interested in Android development.

    I have some experience with Unity, as well as C# (because of Unity). I have also used Visual Studio before. However, Android development is somewhat new to me (small experience 10+ years ago, and nothing more than Hello World), but Xamarin, the inner-workings of .NET/Android/Mono, NuGet, and utilising dll's/packages, are foreign concepts to me.

    This task is proving to be very difficult, and from my understanding it appears to be because of the different background processing of how Android and Mono work. I can use NuGet in Unity, fortunately, using NuGet For Unity, which is nice. However, it's easier for me to just copy across the relevant dll files that I need. What I have discovered is that I don't need too many, I just following what the Unity errors say I'm missing. These are:

    • The pre-developed, propriety NuGet packages which handle the Bluetooth functionality

    • Mono.Android.dll

    • Some dependent Xamarin packages (although I am trying to avoid Xamarin as best as possible)

    • Java.Interop.dll

    Mono.Android and Java.Interop were found within the Visual Studio program folder. The Propriety/Xamarin packages were taken from the .nuget folder that pulled the packages for the Visual Studio project.

    The code is no longer throwing errors. It's recognising the Bluetooth functionality and I need to pass it an Android Activity, however, this seems to be where things unravel. Unity and Xamarin use very different Android structures, and trying to get the pre-developed code to work with Unity is proving to be a nightmare.

    Here's the error that I now get. I see this error via logcat, and I can build and run the code to an Android device fine, it's just my creation of the Android Activity won't play nice with the code.

    DllNotFoundException: java-interop at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jvm_list(intptr[],int,int&) at Java.Interop.JniRuntime.GetCreatedJavaVMs (System.IntPtr[] handles, System.Int32 bufLen, System.Int32& nVMs) [0x00000] in <bb625532918b4cc2a2b61f266a34788d>:0 at Java.Interop.JniRuntime.GetAvailableInvocationPointers () [0x00000] in <bb625532918b4cc2a2b61f266a34788d>:0 at Java.Interop.JniRuntime.get_CurrentRuntime () [0x00095] in <bb625532918b4cc2a2b61f266a34788d>:0 at Java.Interop.JniEnvironmentInfo..ctor () [0x00006] in <bb625532918b4cc2a2b61f266a34788d>:0 at Java.Interop.JniEnvironment+<>c.<.cctor>b__35_0 () [0x00000] in <bb625532918b4cc2a2b61f266a34788d>:0 at System.Threading.ThreadLocal`1[T].GetValueSlow () [0x00031] in <a1e9f114a6e64f4eacb529fc802ec93d>:0 at System.Threading.ThreadLocal`1[T].get_Value () [0x0003e] in <a1e9f114a6e64f4eacb529fc802ec93d>:0 at Java.Interop.JniPeerMembers+JniInstanceMethods.StartCreateInstance (System.String constr 

    Now, as you may have notices, I already have the Java.Interop.dll package linked to my project, but Java-Interop (with a hyphen) is not the same as the dot-variety.

    I have used some nice dll unpacking software (dotPeek and dnSpy) which has been really helpful to see what needs and contains what, but I'm now running out of ideas. The Bluetooth function must receive an 'Android.App.Activity' object, and I can't pass it the Unity equivalent of an Activity object.

    I have tried both the following:

    using System.Collections; using System.Collections.Generic; using UnityEngine; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.OS; using Bluetooth; // propriety dll public class MainActivity : MonoBehaviour { private BTAdapter btAdapterService; public void testfunction() { var androidAppAct = new Android.App.Activity(); new BluetoothAdapterService_Droid(androidAppAct); } } 

    and

    using System.Collections; using System.Collections.Generic; using UnityEngine; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.OS; using Bluetooth; // propriety dll public class MainActivity : Activity { private BTAdapter btAdapterService; public void testfunction() { new BluetoothAdapterService_Droid(this); } } 

    Both result in the same error.

    I've been trying at this for some time now, and I think I'm going in circles. If anyone can help me identify what might solve this issue I would love to hear your suggestion. I hope the solution is that I am missing a dll or something else required, but I can also appreciate that maybe what I want to do is just not possible.

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

    Which to use, Xamarin, Flutter or React?

    Posted: 11 Jun 2021 06:11 AM PDT

    So I am not sure which to use. I was tempted to use Xamarin as I know some C# already from using Unity to make games but there doesn't seem to be much information, tutorials etc. I have done a little bit of javascript when making websites. Flutter uses a language I am completely unfamiliar with but I apparently its easy to pick up. Which platform would be easiest for a complete beginner to use. I don't have any specific plans in terms of what I would want to do but I want to be able to be able to quickly create an app whenever I have an idea. So which will be the easiest to learn, has the most support and the best workflow.

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

    Easy way to create a tarot app

    Posted: 11 Jun 2021 11:09 AM PDT

    I've created a new tarot deck and want to create a simple app for it: card selection, image display, text meaning.

    I've created plenty of software but no apps. Any simple environments/methods/tools/visual-programming tips?

    Thanks!

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

    READ_CALL_LOG advices

    Posted: 11 Jun 2021 01:23 AM PDT

    READ_CALL_LOG advices

    So I'm here to ask some advices from people who where able to get a validation from Google on this permission.

    I'm fighting since a very very long time to get approved for the application: https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetcallplugin

    This a plugin for another application that will then control for example Kodi and do actions on the TV.

    So you get a call, the plugin intercept, send an intent to the main app, that will then do the necessary to have a popup shown on the TV with the caller name + pause or mute the media automatically during the call.

    This is the definition of a companion app as per their definition or automation app. But I can't get any information from them.

    For the automation they always reject telling me they can't check the function of the application, despite video showing what it does and explanation of the intent that they can easily check.

    I can't explain in 500 char and a video how to configure multiple unrelated complex applications that in all cases they won't be able to install....

    For the Companion app, they directly answer that the function is not the core function of the application

    https://preview.redd.it/h4mhx3yyil471.png?width=1132&format=png&auto=webp&s=7285d6a0fc486edb01fe9f042857cce4de912ce4

    But since there's only one function it's obviously the core function.

    So I have no idea how to make them understand it's a plugin and how to reach an human with a brain to actually fix this non sense.

    I have another plugin for SMS https://play.google.com/store/apps/details?id=org.leetzone.android.yatsewidgetsmsplugin

    That is the exact same feature but for SMS and this one get approved relatively easily after appeal and get lucky to have someone with a brain to validate.

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

    Backend/DevOps suggestion for a Flutter App

    Posted: 11 Jun 2021 10:55 AM PDT

    Hello, I'm new to backend development and so will like to seek your opinion on how to go about it for a flutter app. Thanks in advance for your inputs 😊

    I have some experience with cloud services, so want to know how to achieve all of the required functionalities for the project (possibly with a BaaS like Amplify or Firebase).

    To give an overview of the project: The app is built with flutter and serves a lot of short duration videos. The requirements are (including deployment). 1. Transcode videos to different formats (Amplify VoD, coconut, mux) 2. Store user data and watch history (Amplify, firebase datastore) 3. Serve transcoded videos to mobile devices (AWS cloudfront) 4. Authentication (AWS amplify, Firebase) (DevOps) 5. CI/CD of the app (Code magic, GitHub actions) 6. On device testing (AWS device lab, Firebase) 7. A/B testing (Firebase) 8. Monitoring (Amplify or Firebase analytics) 9. Recommendation system (Amplify or Firebase)

    I'm not sure what's the best approach to achieve this functionalities. Should I use different services for different purpose or can I achieve all of this with one cloud provider? What's the best strategy for long term scalability vs short term MVP rollout?

    Your inputs will help a newbie like me a lot 🙏🏻

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

    No comments:

    Post a Comment