• Breaking News

    Wednesday, May 18, 2022

    Android Dev - Enable mock locations missing from developer options

    Android Dev - Enable mock locations missing from developer options


    Enable mock locations missing from developer options

    Posted: 18 May 2022 03:53 PM PDT

    I'm trying to get a GPS spoofer to work, but it wants me to enable mock locations, but it appears that the option isn't there. I've searched google and have been unable to find a solution. I'm using a Galaxy S20 on Android 12. Any help finding where to enable this would be much appreciated.

    Screen shot of my debugging section of Developer Options https://imgur.com/a/WoYNiaV

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

    No downloads on all apps

    Posted: 18 May 2022 08:43 PM PDT

    I have published 5 apps to the play store three of which were games made with unity and two are simple apps. Now I understand that there is a lot of competition in the android development space, but I have 0 downloads on all of my games. Is this normal or is it most likely just what I have developed?

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

    Testing Geofences and Other Location based features?

    Posted: 18 May 2022 09:58 PM PDT

    I am trying to test some location based features for my app, which includes Geofences, but I am struggling to find documentation/resources on how to go about testing these features without physically moving from place to place to do so. Ideally, the testing should also be automated if possible.

    Has anyone tried to do something similar? Perhaps I missed something in the Android docs?

    submitted by /u/meaningless-human
    [link] [comments]

    Material Design 3, the third major iteration of Google’s Material design language introduced with Android 12, has been updated.

    Posted: 17 May 2022 10:26 PM PDT

    Material Design 3, the third major iteration of Google's Material design language introduced with Android 12, has been updated.

    Material design language introduced with Android 12, has been updated. Google now recommends that floating action buttons (FABs) be integrated into the bottom bar rather than cutting into them. They've also updated the design of the switch to show a checkmark within the toggle.

    https://preview.redd.it/ua1auujt66091.jpg?width=2500&format=pjpg&auto=webp&s=4d4b7ebf90b00f0f808d723f3b36897f8a3939aa

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

    Anyone knows of a MVVM guide/tutorial for Firebase Authentication, specifically if you're only using the Google and Facebook sign-in providers?

    Posted: 18 May 2022 09:29 AM PDT

    Users for my app can only sign-in with their Google or Facebook accounts. I'm using Firebase Authentication for this and I was wondering does anyone know of a good resource/tutorial/guide/video for creating a MVVM architecture for Firebase Authentication?

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

    How to set notification sound from server?

    Posted: 18 May 2022 04:43 PM PDT

    I'm using React Native. I'm trying to implement custom notification sound and this is what I have in on onCreate function in my MainActivity.java.

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { NotificationChannel notificationChannel = new NotificationChannel( "merchant_notification_channel", "My Takeouts", NotificationManager.IMPORTANCE_HIGH ); notificationChannel.setShowBadge(true); notificationChannel.setDescription(""); AudioAttributes att = new AudioAttributes.Builder() .setUsage(AudioAttributes.USAGE_NOTIFICATION) .setContentType(AudioAttributes.CONTENT_TYPE_SPEECH) .build(); notificationChannel.enableVibration(true); notificationChannel.setVibrationPattern(new long[]{400, 400}); notificationChannel.setLockscreenVisibility( NotificationCompat.VISIBILITY_PUBLIC ); NotificationManager manager = getSystemService(NotificationManager.class); manager.createNotificationChannel(notificationChannel); } 

    Initially I also had notificationChannel.setSound(Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getPackageName() + "/raw/new_order2"), att); in there and the custom sound works, but I figure if I take it out it would work if I send the filename from my server, but it didn't.

    I'm sending messages using firebase cloud messaging.

    import mobileApp from 'firebase-admin'; mobileApp .messaging() .sendToDevice( [deviceKey], { data: { type: 'NEW_ORDER', body: `Your location received a new order!` }, notification: { title: 'My Takeouts', body: `Your location received a new order!`, sound: 'new_order2', android_channel_id: 'merchant_notification_channel' } }, { contentAvailable: true, priority: 'high' }) .then((response) => { console.log(response); console.log(response.results); }) .catch((err) => { console.log(err); console.log(err.results); }); 

    I have a file called new_order2.wav in android/app/src/main/res/raw folder. I've tried it with extension and without, and it's still using the default notification sound.

    What am I doing wrong? Is it possible to dynamically set the sound file you want to use from the server?

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

    Good hosting for small Json file

    Posted: 18 May 2022 04:02 PM PDT

    What hosting do you use to store Json file for your app?

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

    How does launchers like Nova get current wallpaper without read external storage permission ?

    Posted: 18 May 2022 07:14 AM PDT

    I'm trying to apply the current wallpaper as my app's home screen background. But the read external storage permission is required. I noticed that Nova launcher gets the wallpaper without this permission. I tried WallpaperManager.getDrawable() and peekDrawable().

    Is there any other API/way to get the current wallpaper ?

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

    Looking to route the front-facing camera to HDMI

    Posted: 18 May 2022 02:28 PM PDT

    I have a unique use for the front-facing camera on an android tablet and will buy a certain model if it allows me to do this.

    Is it possible to route a live stream of video from the front-facing camera of an android tablet to HDMI?

    I'm looking to have this happen in the background while another app is open and have a consistent stream of what the front-facing camera sees.

    Backstory: I'm creating a mask that will have the tablet in front of my face looping a video, id like to stream / or hardwire using HDMI or VGA video output to video glasses that I will have on behind it and be able to see where I'm walking.

    If I'm posting in the wrong area please let me know, apologies in advance!

    Thank you!

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

    How many of you are really strong with gradle?

    Posted: 17 May 2022 02:26 PM PDT

    Recently became a lead engineer and my gradle knowledge goes as far as configuring Android related things.

    I feel like a huge imposter because I don't even know how to mess with gradle well enough to do some elaborate configs like I see in some projects.

    I tried sitting down and going through gradle docs but man it's overwhelming. Anyone have any really good tutorials I can run though to strengthen my gradle skills?

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

    What Features Do I Need To Add In My Productivity & Energy Mobile App?

    Posted: 18 May 2022 05:30 PM PDT

    Hi, my name is William.

    I'm in the process of creating a mobile app to help people maintain a consistent energy throughout the day & complete tasks with more productivity.

    I want to find out more about what potential users need to be more productive and what can help them.

    It would be amazing if you could complete this 1 minute survey. Just as an incentive, I'll give the app 30 days free to everyone who takes the survey. Cheers!

    https://forms.gle/Cne6SEnxcEowXHu2A

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

    Suggestion for capturing panoramic image

    Posted: 18 May 2022 10:55 AM PDT

    I want to capture panoramic images from phone using camerax api and i dont find any documentation for that. i do have other options in mind, like capturing images bit by bit and then stitching it using opencv but it seems expensive on cpu. So can any of you suggest some alternate way to deal with this problem?

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

    Navigation Drawer and Bottom Navigation projects templates

    Posted: 18 May 2022 04:45 AM PDT

    Is there any project template that uses Navigation Drawer and Bottom Navigation in the same activity? I'm trying to implement them at my project but I'm really struggling with it.

    Thanks in advance.

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

    Changing contents of a Vector Drawable?

    Posted: 18 May 2022 10:35 AM PDT

    Was wondering if there was a way to manually change the contents - in code - of a vector drawable.

    For example, say I have the following drawable. (This is a truncated/altered copy of Google's "crosshairs" vector drawable:

    <vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
    <path android:fillColor="#000" android:pathData="..." />
    <path android:fillColor="#000" android:pathData="..." />
    </vector>

    So lets say that I want to display this drawable in a button, but want that first path to be blue. (#0000C0). I realize there's the tinting, but that would do the whole image, and not just the path I'm looking for.

    I can create a copy of the drawable, but it seems like there would be a better way (especially when, for example, using map markers and you have 5 or 6 difference colors, being able to adjust the color on the fly instead of having 6 copies of the same file with only one or two bytes changed..)

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

    so i have an App that i just finished freelancing the ui /ux. it hasnt been officially created but looking to get idea on the next steps to take. Any feedback will be appreciated

    Posted: 18 May 2022 08:59 AM PDT

    Most Efficient Way of Testing Layouts on Various Aspect Ratios/Pixel Densities/Viewport/Resolutions

    Posted: 17 May 2022 10:19 PM PDT

    There are so many different aspect ratios, screen sizes and varying pixel densities across all the devices in the Android ecosystem. I'd like to know... what are some ways you all have been testing out how your apps behave on the various types of devices out there.

    Especially with the way the emulator is in the newer Android Studio, it's a drag having to tab through each of the different emulators that i've set up to see how they look.

    Looking for any tips/tricks for handling a good amount of cases would be awesome.

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

    My ViewModel is being recomposed on changing a mutablestate values

    Posted: 18 May 2022 03:15 AM PDT

    LoginScreen() is my composable function and i am trying to use a textfield inside it which takes email data from my viewmodel.Everytime my email values changes, LoginScreen function is recomposed and reinitialises my viewModel which results in no change in my textfield. I am wondering why is this happening and how to fix it.

    More from :- https://stackoverflow.com/questions/72286945/my-viewmodel-is-being-recomposed-on-changing-a-mutablestate-values

    Please help!

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

    Cannot resolve method even though it's defined in AndroidStudio.

    Posted: 18 May 2022 05:40 AM PDT

    I know this is an extremely stupid question, but I'm going through a fast paced Java class in university and I'm really struggling.
    I have a class I've defined.

    public ListViewAdapter(Context context, List<Model> modellist){ mContext = context; inflater = LayoutInflater.from(mContext); this.arrayList = new ArrayList<Model>(); this.arrayList.addAll(modellist); } 

    In this class I have a method called filter:

    public void filter(String charText){ charText=charText.toLowerCase(Locale.getDefault()); modellist.clear(); if (charText.length()==8){ modellist.addAll(arrayList); } else { for(Model model:arrayList){ if (model.getTitle().toLowerCase(Locale.getDefault()).contains(charText)){ modellist.add(model); } } } notifyDataSetChanged(); } 

    I then have another class in which I declare an object of type ListViewAdapter.

     listView=findViewById(R.id.listView); adapter=new ListViewAdapter(this,arrayList); listView.setAdapter(adapter); 

    And try using the method of the object ListViewAdapter:

    adapter.filter(s); 

    But it doesn't work and I get this error:

    Cannot resolve method 'filter' in 'ListAdapter' 

    Does anyone have any idea what I'm doing wrong? I'm sorry, I know it's a stupid question, I'm a complete novice and this is a five day class instead of a whole semester class and I don't exactly have an idea what I'm doing. Any help is appreciated.

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

    adding item from recylcerview into activity

    Posted: 18 May 2022 05:37 AM PDT

    Hi guys, in the beginning i want to apologize for my bad english but im currently working on an application, i have 2 firebase tables (propertys and tennants) sorted by the logged user (doesn't even matter for my problem). So i have 2 possibilities in the navigation drawer, i can add and view propertys, view is enabled in the recyclerview, adding is done by fab button, both RV and fab are in an fragment, same goes with tennants. I can click on each of items and view all the details about them in an activity, so what i want is when i click on an property item and it opens activity where my property details are, i have a button that should add tennats to that specific property and list them in that activity (property details). You guys got any solution? I tried onClick of that button to open tennants recyclerview and select multiple items and then onBackPressed to try to save them but i simply cannot get it working, then i tried with alertCustomDialog where it should list all the tennants (part that iam not able to do) and with checkboxes select tenants that i want to, please if anyone can help or has some clue how to do this, please HELP! :=)

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

    SDK for Easily Deploying Machine Learning Models (link in comment)

    Posted: 18 May 2022 05:13 AM PDT

    Hi! I have launched Edge Store SDK that can easily deploy tflite models to android devices. Link to the sdk documentation: https://api.edgestore.ai/docs/sdk/android/

    Source is hosted at maven central at https://mvnrepository.com/artifact/ai.edgestore/engine/1.0.1-alpha02

    Main features:
    Hosted on maven central - easy to use and deploy
    Run and use any ML model in 4 lines of codes

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

    2022 Stack Overflow Developer Survey

    Posted: 17 May 2022 07:30 PM PDT

    How to implement scroll behavior with audio playing on cue like that lyrics display on music apps in my textview?

    Posted: 18 May 2022 04:06 AM PDT

    I'm trying to implement a karaoke like class. When the user clicks on any item from the list it opens an audio player with the lyrics displayed that should scroll according to the audio position.

    All my audios are in the raw folders. I use parcelable in my model class to send the text onclick according to position.

    I tried using the code here [https://github.com/starrydeveloper/karaokely] as a guide. But I get stuck when I have to setText for each lyrics that's obviously parceled as one. So I can't individually scroll them. I tried using Lyricview library too.

    Any help will be much appreciated thanks. Here's my code :

    Model class:

     public class readhelper implements Parcelable { int image,audie; String title,title2,lyric; public readhelper(int image, String title, String title2,int audie, String lyric) { this.image=image; this.title=title; this.title2=title2; this.audie=audie; this.lyric=lyric; } //rest of code 

    I get the strings like this in oncreate of my player activity

     intent=getIntent(); readhelper ww=intent.getParcelableExtra("readlist"); String tt= ww.getTitle(); String ds= ww.getLyric(); TextView txt=findViewById(R.id.audiottle); TextView dsc=findViewById(R.id.lyrics); txt.setText(tt); dsc.setText(ds); dsc.setMovementMethod(new ScrollingMovementMethod()) 

    Audio play thread and on click method. It's here I don't know how to get the strings so it can't scroll at the same time the audio is playing and highlight the current line being read. Just like a music player displaying lyrics.

     private View.OnClickListener pausePlay= new View.OnClickListener() { @Override public void onClick(View v) { if(!playPause){ play.setImageResource(R.drawable.ic_pause); if(init) startNewSong(); else { if(!Player.isPlaying()) Player.start(); } playPause=true; }else { play.setImageResource(R.drawable.ic_play); if(Player.isPlaying()) Player.pause(); playPause=false; } } }; public void startNewSong() if(Player!=null){ Player.stop(); Player.release(); readhelper ww = intent.getParcelableExtra("readlist"); int audio = ww.getAudie(); Player= MediaPlayer.create(getApplicationContext(),audio); Player.start(); init=false; Player.setOnCompletionListener(this); }else { readhelper ww = intent.getParcelableExtra("readlist"); int audio = ww.getAudie(); Player = MediaPlayer.create(getApplicationContext(), audio) Player.start(); play.setImageResource(R.drawable.ic_pause); seekBar.setMax(Player.getDuration()/ 1000); init=false; Player.setOnCompletionListener(this); } } 

    I'm a newbie so please provide some explanations with code. Thank you for taking the time and reading up to that point.

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

    is there any service like buymeacoffee to integrate in our apps

    Posted: 17 May 2022 09:58 PM PDT

    I love the concept of buymeacoffee where supporters can give some coffee ( money) either one-time or as a subscription

    I really want to implement something like in my app

    Where users can give some money to a creator but only one time

    And the creator can withdraw the money after a certain threshold ( something like eg 100$) but there will be percentage share between the individual creator and me

    For eg whenever they withdraw i will take kind of 5% of the amount excluding taxes

    Is there any service available to implement this kind of thing in apps or website

    If not how can I create , because i really want this in my app ( only one time payment not the subscription kind of payment )

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

    Anyone was able to transfer AdMob to another account belonging to the same person?

    Posted: 18 May 2022 01:27 AM PDT

    Anyone was able to transfer AdMob to another account belonging to the same person?

    My AdMob is associated with my free Google Workspace account. Since Google recently decided to start charging for previously free Google Workspace accounts, I have decided to move AdMob to my personal google account and close the workspace one.

    I have tried to add another administrator under AdMob's "Settings - Users", invitation email is sent and received on the other side. However, when I click on invitation link I am receiving the message

    > Your AdMob invite is no longer valid
    > Ask your AdMob administrator to resend the invite.

    Invitation status in AdMob console stays "Pending".

    I have retried this several times and each time the outcome is the same.

    I have contacted AdMob support more than two weeks ago. On their first response they suggested that I repeat the whole process again. I followed their instructions and replied with the same result. AdMob responded a week after that claiming that I haven't accepted the invitation. I repeated the procedure again and replied to them with the screenshot of the error message. It took another week for AdMob support to reply to that message, again repeating what they said earlier - that the invitation is still pending and I need to accept it. Apparently, they are lobotomized.

    Anyone has a suggestion or had the same problem and managed somehow to solve it?

    Thanks in advance for your attention.

    https://preview.redd.it/vomgi9by37091.jpg?width=560&format=pjpg&auto=webp&s=ba61188a58f4630cd2edd3ee29714cfd742f43c7

    submitted by /u/Present-Effective-52
    [link] [comments]

    No comments:

    Post a Comment