|
Sorry for the pseudo-spam post... but just wanted to let everyone in the Android forums know that we're currently hosting an Android Tutorial Contest[^] and there are $10,000 in prizes up for grabs!
We're challenging you to compete with fellow members to write short, simple, and clear articles on a series of beginner Android development topics. Three new topics (for a total of 12) will be released during different rounds throughout the contest. Head over to the contest page today to learn how to enter and then get writing.
Android Tutorial Contest Page[^]
Thanks!
Kevin Priddle
Editor and Special Projects Manager - CodeProject
|
|
|
|
|
how to root my android phone samsung galaxy y
is there any damage in rooting my phone?? 
|
|
|
|
|
Sorry we do not condone, or in any waqy assist in hacking. People here earn their living by developing honest reliable software, and do not appreciate pirates who steal from them.
|
|
|
|
|
|
i<code>have a ListView which extends BaseAdapter. I have a array list. The ListView inflates and populates correctly. I am using the flipper view to change the layout to another but the problem is when i clicked on the first item it rotate but the item at third or sixth row will also rotate list view how can i fix it i only want the image is change of selected item</code>
ArrayList<product_data> al=new ArrayList<product_data>();
class product_data
{
String post_title;
String newprice;
String oldprice;
String image;
String id;
product_data(String post_title,String newprice,String oldprice,String image,String id)
{
this.post_title=post_title;
this.newprice=newprice;
this.oldprice=oldprice;
this.image=image;
this.id=id;
}
to add data in arraylist
try {
JSONObject parentObject = new JSONObject(json.toString());
JSONObject userDetails = parentObject.getJSONObject("response");
JSONArray jarray=userDetails.getJSONArray("products_data");
for(int i=0;i<jarray.length();i++)
{
System.out.println("From the Dataaaa");
JSONObject c = jarray.getJSONObject(i);
String details=c.getString("details");
String image=c.getString("image");
String catagory=c.getString("catagory");
String new_price=c.getString("new_price");
String title=c.getString("title");
String id1=c.getString("id");
System.out.println("from ther first image"+image);
System.out.println("from the sdafdfadf"+details);
al.add(new product_data(title, new_price, new_price, image,
Adapter class
class MyAdapter extends BaseAdapter
{
@Override
public int getCount() {
return al.size();
}
@Override
public Object getItem(int position) {
return al.get(position);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View singleView, ViewGroup parent) {
final int ok=position;
if(singleView==null)
{
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
singleView = inflater.inflate(R.layout.product_ist_layout,parent,false);
System.out.println("from the if"+position);
viewAnimator = (ViewAnimator)singleView.findViewById(R.id.viewFlipper);
rootLayout = (View)singleView.findViewById(R.id.main_activity_root);
cardFace = (View)singleView.findViewById(R.id.main_activity_card_face);
cardBack = (View) singleView.findViewById(R.id.main_activity_card_back);
}
System.out.println("from the else");
System.out.println("Position in else"+position);
product_data a=al.get(position);
TextView tv1=(TextView)singleView.findViewById(R.id.textView2);
TextView tv2=(TextView)singleView.findViewById(R.id.textView3);
TextView tv3=(TextView)singleView.findViewById(R.id.textView1);
viewAnimator.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
AnimationFactory.flipTransition(viewAnimator, FlipDirection.LEFT_RIGHT);
}
});
cardFace.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
System.out.println("positon"+ok);
AnimationFactory.flipTransition(viewAnimator, FlipDirection.LEFT_RIGHT);
}
});
cardBack.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
AnimationFactory.flipTransition(viewAnimator, FlipDirection.LEFT_RIGHT);
}
});
imgview1=(ImageView)singleView.findViewById(R.id.imageView4);
imgview1.setTag(position);
imgview1.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
int position1=(Integer)v.getTag();
System.out.println(position1);
String id=al.get(position1).id;
System.out.println("id from the list"+id);
Intent in=new Intent(product_list_Activity.this,rating_dialog.class);
in.putExtra("id",id);
startActivity(in);
}
});
ImageView imgview2=(ImageView)singleView.findViewById(R.id.imageView5);
imgview2.setTag(position);
imgview2.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
int position1=(Integer)v.getTag();
System.out.println(position1);
String id=al.get(position1).id;
System.out.println("id from the list"+id);
Intent in=new Intent(product_list_Activity.this,product_review.class);
in.putExtra("id",id);
startActivity(in);
}
});
tv3.setTag(position);
tv3.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
int position1=(Integer)v.getTag();
System.out.println("from the review "+position1);
String id=al.get(position1).id;
globalvariables.product_id=id;
Intent in=new Intent(getApplicationContext(),review_product_tabbar.class);
startActivity(in);
}
});
tv1.setText(a.post_title);
tv2.setText("$"+a.oldprice);
tv1.setTypeface(tf);
tv2.setTypeface(tf);
tv3.setTypeface(tf);
int loader = R.drawable.ic_launcher;
ImageView image = (ImageView)singleView. findViewById(R.id.imageView1);
imgLoader.DisplayImage(a.image, loader, image);
Animation anim = new Rotate3dAnimation(90.0f, 0.0f, 100.0f, false, singleView);
anim.setDuration(1000l);
singleView.startAnimation(anim);
return singleView;
}
}
}
|
|
|
|
|
Need help developing an android application that will share the task of downloading a large file between two users using bluetooth.
|
|
|
|
|
Wrong forum, this is for answering technical questions. If you need programmers, then try vworker etc.
|
|
|
|
|
Hello
asp.net web Service go to andoid basic connection
Web Service name :http://192.168.1.3/deneme/
http://192.168.1.3/deneme/WebService1.asmx?op=getir
|
|
|
|
|
I'd like to implement an application that can detect Rogue Access Point on Android mobile phone.
As far as I Know, Rogue AP detection requires packet analysis with root access.
So what I am wondering is whether the app implementation is available without any root access or hardware.
If it is available, how exactly can I do that to implement such application?
Please let me know...
|
|
|
|
|
hello everyone i am new in android. My project is a security purpose i want to lock android apps with my lock screen activity (like when user click on gallery then my lock screen comes). i have seen many apps in Play Store like this but i failed to find the code on google. please help me to make this.
|
|
|
|
|
which kind of lock application you have needed ??
[^]
that link is one off the best aap lock in android
|
|
|
|
|
hello
use android to gridview and web service thank 
|
|
|
|
|
Your question is far from clear, so it is unlikely that anyone will be able to make a useful suggestion.
|
|
|
|
|
How can i show the button at the last item of the horizontal listview
|
|
|
|
|
Arvind6446 wrote: How can i show the button... What button? Your question is very vague. Please elaborate.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi ,i am in the beginnings of the mobile application(Android) in augmented reality .. I want advice about API and SDK that should work out
and i want some tutorials links
Thanks ! 
|
|
|
|
|
|
I want to build a simple application that records audio files and then compares voices in two audio files in android.I want to record my voice and save them as wav/mp3 files in my device. after that on speaking if voice gets matched with the existing files then it must execute the task. For this i have read every single article and code at Google provided by for similar purpos using FFT, like in shazam and sound hound. but i don’t understand a bit of it that how I can use FFT in my simple application just to find if voice and content of one audio file is similar to second one in Android. I just want a sample application that matches if the voice in the first audio file is identical to the second audio file. I do understand this is a non trivial issue and it seems like there are a lot of articles providing help related to this work but i want a specific help relating to my project in android. i find no way that how can i implement FFt after recording the audio file and how for comparison, in ANDROID. During my research i found a light frame work called musicg( https://code.google.com/p/musicg/ ) and started working with it but the issue with this library is that it does not work in android Jellybean. Please help me by providing some sample projects related to this
|
|
|
|
|
|
Hi everyone,
I'm currently in the process of designing an app, but need to know if this is possible first. I want to design the app to be able to reject a call before it gets as far as notifying the phones owner (through ringing) or even on the screen. It would essentially just be blocking a phone number, but there is more to this that I can't discuss yet. This is in no way looking to be malicious. If this possible? and if so, are there sample codes to this type of situation?
Thank you for your time!
|
|
|
|
|
You need to read up on the TelephonyManager and PhoneStateListener classes.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi all.
I would very much like to get into Android development but am mostly familiar with Visual Studio as that is the IDE we used at university. Is it possible to use Visual Studio to develop Android applications or should I go open source? If open source, which one is best? NetBeans?
|
|
|
|
|
|
|
GO to their Site and find their tools for creating
|
|
|
|