All Questions
Tagged with program-entry-point android
90 questions
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:...
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 ...
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 ...
-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">
<...
-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
...
-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 ...
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 ...
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");
...
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"
}
}
}
...
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) ...
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 ...
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 {
...
-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 ...
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 ...
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 ...
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....
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;
...
-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)...
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! ...
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?
-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....
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
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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().
...
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 ...
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 ...
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 ...
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 ...
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();
}
</...
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("...
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 ...
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 ...
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 ...
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 ...
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 ...
-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....
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 ...
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] ...
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
...
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 ...
-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): ...
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 ...
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 ...
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 (...
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;...