Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
25 views

Android - can i add EditText value to the android:text row of a TextView in activity_main and have it concatenate?

<EditText android:id="@+id/et_name" android:layout_width="match_parent" android:layout_height="48dp" android:layout_margin="20dp" android:...
getoffmylap's user avatar
1 vote
0 answers
415 views

Issue on building flutter apk with flutter_tts dependency

I was building a flutter app in a Windows machine and I stopped working on it for several months, after that I now get issues on running the app. It shows those two errors: FAILURE: Build completed ...
Aleix Rué's user avatar
0 votes
1 answer
1k views

Error: The argument type 'MaterialAccentColor' can't be assigned to the parameter type 'MaterialColor'

I am writing a basic Flutter app and getting this error for only some specific colors. import 'package:flutter/material.dart' ; import 'pages/home_page.dart'; void main(){ runApp(MyApp()); } class ...
Adit Magotra's user avatar
-1 votes
4 answers
137 views

getting strange error code when trying to open MainActivity

I am working on my Android project (I'm kind of beginner at Android and Android Studio) I wanted to open my MainActivity class and here's what I've got: <component name="libraryTable"> <...
barbara_ko's user avatar
-1 votes
2 answers
28 views

Problem of FATAL EXCEPTION: main in Android application when starting execution

android.view.InflateException: Binary XML file line #2 The error tells me that it is a fatal error in the main method but I have a splash and it runs perfect is until it enters the main and stops ...
Luis Fernando Ahumada's user avatar
-1 votes
1 answer
624 views

How to pause the execution of the entire program until a button is pressed in JAVA?

I have been making an android app in which I want to take advantage of some previously written Java code which is written entirely to run on its own with its own main method. When I call the main ...
CanniZarro's user avatar
0 votes
1 answer
347 views

Get (String[] args) from Java main in android

I am using a libary in my android app that is designed for standard java. It therefore asks for the "String[] args" that are the arguments in a standard java main function. Is there a way to get those ...
Lukas Petersson's user avatar
4 votes
2 answers
2k views

How to run single Kotlin class from Android Studio

I am new to Kotlin development and I have created a separate Kotlin class in Android Studio as below : class MainClass{ fun main(args: Array<String>) { println("Hello World"); ...
Jaimin Modi's user avatar
  • 1,667
0 votes
1 answer
3k views

Adding GDPR to Android Studio

Why is the GDPR form not showing? I put this in build.gradle: allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } } ...
Abde Ssamad's user avatar
4 votes
1 answer
23k views

Error:(26) error: ' ' is incompatible with attribute android:icon (attr) reference

I am trying to hide the status bar but decided not to do so, so i did back everything but this problem exist. errors: Error:(26) error: ' ' is incompatible with attribute android:icon (attr) ...
BDMs's user avatar
  • 47
0 votes
1 answer
407 views

Launcher Activity Not Starting it's Crash

Launcher Activity Not Starting it's crash when pressed Run Button in Android Studio. Although there not much of code there but still. I have pasted logcat below its take me to the MainActivity at ...
Dream Developer's user avatar
1 vote
1 answer
80 views

Android Informing application through different process non-activity class

I'm currently developing an app which requires some adb commands First i have a seperate module in application Module1, and there is com.mordred.xyz.Main class in there public class Main { ...
sir mordred's user avatar
-1 votes
1 answer
593 views

How to convert a website to a apk?

I was trying to convert a website to an app and after typing when I run the app in the emulator and real device the app close and says "the app has stopped working". This is the code of the Main ...
ARJUN's user avatar
  • 1
74 votes
18 answers
57k views

Run single kotlin class with main function in android studio

I am trying to get familiar with Kotlin to use in my android apps. So first I want to try out some simple kotlin examples, just to get familiar with syntax of kotlin. I made a class named Main.kt in ...
Vikalp's user avatar
  • 2,161
0 votes
1 answer
140 views

Main Activity Error Variable cannot be found

I am getting the error "Cannot resolve variable 'navList'". I don't understand why it can't find it navList. I would appreciate it if someone can point out where I am going wrong. Sorry for the rookie ...
chocolateAndMath's user avatar
0 votes
2 answers
428 views

FATAL EXCEPTION: main on Android App

I'm getting this fatal exception: main error. It is only when I click on the 'Pick A Place' button on my app. The logcat report when clicking on the 'Pick A Place' button is below: 04-13 13:52:19....
Phil Adams's user avatar
0 votes
2 answers
41 views

I want to create a gallery app using an grid view I ave over 300images that i want to import it from drawable. It is showing 33 frames skipped

import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.content.Context; import android.widget.GridView; import android.widget.ImageView; ...
Emmanuel Wilson's user avatar
-2 votes
1 answer
330 views

[HELP]FATAL EXCEPTION: main java.lang.NullPointerException [duplicate]

public class MainActivity extends Activity { private static final String TAG = "MainActivity"; ProductDatabase.ProductDatabaseHelper controller = new ProductDatabase.ProductDatabaseHelper(this)...
Tang Weiming's user avatar
1 vote
1 answer
2k views

The application may be doing too much work on its main thread

Hi guys i'm trying to get separate activities by clicking menus from the navigation drawer, every thing seems fine but im getting 06-10 12:26:57.569 3457-3457/? I/Choreographer: Skipped 68 frames! ...
iam_muqshid's user avatar
0 votes
1 answer
280 views

Android Studio - access main loop

mainly just looking for the place where I can call a method every single loop. I'd like to increase/decrease the Y of a button over a period of time. Can this be done without an event system?
user6191359's user avatar
-1 votes
1 answer
115 views

goto main fragment on click of a button in Android

I am sending an email on click of a button and after successful attempt Main activity has to open ((MainActivity) mContext).startActivityForResult(main, FragmentCartPreview....
Narik's user avatar
  • 166
0 votes
4 answers
857 views

which class lauches Android main launcher activity

can anyone pls tell ,which class in android launches the main launcher activity as soon as we click on application icon? any help will be appreciated
nilesh shinde's user avatar
1 vote
1 answer
86 views

Not getting proper date in text view using android

I have two button 1st is next and other is previous. i want to show a date as date of month of year in text view. the date should be seeing in text view is 1st day of that week. While pressing next ...
Vivek's user avatar
  • 27
10 votes
3 answers
18k views

React Native Android - Could not find or load main class org.gradle.wrapper.GradleWrapperMain

I'm trying to do the Android tutorial for React Native, but I'm hitting a wall. All of the requirements for React Native to work are good to go, and I've followed the Android Setup instructions. I do ...
KirRogue's user avatar
  • 231
0 votes
2 answers
2k views

How to avoid some custom views freezing the UI thread?

I have 9 custom views (extending the View class each of them) in one of my game window that are causing a freeze in my UI thread, when I press the "Play" button, the app freezes (when inflating the ...
Alberto Méndez's user avatar
0 votes
1 answer
433 views

Fatal Exception Main Android Null Pointer Exception

I am having an issue with this weather app that I am making with TreeHouse I have asked a question on their forums, but no avail. Here are my two files in question... MainActivity package com....
wesley franks's user avatar
0 votes
2 answers
186 views

Fatal Error While Starting Application (E/AndroidRuntime(4881): FATAL EXCEPTION: main)

I am new to ubuntu, i use ubuntu 14:04. android application is able to run on Windows before, I do not know why the ubuntu applications, these applications can not run. regards this is my ...
Yuristiawan's user avatar
0 votes
2 answers
473 views

Only works in Main Activity?

So I have a code, that's only works in the MainActivity, and I don't know how to make it work, in the second activity. import android.app.Activity; import android.content.res.Resources; import ...
Tin_Ram's user avatar
  • 99
0 votes
0 answers
68 views

Further elaborate of main() method in Android

I konw that many people have asked the question of no main() in Android. However, no one made the final conclusion. In browser applets, there is no main(). In Android oncreate(), there is no main(). ...
user1232250's user avatar
0 votes
1 answer
427 views

AndroidRuntime﹕ FATAL EXCEPTION: main (libGDX

I am pretty new to programming and I am struggling with the next problem. I am using LibGDX to create a Tiled based game (following tutorials). Now the desktop part is all going fine, and working like ...
JavaNoobie's user avatar
2 votes
2 answers
8k views

error: cannot find symbol variable main

I have tried to make a project with help of this tutorial: http://www.tutorialspoint.com/android/android_php_mysql.htm I have created all the necessary files, but I get the following error. I have ...
plaidshirt's user avatar
  • 5,631
2 votes
3 answers
201 views

Looping a Thread

In my android application I would like to continuously read incoming data (using Telnet protocol). I am able to read one line (and then the app runs at idle), and I'm wondering how to create a simple ...
blackst0ne's user avatar
  • 3,264
1 vote
3 answers
1k views

Returning back to main activity from gameover screen

Hi so even though I have seen a couple of topics about linking activities or returning I can not get my return back to activity to work. I abit of back ground the the app when the user gets an answer ...
Phil3992's user avatar
  • 1,055
0 votes
1 answer
92 views

How to start ActivityMain from Phonegap's html file

This is my js function <script type="text/javascript"> function callNewActivity() { window.plugins.StartBarcodeReader.gecis(); } </...
Davut Kara's user avatar
0 votes
2 answers
269 views

android unable to start Main activity in options menu

Hi there basically i have created a options menu and have one of the menu items as the home button which essentially calls the home activity Main.java. I have used the code startActivity(new Intent("...
user3071845's user avatar
1 vote
3 answers
1k views

How to change MAIN activity during runtime

I have two activities (LoginActivity and MainActivity) with the LoginActivity being the MAIN and LAUNCHER in the android manifest file. Once the App launches, I don't want to go back to the ...
saintjab's user avatar
  • 1,642
0 votes
1 answer
499 views

Android: parse query in thread

I'm using the Parse library to query some records from DB that will be shown in a ListView with a custom adapter. I've a table with records and each record should I do a counting query from other ...
Giuseppe Scorrano's user avatar
0 votes
1 answer
81 views

FATAL EXCEPTION: main [Android developing]

At first I'm sorry for my bad English. The problem: I compile this code (MyActivity.java): package com.bundas.tdsestr.kalkulacka; import android.app.Activity; import android.os.Bundle; import ...
Mr. Robot's user avatar
  • 605
0 votes
1 answer
176 views

Fatal Exception Main: Android eclipse on Windows; Programme stopped [duplicate]

I am getting the following errors while trying my first Android App of adding two numbers. Also these errors are appearing for the error of "unfortunately adder_test has stopped" on the AVD. I have ...
user3712441's user avatar
0 votes
1 answer
63 views

R.layout.main error, no solutions have worked

I am just beginning to develop for Android. The tutorial book I am using uses the code below, but, put simply, it does not work. As I've searched for an answer, I find that none of the solutions ...
Ziggy's user avatar
  • 375
-2 votes
1 answer
55 views

This code Work with me Except the main Button it did not go to MainMenu class?

any one can help import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.hardware.Camera; import android....
user3035693's user avatar
0 votes
2 answers
71 views

Activity lifecycle

I've 3 activities: Main activity -> start activity 2 activity 2 -> plays a sound with MP, if finished start activity 3 activity 3 -> plays another sound with MP, if finished start Main. Now I am ...
basti12354's user avatar
  • 2,510
1 vote
2 answers
960 views

Android Java: Fatal exception main nullpointer. I do not have an explicitly defined Thread. It says it cannot instantiate the activity

I have been looking around for answers on Unhandled loop Exception errors, but now I'm getting a new error, nullpointer that is preventing my Activity from working. My run says, "unfortunately [app] ...
masterer's user avatar
0 votes
2 answers
58 views

my application stops working as soon as launched

(ANDROID GPS) i made this application to send gps coordinates via sms but the app crashes(as soon as i open it) can somebody help me logcat images logcal image1 log cat image 2 MainActivity.java ...
user3472271's user avatar
0 votes
1 answer
198 views

NullPointerException Error in android

I am working on a Media Recorder application using android API 17. However, I get Fatal exception:main and Null Pointer Exception error during run time: i.e, while pressing record button get ...
Sundhar Yuvi's user avatar
-5 votes
1 answer
56 views

FATAL EXXCEPTION: main

I am having an error while trying to run the application. I am new to Android development so i don't have much idea to it. These are the errors I see in LogCat 03-07 11:01:48.210: D/dalvikvm(1407): ...
user3393430's user avatar
0 votes
3 answers
163 views

Android working in background

this is my first question I got stucked in an app development.. I have developed an app. This app has a registration activity in the first stage, here the user's name, password and mobile number is ...
Jocheved's user avatar
  • 1,135
0 votes
1 answer
2k views

Another FATAL EXCEPTION MAIN in android programming

I looked up other similar questions and couldn't find a solution, so here I am. I am a complete beginner in Java and android programming, even though I have a quite good knowledge of C and basic ...
g.visona's user avatar
  • 123
0 votes
1 answer
512 views

Telling a thread to wait until the SD card is mounted

I am working on an app in which I want the main thread to wait until the SD card is mounted, in the case that it is not yet mounted. How would I do this? I was thinking of something like this: while (...
Zero's user avatar
  • 1,894
0 votes
1 answer
505 views

Android App crashing at beginning

I'm learning Android development and I'm wondering why is my app crashing Main code: package com.tester.myapp; import android.os.Bundle; import android.widget.Button; import android.widget.TextView;...
Telmo Vaz's user avatar
  • 199