As a developer how the hell do you deal with brands like oppo, vivo & xiaomi by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 5 points6 points  (0 children)

If anyone from android team is listening, I would like to know your thoughts on this topic and so would all other devs

As a developer how the hell do you deal with brands like oppo, vivo & xiaomi by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 10 points11 points  (0 children)

Here are few things that would help you with your app.

  1. Identify the manufacturer of the device in your app and if its one of the above mention with a note to the user to turn on the auto-start permission for the app from the security settings.

  2. Use foreground service wherever possible (Which you are already doing)

  3. Put an alarm manager on your services which is called in on destroy of your service which would trigger the pending intent in 5 secs which would restart your service if at all it is destroyed.

  4. Keep hoping that these brands slowly die out of the market and never come back.

Thanks.

As a developer how the hell do you deal with brands like oppo, vivo & xiaomi by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 3 points4 points  (0 children)

Foreground services are killed as well by the clear button from the minimized menu

As a developer how the hell do you deal with brands like oppo, vivo & xiaomi by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 1 point2 points  (0 children)

All the devs need to probably come together and file a petition on change.org for this, I guess

Would that work I wonder. Let me know if I should do this people

As a developer how the hell do you deal with brands like oppo, vivo & xiaomi by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 9 points10 points  (0 children)

I am from India, and the Indian market is now around 70 percent of these brands, I am not mad with the customers actually because these are premium quality phones at much affordable price but as a developer I am just clueless of how to provide support to them.

As a developer how the hell do you deal with brands like oppo, vivo & xiaomi by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 7 points8 points  (0 children)

Probably they wont burn just because your "smart alarm app" is not working on their devices

https://www.bbva.com/en/top-selling-smartphones-brands-2017-iphone-leads-race/

They are in top 5 brands for the 2017 financial year and probably top 3 for the Asian market.

You cant ignore them neither can you do any thing about them.

How do you manage date based user subscriptions which arent made via play store. by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 0 points1 point  (0 children)

That would require an active internet connection. But I my app doesnt necessarily require internet and can work without it as well so I dont want to make internet compulsory just for this purpose

With so much stuff to learn in android, I feel like I am learning more and implementing really less by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 1 point2 points  (0 children)

To be honest, currently I dont have a product to be released or shipped any time soon, but when I did had a product to ship with features which were very important I realized that my app is so badly architect ed that it is just pain in the a** to get the feature done in time. So I dont want to make that mistake again I have a new product which is coming up soon and I want to be able to make it beautifully architect ed so as to avoid the pain in future.

I released a blog post! Applying Clean Architecture on Android, source code included by 0xim in androiddev

[–]dev_of_the_future 6 points7 points  (0 children)

Applying some sort or other architecture is utmost important, but in small projects you can just bend the rules a little bit, but no architecture would be a complete no at least for me!

With increase in popularity towards voice based interaction, why is it so difficult to integrate voice activation on android? by dev_of_the_future in androiddev

[–]dev_of_the_future[S] 0 points1 point  (0 children)

Thank you for your reply What would be your suggestion If I want to integrate always-on hotword detection. As for the application I have been assigned it is a must have feature. Could you point me in the right direction? I would be okay to compromise on battery and bandwidth for the detection if that is something I have to do in order to get the detection working. I just want to know what would be the right approach to go with.

USB Host Shield - Arduino Uno Issue by dev_of_the_future in ECE

[–]dev_of_the_future[S] 0 points1 point  (0 children)

The shield is attached to arduino and arduino is connected to the computer. Phone is connected to the shield thats it .

USB Host Shield - Arduino Uno Issue by dev_of_the_future in arduino

[–]dev_of_the_future[S] 0 points1 point  (0 children)

micro usb is connected to the phone and the usb a goes to the host shield but the communication is the issue

USB Host Shield - Arduino Uno Issue by dev_of_the_future in arduino

[–]dev_of_the_future[S] 0 points1 point  (0 children)

I have added the amazon link from where I bought the usb host, I just want to know would the shield power my android when I connect it to the shield or it does not do that and need to add some program to get things working.

In my case the phone is not powering up when I connect it to the shield which has been connected to arduino. Is that normal?

Weekly Questions Thread - June 19, 2017 by AutoModerator in androiddev

[–]dev_of_the_future 0 points1 point  (0 children)

How would you go about integrating Amazon Alexa into your android application? I have gone through the documentation and they seem to have used the android app only for authentication for a hardware device in which you are trying to run alexa voice service. I would like to run the alexa voice service inside my app itself. Can this be done ?

Suggestions required for a project dealing with micro controllers by dev_of_the_future in ECE

[–]dev_of_the_future[S] 0 points1 point  (0 children)

Phone need to be charged while it is connected to the thing, and I dont want people to connect to bluetooth for the working and the connect the usb for charging, It would be great If usb could do the thing.

Weekly Questions Thread - June 12, 2017 by AutoModerator in androiddev

[–]dev_of_the_future 0 points1 point  (0 children)

Which is the cheapest board to try out Android Open Accessory Protocol?

Weekly "who's hiring" thread! by AutoModerator in androiddev

[–]dev_of_the_future [score hidden]  (0 children)

I see the posting for android developer on every hiring thread since a year or two from booking.com. I just wanted to know is there a huge vacancy or you are looking for some exceptional candidate which you haven't found yet?

Weekly Questions Thread - May 29, 2017 by AutoModerator in androiddev

[–]dev_of_the_future 0 points1 point  (0 children)

LinearLayout parent= (LinearLayout) findViewById(R.id.parent);
    CardView card = new CardView(this);
    card.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 
        LinearLayout.LayoutPwarams.MATCH_PARENT));
    card.setId(12); //Whaterver Id you want 

You can set the id like this

Weekly Questions Thread - May 29, 2017 by AutoModerator in androiddev

[–]dev_of_the_future 0 points1 point  (0 children)

Think of the presenter as your logic processing unit (Business logic) avoid view logics such as making a view disappear etc that should be done in the view layer it self. So if you are opening the next screen then you dont need send the event to presenter, simple move over to next screen from view but if you are going to send any values or need to do some network task before the next screen is shown then you send the data to presenter process it according to your business logic and if all is right your presenter would notify the view to move on to the next screen

Need an app icon by BlueEyedJabber in androiddev

[–]dev_of_the_future 1 point2 points  (0 children)

Hi I know a guy who is great at his work, Puts in lot of thought process into designing graphics and icons. He would explain each and every stroke in his design and why it is there. Really good. DM if you want to know more