Posts by dariodm • 424 points
20 posts
-
-1
votes2
answers749
viewsA: How to take the shadow off a Toolbar?
Two things may have happened: 1- You are not creating your theme from one that is Noactionbar so by default it will appear as Actionbar regardless of having color or not the shadow will appear. The…
-
1
votes1
answer231
viewsA: Start Fragment class of another Fragment class
@Maroni the problem exists because you called the method Startactivity and instead of an Activity you passed your Fragment Ride. An Fragment can only exist within an Activity and this can only be…
-
1
votes1
answer1209
viewsA: Is there any object recognition framework for Android?
To recognize objects and a little complicated but not long ago Google made available in one of the Google Play services updates the Mobile Vision API where some of the tools contain face detection…
-
1
votes1
answer1289
viewsA: How to take received data in JSON and store in a class
To convert data from JSON to object, I advise using the Gson that Voce is using or Libraries like the Retrofit that allow you to request and map Json directly to an object. But I suggest that in a…
-
0
votes1
answer63
viewsA: How to make an image reference?
For you to do this you would first have to do with what the user must have that folder with the images you want to show. As you want to make a simple app and a demo, I advise you to do the opposite…
-
3
votes1
answer1528
viewsA: Save images in the database and then show in a listview
I do not advise you to save the image directly in the data field but save the image in a folder within your application and copy and save the Uri(Path to image) in the Database the same way Whatsapp…
-
0
votes2
answers722
viewsA: Return to Fragment without creating it again
To solve this problem you can solve by creating Fragment and adding it and not putting in any container by doing: public static final String FRAG_A_TAG="fragmentA"; FragmentManager mFragManager =…
-
0
votes1
answer1453
viewsA: Improved Application to Server Communication
To connect to the server, Voce can use Volley and the OKHTTP library. To make simple requests you can see in the post HERE In the case of Whatsapp that Voce spoke would risk saying that on their…
-
0
votes2
answers4578
viewsA: Android Toolbar: center title
My opinion is that you do not seek to put the text this way because it will not according to the specifications of spaces and positioning defined here. Always try to follow the guidelines and will…
-
0
votes2
answers162
viewsA: Android getIntent error
I tried to do a similar implementation today and to resolve, in the second Activity I did Intent intent = getIntent(); Bundle bundle =new Bundle(); bundle= intent.getExtras(); Byte valor =…
-
4
votes3
answers126
viewsA: Is it safe to keep the context of an app in a Singleton?
It is not a good idea to have even one Singleton context variable because there are several context types and each of them allows something that another might not allow. One of the best ways to at…
-
4
votes1
answer14245
viewsA: How to change the application version in android studio?
In android studio inside the build.Gradle file you will find a code that neither the one below : defaultConfig { minSdkVersion 8 targetSdkVersion 19 versionCode 1 versionName "1.0" } where…
-
1
votes2
answers4898
viewsA: How to update the app version on Google Playstore?
you change in the demonstrations and put android:versionCode="n+1" android:versionName="n.0.1" and then generate the apk with the Keystore you used the first time. versionCode in manifestations must…
-
0
votes2
answers1729
viewsA: How to make components responsive in various screen sizes
To make your layout responsive, you’ll need to create different sources for the different configurations you want. You can create folders within the res folder by following the following…
-
1
votes2
answers5176
viewsA: How do I put an external source in my app?
To read external fonts, I put the fonts in the root of the Asset folder and created a "Fontchanger" class that only has methods for changing fonts. All methods are static so you don’t need to…
-
1
votes1
answer215
viewsA: Giving permission to another application to access my package
I believe the biggest problem is making it impossible to read the file and its location. The solution I found when I needed to read a file saved with my project was to put the file in the folder:…
-
1
votes2
answers258
viewsA: App crashing when an image is selected
In order to be able to capture an image by camera, Voce must first create an input by the code similar to yours : private static final CAMERA=1; //o actionCode que voce usara no onActivityResult…
-
1
votes1
answer5066
viewsA: SHA1 generation - Another way to do it?
You can generate the key by eclipse by going to the menu bar and: Window(window)->Preferences(preferences)->Android->Build and Voce will see a field filled with SHA1 key. Look at the…
-
1
votes3
answers2188
viewsA: How to implement the fixed Actionbar below, android version 2.x or higher?
As stated in the previous answer, there are guidelines that specify the exact position of Actionbar. The application whenever you run on devices with a smaller screen will try to decrease the items…
-
2
votes3
answers2797
viewsA: How do I use Actionbaractivity in an application that runs on android 2.2 or higher?
After you created a new project, the best way I found in the eclipse was to do: File->import->existing Android code->navigate to ".. sdk extras android support v7"->select the directory…