Questions tagged as 'android'

1
answer

Web page does not open in my WebView [duplicate]

I made a browser using WebView , but when I call loadUrl(); it opens the page in the default Android browser. How do I open it inside my browser?     
asked by 08.06.2016 / 15:08
1
answer

Resources $ NotFoundException: Resource ID # 0x7f060007 type # 0x12 is not valid

When finished creating a listFragment and calling it in main apk ends giving the error below: HereismyListFragment:ArrayList<HashMap<String,String>>data=newArrayList<HashMap<String,String>>();SimpleAdapteradapter;String[...
asked by 07.06.2016 / 17:09
1
answer

Check if the webview is loaded

I need to check if the webview is loaded to be able to execute a javascript function that is in the webview, but I do not know how to check if the webview is already 100% loaded. follow the code: WebView webView = (WebView)findViewById(...
asked by 22.06.2016 / 02:48
1
answer

Force keyboard opening

I have this dialog in my application public void alertaLocalizar(View v) { LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = inflater.inflate(R.layout.alerta_comum, null); D...
asked by 13.06.2016 / 21:07
1
answer

How to properly position a piece of View created in Java?

After loading my View , if the user clicks the button then a menu appears on the front as shown in the image: ThetopmostlayerofthismenuisFrameLayout,IwouldliketoleaveitwithGravityRIGHTandBOTTOM,butIdonotknowhowtopassthesefeaturesto...
asked by 17.03.2017 / 15:41
1
answer

How to send a json from an Activity to a Fragment?

I have an activity that adds a die in JsonObjetct. And as seen in the following code, I take it as string, but, my doubt, how do I by this JsonObject in the fragment so I can work with it, as Json? Follow the Activity code: ......... ob...
asked by 16.03.2017 / 18:17
1
answer

Does Admob only need an XML code?

Does Admob only need this code or does it need some created class?     
asked by 22.03.2017 / 16:20
2
answers

Send data from one method to another in the same activity

I know that to send data from one activity to another is as follows: String value = filename; Intent intent = new Intent(getApplicationContext(), ReceberNome.class); intent.putExtra("nameFile", value); startActivity(intent); And to receive:...
asked by 25.07.2016 / 02:27
1
answer

How to get the pixel color touched on the screen on Android? (Without using images)

I'm developing an application for calligraphy and what I'm looking for is the following: I intend to put the letters on the screen and I want to detect if the user is touching the screen inside or outside the area of the letter / character (b...
asked by 26.03.2017 / 15:50
1
answer

Why should I keep audio and video files inside the raw folder?

On Android, you have within the res directory several subdirectories, apparently separated for better organization. Sometimes when you want to put a new audio, for example to touch, different from the standards of the device, it is advisa...
asked by 25.03.2017 / 21:16