I am getting a new problem which may be due to version changes, but I don't know. The exception raised during rendering is as follows:
java.lang.System.array copy([CI[CII)V
Exception details are logged in Window > Show View > Error Log .
The following classes could not be found: - Edit Text (Change to
android.widget.Edit Text, Fix Build Path, Edit XML)
its not getting the class of edit text. From where would I get/add it?
From https://stackoverflow.com/a/24502370/826670. it looks like you are using android Wear to render it, change android version in rendered.
Check the "Android version to use when rendering layouts" and make
sure you're not using a version that ends in "W" for Android Wear
(e.g. API 20: Android 4.4W). I don't believe Wear supports
EditText.
In both Android Studio and Eclipse, it's the dropdown with the green
android in the layout preview's toolbar. You may want to set it
explicitly and not allow the IDE to choose the Android version
automatically.
Related
I'm just created .apk file with buildozer.But as i said in topic, can't see any icon on device.Everything works and looks fine in Linux. But in device,all icons are blank. This is my buildozer.init requirements: (my ndk,sdk,minapi,ndk_api values are default)
requirements = python3,kivy==1.11.1,https://github.com/kivymd/KivyMD/archive/master.zip
If i use kivymd==0.104.1, i can see icons in android but can't use some commands like : MDTab.get_tab_list() , MDTab.switch_tab() (I asked that problem before in here.So i have to use master branch version because i need to switch MDTabs after some button clicks.But now,i can't see any icon.Is that bug or can someone help me ? Thank you..
(Last note: Im removing .buildozer file before change requirements versions.)
Set correct dependencies in buildozer.spec- https://github.com/kivymd/KivyMD/commit/df73810cc725e4575c93bc4cbbb72f67ff568dc1
I'm using Visual Studio 2017 with the latest update.
I created a new Xamarin Forms solution (.net standard) and when I click on Resource.Designer.cs or when I try to "open with" with many options - I don't get any designer.
Since the text in the file says
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
Something must be missing.
How do I get the designer working?
According to an answer in the comments this is not like the Visual Studio designer file. It should not be edited, but also does not have a designer mode associated with it.
I developed a simple javafx application to be ported in Android Environment, however I cant type any characters in the TextField. I guess its a bug, how to fix this one?
Th problem on galaxy S5 android 5.0.1 is not present but on galaxy tab 4 android 5.0.2 it doesn't work i type but none is displyed.
Tried with normal textfield. And the problem persist also I have added the properties .
Another strange rhig is that the space where recognizer. And the del button . The text not
THe code by example is very easy
Rectangle2D visualBounds = Screen.getPrimary().getVisualBounds();
double width = visualBounds.getWidth();
double height = visualBounds.getHeight();
TextField tt= new TextField();
tt.setTranslateY(-150);
StackPane stackPane = new StackPane();
stackPane.getChildren().addAll(tt);
borderpane.setCenter(stackPane);
Scene scene = new Scene(borderpane, width, height);
stage.setScene(scene);
Assuming that CustomTextField is just a custom TextField, this is a known issue, not related to the CustomTextField itself, given that it works in other device.
If you debug it:
./adb logcat -v threadtime
you surely find an exception that explains the issue: a StackOverFlow exception.
On older devices it can be solved adding this: create a java.custom.properties file, and include in it this property:
monocle.stackSize=128000
You may also include this one:
monocle.platform=Android
(it will be soon included by default in the next version)
Put the file at the root of your classpath, e.g. in the folder src/android/resources of your project.
Build and deploy the project on your mobile and check again.
I already tried to find some answer for this but unfortunately I couldn't. I am trying to teach myself Android. Apparently, for no reason, Eclipse stops recognizing a variable between one line and the next one.
I have a class that extends a View (a custom View). I am getting this error on the onDraw (sorry, can't post image)
public void onDraw(Canvas c) {
c.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher), 0, 0, null);
c.Rotate(-10);
}
The drawBitmap line is not recognized as error. If I go after the . in the drawBitmap line and press Ctrl+Space, I get just the Java.Object functions (Equals, hashCode, etc) and not the Canvas'. The c.Rotate line is marked as error - if I open c. the autocomplete does not recognize anything but the basic object functions (no draw, rotate, get/set, etc);
If I try to use the variable before the DrawBitmap, it also won't recognize.
The weird thing is: if I keep just the drawBitmap line, it compiles and runs fine.
What could it be?
EDIT:
Eclipse
Version: 3.7.2
Build id: M20120208-0800
Android Development Toolkit
Version: 16.0.1.v201112150204-238534
Build Target: Android 2.2 (Rev 8)
SOLUTION:
I just had to go into the workspace folder and delete the .Metadata, and re-add the project. I don't know what caused this error, but it got fixed. For more information, please check the first answer. If someone knows what happened, I would find it very interesting to understand what happened.
should be lowercase rotate
c.rotate(-10);
the rest is very mysterious
I have an address search field in my app. When this field gets focus I want to open the keyboard as in the following image.
It works fine for iOS when the keyboard type is set to Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION as in the following code
var search = Titanium.UI.createSearchBar({
barColor:'#c8c8c8',
autocorrect:true,
hintText:'enter address',
height:'43dp',
top:'75dp',
autocapitalization: Titanium.UI.TEXT_AUTOCAPITALIZATION_WORDS,
keyboardType:Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION
});
However on Android it appears as in the following image.
I am using Titanium mobile SDK 1.7.5
You should probably add :
softKeyboardOnFocus : Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
Unfortunately, it may be overridden by the system. Try it on another Android system (3.0 for example) if the problem persist.