Click here to Skip to main content
15,894,265 members
Everything / Mobile Apps / Android

Android

Android

Great Reads

by ridoy
A brief explanation of application development for Android Wear, helpful for every beginner and intermediate android developer.
by Safak Tarazan
Usage of services, alarm manager and broadcast receivers
by Daniel Vaughan
Create best-in-breed cross-platform MVVM apps using Calcium for Xamarin.Forms.
by raddevus
Steps for building a device you can add to your existing garage door, which implements an atmega328, bluetooth (hc-05) and relay module which will allow you to open your garage door from any paired Android device.

Latest Articles

by JudyL_MD
Code sample for passing encrypted compressed data between Windows and Android
by Ayush Vijaywargi
Enhancing Android app stability by integrating LeakCanary with RxJava for efficient memory leak detection and resolution.
by Suhagkumar Vamja
The article discusses the challenges faced by businesses in releasing mobile applications quickly and the importance of faster time to market (TTM)
by Zijian
Use PowerShell scripts to generate icons of native mobile apps

All Articles

Sort by Title

Android 

5 Apr 2018 by Samira Radwan
Hi all, In my app, I have added a new directory to assets. This directory has one binary (.bin)file. I'm trying to read this file using InputStream with no success. I can see the file name I even can compare the name to an existing string, but I can't open it. Please advise. What I have...
5 Apr 2018 by David Crow
I suspect you want something like: InputStream stream = manager.open("firmware/" + file);
15 Jan 2015 by RupeshMote
I have downloaded Android kitkat source code(android-4.4.1_r1) from Git repository.Then I set required initial setup environment. And then try to build android source code.I did this entire procedure as per this link https://source.android.com/source/building.html[^] I am using...
6 Feb 2015 by RupeshMote
Finally, I have build android source code successfully.Here is how I did it :In first attempt, I had downloaded source code of Kitkat branch. But it was not downloaded properly.(source files were missing).Then, I have downloaded Android OS source code of master branch, which is...
19 Aug 2015 by Agarwal1984
Hello,"reference to unknown project 'abc' ignored" error is coming, when i created new android app project in xamarin studio.I can't create app.Please help me.How can be resolve this issue.Thanks in Advance.Ankit AgarwalSoftware Engineer
2 Jul 2015 by Member 11807654
i tried making an android app with andengine and i used eclipse for it ,but when i run it, it shows the message "unfortunately,app has stopped". what is the reason? here is the java code:package your.packhage.namespace;import java.io.IOException;import...
4 Mar 2018 by Kritika Rai
What's wrong with the code? It says "Unfortunately the app has stopped working". I can't figure out please help me. I am new to android so don't know much about it. What I have tried: package com.kritikafunmath.helpquest; import android.content.Intent; import android.support.v7.app.ActionBar;...
3 Mar 2018 by Patrice T
By using the debugger, you will get an important information: the position where is stops. There is a tool that allow you to see what your code is doing, its name is debugger. It is also a great learning tool because it show you reality and you can see which expectation match reality. When you...
24 Feb 2020 by praveenrokc
public class MainActivity extends AppCompatActivity { EditText firstname, lastname, age; Button insert, show; TextView result; RequestQueue requestQueue; String insertUrl = "http://192.168.56.1:8080/tutorial/insertStudent.php"; String showUrl =...
13 Sep 2017 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried to use a variable, property, or a method return value but it contains null - which...
24 Feb 2020 by acsus
lastname = (EditText)findViewById(R.id.age); should have been: age = (EditText)findViewById(R.id.age);
9 Sep 2015 by Agarwal1984
Hello,How to resolve this error:-'system.reflection.assembly' require business (or higher)license.please help me.Ankit AgarwalSoftware Engineer
9 Sep 2015 by OriginalGriff
The error message is pretty self-explanatory.'system.reflection.assembly' require business (or higher)license.You need to upgrade your Xamarin subscription to Business or Enterprise in order to use that.Don't like it? Talk to Xamarin: it's their licensing agreement, not ours! :laugh:
6 Mar 2015 by S.Rajendran from Coimbatore
I have two java class files namely a. listmasteritems b. Mydbhandler. In an activity I use an edittext and a button. On button click in the device, I intend to send the text to the database. I get an error on button click (in device) stating 'Unfortunately,tommy has stopped working' when I...
7 Mar 2015 by Afzaal Ahmad Zeeshan
There are many possible reasons why this caused an error. Connection not established Error in value.. and so on. The actual problem is in your Console; or for Android development in Logcat. You should see for why the exception got raised. Then, solve that exception's cause.
7 Jan 2019 by Member 13983723
I'm trying to make find the difference game app, but I never made anything like that and since I'm a new to development I'm stuck well baby Steps are always needed to learn xD **I read in some documentation that i have to get each ImageView height and width separately so when i touch...
25 Nov 2018 by dansica
Hi, I can't seem to get my bluetooth discovery and receiving of data to work. All the resources I found online does not work for me. I hope someone is able to show me a very well explained example or a source code that is working. Thank you so much What I have tried: Alot of receiving and...
13 Jan 2019 by dansica
Hello, I have tried many ways to make the connection of 2 Arduino to an App but I still can't get it to run smoothly. Is there any experts out there that can help me out? I just want to connect one Arduino for 5 seconds and disconnects and then connect to the other Arduino continuously. My code...
25 Nov 2018 by dansica
Hello, I am unable to retrieve the data from Arduino. Is there anything wrong with my code? Thank You! Android Studio Code package com.example.a17019501.bluetootharduino; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import...
27 Jan 2013 by Member 9473758
I want to open my context menu via menu options but I do not know what to declare in the view area, anyhelp would be appreciated.public boolean onOptionsItemSelected(MenuItem item) { Intent serverIntent = null; switch (item.getItemId()) { case...
6 Mar 2016 by Member 12371164
i have error in this code android and its not running my project so pls help me with correct answer (r.layout.activity_main)What I have tried:i have tried to solve but all went wrong
6 Mar 2016 by wseng
It should be (R.layout.activity_main)
23 Nov 2010 by Smaini Nurbs
What does the word 'this' in java means? Thanks in advance.Example; mSensorManager.unregisterListener(this);
23 Nov 2010 by HimanshuJoshi
This is a reference to the current object. For more info check here[^]
23 Nov 2010 by RaviRanjanKr
This Keyword is always refer to current instances of classes or you can say current object.you can use this in any way as given belowa) you can use this to overcome to instance variable hiding.b) you can use this to refer current object inside any method.c) you can use this to pass...
23 Nov 2010 by Smaini Nurbs
So in this case, which of the four options is the word 'this' being used as?a) you can use this to overcome to instance variable hiding.b) you can use this to refer current object inside any method.c) you can use this to pass object as a parameter to another methods.d) you can use this...
5 Oct 2014 by Prilvesh K
(Wildcard entry)Android Text to speech synthesis with Listview arrays with toast
5 Jan 2015 by baba.ji992
love marriage specialist astrologerlove marriage vashikaran specialistlove marriage specialist gurulove problem specialistlove marriage specialist pandit jilove specialistlove back specialist astrologer
11 Nov 2011 by srinivasgoudkola
I need some sample about animation. I have an animated GIF, but how to put in Android app to be animation.please send the sample
11 Nov 2011 by DaveAuld
There is a forum post here; http://groups.google.com/group/android-developers/browse_thread/thread/c634a0ba5b307e7e[^]that makes reference to animated gifs and has sample code.
5 Jul 2012 by Mario Ghecea
This article describes the technique I used to ingest large text files to create an e-book publishing platform on the Android Market
1 Sep 2018 by Member 13963525
Don't know why but the 3 dots on the action bar aren't showing up.I've been following a udacity tutorial to make this happen java code: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); ...
1 Sep 2018 by Peter Leow
Check this out: Add the app bar  |  Android Developers[^]
20 Mar 2014 by ashcairo
The process of porting our cross-platform 3D third person shooter game to support the Intel x86 Android environment.
20 Jan 2015 by James082a
I want to use the eclipse to make 3D model from 2D ultrasound images. Those 2D ultrasound images use to form layers of the 3D model. Any open source or development tools can help me to do these? Any help would be appreciated!
20 Jan 2015 by Sergey Alexandrovich Kryukov
First of all, I already tried to answer you: 3D reconstruction from 2D images[^].I tried to explain that this is related to some most difficult fields of mathematics, especially in the domain of applied mathematics.There is a lot of development on related topics, such...
18 Sep 2014 by James082a
I am working on a project about 3D reconstruction from 2D images in Android. Those 2D images are ultrasound black and white images. Is there any toolkit or developer sources could help me??
18 Sep 2014 by CPallini
Wikepedia could be a starting point: 3D data acquisition and object reconstruction - Acquisition from 2D images[^].
18 Sep 2014 by Sergey Alexandrovich Kryukov
Please look here: http://en.wikipedia.org/wiki/Ambiguous_image[^].Perhaps, for you these ideas are trivial, but this page clearly illustrates: the problem is not resolvable in the comment sense of the word "solution". This is so-called ill-posed problem.Please read on the concept of...
22 May 2013 by vijayknarang
HiI have extracted Video Data using gdata API and got 3gp url for format 1,6. This i got extracted from Media:Group --> Media:content element.following are sample...
1 Nov 2011 by TorstenH.
check the internet - ther is a new action going on "Google AdWords". Pretty cool.best is: they even know what an OpenX Server is: read more about it[^]
1 Nov 2011 by Silju MC
Hi All,I want to add 3rd party ads on my mobile application (Android, Windows Phone). How can I do that? Can you please tell me what is an OpenX server?
14 Aug 2015 by Sergey Alexandrovich Kryukov
Consider using Universal Platform with Microsoft Visual Studio: https://www.visualstudio.com/en-us/features/universal-windows-platform-vs.aspx[^].—SA
18 Mar 2014 by Cindy Potvin
This post gives 5 tips to improve performance in Android applications
1 Sep 2015 by Android on Intel
If you’re just starting out, here are a few tips from iHub developers to ensure your app doesn’t get lost in the crowd.
20 Jul 2015 by Android on Intel
In this paper, we introduce some of the new features in ART, benchmark it against the previous Android Dalvik* runtime, and share five tips for developers that can further improve application performance.
1 May 2015 by Intel
64-bit Android and Android Run Time
20 Jan 2015 by Android on Intel
64-bit Android* and Android Run Time
23 Jan 2018 by Aram Tchekrekjian
Seven Android libraries every developer needs to know
17 Jun 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
re we answer specific questions which members face during programming.We can't work on the whole source code. You need to do that yourself.If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario. ...
10 Jan 2015 by User 11060979
Do you think youe give a good reference for their country?
15 Oct 2015 by Edwin Syarief
Hi,Is everybody know how to add effect into mp4 file in Android Studio?Maybe extract mp4 into jpg pictures, and insert image or shapes into jpg pictures, and then convert it back into mp4?Is there any android library for my case?Thank you.
15 Oct 2015 by Wessel Beulink
Dear friend,Best way to get effects in a mp4 is to not use android studio for this. You can better use a movie editor and make here your changes in the mp4 file and use that into your project. You can use something like adobe premiere or another movie editor which you like.If the...
2 Oct 2016 by kutetv
I'm working with RecyclerView ItemAnimator and I want to implement this effect (the left bar is the recyclerview)http://i.stack.imgur.com/oKUYl.gif[^]It would be great if you give me an example code?What I have tried:I've not much experienced with recyclerview item animator. I...
2 Oct 2016 by Richard MacCutchan
Quote:It would be great if you give me an example code?Sorry, but this site does not provide code to order. If you want sample code then Google is the place to go.
11 Sep 2013 by satrio_budidharmawan
Hi, I have a problem in View in Android. I tried to resume my apps after Home Key interrupt and changed language, but this error occured : The specified child already has a parent. You must call removeView() on the child's parent first.I already google it, and all answer said that : I...
11 Sep 2013 by Sergey Alexandrovich Kryukov
I'm sure, you did not correctly point out the line where the exception is thrown. First of all, you could not "call mFrameLayout", as this is an object, not a method. And you did not show what method you have called. Anyway, this object itself cannot be null, otherwise it would throw the same...
15 Sep 2013 by satrio_budidharmawan
Hi, Sorry, I reaally got a lot of unresolved questions(problems) here. But here's go again another question :D.I'm trying to get what's my current input language when I changes it on keyboard setting in Android.Says my android device language (system language) is English (EN), and then I...
31 Jan 2023 by Denzel Clyde Lim
I'm following a guide on coding by Easy Tuto, currently on part 7 at the end where the recycler_note_item.xml would show up on the interface. In the video, he fixed the problem by adding the onStart, onStop, onResume commands and adding...
28 Feb 2013 by mohammadali1375
Hi,I want change my app's Icon without using axml file ( android:Icon .... );how can I do this ?
26 Nov 2013 by ZurdoDev
This is not a place to demand code. We would love to help you so when you get stuck on something specific please let us know.
7 Nov 2013 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
1 Nov 2014 by vn12
Hello.i want to make a search box with a button field.When user enters an alphabet in the search box and press the button then it should show items from array starting with that alphabet into a listview..suppose i have a brand array...
1 Nov 2014 by Richard MacCutchan
This is the fourth time you have posted this same question, and you have been given a number of suggestions to try. It is up to you to make some actual effort.
17 Jun 2021 by Richard MacCutchan
Added to remove from the unanswered queue.
25 Feb 2022 by Richard MacCutchan
You have declared RecyclerView recyclerView; in your class, but you have not initialised it before trying to use it. So it is still null, and causes the error you see.
25 Feb 2022 by nyt1972
Hello, I wanted to search data from database to recycler view, my code is below but I get an error in line 20 please help me to resolve the issue. Attempt to invoke virtual method 'void...
7 Mar 2016 by devonJones
So I am currently trying to center a button in visual studio, im following a guide since im pretty new to android development, and he is using the Gravity option, he changes it from " " to "1" and it centers the whole button, when i do it, it just changed the text position.like so:...
7 Mar 2016 by Patrice T
Solved by author, just to remove from unanswered.
24 Aug 2015 by XyedBilal
Step by step solution of Android Studio "No JVM Installation" error
27 Nov 2011 by hamzah1
Hello.Iam develope a game in android every time i run the AVD this errors shows up and emulator cancel it's running:[2011-08-16 03:21:46 - Emulator] Failed to allocate memory: 1455[2011-08-16 03:21:46 - Emulator] [2011-08-16 03:21:46 - Emulator] This application has requested the Runtime...
27 Nov 2011 by huseyin topcu
I have the best and right solution proved according to the indications by Calvin in techarena forums.- Click Start, click Run, type sysdm.cpl in the Open box, and then press ENTER.- Click the Advanced tab, and then under Performance click Settings.- Click the Advanced tab, and then under...
1 Jan 2020 by swamy456
// HTEditorTool v2.0 (MArs 2013) // HTEditorTool library is copyright (c) of Hedgehog Team // Please send feedback or bug reports to the.hedgehog.team@gmail.com using UnityEngine; using System.Collections; using UnityEditor; public class HTEditorToolKit{ public static Texture2D...
1 Jan 2020 by Member 14704891
Change exemple myTexture.set_name("Color Texture by Hedgehog Team"); to myTexture.name = "Color Texture by Hedgehog Team";
1 Jan 2016 by PGStath
A class combing the ease of use of the Intent Service, with the long running features of the Sticky services