android-studio

cordova requirements issue , android target not installed

故事扮演 提交于 2020-07-17 09:47:07
问题 I am trying to install Cordova on windows 7. I am following this tutorial : https://www.tutorialspoint.com/cordova/cordova_first_application.htm while I run cordova requirements , it says android target is not intalled and set the ANDROID_HOME environment variable I:\CordovaProject\hello>cordova requirements Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: not installed Android SDK not found. Make sure that it is installed. If it is

Android Studio : emulator is already running

China☆狼群 提交于 2020-07-16 17:27:42
问题 I am trying to run emulator on my android studio 8.14. When I click run it says it is already running. Any help would be appreciated. 回答1: You don't have to completely delete the emulator when this happens. The files to delete should have a ".lock" extension: You don't need to touch the configuration files. You can easily find the files location by clicking on the arrow under the Actions tab (in the ADB manager), and selecting "Show on Disk". 回答2: This worked for me: Go to AVD Manager and

So I created a class to change layouts according to a construcotr but it wont work?

梦想与她 提交于 2020-07-16 08:25:23
问题 SO i have to classes CollegeSearch.kt and CollegeSwitcher.kt The first one make use of a recyclerview to put up a list for people to use and select a country. When they tap on it, I want the layout to switch by switching the class. here is the CollegeSearch.kt class: class CollegeSearch : AppCompatActivity() { var college_DU:MutableList<String> = ArrayList() var displayList:MutableList<String> = ArrayList() override fun onCreate(savedInstanceState: Bundle1?) { super.onCreate

Activity layout not showing

风流意气都作罢 提交于 2020-07-16 03:16:51
问题 Im trying to call a second activity from my Main Activity, using this code Intent goToOrder = new Intent(ListOfOrdersActivity.this, OrderSummaryActivity.class); startActivity(goToOrder); Being my OrderSummaryActivity: public class OrderSummaryActivity extends ActionBarActivity { @Override public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) { super.onCreate(savedInstanceState, persistentState); setContentView(R.layout.order_summary); } } But the layout wont show

Activity layout not showing

巧了我就是萌 提交于 2020-07-16 03:14:57
问题 Im trying to call a second activity from my Main Activity, using this code Intent goToOrder = new Intent(ListOfOrdersActivity.this, OrderSummaryActivity.class); startActivity(goToOrder); Being my OrderSummaryActivity: public class OrderSummaryActivity extends ActionBarActivity { @Override public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) { super.onCreate(savedInstanceState, persistentState); setContentView(R.layout.order_summary); } } But the layout wont show

How to create drawable folder in res?

故事扮演 提交于 2020-07-10 12:17:09
问题 I am trying to create drawable-hdpi drawable-xxhdpi drawable-ldpi folders for different screens but unable to create as it says the folders already exist but i can't see them also when trying to create drawable-xxhdpi folder on click nothing happens no folder's are create Screenshots below Can't see any drawable-xhdpi folder although it says it exist Here on clicking OK nothing happens no folder is created 回答1: Yes it already exist. you have to change the project structure Click on top left

How to create drawable folder in res?

孤街浪徒 提交于 2020-07-10 12:15:20
问题 I am trying to create drawable-hdpi drawable-xxhdpi drawable-ldpi folders for different screens but unable to create as it says the folders already exist but i can't see them also when trying to create drawable-xxhdpi folder on click nothing happens no folder's are create Screenshots below Can't see any drawable-xhdpi folder although it says it exist Here on clicking OK nothing happens no folder is created 回答1: Yes it already exist. you have to change the project structure Click on top left

Not able to use button as it is on another layout

こ雲淡風輕ζ 提交于 2020-07-10 10:27:00
问题 My Main Activity. This is where all my coding is done. FrameLayout simpleFrameLayout; TabLayout tabLayout; VideoView video; Button btn_show; InterstitialAd interstitialAd; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn_show = (Button) findViewById(R.id.bt_show); interstitialAd = new InterstitialAd(this); interstitialAd.setAdUnitId("ca-app-pub-8708219564656739/2401085524"); interstitialAd.loadAd(new