I have checked the regional settings and I can't yet choose Hungarian.
I am wondering how can I make my application to work in hungarian? How do I set what language to use?
I asked a similar question to this earlier this week but I'm still not understanding how to get a list of all installed applications and then pick one to run.
I've tried:
Intent intent = new Intent(ACTION_MAIN);
intent.addCategory(CATEGORY_LAUNCHER);
and this only shows application that are preinstalled or can run the ACTION_MAIN Intent type.…
analogous to this thread:
stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices
I would like to collect the different PixelFormats the android devices use.
To find out you must do the following:
Parameters camParams = camera.getParameters();
int format = camParams.getPreviewFormat();
Now you got to find the…
Hi every one ,,m working with android project in which i want to rotate image along with touch to some fix pivot point ,,,i have completed all the things but i have facing one problem ,,,while m trying to rotate image the image bitmap is resize....i dont have any idea why it occur ....if somebody have den please give me idea to come over this…
I'm having a trouble to get Geolocation working on Android in both emulator (even when I geo fix over telnet) and on device. Works on iOS, WP8 and in the browser.
When I ask device for location using the following code, I always get an error (in my case custom Retrieving your position failed for unknown reason. with null both error code and…
hi,
im trying to get a contacts name and phone number from the contacts list. im using:
contactname = Curser.getString(Curser.getColumnIndex(Contacts.DISPLAY_NAME));
to get their name and it works fine. But using:
contactphone = Curser.getString(Curser.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
causes no warnings…
I have a custom View class in my app that I'm using in xml layouts. Wherever I'm using this view in my xml, I don't want it to stretch it's container, but I want it to fill out whatever space is available. Here's an example to make it a little clearer. I have a LinearLayout set to horizontal orientation with my custom view followed by a…
I'm trying to display a video in my sdcard on the video view. Here is my code:
String name = Environment.getExternalStorageDirectory() + "/test.mp4";
final VideoView videoView = (VideoView)findViewById(R.id.videoView1);
videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
public…
I am trying to integrate Facebook to my Android app for social post. I have downloaded latest Facebook sdk from here and apply all setup require to post to facebook. Now i can post to facebook. But problem is that, when i run sample program from facebook sdk, a browser like page is open and user have to enter message himself there. but…
Does anyone know if there's a way to access past app installs via the sdk? I want to be able to get a list of all the apps users have downloaded from the Market.
The definitive reference for using Scala on android seems to be here: http://www.scala-lang.org/node/160
Unfortunately, all the references on using scala with android are based around Scala 2.7 and refer to a custom build android-library.jar, with a couple of cryptic references suggesting that this custom build isn't needed for later…
i pass int to next activity using this code
Intent intent = new Intent(A.this, B.class);
intent.putExtra("selectedType", i);
startActivity(intent);
and then receive this in activity B
Intent intent = new Intent();
int i = intent.getIntExtra("selectedType", 0);
Toast.makeText(getApplicationContext(), String.valueOf(i),…
So far I just have one XML layout file, and one drawable directory, drawable-hdpi.
I first want to target the high density screens.
I added a bunch of imagebuttons to a relativelayout and everything looks perfect in the WVGA800 emulator. The problem arises when I view it in the WVGA854 emulator. Not only do the imagebuttons not…
I have a listview that is populated by an arraylist of classes.
public void populateThingsList(){
listExample.add(new Example("Example name", 1, "Example detail 1", "Example detail 2", R.drawable.1_icon, "Example detail 3"));
listExample.add(new Example("Example name1", 2, "Example detail 1", "Example detail 2",…
i am getting menunames from database then append to the custom listview edittext . now i am changing some values in edittext . i want all values with changed values of edittext into array
Example :x,y,z menunames comes from database i append editext(Custom listview)
now i am changed y to b
now…
Hi,
Im making an asyncronous call from a client class to a server class.
From this client class i call the method "execute", and in background the server class call the "doInBackground" method.
How could i know from the client class when the "doInBackground" is finished? Should i implement an event on the server class and…
I am trying to add an HTML content to a web view. If the words in the HTML content are without spaces then webview keeps that particular word on the same line.I want that content to be wrapped and be on the next line.Is it possible to do that.I am attaching a sample code that can reproduce the issue.
String…
I have been trying to submit 2 separate apps into the Amazon App store but they keep being rejected. Here is the stack trace for the first:
11-05 11:14:36.488 E/AndroidRuntime(28128): FATAL EXCEPTION: AsyncTask #1
11-05 11:14:36.488 E/AndroidRuntime(28128): java.lang.RuntimeException: An error occured while…
My app structure is that i have a menu with 5 menu-point om the left side, and the content on the right side.
MainActivity.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"…
I'm trying to put a TextView and a ToggleButton in a table row, however, they don't seem to align (The top of the button starts about 10px below the top of the textview even though the height each element is the same. Can anyone tell me why?
<TableLayout
…
Hello everyone,
I would like to know the best practices for running a Service every day at 4AM.
The way I think I should be doing it is to create a new repeating alarm using AlarmManager and having it run the service at 4AM. Problem is, I'm not sure where to put…
This is more of a mathematics question rather than programming.
Well, I would like to ask id you know what is the interpolator described in Material design:
It looks to be an AccelerateDecelerateInterpolator but the deceleration effect decays slower.
My best…
I read somewhere (and have observed) that starting threads is slow. I always assumed that AsyncTask created and reused a single thread because it required being started inside the UI thread.
The following (anonymized) code is called from a ListAdapter's getView…
I have a Login Activity which stores credentials in its own SharedPreferences; then I added two getters for reading them, something like
public String getUsername() {
return getPreferences(MODE_PRIVATE).getString("#username", null);
}
but this throws a NPE…