Questions tagged as 'android'

1
answer

Multi-platform java project, how to make classes depending on the environment

I am trying to execute depending on the environment, in a previous question I was raised to use polymorphism as you can see in the following question . The problem I have is that in the android environment I need to execute the command getAppli...
asked by 06.02.2018 / 22:19
2
answers

Error in Android studio layout [duplicated]

I'm doing an app on Android but I have the problem that when I run the app on my device I throw all my objects in the same space. Do you think you know what is due? Here is my XML <?xml version="1.0" encoding="utf-8"?> <and...
asked by 01.02.2018 / 23:03
1
answer

Pass data between two fragments [duplicate]

I'm doing Navigation Draw Activity , with fragments inside. The fact is that I have several fragments. It is a long form that I divided into several fragments, and I want to send the data I receive from editText of the firs...
asked by 06.12.2017 / 16:26
1
answer

SERVICE OF NOTIFICATIONS STOPS

Good morning, I need help because I have been thinking about this issue for a while and I can not find a solution for my case. Haber if you can help me out. My application is a work calendar in which users can put reminder notes on the date t...
asked by 11.01.2018 / 20:52
1
answer

Share mp4 file generated by my app to social networks. share intent

I need to share my mp4 video file generated by my app, which acquires name with a ( System.currentTimeMillis /1000 ). the share action must choose that last generated file to share it in social networks. I leave the initRecorder...
asked by 22.05.2018 / 19:06
1
answer

I have the following error, which I can not solve in the andorid studio xml

I am doing an App in Android Studio and it throws me the following error that seems to be a failure to inflate the view in my XML file but I can not give it a solution. This is the XML <?xml version="1.0" encoding="utf-8"?> <a...
asked by 26.05.2018 / 15:20
1
answer

Change tabs style in TabbedPage in Xamarin.Forms

I have been trying to change the style (color background, color of letters and indicator) of the tabs in Xamarin.Forms , I have tried to make my own custom render but it seems that it does not work. p> What works is changing the colo...
asked by 30.04.2016 / 22:30
0
answers

Kivy, save contents of the Canvas in a StringIO

I am trying the following code ( link ): from random import random from kivy.app import App from kivy.uix.widget import Widget from kivy.graphics import Color, Ellipse, Line class MyPaintWidget(Widget): def on_touch_down(self, touch):...
asked by 01.05.2016 / 17:42
1
answer

Calendar on android using Date Picket

I am trying to add a calendar to my application, my code is as follows: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_calendar); btn_fecha = (Bu...
asked by 21.05.2017 / 21:53
1
answer

I need to place a MenuItem by default checked

I would like the Agrocentro item to be by default and setChequed only at the beginning But I only get the item if it is by default but not checked in the drawer. DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); Acti...
asked by 04.06.2017 / 21:58