Posts by Kauan Kubaski • 477 points
40 posts
-
0
votes2
answers325
viewsA: Error to call Activity
It wouldn’t be because you wouldn’t click on something "empty". Try to set the image and or button by your id, internally to onCreateView(), using onClickListener() (this way is sure it will work):…
-
0
votes0
answers33
viewsQ: Call error
I’m using the Fragment and making adaptations, as in getIntent() ... Inserting getActivity() as was explained by a user, in other times that was informed was useful and worked, but this time an…
-
1
votes0
answers66
viewsQ: Use Service to continue player operation when class changes
I want to use for when to change Fragment continue running the audio and when to class the ! isPlaying keep popping up the requested pause. How to do this with Service? import android.app.Fragment;…
-
1
votes2
answers1384
viewsA: How can I create a stream from a video that’s on the server?
Create an Activity to open the layout with a VideoView and another to work with streaming with its own layout as well: private ProgressDialog carregando; private Context context; private VideoView…
-
2
votes1
answer1498
viewsA: Android Web Radio Mobile App
It had also been fought in the beginning, but after studies I found two solutions, both I like, I have tried both, but the second seems to be more stable by the implementation offered in the line of…
-
1
votes2
answers988
viewsQ: Message when user is exiting application
I know I can use the AlertDialog for this, but without creating button, only when the user is pressing the back to exit have appear an alert? Like, when it comes out (it involves the Android system…
-
0
votes1
answer42
viewsQ: Class context problem
In line 93 of "menu1_Fragment" the following error appears: "Streamingmediaplayer (android.Content.Context, Imagebutton) in Streamingmediaplayer cannot be Applied to…
-
1
votes1
answer100
viewsQ: How to adapt an Activity to Fragmentactivity
I’m making a NavigationDrawer, and then I have to make some adaptations, because I’m extending Fragment, but I need to use int’s for Activity to work, I tried calling inside OnCreateView the…
-
2
votes1
answer313
viewsA: Fragment:error inflating class Fragment
I had to change the theme to Theme.Holo.Light.Darkactionbar conforma was declared in Stiles.xml and automatically selected in the design.
-
2
votes1
answer313
viewsQ: Fragment:error inflating class Fragment
I’m using Fragment to do the navigation "drawer", ie on topics with options, but I’m found this error, but I’m not sure what it is, follows what it says in logcat: 12-22 20:08:25.774…
-
2
votes2
answers1986
viewsA: JAVA - Draw Polygons (triangles, pentagons)
And if instead of using coordinates, consider the vertex of it, so creates a vector that increases with the amount, but then you should consider the angles, sides from a point. Using the point. Here…
-
0
votes2
answers1706
viewsA: Capture user name logged into machine via Web Application
Local Storage that can be used in multiple browsers. Or store like any other variable by checkbox even in your php code with save option, creating a button with the option to remind it.
-
2
votes0
answers86
viewsQ: Fragmenttransacion with Fragment Activity
I’m using the Navigationdrawer to display the page options, I adapted one of them to Fragmentactivity for the call of some functions right. But when declaring the transaction of the screens, it does…
-
0
votes2
answers376
viewsA: Pinch android zoom
Didn’t you try to edit the xml image which is easier? You can change the wrap_content values to a pixel value. Example: ''500.0 px'' <ImageView android:id="@+id/img"…
-
1
votes2
answers847
viewsA: Generate PDF from filters in Cakephp
Do the download of the TCPDF. Extract to folder, as example by putting in app/vendors. A directory with the php extension will be created. It is necessary to configure it. Something like this:…
-
0
votes2
answers7861
viewsA: Creating and Validating Java Digital Signature
Steps executed to verify file integrity (the steps my java program needs to perform): Submit the received file to the MD5 unidirectional function and store the result (a 16 byte hash). Decrypt the…
-
0
votes2
answers3316
viewsA: How to open a folder on android
Come on, check this other way (see if it works). public void abrirDiretorio() { File pasta = new File(Environment.getExternalStorageDirectory().getPath() + "/Pictures/"); Uri local =…
androidanswered Kauan Kubaski 477 -
2
votes3
answers325
viewsA: Prevent the system from locking during a batch e-mail
This would be asynchronous (not at the same time). Use the ELMAH.MVC bug report, and try this example: public void SendThat(MailMessage message) { AsyncMethodCaller caller = new…
-
1
votes1
answer1348
viewsA: How to create a List and Sublist?
Note here: import java.util.ArrayList; import java.util.List; public class SubListaExemplo{ public static void main(String[] args) { ArrayList arrayList = new ArrayList(); // Os elementos vão aqui…
-
0
votes2
answers2030
viewsA: Customize Youtube Player in Iframe
Yes. There is the documentation which is based on player parameters. With autohide, you can hide, for example, the progress bar. autoplay serves to start the video automatically or not. Colors…
youtubeanswered Kauan Kubaski 477 -
1
votes1
answer1775
viewsA: Error importing Eclipse project to Android Studio
I managed to do the adaptation manually. First, I just opened the project. And in Android Studio itself I created a file called build.Gradle (what you needed in the project root folder). Code:…
-
1
votes2
answers3179
viewsA: Read a received SMS
It may be necessary to build it through an object vector. Note this code: import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class ReceiveSMSActivity…
-
1
votes1
answer150
viewsA: How to use robolectric in Android Studio
First, include the jar in your project dependencies. Then use the annotation RunWith (Available in Junit4): Example: @RunWith(RobolectricTestRunner.class) public class TesteRobolectric { @Test…
-
1
votes3
answers6632
viewsA: Float button
Utilize FloatingActionButton, and use the graphic part ShapeDrawable. Another simpler way to change the image or button, would be through the setImageResource, according to the image make certain…
androidanswered Kauan Kubaski 477 -
1
votes1
answer1775
viewsQ: Error importing Eclipse project to Android Studio
Every time I import my project "Radio__santana" from Eclipse to Android Studio, returns this error: * C:\Users\Cliente\AndroidImageSlideShow\AndroidManifest.xml: Invalid XML file:…
-
1
votes1
answer290
viewsQ: Error running project: Cannot set up guest memory 'android_arm': Invalid argument
I am unable to run my application, first get out a corrected memory error so as not to exceed the maximum in MB. Now, out comes this mistake I didn’t quite understand, saying that the Arm is…
-
0
votes1
answer134
viewsA: Swipeevent for Android app
Try to use GestureDetector for top and bottom movements, instead of SwipeEvent, example: package com.exemplo.gesture; import android.app.Activity; import android.os.Bundle; import…
androidanswered Kauan Kubaski 477 -
0
votes2
answers1134
viewsA: Hide Menu Navigation Drawer when choosing item
Could disable Actionbar’s Fragment specific. Another thing I found that would be, in a way, a way not to appear the Drawer: the solution is to use the setVisible and call a method to restore the…
-
0
votes2
answers1104
viewsA: Doubt how to configure Spring Data with Hibernate
Related to JPA, are the "dependencies" (in Portuguese): DEPENDENCY MANAGEMENT SYSTEM <dependencies> <dependency> <groupId> org.springframework.data </groupId>…
-
0
votes1
answer117
viewsQ: Null pointer launch
Is I am using a code in my application that was working normally, but suddenly when I went to test with the emulator gets launched null pointer error on line 32, and also the method definirVolume()…
-
6
votes1
answer505
viewsQ: How to increase the text size of a Webview?
My app reads RSS feeds. but what bothers me is the letter that is small, I want to leave a little bigger that is visually "right" in a standard way. It’s like this: But I want to make it bigger to…
-
-1
votes1
answer703
viewsA: https redirect without www with apache and startssl
Just take the www and also http. Example: meudominio.com
-
1
votes0
answers198
viewsQ: java.lang.Runtimeexception: Unable to start Activity
My logcat is displaying a pointer error to start the activity Ouvir I can see but I didn’t find the error. Exiting these messages when I run the application: 11-27 22:09:40.631:…
-
0
votes2
answers1255
viewsA: Add subitem to my listview
You can create a map assigned to the text id. Example: List[] [PR("Paraná"), SP("São Paulo"), RJ("Rio de Janeiro"), DF("Distrito Federal") ]; And the output (output): List<Map<String,…
androidanswered Kauan Kubaski 477 -
1
votes1
answer900
viewsA: How to create administrator profile from that code?
Make another one of this model, for example "Administrator", allowing you access to it. boolean permite; public void autentifica(DaoUsuario user, DaoAdministrador admin) { if (permite) {…
-
-1
votes2
answers760
viewsA: How to list and monitor the apps that are installed and/or in use?
Part of the Android System, related to Java Lang:see this link that talks about the methods, interfaces...:http://developer.android.com/reference/android/provider/Settings.System.html. Clicking here…
androidanswered Kauan Kubaski 477 -
0
votes0
answers80
viewsQ: Pointer error in a table fill method
Apparently it is to be right, but when I run the following errors: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at bibl.PesquisaSimpl.preencheTabela(PesquisaSimpl.java:188)…
-
0
votes0
answers161
viewsQ: How to use another class for the same layout
It is as follows: I made adaptations in the codes in order to work the Slider Menu style so I had to use the Fragment interface, as shown in the code below, but in this same layout in this case is…
-
0
votes1
answer99
viewsQ: Problems when defining the layout
I am unable to make you accept this layout definition regarding the size of the Web View: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"…
-
1
votes1
answer102
viewsQ: When I press play button nothing happens
I don’t know why it’s not working... Radioplayer.java package com.example.santanateste; import java.io.IOException; import android.app.Activity; import android.media.MediaPlayer; import…
androidasked Kauan Kubaski 477