beta jane

Greenhorn
+ Follow
since Oct 07, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by beta jane


hi,

i am able to save the source image but not able save the image with colorfilter


if this image is converted into bitmap it can be saved easily. but dunno how to do this. Is there anyone to give solution

thanks in advance

14 years ago
thnx....!!

the following is my HTTPRequestHelper class...
I dont have a device and hence iam left with no option other than the emulator.

14 years ago
ok thnx!!

so how sholud i proceed!! Iam new to this whole technology and iam not aware as to how to use your code snippet in my code
Please help
14 years ago

Hi thnx for a reply

my doubt is that,i have already set the proxy and port number in my emulator apn settings.Should
I do the same through my code too?





shoild i set mr port number in above line??

14 years ago


Hi iam using sdk 1.6,my browser works fine nd iam able to connect to all sites fromit.Iam behind proxy.
Iam not able to connect to gmail through my code,when i do it,i get host unresolved error.
I surfed regarding this error and found it to be something common,but none of the sites and blogs gave a solution to this problem.
I have given internet permissions in manifest file too.
The application basically tries to login to gmail with proper authentication and is supposed to fetch google contacts to emulator.
But iam not able to proceed further as i get this error please help me out!!
Any valuable suggestion welcome.
Thanks in advance


14 years ago
i just asked for an api
14 years ago
Hi ,

I want a code or function which can delete contents of a sdcard.
Please help
14 years ago
please respond
14 years ago


Iam getting this error:

[2009-10-22 10:13:52 - ring]Could not find ring.apk!
[2009-10-22 10:37:45 - ring]
trouble processing "java/security/cert/CertPathParameters.class":
[2009-10-22 10:37:45 - ring]
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2009-10-22 10:37:45 - ring]1 error; aborting
[2009-10-22 10:37:45 - ring]Conversion to Dalvik format failed with error 1
[2009-10-22 10:42:20 - ring]
trouble processing "java/security/cert/CertPathParameters.class":
[2009-10-22 10:42:20 - ring]
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2009-10-22 10:42:20 - ring]1 error; aborting
[2009-10-22 10:42:20 - ring]Conversion to Dalvik format failed with error 1
14 years ago



My program runs fine.When emulator is launched its force closed
14 years ago
Hi errors are rectified but iam not getting output.
If the emulator is launched its force closed
14 years ago
hi yeah i have an images.xml file

you asked me to check my imports.

It is like this:
import android.R;

What should i do?

Thanks
14 years ago
public class demo extends Activity {

private Uri[] mUrls;
String[] mFiles=null;

public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.images);

File images = Environment.getDataDirectory();
File[] imagelist = images.listFiles(new FilenameFilter(){
@Override
public boolean accept(File dir, String name)
{
return ((name.endsWith(".jpg"))||(name.endsWith(".png")));
}
});

mFiles = new String[imagelist.length];

for(int i= 0 ; i< imagelist.length; i++)
{
mFiles[i] = imagelist[i].getAbsolutePath();
}
mUrls = new Uri[mFiles.length];

for(int i=0; i < mFiles.length; i++)
{
mUrls[i] = Uri.parse(mFiles[i]);
}

Gallery g = (Gallery) findViewById(R.id.addToDictionary);
g.setAdapter(new ImageAdapter(this));
g.setFadingEdgeLength(40);

}
public class ImageAdapter extends BaseAdapter{

int mGalleryItemBackground;
public ImageAdapter(Context c) {
mContext = c;
}
public int getCount(){
return mUrls.length;
}
public Object getItem(int position){
return position;
}
public long getItemId(int position) {
return position;
}
public View getView(int position, View convertView, ViewGroup parent){
ImageView i = new ImageView(mContext);

i.setImageURI(mUrls[position]);
i.setScaleType(ImageView.ScaleType.FIT_XY);
i.setLayoutParams(new Gallery.LayoutParams(260, 210));
return i;
}
private Context mContext;
}
}


Hi,this a modified code to display images.
but i get this error that images in layout is not resolved which is highlighted in red


Please help
Thanks in advance
14 years ago