|
|
Hi everybody,
My name is Khaing. I am from Yangon, Myanmar. I am working as php developer and I love android. So I learned about Android. I got so many problem but Google help me for that problem. But, now I would like to know how to switch on/off my room light from my android device.
Please, advice me for that problem or guide me.
Please please.
Thanks so so much,
Kindly,
Khaing.
|
|
|
|
|
khaingwarswe wrote: But, now I would like to know how to switch on/off my room light from my android device. How are they connected?
"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
|
|
|
|
|
|
{
"default_bundels": [ "P0001", "P0002", "P0003", "P0004", "P0005", "P0006" ],
"product_bundles": {
"P0001": [ { "name": "Animals", "cost": 0, "images_counts": 6, "category": "Animals" } ],
"P0002": [ { "name": "Buildings", "cost": 0, "images_counts": 6, "category": "Buildings" } ],
"P0003": [ { "name": "Cars", "cost": 0, "images_counts": 6, "category": "Cars" } ],
"P0004": [ { "name": "Sports", "cost": 0, "images_counts": 6, "category": "Sports" } ],
"P0005": [ { "name": "Fruits", "cost": 0, "images_counts": 6, "category": "Fruits" } ],
"P0006": [ { "name": "Personalities", "cost": 0, "images_counts": 6, "category": "Personalities" } ],
"P0007": [ { "name": "AnimationMovies", "cost": 0.99, "images_counts": 18, "category": "AnimationMovies" } ],
"P0008": [ { "name": "ArtPaintings", "cost": 0.99, "images_counts": 10, "category": "ArtPaintings" } ],
"P0009": [ { "name": "Cartoons", "cost": 0.99, "images_counts": 8, "category": "Cartoons" } ],
"P0010": [ { "name": "Celebrities", "cost": 0.99, "images_counts": 10, "category": "Celebrities" } ],
"P0011": [ { "name": "ExploreIndia", "cost": 0.99, "images_counts": 10, "category": "ExploreIndia" } ],
"P0012": [ { "name": "Flowers", "cost": 0.99, "images_counts": 8, "category": "Flowers" } ],
"P0013": [ { "name": "FoodAndDrink", "cost": 0.99, "images_counts": 11, "category": "FoodAndDrink" } ],
"P0014": [ { "name": "Historical", "cost": 0.99, "images_counts": 8, "category": "Historical" } ],
"P0015": [ { "name": "KidsAndBabies", "cost": 0, "images_counts": 9, "category": "KidsAndBabies" } ],
"P0016": [ { "name": "Nature", "cost": 0, "images_counts": 10, "category": "Nature" } ]
}
}
|
|
|
|
|
What have you done so far? It helps to let people know what you have tried.
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
Google and read some tutorials.You can find many good examples.If you have stuck in somewhere in your code, ask help with your code.Then we can help you
|
|
|
|
|
HI All i am facing issue in my laptop with 64 bit, installed the adt-bundle-windows-x86_64-20140702 and tried to use the eclipse and as usual i tried to hover over the method name to see the definition and details,but it was opening a browser tab in the editor ,please help me to fix this problem
|
|
|
|
|
Can anypne tell to cnnec the android application to MySQLserver.....
|
|
|
|
|
Where is "MySQLserver" located?
"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
|
|
|
|
|
Better to view the url i'm posting.I think it might help you regarding SQlite connection in android.
ch.vishnu vardhan
|
|
|
|
|
|
package com.Dictionary;
import android.app.Activity;
import android.os.Bundle;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class Dictionary extends Activity
{
EditText editText1;
Button search;
TextView textview;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
editText1=(EditText)findViewById(R.id.editText1);
search=(Button)findViewById(R.id.button1);
// search.setOnClickListener((OnClickListener) this);
textview=(TextView)findViewById(R.id.textView1);
}
}
I have develop the xml screens and java program is some methods are writing but many conditons ,View method is am not getting
please reply the java code in android which steps fllowing
|
|
|
|
|
Member 10979921 wrote:
I have develop the xml screens and java program is some methods are writing but many conditons ,View method is am not getting
please reply the java code in android which steps fllowing Your question/statement is incoherent at best. Please revise.
"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'm developing a normal web service for uploading some images to one of mobile application, at the moment i'm saving my images to local device and save the path to table from my local web application, now i need to upload those images to Android mobile app. please anyone tell me what is the best approach to do this?
Thanks.
|
|
|
|
|
hello,
I m new to php coding.I want get images and description of that image from my sql server. for that plz give me some php and android coding for getting images and videos.
thanks in advance
siva
|
|
|
|
|
What do you have so far? Please read point #2 here.
"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
|
|
|
|
|
Hello
Android Gridview for EditText add
|
|
|
|
|
Hello
Kornfeld Eliyahu Peter
Do you have any questions?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
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.
|
|
|
|
|