I am new to android programming. I have already coded an GUI für my app and want to complete it with bluetooth functionality. I used the bluetooth chat example from 2.1 and it really looks messy in ICS, seems as if the resolution isn't set properly so that all elements are scaled up. I tried to change the XMLs but I cannot solve the problem.
Has anyone an idea?
THX in advance
Peter
That's probably because of 1 line in the AndroidManifest.xml, change it from
<uses-sdk android:minSdkVersion="6"/>
.. to something like ..
<uses-sdk android:minSdkVersion="7"/>
See my reply on stackoverflow.
See this: issue reported on Android bugtracker
Related
I need to crop an image using selectors and dragging etc.
I cannot use com.android.camera.action.CROP cause in many phones i tested doesn't work.
I searched here all examples, the only working is that where is used android.provider.MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI
but the problem is that everytime it asks user to choice the image.
Can someone post me kindly an example.
I need to open it on the image i need, without that the user has to open an image, searching in file system.
I am enough disappointed cause android doestn offer something compatible for all devices from 2.1 android till 4 at least...
Thanks
Download Sample:- https://github.com/lorensiuswlt/AndroidImageCrop
Only three changes required for android 2.1:-
In main.xml, write wrap_content instead of matchparent.
In AndroidManifest.xml, <uses-sdk android:minSdkVersion="7" />
In default.properties, target=android-7
A project is a best tutor.
So whenever I add
<uses-sdk android:minSdkVersion = "7"></uses-sdk>
my application refuses to work properly. The UI is miniature (the font is small and the buttons are smaller than usual). I tried changing the minversion from 7-15 and none of them worked. My phone is on 4.0.4 and whenever I take out
<uses-sdk android:minSdkVersion>
it works perfectly. Sadly google market requires this, and I can't upload the application not working. Any ideas? If I need to give more information just ask, thank you so much!
The application is mainly an XML app, such that there is no graphical interface, just native buttons, and such. I am using the Theme.Holo.Light theme though. Thank you!
The easy fix is likely to set minSdkVersion to 1; this should give you the same behavior as leaving it out, but allow you to upload your app to the Play store.
The better solution would be to set it to an appropriate value based on what APIs you use and testing it on various devices, and adjust your layouts to work appropriately.
I have strange issue. And normally on strange issues I've done something really stupid. But this I have absolutely no clue what could be wrong.
I added
android:configChanges="orientation"
to the activity section of my app to prevent the refresh of the listview on screen rotation. This worked pretty well, but after targeting sdK-Version 15, the ListView is refreshing again. I read some more lines and noticed, that I also have to add screenSize attribute for sdK targets 13 and above.
But there is no attribute "screenSize" available in my Eclipse (smallestScreenSize is also missing). I have installed every available sdK incl the Google api's since Version 7.
Please has someone an idea, how to fix that?
Thank u very much in advance!
Best regards
Tobi
Right click your Android Project, click Properties, navigate to Android, and then select Android 4.0.3. If you haven't already.
If screenSize and smallestScreenSize still don't show up, then doing a Project --> Clean and restarting eclipse. Not sure what the problem would be otherwise...
myXmlContent.setText("بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ");
I am writing the above code and trying to display the text in Arabic.
but every character is being displayed separately in Android emulator.
Please help.
Complex scripts are currently not fully support by the UI toolkit. We are working on improving this.
Don't Worry we faced this on our applications but it works like a charm on the real devices (Samsung htc)
I do advice work and debug directly on real device this is faster and reflects your work In final look.
you may look at:
https://stackoverflow.com/a/3769283/771300
Have look the below link.
Android Arabic Language
You need to use Arabic Reshaper utility
Below are the some links https://github.com/agawish/Better-Arabic-Reshaper
https://mdictionary.wordpress.com/2011/02/10/connected-arabic-characters-for-android-apps/
Hoi,
I have a simple app with a surfaceview nothing special one would say. However when installing on my phone I get two warnings.
1 - Phone calls
- read phone state and identity
2 - Storage
- modify/delete SD card content.
My really is nothing more than a simple puzzle and I dont understand why I get these warnings.
Any ideas how to avoid this?
Help is very much appreciated,
Kind regards
Jasper de Keijzer.
I guess the warnings you mention are user-permissions in the manifest. Check if you have in your manifest lines like:
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
and delete them.
It is most likely due to building the app for Android 1.5 (or earlier) and running it on a 1.6 or later device. According to this answer elsewhere on StackOverflow, you can fix it with the following line in your manifest:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />
It hasn't worked for me, though.