Affichage des articles dont le libellé est Studio. Afficher tous les articles
Affichage des articles dont le libellé est Studio. Afficher tous les articles

mercredi 19 août 2015

Problems with Windows 10 and Android Studio ?



Hi,

I've recently reinstalled my machine and put windows 10 on it. It's a clean install and I've only installed the jdk from oracle and android studio so far.

The problem occurs when I try to create a new project.
I basically just click new project/next/next/next to get a blank activity with minimum sdk api level 15, but when the project opens, I start out with two errors in values-v23.xml

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inv erse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

Using Android Studio v1.3.1.

Any thoughts to what is wrong ?

/Steen



mardi 11 août 2015

Android Studio Error MainActivity class Help



Hey guys.I am getting these errors in MainActivity java file when I create new project.I am a newbie.

package com.gaama.learnit;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends AppCompatActivity {

@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

@override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}



lundi 10 août 2015

[Q] Mass change the object access Android Studio



I've been using Android Studio for a while, and it's one of the (if not the) most powerful IDE's I've used.
There is one thing I can't find though.

If you have a list like this:


Code:


private String username = null;
    private String userAvatarURL = null;
    private String bio = null;
    private String birhtdate = null;
    private String gender = null;
    private String location = null;
    private String twitter = null;
    private String externalURL = null;
    private String urlIFLprofile = null;
    private String urlIFLwallpapers = null;
    private List<Integer> wallpaperIdArray = null;


How do you change private to public without changing them one by one?

Thanks for the tip!

Tim



dimanche 9 août 2015

Hard to build a project using Android Studio



Dear All,

My aim it to create a app to control robot via Bluetooth. So may app only have four arrow keys

I download android Studio and all software and configured well . But still I could not finish the project

Issues
I want to add four buttons to virtual display but my virtual display is not showing

Please advice



Loading AOSP problem in Android Studio



Hello everyone! I am now studying AOSP for developing custom ROM. However, I am suffering many problems from loading source codes in Android Studio.

There are many files mark errors like this screen shot. Resource cannot be loaded. Whatever I expanded the xms, xmx value IDEA_HOME/bin/studio64.vmoption, remove unnecessary JDK classpath, the problem still the same.

Thank you for your help

I am using Android 5.1 with Nexus 5













Thank you for your help!



samedi 8 août 2015

Android Studio: Emulator Internet Connection Help



Hey everyone,

I'm having a problem in the Android Studio emulator. I'm trying to connect to the internet through the emulator (on the app I created). Everytime I click on the button to go on the internet, it says that the app has stopped running. I'd really appreciate it if someone can help me with this.

Thanks!