Hi everyone,
In the app I am making, I would like to take a Base64 image that is received from a server, and save it to a file for displaying later. My question is where should I store this file? It needs to be dynamic, and may be empty when the program launches. I am unsure how exactly the file system on Android works, such as how file...
i want to serialize an intent after i rcv it using ObjectOutputStream , but i got this exiption
java.io.NotSerializableException: android.content.Intent
is there away so i could serialize the intent, thanks.
...
Is it possible to set the color of just span of text in a TextView?
I would like to do something similar to the Twitter app, in which a part of the text is blue. See image below:
Thanks!
...
I'm using a FrameLayout and have two buttons on it, button A and button B (in addition to some other widgets). A is directly on top of B, overlapping completely.
In onCreate, I do a check and if A is not needed, I set it to invisible. Later in the app it may become visible again so I don't want to remove it completely.
When button B ...
I've been trying to update my spinner in android dynamically but nothing I try has been working.
This is the following code I'm using to update the spinner.
typeList = dbAdapter.getList(); //array list with the values
adapter.notifyDataSetChanged();
groupSpinner.postInvalidate();
groupSpinner.setAdapter(adapter);
The values of type...
For some reason the camera feed in my program is sideways. If I hold my finger up to the camera from the bottom, it shows up as coming from the right in the surfaceview.
I have a pretty standard implementation
surfaceView = (SurfaceView)findViewById(R.id.surfaceView);
surfaceHolder = surfaceView.getHolder();
surfaceHolder.a...
I have 2 apps running, and I need to pass an image resource from the first app to the second.
The ImageView have a setImageURI(Uri) method, that I could use in the second app, but does not have a getUri() for me to use in the first.
Any idea how to do this?
-- update
looks like Content Providers can solve the problem. (studying)
...
What do I need to my code to make the dialog dismiss() after the webview is loaded?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
CookieSyncManager.createInstance(this);
CookieSyncManager.getInstance().startSync();
...
I have am having some issues with getting consistent results when checking if the network is available or not.
I use this code snippet inside a class AppPreferences to check the availability of a network.
/**
* @return the networkAvailable
*/
public boolean isNetworkAvailable() {
connectionManager = (ConnectivityM...
I'm about to release an application in the Android Market. I need to generate a keystore to sign my application. The docs are a little spares on what I'm support to put into for the -dname param.
Here is the line I'm using:
keytool -genkey -v -alias release -keyalg RSA -keysize 2048 -dname "CN=mydomain.com" -keystore my.keystore -valid...
I've made a customAdapter that accepts an ArrayList. The ArrayList contains a title and then a link.
For example: [Title1, http://mylink1.com/, Title2, -http://mylink2.com/-, Title3, -http://mylink3.com/- ...] ** I've put hypens there because of the "Stackoverflow" Spam filter.
I'm wanting to display the title and then have the on c...
Where should I start an AnimationDrawable that needs to animate when the activity is shown?
The developer guide recommends using onWindowFocusChanged, but this isn't always called when the activity is part of a TabHost.
I quote:
It's important to note that the
start() method called on the
AnimationDrawable cannot be called
d...
Hello everyone!
Encounter this problem when trying to Build Project getting such output in console:
[2010-07-19 23:29:23 - myProject]
trouble processing "javax/net/SocketFactory.class":
[2010-07-19 23:29:23 - myProject]
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to i...
canvas.drawRect(left, top, right, bottom, paint);
Say I want to draw rectangle
x=30 to x=35
of height y=50.
What would be the values in above method. Thank you very much.
...
I don't have an embedded camera in the lid of my notebook. I'd be hooking up through an external USB camera.
The emulator runtime can pick this up right? I'll get the image displayed inside the AVD skin's screen in real time?
...
hello all, so Im messing with imageviews and I am able to align a single imageview in the center horizontally with
android:layout_centerHorizontal="true"
Now my main problem is that I have X imageviews and when I align them all like that, and then use the android:layout_toRightOf="", they just start from the middle.
What to do?
...
I'm trying to replicate this class called MediaMetadataRetriever in my own android project. You can see the class here:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/java/android/media/MediaMetadataRetriever.java;h=681751b4d15115ffceb2c1d812b5d0f68b11a5ab;hb=HEAD
In line # 37 you can see: System.loadLibra...
I have the following broadcast receiver:
public class MyRingModeReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Logger.iLog("In my Receiver");
}
}
I then have a service that onCreate does the following:
IntentFilter filter = new IntentFilter();
filter...
Hey,
I created a small Tab-Layout.
Now how can i specify the color of the TabWidget depending on its state (focused,pressed..)
I built a new .xml, but i dont know how to set it to my Tabs:
<?xml version="1.0" encoding="UTF-8"?> <selector
android:id="@+id/tabSelector"
xmlns:android="http://schemas.android.com/apk/res/android"...
Hey all,
I'm using a UNIX socket to facilitate communication on and Android device between a system level daemon I've got running in C and an application I've got running in Java. I'm much more of a C coder than a Java coder, so I'm having some issues when trying to read in data from the socket on the Java side. Currently, my code is a...