I'm very confused on how this is supposed to work. I've tried using something like this:
con = (HttpURLConnection) url2.openConnection();
con.setReadTimeout(10000);
con.setInstanceFollowRedirects(true);
con.setAllowUserInteraction(true);
con.setDoOutput(true);
con.setDoInput(true);
Authenticator.setDefaul...
Hello!
Users of my Android app are reporting that they receive a Forced Close message when an incoming call comes in.
I have a Service Receiver and a phone state listener class to determine the status of the phone. When the state is "CALL_STATE_RINGING", I call upon the method stopAllPlayback() in my main Activity. It is at this point ...
I am using a ListView with a thumb image in each cell. But after few seconds application crashes with a "Force Close" message. The log shows an OutofMemory Exception. I am trying to cache images on disk and there are approx. 500 images need to be cached. How can I resolve this issue?
...
I subscribe to incoming SMS in my app using the method described here:
http://www.devx.com/wireless/Article/39495/0/page/2
With that method I get a message in the form of a android.telephony.SmsMessage. Then I'm planning on opening the default message app using something like this:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.par...
Hello! This is my code:
private class NameFilter extends Filter
{
@Override
protected FilterResults performFiltering(CharSequence constraint) {
constraint = constraint.toString().toLowerCase();
FilterResults result = new FilterResults();
if(constraint != null && constrain...
Hi,
I managed to connect an activity to a service and it runs ok. This is my first activity in the application. However, if i progress (with or without binding to the service in the first activity), the next activity (resides in a tab) will not bind to the service.
note that if i make the trouble-making activity to be my first in the a...
I have a series of buttons on a main menu. Instead of the standard side by side, or one on top of the other, I'd like them to be aligned around a semi-circle. Since I can't drag and drop the buttons to the place I'd like to in the designer, I was wondering the best way to do this? Can I do it in the XML, or would it be best to do it prog...
Hi All,
I need to fill in edit boxes with first and last name...i want dabatabase which saves these once i fill the edit boxes and teh nxt tym i enter a single cahracter it shoud retrieve that name...Plz provide code to me .Thnx in Ad:)
...
Hai ,
I want to go to homePage of my application on clicking button where i was in inner page.
Can any one tell me how to do that ?
Thanking you ,
Srinivas
...
I have a Networking service that i want to use as a Service. It's a local Service since it's not valid anymore once the application process is dead and no Other applications need to access it.(or should...).
I was pondering if to use the IBinder interface with local reference to the class and decided not to, for the moment.
I have the ...
Hi Everyone:
For example I saved time 6:00 and 6:05 then when i Started my service then First Message at 6:00 will sent and Second not . Here Timer class is not working properly I don't know why? Please help me.Manifest file is correct
Thanks in andvance
Rintu kumar
here is my code
package com.sms;
import java.util.Calendar;
import j...
hi,
do you help me please... I tried :
ImageButton imgbt=(ImageButton)findViewById(R.id.imgbutton);
Uri imgUri=Uri.parse("/data/data/MYFOLDER/myimage.png");
(i suppose it was saved in this location)
imgbt.setImageUri(imgUri);
but i diden't see nothing [simply a void button]
thanx
...
I've built a widget that uses a LinearLayout and I've put two TextViews in the layout.
The gravity of the layout is "top".
The problem is that I get a space between the two TextViews and I can't get rid of it.
<TextView
android:id="@+id/Text01"
android:layout_width="wrap_content"
android:layout_height="...
hello guys,
can anybody tell me please how to create a sub folder in asset folder at run time and copying the files from res folder to my assets sub folder.
any help will be appreciative.
thanks a lot
...
I want to remove the orange highlight around the EditText. This highlight doesn't match my UI and I really want to get rid of it.
Any ideas?
...
package com.android.handler;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import android.app.Activity;
import android.app.ProgressDialog;
import android.graphics.Bitm...
I've been searching the interwebs on how to stream media (Audio/Video, only audio at this time) to a server, but the only thing i can find is to do it the other way around (Server -> Android).
I've seen some people mentioning that it is possible to stream audio (.mp3) by tailing the outputed file and sending it to the server.
any sugg...
I'm trying to integrate Google Analytics into my Android project using the information on the website of the respective SDK. However, there is very little documentation available. My project has 6 different Activities and I noticed that using the method on the website results in a unique visit in Google Analytics for each Activity that i...
Hi,
Is there any way by which i can get the last GPS location my application itself ????
Is there any API available which can show me the Lat and Long. of the place from where i have connected GPS last time.
Any help, much appriciated
Thank you
...
I want to write a service for Android platform that is notified when the current foreground activity changes.
Basically the service should do some tasks only when the top activity changes.
Is there any way to subscribe and to be notified when this kind of event occurs ?
Or there is no possibility and the service should poll from time t...