Re: [android-developers] setting two diffrent time in a single activity

2012-08-08 Thread Sadhna Upadhyay
 I mean two time one for current, nd another for other day's date want to
set two time







Thanks :
 sadhana

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Passing Numeric value from one activity to another through shered preference

2012-08-08 Thread Sadhna Upadhyay
  Hi Everyone,
can any one tell me  how to pass Numeric value from one activity to another
activity and how to get  numeric value from another activity through shered
preference.


thanks
 sadhana

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: URL image in GridView

2012-08-08 Thread Zoran Smilevski
You have at least 3 problems.

First is for loop in getView. You get position attribute in getView 
method for which you should return ImageView (just one!). Now you always 
load all images and then return last.

Second problem is using Drawable,createFromStream method. This is a buggy 
method, check 
here: 
http://stackoverflow.com/questions/4601352/createfromstream-in-android-returning-null-for-certain-url

Trird problem is that you are doing network operations on UI thread, I 
would rather use one of these two libraries:

   - https://github.com/nostra13/Android-Universal-Image-Loader
   - https://github.com/DHuckaby/Prime
   

On Tuesday, August 7, 2012 3:28:52 PM UTC+2, Mohamed Naguib wrote:

 I am trying to create a gridview and load some images from URLs to this 
 gridview but there is an issue in loading images but i can't find it, can 
 anyone help ?

 package com.images;
 import java.io.InputStream;
 import java.net.URL;

 import android.content.Context;
 import android.graphics.drawable.Drawable;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;
 import android.widget.GridView;
 import android.widget.ImageView;

 import com.coboltforge.slidemenuexample.MainActivity;
 import com.coboltforge.slidemenuexample.R;

 public class ImageAdapter extends BaseAdapter {
 private Context mContext;

 // Keep all Images in array
 public Integer[] mThumbIds = new Integer [27];

 // Constructor
 public ImageAdapter(Context c) {
 mContext = c;
 }

 @Override
 public int getCount() {
 return mThumbIds.length;
 }

 @Override
 public Object getItem(int position) {
 return mThumbIds[position];
 }

 @Override
 public long getItemId(int position) {
 return 0;
 }

 @Override
 public View getView(int position, View convertView, ViewGroup parent) {
 /*
  * ImageView imageView = new ImageView(mContext);
  * imageView.setImageResource(mThumbIds[position]);
  * imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
  * imageView.setLayoutParams(new GridView.LayoutParams(130, 130));
  * return imageView;
  */
 ImageView imageView;
 if (convertView == null) {
 imageView = new ImageView(mContext);
 imageView.setLayoutParams(new GridView.LayoutParams(150, 150));
 imageView.setAdjustViewBounds(false);
 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
 imageView.setPadding(8, 8, 8, 8);
 } else {
 imageView = (ImageView) convertView;
 }
 for (int i = 0; i  MainActivity.presentersImages.size(); i++) {
 imageView
 
 .setImageDrawable(LoadImageFromWebOperations(MainActivity.presentersImages
 .get(i) + position));

 }
 return imageView;
 }

 protected Drawable LoadImageFromWebOperations(String url) {
 try {
 InputStream is = (InputStream) new URL(url).getContent();
 Drawable d = Drawable.createFromStream(is, src name);
 return d;
 } catch (Exception e) {
 System.exit(0);
 return null;
 }
 }
 }
 MainActivity.presentersImages is an ArrayList of strings contains the url 
 for the images



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Passing Numeric value from one activity to another through shered preference

2012-08-08 Thread uttam agarwal
Through intent...putInt with key and then retrieve through get
On Aug 8, 2012 11:35 AM, Sadhna Upadhyay sadhna.braah...@gmail.com
wrote:

   Hi Everyone,
 can any one tell me  how to pass Numeric value from one activity to
 another activity and how to get  numeric value from another activity
 through shered preference.


 thanks
  sadhana

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Passing Numeric value from one activity to another through shered preference

2012-08-08 Thread uttam agarwal
Sorry you asked through shared preferences.. Same create editor and write
using key and then read through same key
On Aug 8, 2012 11:37 AM, uttam agarwal uttamagarwal@gmail.com wrote:

 Through intent...putInt with key and then retrieve through get
 On Aug 8, 2012 11:35 AM, Sadhna Upadhyay sadhna.braah...@gmail.com
 wrote:

   Hi Everyone,
 can any one tell me  how to pass Numeric value from one activity to
 another activity and how to get  numeric value from another activity
 through shered preference.


 thanks
  sadhana

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] FATAL EXCEPTION : AsyncTask #1

2012-08-08 Thread Ambika Kulkarni
Dear All,

I am getting the below error when i try to connect to MySQL database. I am 
using PHP for connecting to the databse stuff.

Here is my code. If i change the AVD from 4.0.3 to 2.2 then it runs fine 
and interacts with the DB. But when i run the same on AVD 4.0.3 then it 
crashes.

package com.example.androidhive;

import com.example.androidhive.library.JSONParser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
 
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
 
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;

import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONException;
import org.json.JSONObject;
 

public class AllOrderActivity extends ListActivity {
int userId;
String EmpName;
TextView tv;
// Progress Dialog
private ProgressDialog pDialog;
 
// Creating JSON Parser object
JSONParser jParser = new JSONParser();
 
ArrayListHashMapString, String productsList;
 
// url to get all products list
private static String url_all_order = 
http://localhost/android_login_api/get_all_products.php;;
 
// JSON Node names
private static final String TAG_SUCCESS = success;
private static final String TAG_ORDERS = orders;
private static final String TAG_OID = oid;
private static final String TAG_ORDER_DESCRIPTION = order_description;
private static final String TAG_EMP_NAME = empName;
 
// products JSONArray
JSONArray products = null;
 
@SuppressLint(UseValueOf)
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.all_order);
Log.d(In all oder,In all order);
 
Bundle extras = getIntent().getExtras();
if (extras != null) {
userId = extras.getInt(UserId);
EmpName = extras.getString(EmpName);
}
userId = 4;
EmpName = testing;
String s = new Integer(userId).toString();
Log.d(userId, s);
Log.d(user name, EmpName);
 tv = (TextView) findViewById(R.id.empName);

 tv.setText(EmpName); 
 
// Hashmap for ListView
productsList = new ArrayListHashMapString, String();
 
// Loading products in Background Thread
new LoadAllProducts().execute();
 
// Get listview
ListView lv = getListView();
 
// on seleting single product
// launching Edit Product Screen
lv.setOnItemClickListener(new OnItemClickListener() {
 
   
public void onItemClick(AdapterView? parent, View view,
int position, long id) {
// getting values from selected ListItem

String pid = ((TextView) 
view.findViewById(R.id.pid)).getText()
.toString();
Log.d(pid in ALL,pid);
String usrId = new Integer(userId).toString();
// Starting new intent
Intent in = new Intent(getApplicationContext(),
EditOrderActivity.class);
// sending pid to next activity
in.putExtra(TAG_OID, pid);
in.putExtra(oId, pid);
in.putExtra(userId, usrId);
in.putExtra(EmpName, EmpName);
 
// starting new activity and expecting some response back
startActivityForResult(in, 100);
}
});
 
}
 
// Response from Edit Product Activity
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {
super.onActivityResult(requestCode, resultCode, data);
// if result code 100
if (resultCode == 100) {
// if result code 100 is received
// means user edited/deleted product
// reload this screen again
Intent intent = getIntent();
finish();
startActivity(intent);
}
 
}
 
/**
 * Background Async Task to Load all product by making HTTP Request
 * */
class LoadAllProducts extends AsyncTaskString, String, String {
 
/**
 * Before starting background thread Show Progress Dialog
 * */
@Override
protected void onPreExecute() {
super.onPreExecute();
pDialog = new ProgressDialog(AllOrderActivity.this);
pDialog.setMessage(Loading products. Please wait...);
  

[android-developers] FATAL EXCEPTION : AsyncTask #1

2012-08-08 Thread Ambika Kulkarni
Dear All,

I am getting FATAL EXCEPTION : AsyncTask #1 this error in the log cat. I am 
interacting with the MySQL DB and I am using PHP stuff also.

I am able to run the code on AVD 2.2, if i change the AVD to 4.0.3 then 
this error is displaying.

JSON Parser class

package com.example.androidhive.library;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.List;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONException;
import org.json.JSONObject;

import android.util.Log;

public class JSONParser {

static InputStream is = null;
static JSONObject jObj = null;
static String json = ;

// constructor
public JSONParser() {

}

public JSONObject getJSONFromUrl(String url, ListNameValuePair params) {

// Making HTTP request
try {
// defaultHttpClient
Log.d(URL in JSON class,url);
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
httpPost.setEntity(new UrlEncodedFormEntity(params));

HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();

} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
Log.d(1, I am here);
try {
*Log.d(2, I am here out);// till here it is coming after this it gets 
crashed*
BufferedReader readero = new BufferedReader(new InputStreamReader(
is, iso-8859-1), 8);
StringBuilder sbo = new StringBuilder();
String line = null;
while ((line = readero.readLine()) != null) {
sbo.append(line + \n);
Log.d(str, sbo.toString());
}
is.close();
json = sbo.toString();
Log.d(JSON, json);
} catch (Exception e) {
Log.e(Buffer Error, Error converting result  + e.toString());
}

// try parse the string to a JSON object
try {
jObj = new JSONObject(json);
} catch (JSONException e) {
//Log.e(JSON Parser, Error parsing data  + e.toString());
e.printStackTrace();

}

// return JSON String
return jObj;

}
}

package com.example.androidhive;

import com.example.androidhive.library.JSONParser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
 
import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
 
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;

import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONException;
import org.json.JSONObject;
 

public class AllOrderActivity extends ListActivity {
int userId;
String EmpName;
TextView tv;
// Progress Dialog
private ProgressDialog pDialog;
 
// Creating JSON Parser object
JSONParser jParser = new JSONParser();
 
ArrayListHashMapString, String productsList;
 
// url to get all products list
private static String url_all_order = 
http://localhost/android_login_api/get_all_products.php;;
 
// JSON Node names
private static final String TAG_SUCCESS = success;
private static final String TAG_ORDERS = orders;
private static final String TAG_OID = oid;
private static final String TAG_ORDER_DESCRIPTION = order_description;
private static final String TAG_EMP_NAME = empName;
 
// products JSONArray
JSONArray products = null;
 
@SuppressLint(UseValueOf)
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.all_order);
Log.d(In all oder,In all order);
 
Bundle extras = getIntent().getExtras();
if (extras != null) {
userId = extras.getInt(UserId);
EmpName = extras.getString(EmpName);
}
userId = 4;
EmpName = testing;
String s = new Integer(userId).toString();
Log.d(userId, s);
Log.d(user name, EmpName);
 tv = (TextView) findViewById(R.id.empName);

 tv.setText(EmpName); 
 
// Hashmap for ListView
productsList = new ArrayListHashMapString, String();
 
// Loading products in Background Thread
new LoadAllProducts().execute();
 
// Get listview
ListView 

Re: [android-developers] FATAL EXCEPTION : AsyncTask #1

2012-08-08 Thread Ambika Kulkarni
Here the LogCat


08-08 11:30:56.913: E/AndroidRuntime(821): FATAL EXCEPTION: AsyncTask #1
08-08 11:30:56.913: E/AndroidRuntime(821): java.lang.RuntimeException: An
error occured while executing doInBackground()
08-08 11:30:56.913: E/AndroidRuntime(821): at
android.os.AsyncTask$3.done(AsyncTask.java:278)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.FutureTask.setException(FutureTask.java:124)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.FutureTask.run(FutureTask.java:137)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.lang.Thread.run(Thread.java:856)
08-08 11:30:56.913: E/AndroidRuntime(821): Caused by:
java.lang.NullPointerException
08-08 11:30:56.913: E/AndroidRuntime(821): at
com.example.androidhive.AllOrderActivity$LoadAllProducts.doInBackground(AllOrderActivity.java:172)
08-08 11:30:56.913: E/AndroidRuntime(821): at
com.example.androidhive.AllOrderActivity$LoadAllProducts.doInBackground(AllOrderActivity.java:1)
08-08 11:30:56.913: E/AndroidRuntime(821): at
android.os.AsyncTask$2.call(AsyncTask.java:264)
08-08 11:30:56.913: E/AndroidRuntime(821): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
08-08 11:30:56.913: E/AndroidRuntime(821): ... 4 more
08-08 11:30:59.824: E/WindowManager(821): Activity
com.example.androidhive.AllOrderActivity has leaked window
com.android.internal.policy.impl.PhoneWindow$DecorView@410373f0 that was
originally added here




On Wed, Aug 8, 2012 at 11:49 AM, Ambika Kulkarni ambikakulkarn...@gmail.com
 wrote:

 Dear All,

 I am getting FATAL EXCEPTION : AsyncTask #1 this error in the log cat. I
 am interacting with the MySQL DB and I am using PHP stuff also.

 I am able to run the code on AVD 2.2, if i change the AVD to 4.0.3 then
 this error is displaying.

 JSON Parser class

 package com.example.androidhive.library;

 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
 import java.io.UnsupportedEncodingException;
 import java.util.List;

 import org.apache.http.HttpEntity;
 import org.apache.http.HttpResponse;
 import org.apache.http.NameValuePair;
 import org.apache.http.client.ClientProtocolException;
 import org.apache.http.client.entity.UrlEncodedFormEntity;
 import org.apache.http.client.methods.HttpPost;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.json.JSONException;
 import org.json.JSONObject;

 import android.util.Log;

 public class JSONParser {

 static InputStream is = null;
  static JSONObject jObj = null;
 static String json = ;

 // constructor
  public JSONParser() {

 }

 public JSONObject getJSONFromUrl(String url, ListNameValuePair params) {

 // Making HTTP request
 try {
 // defaultHttpClient
  Log.d(URL in JSON class,url);
 DefaultHttpClient httpClient = new DefaultHttpClient();
 HttpPost httpPost = new HttpPost(url);
  httpPost.setEntity(new UrlEncodedFormEntity(params));

 HttpResponse httpResponse = httpClient.execute(httpPost);
  HttpEntity httpEntity = httpResponse.getEntity();
 is = httpEntity.getContent();

 } catch (UnsupportedEncodingException e) {
  e.printStackTrace();
 } catch (ClientProtocolException e) {
 e.printStackTrace();
  } catch (IOException e) {
 e.printStackTrace();
 }
 Log.d(1, I am here);
  try {
 *Log.d(2, I am here out);// till here it is coming after this it gets
 crashed*
  BufferedReader readero = new BufferedReader(new InputStreamReader(
 is, iso-8859-1), 8);
  StringBuilder sbo = new StringBuilder();
 String line = null;
 while ((line = readero.readLine()) != null) {
  sbo.append(line + \n);
 Log.d(str, sbo.toString());
 }
  is.close();
 json = sbo.toString();
 Log.d(JSON, json);
  } catch (Exception e) {
 Log.e(Buffer Error, Error converting result  + e.toString());
  }

 // try parse the string to a JSON object
 try {
  jObj = new JSONObject(json);
 } catch (JSONException e) {
 //Log.e(JSON Parser, Error parsing data  + e.toString());
  e.printStackTrace();

 }

 // return JSON String
  return jObj;

 }
 }

 package com.example.androidhive;

 import com.example.androidhive.library.JSONParser;

 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;

 import org.apache.http.NameValuePair;
 import org.json.JSONArray;
 import org.json.JSONException;
 import org.json.JSONObject;

 import android.annotation.SuppressLint;
 import android.app.Activity;
 import android.app.ListActivity;
 import android.app.ProgressDialog;
 import android.content.Intent;
 import 

Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread TreKing
On Tue, Aug 7, 2012 at 8:15 PM, CJ joven.ch...@gmail.com wrote:

 How can this happen? When an app has already launch, it will not restart
 onCreate() but onResume().
 My app is starting onCreate() everytime, I have to put that isTaskRoot()
 to fix it. Never happen in my other app.
 You mean this is normal?


If you're launching the app multiple times from the same method (like from
a shortcut on your homescreen) an onCreate is called each time, then no,
this is not normal.

I would guess you have a flag or something set in your manifest that is
causing the Activity to be recreated each time. Maybe post your manifest?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] android add hyperlink to text

2012-08-08 Thread TreKing
On Mon, Aug 6, 2012 at 10:46 AM, florin1 florinac...@gmail.com wrote:

 My problem is the way that this data is displayed on my android device, i
 have the whole link rtsp://link.
 I want to display it like this (i'll give you a html example):  a
 href=rtsp://LINK NAME /a


So parse it and create a link out of it, exactly as you have shown. What's
the issue?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to make activate from sms ?

2012-08-08 Thread ono
I would like to change this subject to ' How to kick the app by SMS'.

When a device have received a SMS, how dose it kick a application ?
Or how to kick it from it's standby ?

Any advice thx.

Ono

2012年7月27日金曜日 18時49分27秒 UTC+9 ono:

 Thanks for reply.
 And could you give me a sample code ?

 Ono

 2012年7月27日金曜日 5時04分57秒 UTC+9 Kristopher Micinski:

 Google SMS broadcast receiver 
 On Jul 26, 2012 5:01 AM, ono onoke...@gmail.com wrote:

 Hi,

 I am searching a sample code what make activate android app by SMS.
 Could anyone show one to me?
 Java native code is good, but HTML5/JS is better. 
 I mean like act 'Prey Anti-Theft(http://preyproject.com/)'.

 Any advice thanks.

 Ono

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Which suites best for a beginner - Andromo, Buzztouch, Android SDK or something else?

2012-08-08 Thread TreKing
On Mon, Aug 6, 2012 at 5:12 PM, canman vell...@gmail.com wrote:

 As I'm totally new to Android programming and programming at all.


If you're new to programming at all, then learning Java on it's own,
outside of Android, would be the best first step. Then you can move to
learning the SDK or some other frameworks. You're not going to get very far
without having the language  down first.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: not having a field day

2012-08-08 Thread Dominik
you cannot beam from device to device, but you can implement any 
application which uses the tag-reading mode of NFC. These apps are 
comparable with QR-Code based apps, but the application starts as soon as 
the tag is touched. You find examples in the play store. With the NFC Task 
Launcher you can store tasks on a tag (e.g. to set a WiFi connection, to 
set a timer, to mute the device etc) which are executed upon touching the 
tag. An application we have written is NFC Memory. Play memory with NFC 
tags and cards which you find in your purse.
Dominik

Am Dienstag, 7. August 2012 20:33:28 UTC+2 schrieb bob:

 Have any of you all done anything with NFC?  Or is it pretty much too new?

 I have a lot of devices, and only one of them seems to support NFC.

 (NfcAdapter.getDefaultAdapter(this) returns non-null)

 I guess there's not much I can do with just one NFC device?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread CJ
Yes, not normal at all and adding android:launchMode=singleTop didn't 
help.
I read about the prob/solution here:  
http://stackoverflow.com/questions/4341600/how-to-prevent-multiple-instances-of-an-activity-when-it-is-launched-with-differ
 

I don't why this happen to this app and not my other app. The proposed 
solution doesn't solved the issue.

application
android:icon=@drawable/ic_launcher
android:launchMode=singleTop
android:label=@string/app_name 
activity
android:name=.MainActivity
android:label=@string/app_name  
intent-filter
action android:name=android.intent.action.MAIN /

category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity

receiver
android:name=MyAlarmEventReceiver
android:process=:alarm_event_receiver_wake 
/receiver
service android:enabled=true android:name=.MyService /
/application

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Voice Talk in norwegian

2012-08-08 Thread TreKing
On Mon, Aug 6, 2012 at 3:23 PM, Håkon Melhuus suuh...@gmail.com wrote:

 Is there some way I can help making VoiceTalk in norwegian a reality?


You would have to contact the developers of the VoiceTalk app.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] WiFi device

2012-08-08 Thread Meena Rengarajan
Do I need Router's IP address including those username and password to use 
Wireless connection methods like Wifi protected setup to detect Wifi 
devices ? Can anyone help me here ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] expandiblelistview with child onitem clicklistener with go button

2012-08-08 Thread Jagadeesh
Thanks .I resolved that ISSue
On Aug 8, 2012 3:11 AM, Justin Anderson magouyaw...@gmail.com wrote:

 In Expanidble list view child after selecting  with checkbox of each child
 item based on childitem  i given on clicklistener with go button ,its not
 happening in code

 can any one help .

 Ummm what?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Sat, Aug 4, 2012 at 4:46 PM, TreKing treking...@gmail.com wrote:

 On Sat, Aug 4, 2012 at 1:50 PM, Jagadeesh mjagadeeshb...@gmail.comwrote:

  In Expanidble list view child after selecting  with checkbox of each
 child item based on childitem  i given on clicklistener with go button ,its
 not happening in code
 can any one help .


 Your question is not very clear. You should clarify and reduce your giant
 block of code to the smallest snippet possible that illustrates your
 problem.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] using phonegap plugin in android want to reduce the screen size of camera

2012-08-08 Thread senthil kumar
I am using phonegap plugin in android
want to reduce the screen size of camera.
i have attached the capture.xml file with this mail.
please find the attachment...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

capture.xml
Description: XML document


Re: [android-developers] Error In My Code for Usb detection in Android..please Help me..!!

2012-08-08 Thread om mehta


 My problem is when i run this code on AVD emulator...it show that this 
 application gas stop working...Force Close..whats the error??..and can 
 anyone give me solution? 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Invitation to use Google Talk

2012-08-08 Thread Google Talk
---

You've been invited by Ibrahim Sada to use Google Talk.

If you already have a Google account, log in to Gmail and accept this
chat invitation:
http://mail.google.com/mail/b-5652cea895-1fb2ad7e6c-BML8_SHGyvlg3h8wAfQ4BUm5OXs

To sign up for a Google account and get started with Google Talk, you can visit:
http://mail.google.com/mail/a-5652cea895-1fb2ad7e6c-BML8_SHGyvlg3h8wAfQ4BUm5OXs?pc=en_gb-rf---a

Learn more at:
http://www.google.com/intl/en/landing/accounts/


Thanks,
The Google Team

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Encryption

2012-08-08 Thread TreKing
On Tue, Aug 7, 2012 at 6:54 AM, Jovce Mitrejcevski
mitrejcev...@gmail.comwrote:

 The question is what is the best approach way/best algorithm to do this?


Consider asking Google. This is in no way specific to Android.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how can i make a input form like that

2012-08-08 Thread TreKing
On Tue, Aug 7, 2012 at 4:10 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Don't use a dialog...  I don't know exactly what Maps is doing, but it is
 likely just a Layout with a semi-transparent background and all the other
 items pushed up to the top.


This. You can put your MapView and this input view in a Relative or Frame
layout. Or you could even shove the input view in the MapView itself.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread TreKing
On Wed, Aug 8, 2012 at 1:35 AM, CJ joven.ch...@gmail.com wrote:

 Yes, not normal at all and adding android:launchMode=singleTop didn't
 help.


How are you launching your app when this happens? Just from the Launcher?
Can you create a simple demo that demonstrates the issue?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Encryption

2012-08-08 Thread Zoran Smilevski
Hi :)

I am using RC4 algorithm and HexDump to store byte[] as String. It's simple 
and fast. You just need a byte key with which you encode/decode things.

RC4: http://opensourcejavaphp.net/java/hipergate/com/knowgate/acl/RC4.java.html
HexDump: 
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.4_r1.2/com/android/internal/util/HexDump.java#HexDump

public static String encryptString(String normal)
 {
 byte[] encrypt = new RC4(KEY).rc4(normal); 
 return HexDump.toHexString(encrypt);
 }
 public static String decryptString(String encrypted)
 {
 if (encrypted.length()  0)
 {
 byte[] decrypt = HexDump.hexStringToByteArray(encrypted);
 return new String(new RC4(KEY).rc4(decrypt));
 }
 return ;
 }


On Tuesday, August 7, 2012 1:54:22 PM UTC+2, Jovce Mitrejcevski wrote:

 Hello,

 I am building an application which is using SQLite database. The 
 database/items inside should be encrypted that way, when someone with 
 rooted device export the database, the items should not be readable.
 While the application run time, i have to read articles from the database, 
 decode them, show to the user, and if he do some changes, save encrypted 
 items. All to all, I need 2 ways encrypt/decrypt algorithm.
 The question is what is the best approach way/best algorithm to do this?

 Thank you very much.

 Regards,

 Jovce


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread CJ
Hi Treking,

Really nothing unusual. I just launch it normally pressing home button to 
load the already loaded app or click the app icon etc.
I confirmed this behavior by adding a Toast message in onCreate() and it 
get called every time and of course if I press the back button, I can see 
it going reverse etc.

Stackoverflow said it's a bug and I googled and saw some similar situation. 
If it is, there might be something that trigger this and if we know we can 
prevent this.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: problem in SOAP - asmx web service

2012-08-08 Thread Rajan
Yeh finally i got the solution,
this is my code
--
public class HTTPOST 
{
public String getResponseByXML(String URL, String request) 
{
HttpPost httpPost = new HttpPost(URL);
StringEntity entity;
String response_string = null;
try
{
entity = new StringEntity(request, HTTP.UTF_8);
httpPost.setHeader(Content-Type,text/xml;charset=UTF-8);
// httpPost.setHeader(Content-Type,application/soap+xml;charset=UTF-8);
httpPost.setEntity(entity);
HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(httpPost);
response_string = EntityUtils.toString(response.getEntity());
Log.d(request, response_string);
}
catch (Exception e) 
{
e.printStackTrace();
}
return response_string;
}
 public String getResponseByFile(String URL,String xml)
{
HttpPost httpPost = new HttpPost(URL);

FileEntity entity;
String response_string = null;
try 
{
StringEntity ent=new StringEntity(xml,UTF-8);
//entity = new FileEntity(new 
File(Environment.getExternalStorageDirectory()+File.separator+request.xml), 
UTF-8);
httpPost.setHeader(Content-Type,text/xml;charset=UTF-8);
//httpPost.setHeader(Content-Type,application/soap+xml;charset=UTF-8);
//httpPost.setEntity(entity);
httpPost.setEntity(ent);
HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(httpPost);
response_string = EntityUtils.toString(response.getEntity());
Log.d(request, **---*** Response : 
+Html.fromHtml(response_string).toString());
}
catch (Exception e) 
{
e.printStackTrace();
}
return response_string;
}
}
--
 

public class SoapHTTPPostActivity extends Activity
{
private String URL = 
http://stage.simformsolutions.com:55109/WebServices/BAAccountService.asmx;;
 @Override
public void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

String xml = ?xml version=\1.0\ encoding=\utf-8\?+
soap:Envelope xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\; 

xmlns:xsd=\http://www.w3.org/2001/XMLSchema\; 

xmlns:soap=\http://schemas.xmlsoap.org/soap/envelope/\;+
  soap:Body+
GetAllAdspacesByBusiness xmlns=\http://tempuri.org/\;+
  businessID+3+/businessID+
/GetAllAdspacesByBusiness+
  /soap:Body+
/soap:Envelope;
String result=null;
try
{
 InputStream is = new ByteArrayInputStream(xml.getBytes());
result=convertStreamToString(is);

//xml = convertStreamToString(getAssets().open(request.xml));
} 
catch (Exception e) 
{
e.printStackTrace();
}
String request = String.format(result);
HTTPOST httpost = new HTTPOST();
httpost.getResponseByXML(URL, request);
httpost.getResponseByFile(URL,xml);
}

public static String convertStreamToString(InputStream is) throws Exception 
{
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null)
{
sb.append(line+\n);
}
is.close();
return sb.toString();
}
}
 END 
-  


On Wednesday, 1 August 2012 19:09:43 UTC+5:30, Rajan wrote:

 i am trying to get the response from the SOAP asmx web service but it 
 didn't give proper response


 ---
  
 here i putting my logcat entry
 -

 08-01 19:08:06.891: W/System.err(1994): 
 org.xmlpull.v1.XmlPullParserException: unterminated entity ref 
 (position:TEXT  ?  ? '
 ?...@1:18 in java.io.InputStreamReader@44e9c180) 

 08-01 19:08:06.891: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.exception(KXmlParser.java:273)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.error(KXmlParser.java:269)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.pushEntity(KXmlParser.java:787)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.pushText(KXmlParser.java:855)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.nextImpl(KXmlParser.java:354)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.next(KXmlParser.java:1385)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.kxml2.io.KXmlParser.nextTag(KXmlParser.java:1415)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:127)
 08-01 19:08:06.901: W/System.err(1994): at 
 org.ksoap2.transport.Transport.parseResponse(Transport.java:100)
 08-01 19:08:06.901: W/System.err(1994): at 
 

[android-developers] AutoCompleteTextView remove/change color delimiter

2012-08-08 Thread Dmitriy F


Is it possible to remove/change color of the delimiter(it's grey by 
default) in AutoCompleteTextView's popup ? In ListView I get use of the 
delimiter parameter, but I haven't found any similar in 
AutoCompleteTextView.

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to handle multi-touch to zoom the general view rather than the imageview?

2012-08-08 Thread Ragnarok
Is there any common way to zoom the general view? Can someone give me some 
ideas or the sample code? Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Which suites best for a beginner - Andromo, Buzztouch, Android SDK or something else?

2012-08-08 Thread canman
Thanks for explanations.

I have got an imagination, that there exist basic Android application 
building tools, where user solution (application) creation is based on 
building blocks. Like dragging objects from library to work desk and 
determining relationship and actions between objects on work desk. Like the 
application description in my initial post, where are needed some up to 
10-15 objects tied with actions.

Thanks for clear out that Android SDK isn't one of such kind. :-)

Could anyone please share experiences, where to look and what are most 
popular solutions for creating usable Android solutions without basic 
programming knowledge.
Thanks!



 

On Wednesday, August 8, 2012 9:33:16 AM UTC+3, TreKing wrote:

 On Mon, Aug 6, 2012 at 5:12 PM, canman vel...@gmail.com javascript:wrote:

 As I'm totally new to Android programming and programming at all.


 If you're new to programming at all, then learning Java on it's own, 
 outside of Android, would be the best first step. Then you can move to 
 learning the SDK or some other frameworks. You're not going to get very far 
 without having the language  down first.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Emulator not starting up

2012-08-08 Thread Shivdeep Roy
still not working tried all options keep SD memory to 1GB

On Tuesday, August 7, 2012 11:22:17 PM UTC+5:30, xucaen wrote:

 I had issues too, until I figured out I was making my storage too big. 
 keep it under 2GiB and it should load pretty quickly.



 On Monday, August 6, 2012 2:24:26 AM UTC-4, Shivdeep Roy wrote:

 I'm new to android programming. I have installed SDK and AVD Managers 
 when i start my emulator with the AVD manager it doesn't start up. It only 
 shows the Android Boot Screen, i keep it on for more than 5 hrs but no 
 response. I also tried with the snapshot option but it also seem to be of 
 no help. Please help ASAP.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] If I get all images from ImageView , how can I do it?

2012-08-08 Thread 진홍우
Hi, Developers

I'm making drag and drop grid view , but now I am facing problem how
to set Shared Preferences which references by
http://blahti.wordpress.com/2011/10/03/drag-drop-for-android-gridview/
For shared preferences , I want to get all images and position as
array index from ImageView, if I do it , how can I make functions.

thank you
hwjin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Passing Numeric value from one activity to another through shered preference

2012-08-08 Thread Roman
You can use this code to implement a singleton class for configuration 
using writable SharedPreferences.

public final class Config {

private static Config INSTANCE = new Config();
private ConfigProperties configProperties;

private Config(){}

public static Config getInstance() {
return INSTANCE;
}

public void init(Context context) {
configProperties = new ConfigProperties(context);
}

}

public class ConfigProperties {

private SharedPreferences preferences;
private SharedPreferences.Editor editor;

public ConfigProperties(Context parent) { 

preferences = PreferenceManager
.getDefaultSharedPreferences(parent.getApplicationContext());

editor = preferences.edit();

}

public String getStringProperty(String key) {
return preferences.getString(key, null);
}

public Integer getIntegerProperty(String key) {
return preferences.getInt(key, 0);
}

public Boolean getBooleanProperty(String key) {
return preferences.getBoolean(key, false);
}

public void setStringProperty(String key, String value) {
editor.putString(key, value);
editor.commit();
}

public void setIntegerProperty(String key, int value) {
editor.putInt(key, value);
editor.commit();
} 

public void setBooleanProperty(String key, boolean value) {
editor.putBoolean(key, value);
editor.commit();
}

}

El miércoles, 8 de agosto de 2012 08:04:39 UTC+2, Sadhna Upadhyay escribió:

   Hi Everyone,
 can any one tell me  how to pass Numeric value from one activity to 
 another activity and how to get  numeric value from another activity 
 through shered preference.


 thanks
  sadhana


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Which suites best for a beginner - Andromo, Buzztouch, Android SDK or something else?

2012-08-08 Thread Roman
AppInventor could be!!

http://beta.appinventor.mit.edu/

But, you should learn java and then look android sdk. You will need this 
for android programming.


El martes, 7 de agosto de 2012 00:12:58 UTC+2, canman escribió:

 After some considerations the conclusion is - in order to fully utilize my 
 Android phone and tablet (both from Samsung), I must learn some Android 
 programming.
 But after googling for learning the best Android programming environment, 
 there is more confusion then before.

  

 Please could someone clarify, what is the main difference between Online 
 programming like Andromo, the one like http://www.buzztouch.com/? And of 
 course, there is Android SDK, which seems most difficult for a beginner?

 As I'm totally new to Android programming and programming at all. All my 
 experiences  are until now limited more to computer hardware :-)

 Which way suites best for a beginner whose first goal would be to create 
 an app for collecting monthly power meter readings :-) ?

  

 Below is description of the task to consider if these even support given 
 task.

  

 I have one account with 2 main readings (day and night) + 8 additional 
 heaters consumption meters for local analyzing in MS Excel.

 Every month first day I write numbers onto paper, then enter all to MS 
 Excel and finally log into energy portal to register readings for monthly 
 billing.

  

 Plus I have also some other accounts just with 2 main readings - day and 
 night.

  

 Always only 2 main readings (day+night) will be sent for billing by SMS to 
 local Energy supplier.

  

 Objects I need are: 

 1. Start page with dropdown menu for account selection

 2. Buttons: next, go to end

 3. 8 numeric Data entry field pages, which each one reading, displaying 
 last reading until new is entered (How such object is named?)

 Maybe I must limit app to one account only, else displaying previous 
 reading requires probably too dedicated database lookup

  

 4. Overview final result screen displaying all 6 readings with function 
 buttons:

  

 Function buttons on last screen are: 

 1.Send SMS to predefined number(take 2 first readings and create SMS 
 content C 000 A 000 D 00 N 00

 (Customer ID, Agreement No, Day, Night)

  2. Send comma separated 6 readings to my Email for importing manually 
 into MS Excel table.

  

 All ideas and remarks are welcomed.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android: Add entry to the calendar

2012-08-08 Thread Rahul Kaushik
Hi,

I need to add an entry in android calendar
please suggest.

Thanks
RK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Which suites best for a beginner - Andromo, Buzztouch, Android SDK or something else?

2012-08-08 Thread Martin
Basic4Android is worth considering.

http://www.basic4ppc.com/index.html

It's has a much easier learing curve than 1) Learn Java then 2) Learn how 
to apply your Java knowledge to Android.

Martin.


On Monday, August 6, 2012 11:12:58 PM UTC+1, canman wrote:

 After some considerations the conclusion is - in order to fully utilize my 
 Android phone and tablet (both from Samsung), I must learn some Android 
 programming.
 But after googling for learning the best Android programming environment, 
 there is more confusion then before.

  

 Please could someone clarify, what is the main difference between Online 
 programming like Andromo, the one like http://www.buzztouch.com/? And of 
 course, there is Android SDK, which seems most difficult for a beginner?

 As I'm totally new to Android programming and programming at all. All my 
 experiences  are until now limited more to computer hardware :-)

 Which way suites best for a beginner whose first goal would be to create 
 an app for collecting monthly power meter readings :-) ?

  

 Below is description of the task to consider if these even support given 
 task.

  

 I have one account with 2 main readings (day and night) + 8 additional 
 heaters consumption meters for local analyzing in MS Excel.

 Every month first day I write numbers onto paper, then enter all to MS 
 Excel and finally log into energy portal to register readings for monthly 
 billing.

  

 Plus I have also some other accounts just with 2 main readings - day and 
 night.

  

 Always only 2 main readings (day+night) will be sent for billing by SMS to 
 local Energy supplier.

  

 Objects I need are: 

 1. Start page with dropdown menu for account selection

 2. Buttons: next, go to end

 3. 8 numeric Data entry field pages, which each one reading, displaying 
 last reading until new is entered (How such object is named?)

 Maybe I must limit app to one account only, else displaying previous 
 reading requires probably too dedicated database lookup

  

 4. Overview final result screen displaying all 6 readings with function 
 buttons:

  

 Function buttons on last screen are: 

 1.Send SMS to predefined number(take 2 first readings and create SMS 
 content C 000 A 000 D 00 N 00

 (Customer ID, Agreement No, Day, Night)

  2. Send comma separated 6 readings to my Email for importing manually 
 into MS Excel table.

  

 All ideas and remarks are welcomed.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Which suites best for a beginner - Andromo, Buzztouch, Android SDK or something else?

2012-08-08 Thread Martin
Ooops learing curve was meant to be learning curve!


On Wednesday, August 8, 2012 10:46:11 AM UTC+1, Martin wrote:

 Basic4Android is worth considering.

 http://www.basic4ppc.com/index.html

 It's has a much easier learing curve than 1) Learn Java then 2) Learn how 
 to apply your Java knowledge to Android.

 Martin.


 On Monday, August 6, 2012 11:12:58 PM UTC+1, canman wrote:

 After some considerations the conclusion is - in order to fully utilize 
 my Android phone and tablet (both from Samsung), I must learn some Android 
 programming.
 But after googling for learning the best Android programming environment, 
 there is more confusion then before.

  

 Please could someone clarify, what is the main difference between Online 
 programming like Andromo, the one like http://www.buzztouch.com/? And of 
 course, there is Android SDK, which seems most difficult for a beginner?

 As I'm totally new to Android programming and programming at all. All my 
 experiences  are until now limited more to computer hardware :-)

 Which way suites best for a beginner whose first goal would be to create 
 an app for collecting monthly power meter readings :-) ?

  

 Below is description of the task to consider if these even support given 
 task.

  

 I have one account with 2 main readings (day and night) + 8 additional 
 heaters consumption meters for local analyzing in MS Excel.

 Every month first day I write numbers onto paper, then enter all to MS 
 Excel and finally log into energy portal to register readings for monthly 
 billing.

  

 Plus I have also some other accounts just with 2 main readings - day and 
 night.

  

 Always only 2 main readings (day+night) will be sent for billing by SMS 
 to local Energy supplier.

  

 Objects I need are: 

 1. Start page with dropdown menu for account selection

 2. Buttons: next, go to end

 3. 8 numeric Data entry field pages, which each one reading, displaying 
 last reading until new is entered (How such object is named?)

 Maybe I must limit app to one account only, else displaying previous 
 reading requires probably too dedicated database lookup

  

 4. Overview final result screen displaying all 6 readings with function 
 buttons:

  

 Function buttons on last screen are: 

 1.Send SMS to predefined number(take 2 first readings and create SMS 
 content C 000 A 000 D 00 N 00

 (Customer ID, Agreement No, Day, Night)

  2. Send comma separated 6 readings to my Email for importing manually 
 into MS Excel table.

  

 All ideas and remarks are welcomed.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Maps with custom tiles

2012-08-08 Thread Todd Bennett
Hey Saurav,

When I saw the date on the post I figured you might not have the code
anymore.

Thanks for the reply.  I have searched the internet high and low and no one
seems to have code for this.  Any ideas where I might find code on
displaying custom tiles (zoom, x, y) over Google Maps using MapView and
Android?

Thanks,

Todd

On Wed, Aug 8, 2012 at 1:12 AM, Saurav to.saurav.mukher...@gmail.comwrote:

 Cant share code. It was with my prev company.
 Hard luck.


 Regards,
 Saurav Mukherjee.

 Twitter https://twitter.com/#!/fasuke
 Facebook https://www.facebook.com/fuusuke



 On Wed, Aug 8, 2012 at 1:19 AM, Todd Bennett todd.e.benn...@gmail.comwrote:

 Did you ever get this figured out without using OSM?  If you could share
 some code that would be great.  Even if you used OSM.

 I have tiles, generated with MapTiler that I need to overlay on the
 Google Map tiles to show sea level rise in an Android App.

 Thanks,

 Todd

 On Monday, June 15, 2009 4:49:29 AM UTC-4, khose wrote:

 Ok, i'll take a look. FYI, i get the tiles from a server, using HTTP
 requests, and then parsing xml. So i ask for a tile passing by
 longitude, latitude and zoom level...just as Google Maps. But of
 course its not GMaps.

 I'll see if i find a solution within that project. Thanks for your
 help!

 On 8 jun, 19:10, Kiran Mudiam mud...@gmail.com wrote:
  AFAIK,  The Android MapView only supports satellite and map view
  tiles.
 
  I did come across a thread on this forum earlier some one asking for
  custom tiles, and also noted that a feature request was going to put
  in. Not sure if that ever happened ?!!
 
  But I came across this project on google code that is a full/free
  replacement for the MapView class.
 
  http://code.google.com/p/**osmdroid/http://code.google.com/p/osmdroid/
 
  Look at the code and this may help u get ideas on how to implement
  your own tiles as well.
 
  -
  Kiran
 
  On Jun 8, 8:21 am, CF chrisfurt...@gmail.com wrote:
 
   I have a custom map created using Google My Maps, but am not able to
   replicate the same on Android. Any suggestions?
 
   On Jun 8, 10:35 am, Saurav Mukherjee to.saurav.mukher...@gmail.com*
 *
   wrote:
 
do u already have map tiles of ur own??
 
On Mon, Jun 8, 2009 at 7:59 PM, CF chrisfurt...@gmail.com
 wrote:
 
 I'm struggling with the same problem. Any pointers or ideas?
 
 On May 20, 5:20 am, khose marcos.hdez@gmail.com wrote:
  C'mon there must be a solution:)
 
  On 14 mayo, 09:52, khose marcos.hdez@gmail.com wrote:
 
   Hi!
 
   I've been searching hardly the past two days, looking for a
 way to
   implement a map view with custom map tiles. I mean; i have
 to use maps
   tiles different than the ones provided by Google Maps.
 
   Someone said here that there is a way, but he didn't tell
 the way to
   do that. I know that you can do that with Google Maps API
 for Web, but
   i've studied Android's API and i can't find a method to load
 your map
   tiles.
 
   I would appreciate any help and/or example to do this. I'm
 really
   stucked and the client need this feature in the application.
 
   Thanks in advance!
 
 

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] setting two diffrent time in a single activity

2012-08-08 Thread Er. Ankit Singh
Hello,
Its simple get today's time in first one and then add 24 hrs to it
to get next day's time and send it on intent or can also set on bean and
get it in another Activity.


On Wed, Aug 8, 2012 at 11:32 AM, Sadhna Upadhyay
sadhna.braah...@gmail.comwrote:

  I mean two time one for current, nd another for other day's date want to
 set two time







Thanks :
 sadhana

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 

Thanks  Regards
Er. Ankit Kumar Singh
91-987-639-6769

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color

2012-08-08 Thread Tobias Reich
Okay, I will try this but after all, it happens in OpenGL 1.0 as well and 
there is no chance to change the shader there.
What could I do there? And why did it work on older phones/android versions 
like the S1 and the S2 with Android 2.x?

Am Dienstag, 7. August 2012 09:08:57 UTC+2 schrieb Romain Guy (Google):

 Hi,

 You should output your colors with premultiplied alpha. Your code should 
 look like this:

 vec3 color = clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0);
 color *= 0.5; // premultiply by alpha

 gl_FragColor = vec4(color, 0.5);



 On Mon, Aug 6, 2012 at 4:21 PM, Tobias Reich tobias...@gmail.comjavascript:
  wrote:

 I'm working on a new Galaxy S3 and found a problem that didn't occur on 
 other phones like my old Galaxy S1 or the Galaxy S2 - which has almost the 
 same GPU as the S3.
 When drawing my OpenGL models on top of my camera image like this:

 mGLView = new GLSurfaceView(this); 
 mGLView.setOnClickListener(InputManager.getInstance()); GameRenderer 
 renderer = new GameRenderer(kamera, this); 
 InputManager.getInstance().currentActivity = renderer; 
 mGLView.setEGLContextClientVersion(2); mGLView.setEGLConfigChooser(8, 8, 8, 
 8, 16, 0); setPreserveEGLContextOnPause 
 mGLView.getHolder().setFormat(PixelFormat.TRANSLUCENT); 
 mGLView.setZOrderOnTop(true); mGLView.setRenderer(renderer); 
 setContentView(new CameraView(this), new 
 LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
 addContentView(mGLView, new LayoutParams(LayoutParams.MATCH_PARENT, 
 LayoutParams.MATCH_PARENT));

 So the GLRenderer should be transparent. It actually is. It works fine 
 for all the objects that are opaque as well as the background (where I see 
 the image of the camera)

 My problem is, when I make the pixels semi-transparent in the fragment 
 Shader I get a weird result. The brightest pixels seem overexpose when 
 blending together. And it looks like they got clamped after so the value 
 that brighter than white - loosing probably the first bit - got dark again. 
 So only the brightest pixels are affected. It happens even if I use a 
 simple call like:

 gl_FragColor = vec4(clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0), 
 0.5);



 So the actual GL-Fragment is clamped and I'm pretty sure it comes from 
 the camera preview itself. Here is an image that describes my problem:   


 https://lh6.googleusercontent.com/-XhUolY4rNXA/UCBQnwRqb6I/AAM/YgzaE-KfGZs/s1600/glProblem.jpg

 I get more and more convinced that it is an overflow for the values but 
 how can I change this? By the way - perhaps it helps - this effect gets 
 stronger the lower the alpha value of the fragment (the gl rendered one) 
 is. So somehow it looks like something is compensating/normalizing the 
 semi transparent values.

 Is there any way of clamping both values together since in the Shader I 
 can only clamp the actual rendered fragment somehow without asking for the 
 camera preview values. :-(
 Thank you very much! I hope it is not a severe problem,

   Tobias Reich 
  



  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Romain Guy
 Android framework engineer
 roma...@android.com javascript:

  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ReverseGeocoding NullPointerException

2012-08-08 Thread Ece Osmanağaoğlu
I wanna get current location.
There is null pointer exception in ListAddress

locMan = (LocationManager) 
this.getSystemService(Context.LOCATION_SERVICE);
gpsProv = LocationManager.GPS_PROVIDER;
locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 
250, Kampusler.this);
myGeo = new Geocoder(Kampusler.this, Locale.getDefault());

loc = locMan.getLastKnownLocation(gpsProv);
try
{
ListAddress adres = myGeo.getFromLocation(loc.getLatitude(), 
loc.getLongitude(), 1);
if(adres != null) 
{
for(int i=0; i  adres.get(0).getMaxAddressLineIndex(); 
i++)
{  
result += adres.get(0).getAddressLine(i) + \n;
}   
}
else
{
Toast.makeText(Kampusler.this, Don't get address..., 
Toast.LENGTH_LONG).show();
}
}
catch (Exception e) 
{
e.printStackTrace();
Toast.makeText(getApplicationContext(), e.getMessage(), 
Toast.LENGTH_SHORT).show();
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Wifi Devices

2012-08-08 Thread Meena Rengarajan
How to send Datas to Wifi devices from application ? In my code, i could 
able to check Wifi status programmatically . Please can anyone help me ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color

2012-08-08 Thread Tobias Reich
Alright. I got it.
Now it works. I simply didn't multiply the values!
Man, you helped me a lot! Really! How can I thank you for this??? I was 
working on that problem for... ages!
It doesn't explain why it worked perfectly fine on older machines nor does 
it explain what to do in OpenGL 1.0 but at least it is a solution!
Thank you very much!
 Tobias

Am Dienstag, 7. August 2012 09:08:57 UTC+2 schrieb Romain Guy (Google):

 Hi,

 You should output your colors with premultiplied alpha. Your code should 
 look like this:

 vec3 color = clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0);
 color *= 0.5; // premultiply by alpha

 gl_FragColor = vec4(color, 0.5);


  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Intent to launch Voice Recognition Settings Activity?

2012-08-08 Thread Mark Carter
I know for pre-Honeycomb devices you need:

intent.setClassName(com.google.android.voicesearch, 
com.google.android.voicesearch.VoiceSearchPreferences);

and for Jelly Bean:

intent.setClassName(com.google.android.googlequicksearchbox, 
com.google.android.voicesearch.VoiceSearchPreferences);

but does anyone have an HC or ICS device handy to check the logs to see 
what they use?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Wifi Devices

2012-08-08 Thread Asheesh Arya
i will give you source code 2mrw

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] open content on click of button

2012-08-08 Thread pankajdev
Hi , 

i am new to this forums , i have tried a sample android application using 
MOTODEV studio , i am not able to find few things , like how to setup the 
action for the button and if i setup an action how do i open the layout 
while i click over the button , i am having six button ,now i want if i 
click over one button it should load the layout or should be send to next 
screen to display content.

Please guide with example or same code so that learning is easy.

with regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] open content on click of button

2012-08-08 Thread Parthi K
Hi pankajdev,   just pass onclicklistener
use getId values...
and pass resources layout...


On Wed, Aug 8, 2012 at 6:48 PM, pankajdev pankajde...@gmail.com wrote:

 Hi ,

 i am new to this forums , i have tried a sample android application using
 MOTODEV studio , i am not able to find few things , like how to setup the
 action for the button and if i setup an action how do i open the layout
 while i click over the button , i am having six button ,now i want if i
 click over one button it should load the layout or should be send to next
 screen to display content.

 Please guide with example or same code so that learning is easy.

 with regards

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: open content on click of button

2012-08-08 Thread bob
 

Button b = findViewById(R.id.button);

b.setOnClickListener(new OnClickListener() {

 @Override

public void onClick(View v) {

 // Button clicked

  }

});

On Wednesday, August 8, 2012 8:18:57 AM UTC-5, pankajdev wrote:

 Hi , 

 i am new to this forums , i have tried a sample android application using 
 MOTODEV studio , i am not able to find few things , like how to setup the 
 action for the button and if i setup an action how do i open the layout 
 while i click over the button , i am having six button ,now i want if i 
 click over one button it should load the layout or should be send to next 
 screen to display content.

 Please guide with example or same code so that learning is easy.

 with regards


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: I had android doubt.Please go to the link and give ur ideas.

2012-08-08 Thread bob
 

Try running this at the command line:


adb install myapp.apk



On Wednesday, August 8, 2012 7:30:56 AM UTC-5, SIVAKUMAR.J wrote:


 Dear All,

   I had android doubt.Please go to the link and give ur ideas.

 http://stackoverflow.com/q/11864518/385138

 -- 
 *Thanks  Regards,
 Sivakumar.J*



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Wifi Devices

2012-08-08 Thread bob
 

 // To use this WifiManager method, AndroidManifest.xml must have the

 // following permission:

 // uses-permission

 // android:name=android.permission.ACCESS_WIFI_STATE/

 WifiManager wifiManager = (WifiManager) getSystemService(Context.
WIFI_SERVICE);

On Wednesday, August 8, 2012 7:16:38 AM UTC-5, Meena Rengarajan wrote:

 How to send Datas to Wifi devices from application ? In my code, i could 
 able to check Wifi status programmatically . Please can anyone help me ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: not having a field day

2012-08-08 Thread bob
 

Do you have to order those tags online or can you get them somewhere like 
Best Buy?



On Wednesday, August 8, 2012 1:34:42 AM UTC-5, Dominik wrote:

 you cannot beam from device to device, but you can implement any 
 application which uses the tag-reading mode of NFC. These apps are 
 comparable with QR-Code based apps, but the application starts as soon as 
 the tag is touched. You find examples in the play store. With the NFC Task 
 Launcher you can store tasks on a tag (e.g. to set a WiFi connection, to 
 set a timer, to mute the device etc) which are executed upon touching the 
 tag. An application we have written is NFC Memory. Play memory with NFC 
 tags and cards which you find in your purse.
 Dominik

 Am Dienstag, 7. August 2012 20:33:28 UTC+2 schrieb bob:

 Have any of you all done anything with NFC?  Or is it pretty much too new?

 I have a lot of devices, and only one of them seems to support NFC.

 (NfcAdapter.getDefaultAdapter(this) returns non-null)

 I guess there's not much I can do with just one NFC device?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] ReverseGeocoding NullPointerException

2012-08-08 Thread James Black
It takes time for a location to be available.

But it looks like you are just looking for the last known location which
can be null.

How are you waiting for location updates?
On Aug 8, 2012 8:13 AM, Ece Osmanağaoğlu ece.osmanagao...@gmail.com
wrote:

 I wanna get current location.
 There is null pointer exception in ListAddress

 locMan = (LocationManager)
 this.getSystemService(Context.LOCATION_SERVICE);
 gpsProv = LocationManager.GPS_PROVIDER;
 locMan.requestLocationUpdates(**LocationManager.GPS_PROVIDER,
 1000, 250, Kampusler.this);
 myGeo = new Geocoder(Kampusler.this, Locale.getDefault());

 loc = locMan.getLastKnownLocation(**gpsProv);
 try
 {
 ListAddress adres = myGeo.getFromLocation(loc.**getLatitude(),
 loc.getLongitude(), 1);
 if(adres != null)
 {
 for(int i=0; i  adres.get(0).**getMaxAddressLineIndex();
 i++)
 {
 result += adres.get(0).getAddressLine(i) + \n;
 }
 }
 else
 {
 Toast.makeText(Kampusler.this, Don't get address...,
 Toast.LENGTH_LONG).show();
 }
 }
 catch (Exception e)
 {
 e.printStackTrace();
 Toast.makeText(**getApplicationContext(), e.getMessage(),
 Toast.LENGTH_SHORT).show();
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Passing Numeric value from one activity to another through shered preference

2012-08-08 Thread Mario Bat


 If you want to pass it through Sahred Preference then do something like 
 this.


In activity A put your value in the shared preference:
 
SharedPreferences prefs = 
PreferenceManager.getDefaultSharedPreferences(context);
Editor editor = prefs.edit();
editor.putString(key, value);
editor.commit();

to get the value from shared preference in activity B:

SharedPreferences sharedPrefs = 
PreferenceManager.getDefaultSharedPreferences(context);
String value = sharedPrefs.getString(key, null);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to make activate from sms ?

2012-08-08 Thread Kristopher Micinski
what does it mean to 'kick' an app?  Activate sounds better, from an
English point of view, anyway.

But I'm surprised, because you already have an answer, you look an SMS
broadcast receiver.

kris

On Wed, Aug 8, 2012 at 2:31 AM, ono onoke...@gmail.com wrote:
 I would like to change this subject to ' How to kick the app by SMS'.

 When a device have received a SMS, how dose it kick a application ?
 Or how to kick it from it's standby ?

 Any advice thx.

 Ono

 2012年7月27日金曜日 18時49分27秒 UTC+9 ono:

 Thanks for reply.
 And could you give me a sample code ?

 Ono

 2012年7月27日金曜日 5時04分57秒 UTC+9 Kristopher Micinski:

 Google SMS broadcast receiver

 On Jul 26, 2012 5:01 AM, ono onoke...@gmail.com wrote:

 Hi,

 I am searching a sample code what make activate android app by SMS.
 Could anyone show one to me?
 Java native code is good, but HTML5/JS is better.
 I mean like act 'Prey Anti-Theft(http://preyproject.com/)'.

 Any advice thanks.

 Ono

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] open content on click of button

2012-08-08 Thread pankajdev
hey parthi, thanks but actually i look forward for where to pass , if u 
have sample code do share else see the below code is used to achieve is 
this right , now can you suggest if i have loaded another layout how can i 
come back to the previous one or the main one , i am now trying with the 
back button can u suggest.

public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

final Button button = (Button) findViewById(R.id.button1);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Perform action on click

 setContentView(R.layout.aboutus);
}
});

final Button buttonhome = (Button) findViewById(R.id.button1);
buttonhome.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Perform action on click

 setContentView(R.layout.main);
}
});
}
 
 }

On Wednesday, 8 August 2012 19:18:05 UTC+5:30, parthi wrote:


 Hi  pankajdev,   just pass onclicklistener
 use getId values...
 and pass resources layout...


 On Wed, Aug 8, 2012 at 6:48 PM, pankajdev panka...@gmail.comjavascript:
  wrote:

 Hi , 

 i am new to this forums , i have tried a sample android application using 
 MOTODEV studio , i am not able to find few things , like how to setup the 
 action for the button and if i setup an action how do i open the layout 
 while i click over the button , i am having six button ,now i want if i 
 click over one button it should load the layout or should be send to next 
 screen to display content.

 Please guide with example or same code so that learning is easy.

 with regards

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Emulator not starting up

2012-08-08 Thread bob
 

FWIW, I always set the SD card size to 100MB.  Also, the emulator is very 
buggy, and, if you are serious about Android development, you should get a 
real device… like the Galaxy Tab.



On Wednesday, August 8, 2012 3:31:22 AM UTC-5, Shivdeep Roy wrote:

 still not working tried all options keep SD memory to 1GB

 On Tuesday, August 7, 2012 11:22:17 PM UTC+5:30, xucaen wrote:

 I had issues too, until I figured out I was making my storage too big. 
 keep it under 2GiB and it should load pretty quickly.



 On Monday, August 6, 2012 2:24:26 AM UTC-4, Shivdeep Roy wrote:

 I'm new to android programming. I have installed SDK and AVD Managers 
 when i start my emulator with the AVD manager it doesn't start up. It only 
 shows the Android Boot Screen, i keep it on for more than 5 hrs but no 
 response. I also tried with the snapshot option but it also seem to be of 
 no help. Please help ASAP.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: open content on click of button

2012-08-08 Thread pankajdev
@bob thanks your reply is correct but i am now little step ahead and look 
forward for further help , please see

On Wednesday, 8 August 2012 19:40:28 UTC+5:30, bob wrote:

  Button b = findViewById(R.id.button);

 b.setOnClickListener(new OnClickListener() {

  @Override

 public void onClick(View v) {

  // Button clicked

   }

 });

 On Wednesday, August 8, 2012 8:18:57 AM UTC-5, pankajdev wrote:

 Hi , 

 i am new to this forums , i have tried a sample android application using 
 MOTODEV studio , i am not able to find few things , like how to setup the 
 action for the button and if i setup an action how do i open the layout 
 while i click over the button , i am having six button ,now i want if i 
 click over one button it should load the layout or should be send to next 
 screen to display content.

 Please guide with example or same code so that learning is easy.

 with regards



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: open content on click of button

2012-08-08 Thread bob
 

You can add this method to your Activity to handle the pressing of the back 
button on the device:

@Override

public void onBackPressed() {

super.onBackPressed();

// handle back button press

}

On Wednesday, August 8, 2012 9:37:41 AM UTC-5, pankajdev wrote:

 @bob thanks your reply is correct but i am now little step ahead and look 
 forward for further help , please see

 On Wednesday, 8 August 2012 19:40:28 UTC+5:30, bob wrote:

  Button b = findViewById(R.id.button);

 b.setOnClickListener(new OnClickListener() {

  @Override

 public void onClick(View v) {

  // Button clicked

   }

 });

 On Wednesday, August 8, 2012 8:18:57 AM UTC-5, pankajdev wrote:

 Hi , 

 i am new to this forums , i have tried a sample android application 
 using MOTODEV studio , i am not able to find few things , like how to setup 
 the action for the button and if i setup an action how do i open the layout 
 while i click over the button , i am having six button ,now i want if i 
 click over one button it should load the layout or should be send to next 
 screen to display content.

 Please guide with example or same code so that learning is easy.

 with regards



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ReverseGeocoding NullPointerException

2012-08-08 Thread bob
I would say move a lot of your code to your LocationListener in this 
function:

onLocationChanged(Location location)
Called when the location has changed.



On Wednesday, August 8, 2012 7:13:26 AM UTC-5, Ece Osmanağaoğlu wrote:

 I wanna get current location.
 There is null pointer exception in ListAddress

 locMan = (LocationManager) 
 this.getSystemService(Context.LOCATION_SERVICE);
 gpsProv = LocationManager.GPS_PROVIDER;
 locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 
 250, Kampusler.this);
 myGeo = new Geocoder(Kampusler.this, Locale.getDefault());
 
 loc = locMan.getLastKnownLocation(gpsProv);
 try
 {
 ListAddress adres = myGeo.getFromLocation(loc.getLatitude(), 
 loc.getLongitude(), 1);
 if(adres != null) 
 {
 for(int i=0; i  
 adres.get(0).getMaxAddressLineIndex(); i++)
 {  
 result += adres.get(0).getAddressLine(i) + \n;
 }   
 }
 else
 {
 Toast.makeText(Kampusler.this, Don't get address..., 
 Toast.LENGTH_LONG).show();
 }
 }
 catch (Exception e) 
 {
 e.printStackTrace();
 Toast.makeText(getApplicationContext(), e.getMessage(), 
 Toast.LENGTH_SHORT).show();
 }


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Error at setting up a larger library project Android

2012-08-08 Thread Xtreme
Want to start a standalone android project with a button in another 
project. First made a simple main app with a button that was referring to 
another project with Hello World with is Library in Preferences. All 
according 
http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject
 
and it worked without problems.

Did the same thing with an open soruce project (puzzle) 
http://code.google.com/p/androidsoft/source/browse/#svn%2Ftrunk%2Fpuzzle 
but get an error message in LogCat and my appa crashes when I click the 
button in my main app.

Guess I may have missed something in AndroidManifest.xml According to the 
documentation it says

Declaring library components in the manifest file: You must declare any 
activity, service, receiver, provider, and so on, as well as 
permission, uses-library.

I can compile puzzle as their own project without any problems. If the 
puzzle is a library will not work.


My main app with a button that will start the second project

public class AppActivity extends Activity {

Button button;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
addListenerOnButton();
}

public void addListenerOnButton() {

final Context context = this;

button = (Button) findViewById(R.id.button1);

button.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View arg0) {

Intent intent = new Intent(context, 
org.androidsoft.games.puzzle.kids.MainActivity.class);
startActivity(intent); 

}

});

}

}

AndroidManifest.xml in my main app with 
android:name=org.androidsoft.games.puzzle.kids.MainActivity

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.mkyong.android
android:versionCode=1
android:versionName=1.0 

uses-sdk android:minSdkVersion=10 /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name 
activity
android:label=@string/app_name
android:name=.AppActivity 
intent-filter 
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity
android:name=org.androidsoft.games.puzzle.kids.MainActivity
/activity
/application

/manifest


AndroidManifest.xml in puzzle that I want to use as a library 
http://code.google.com/p/androidsoft/source/browse/trunk/puzzle/AndroidManifest.xml

LogCat error


08-08 12:44:31.607: E/AndroidRuntime(780): FATAL EXCEPTION: main
08-08 12:44:31.607: E/AndroidRuntime(780): java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{com.mkyong.android/org.androidsoft.games.puzzle.kids.MainActivity}:
 
java.lang.NullPointerException
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.os.Handler.dispatchMessage(Handler.java:99)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.os.Looper.loop(Looper.java:137)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.ActivityThread.main(ActivityThread.java:4745)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
java.lang.reflect.Method.invokeNative(Native Method)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
java.lang.reflect.Method.invoke(Method.java:511)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
dalvik.system.NativeStart.main(Native Method)
08-08 12:44:31.607: E/AndroidRuntime(780): Caused by: 
java.lang.NullPointerException
08-08 12:44:31.607: E/AndroidRuntime(780): at 
org.androidsoft.games.puzzle.kids.AbstractMainActivity.onCreate(AbstractMainActivity.java:81)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
org.androidsoft.games.puzzle.kids.MainActivity.onCreate(MainActivity.java:57)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.Activity.performCreate(Activity.java:5008)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
08-08 12:44:31.607: E/AndroidRuntime(780): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
08-08 12:44:31.607: E/AndroidRuntime(780): ... 11 more



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to

Re: [android-developers] Error at setting up a larger library project Android

2012-08-08 Thread Kostya Vasilyev
You've got a crash:

08-08 12:44:31.607: E/AndroidRuntime(780): Caused by:
java.lang.NullPointerException
08-08 12:44:31.607: E/AndroidRuntime(780): at org.androidsoft.games.puzzle.
kids.AbstractMainActivity.onCreate(AbstractMainActivity.java:81)

Set a breakpoint in AbstractMainActivity onCreate, figure out what is null,
and fix it.

-- K

2012/8/8 Xtreme karlmartinst...@gmail.com

 Want to start a standalone android project with a button in another
 project. First made a simple main app with a button that was referring to
 another project with Hello World with is Library in Preferences. All
 according
 http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProjectand
  it worked without problems.

 Did the same thing with an open soruce project (puzzle)
 http://code.google.com/p/androidsoft/source/browse/#svn%2Ftrunk%2Fpuzzlebut 
 get an error message in LogCat and my appa crashes when I click the
 button in my main app.

 Guess I may have missed something in AndroidManifest.xml According to the
 documentation it says

 Declaring library components in the manifest file: You must declare any
 activity, service, receiver, provider, and so on, as well as
 permission, uses-library.

 I can compile puzzle as their own project without any problems. If the
 puzzle is a library will not work.


 My main app with a button that will start the second project

 public class AppActivity extends Activity {

 Button button;

 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 addListenerOnButton();
 }

 public void addListenerOnButton() {

 final Context context = this;

 button = (Button) findViewById(R.id.button1);

 button.setOnClickListener(new OnClickListener() {

 @Override
 public void onClick(View arg0) {

 Intent intent = new Intent(context,
 org.androidsoft.games.puzzle.kids.MainActivity.class);
 startActivity(intent);

 }

 });

 }

 }

 AndroidManifest.xml in my main app with
 android:name=org.androidsoft.games.puzzle.kids.MainActivity

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
 package=com.mkyong.android
 android:versionCode=1
 android:versionName=1.0 

 uses-sdk android:minSdkVersion=10 /

 application
 android:icon=@drawable/ic_launcher
 android:label=@string/app_name 
 activity
 android:label=@string/app_name
 android:name=.AppActivity 
 intent-filter 
 action android:name=android.intent.action.MAIN /
 category android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 activity
 android:name=org.androidsoft.games.puzzle.kids.MainActivity
 /activity
 /application

 /manifest


 AndroidManifest.xml in puzzle that I want to use as a library
 http://code.google.com/p/androidsoft/source/browse/trunk/puzzle/AndroidManifest.xml

 LogCat error


 08-08 12:44:31.607: E/AndroidRuntime(780): FATAL EXCEPTION: main
 08-08 12:44:31.607: E/AndroidRuntime(780): java.lang.RuntimeException:
 Unable to start activity
 ComponentInfo{com.mkyong.android/org.androidsoft.games.puzzle.kids.MainActivity}:
 java.lang.NullPointerException
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.app.ActivityThread.access$600(ActivityThread.java:130)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.os.Looper.loop(Looper.java:137)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.app.ActivityThread.main(ActivityThread.java:4745)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 java.lang.reflect.Method.invoke(Method.java:511)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 dalvik.system.NativeStart.main(Native Method)
 08-08 12:44:31.607: E/AndroidRuntime(780): Caused by:
 java.lang.NullPointerException
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 org.androidsoft.games.puzzle.kids.AbstractMainActivity.onCreate(AbstractMainActivity.java:81)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 org.androidsoft.games.puzzle.kids.MainActivity.onCreate(MainActivity.java:57)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 android.app.Activity.performCreate(Activity.java:5008)
 08-08 12:44:31.607: E/AndroidRuntime(780): at
 

Re: [android-developers] Re: ReverseGeocoding NullPointerException

2012-08-08 Thread Kristopher Micinski
You can actually request a single update, which is probably what you
want in this situation.

kris

On Wed, Aug 8, 2012 at 10:50 AM, bob b...@coolfone.comze.com wrote:
 I would say move a lot of your code to your LocationListener in this
 function:

 onLocationChanged(Location location)
 Called when the location has changed.



 On Wednesday, August 8, 2012 7:13:26 AM UTC-5, Ece Osmanağaoğlu wrote:

 I wanna get current location.
 There is null pointer exception in ListAddress

 locMan = (LocationManager)
 this.getSystemService(Context.LOCATION_SERVICE);
 gpsProv = LocationManager.GPS_PROVIDER;
 locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000,
 250, Kampusler.this);
 myGeo = new Geocoder(Kampusler.this, Locale.getDefault());

 loc = locMan.getLastKnownLocation(gpsProv);
 try
 {
 ListAddress adres = myGeo.getFromLocation(loc.getLatitude(),
 loc.getLongitude(), 1);
 if(adres != null)
 {
 for(int i=0; i 
 adres.get(0).getMaxAddressLineIndex(); i++)
 {
 result += adres.get(0).getAddressLine(i) + \n;
 }
 }
 else
 {
 Toast.makeText(Kampusler.this, Don't get address...,
 Toast.LENGTH_LONG).show();
 }
 }
 catch (Exception e)
 {
 e.printStackTrace();
 Toast.makeText(getApplicationContext(), e.getMessage(),
 Toast.LENGTH_SHORT).show();
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is it a launcher problem or I do something wrong.

2012-08-08 Thread bt
Hi,

I create an 4x4 appwidget with minWidth and minHeight set to 250dp as it 
is suggested in 
App Widget Design Guidelines:

http://developer.android.com/guide/practices/ui_guidelines/widget_design.html

It is ok on every phones and phone-sized emulator I have tried but if I 
test it on a tablet (Xoom or Nexus 7) or on an emulator (resolution: 
1280x752 with dpi 160)
then the launcher detects it as 3x3 widget.

What am I doing wrong?

Thanks,
Tamas

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] WiFi device

2012-08-08 Thread Robert Greenwalt
http://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup



On Tue, Aug 7, 2012 at 11:35 PM, Meena Rengarajan meenasoft...@gmail.comwrote:

 Do I need Router's IP address including those username and password to use
 Wireless connection methods like Wifi protected setup to detect Wifi
 devices ? Can anyone help me here ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Wifi Devices

2012-08-08 Thread Meena Rengarajan
Yeah , already i have added all the permissions in Manifest !

On Wed, Aug 8, 2012 at 7:48 PM, bob b...@coolfone.comze.com wrote:

  // To use this WifiManager method, AndroidManifest.xml must have the

  // following permission:

  // uses-permission

  // android:name=android.permission.ACCESS_WIFI_STATE/

  WifiManager wifiManager = (WifiManager) getSystemService(Context.
 WIFI_SERVICE);

 On Wednesday, August 8, 2012 7:16:38 AM UTC-5, Meena Rengarajan wrote:

 How to send Datas to Wifi devices from application ? In my code, i could
 able to check Wifi status programmatically . Please can anyone help me ?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Your email address may be being harvested! Please take action.

2012-08-08 Thread NMunoz
I understand  your point. The internet is a public place and everyone needs 
to come to terms with the fact that what they say can be found and used by 
anyone, even years later. What I don't find acceptable is the plain text 
revealing of my email address. This is not out of some missguided desire to 
protect my privacy, but simply to prevent spam. I have no issue letting my 
email address be known to any real human being, but when it's placed in 
such a manner that it can be so easily gleaned by any passong spambot, 
that's just not okay. Most sites are carefult to obfuscate email addresses 
by seperating the address from the domain, or removing part of the address, 
or forming the address into a picture.
 
At the very least this website is engadging in infrigement by impersonating 
this Google Groups page. It's entire extistance is duplicating content for 
ad clicks. A violation of Blogger's TOS and clearly spam. Normaly I really 
woulden't care so much if it wasn't for the plain text email thing. Please 
help me take down this site or I simply don't feel safe posting to this 
forum with my regular email account. I don't want to get any more spam than 
I've already gotten.
 
Whoever made this site clearly won't be missing it anyway, it's hardly 
maintained!

On Tuesday, August 7, 2012 7:58:23 PM UTC-7, Kristopher Micinski wrote:

 This group is publicly indexed, meaning anything you post will live on 
 the internet forever. 

 This is good and bad.  The good is that if you say something worth 
 noting, it lives there and is archived for all to see, so you can 
 refer back to it at a later time. 

 The bad is that if you say something dumb or accidentally paste a pic 
 of one of your friends, it's going to be forever archived and will 
 possibly come back to byte you in a major way.  (Let's face it, 
 employers Google names, and if you're being a downright unhelpful ass 
 all over a public forum, it's probably not going to help your future 
 employment possibilities..) 

 Another bad: since they're archived, tons of spambots will send you 
 all sorts of links, and you'll get a bunch of incomprehensible job 
 advertisements.. 

 kris 

 On Tue, Aug 7, 2012 at 1:24 PM, NMunoz nathan...@gmail.com javascript: 
 wrote: 
  A few days ago I noticed some spam mail in my Gmail inbox and even more 
 in 
  my spam folder, all very recent. This came as a bit of a surprise to me 
 as 
  my email address is relatively new and I had thus far been very careful 
 to 
  protect it. So I did a simple Google search for my plain text email 
 address. 
  To my horror, it returned a post I had made to the Android Developer 
 Google 
  Group not long ago. The result wasn't part of Google Groups but rather 
 some 
  sort of mirroring blog that had reposted my Google Groups post. In 
 general, 
  Google Groups makes an effort to conceal your email address, but this 
  mirroring site displays it prominently in plain text along with your 
 post. 
  
  I don't think the purpose of this blog is specifically malice, but 
 rather to 
  collect on advertising accrued from people searching for these posts. 
  However, the dreadful mistake of displaying plain text email addresses 
 makes 
  your email easy prey for a spider, a program used by spammers to harvest 
  email addresses from the web. Either way the site is spam and should be 
  taken down. The site can be found here. 
  
  http://newsandroidnet.blogspot.com/ 
  
  If you're interested in protecting your email address and those of 
 others on 
  this Google Group from spam I highly urge you to report this blog to 
 Blogger 
  as a terms of service violation under spam. 
  
  
 http://support.google.com/blogger/bin/request.py?hl=encontact_type=main_tos 
  
  If you can specifically locate your information on the site I also 
 suggest 
  you take the additional step of reporting it to Blogger as posting of 
 your 
  private information in the hopes that the post may be individually 
 removed. 
  
  I have already made both of these reports and await action. If enough 
 people 
  report, the action may be swift. 
  
  Thank you. 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ReverseGeocoding NullPointerException

2012-08-08 Thread Nobu Games
Also be aware that there might be devices out there which do not implement 
the Geocoder functionality. From the SDK doc:

*The Geocoder class requires a backend service that is not included in the 
 core android framework. The Geocoder query methods will return an empty 
 list if there no backend service in the platform. Use the isPresent() 
 method to determine whether a Geocoder implementation exists.
 *


So you cannot just access the first returned item of the address list. You 
must also check its size.
 

On Wednesday, August 8, 2012 7:13:26 AM UTC-5, Ece Osmanağaoğlu wrote:

 I wanna get current location.
 There is null pointer exception in ListAddress

 locMan = (LocationManager) 
 this.getSystemService(Context.LOCATION_SERVICE);
 gpsProv = LocationManager.GPS_PROVIDER;
 locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 
 250, Kampusler.this);
 myGeo = new Geocoder(Kampusler.this, Locale.getDefault());
 
 loc = locMan.getLastKnownLocation(gpsProv);
 try
 {
 ListAddress adres = myGeo.getFromLocation(loc.getLatitude(), 
 loc.getLongitude(), 1);
 if(adres != null) 
 {
 for(int i=0; i  
 adres.get(0).getMaxAddressLineIndex(); i++)
 {  
 result += adres.get(0).getAddressLine(i) + \n;
 }   
 }
 else
 {
 Toast.makeText(Kampusler.this, Don't get address..., 
 Toast.LENGTH_LONG).show();
 }
 }
 catch (Exception e) 
 {
 e.printStackTrace();
 Toast.makeText(getApplicationContext(), e.getMessage(), 
 Toast.LENGTH_SHORT).show();
 }


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color

2012-08-08 Thread Romain Guy
You should be able to make it work with OpenGL ES 1.0 by choosing another
blending equation.


On Wed, Aug 8, 2012 at 4:44 AM, Tobias Reich tobiasreic...@gmail.comwrote:

 Okay, I will try this but after all, it happens in OpenGL 1.0 as well and
 there is no chance to change the shader there.
 What could I do there? And why did it work on older phones/android
 versions like the S1 and the S2 with Android 2.x?

 Am Dienstag, 7. August 2012 09:08:57 UTC+2 schrieb Romain Guy (Google):

 Hi,

 You should output your colors with premultiplied alpha. Your code should
 look like this:

 vec3 color = clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 1.0);
 color *= 0.5; // premultiply by alpha

 gl_FragColor = vec4(color, 0.5);



 On Mon, Aug 6, 2012 at 4:21 PM, Tobias Reich tobias...@gmail.com wrote:

 I'm working on a new Galaxy S3 and found a problem that didn't occur on
 other phones like my old Galaxy S1 or the Galaxy S2 - which has almost the
 same GPU as the S3.
 When drawing my OpenGL models on top of my camera image like this:

 mGLView = new GLSurfaceView(this); 
 mGLView.setOnClickListener(**InputManager.getInstance());
 GameRenderer renderer = new GameRenderer(kamera, this);
 InputManager.getInstance().**currentActivity = renderer; 
 mGLView.**setEGLContextClientVersion(2);
 mGLView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
 setPreserveEGLContextOnPause 
 mGLView.getHolder().setFormat(**PixelFormat.TRANSLUCENT);
 mGLView.setZOrderOnTop(true); mGLView.setRenderer(renderer);
 setContentView(new CameraView(this), new 
 LayoutParams(LayoutParams.**MATCH_PARENT,
 LayoutParams.MATCH_PARENT)); addContentView(mGLView, new
 LayoutParams(LayoutParams.**MATCH_PARENT, LayoutParams.MATCH_PARENT));

 So the GLRenderer should be transparent. It actually is. It works fine
 for all the objects that are opaque as well as the background (where I see
 the image of the camera)

 My problem is, when I make the pixels semi-transparent in the fragment
 Shader I get a weird result. The brightest pixels seem overexpose when
 blending together. And it looks like they got clamped after so the value
 that brighter than white - loosing probably the first bit - got dark again.
 So only the brightest pixels are affected. It happens even if I use a
 simple call like:

 gl_FragColor = vec4(clamp(textureColor.rgb * lightWeighting.xyz, 0.0, 
 1.0), 0.5);



 So the actual GL-Fragment is clamped and I'm pretty sure it comes from
 the camera preview itself. Here is an image that describes my problem:


 https://lh6.googleusercontent.com/-XhUolY4rNXA/UCBQnwRqb6I/AAM/YgzaE-KfGZs/s1600/glProblem.jpg

 I get more and more convinced that it is an overflow for the values
 but how can I change this? By the way - perhaps it helps - this effect gets
 stronger the lower the alpha value of the fragment (the gl rendered one)
 is. So somehow it looks like something is compensating/normalizing the
 semi transparent values.

 Is there any way of clamping both values together since in the Shader
 I can only clamp the actual rendered fragment somehow without asking for
 the camera preview values. :-(
 Thank you very much! I hope it is not a severe problem,

   Tobias Reich




  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@**googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




 --
 Romain Guy
 Android framework engineer
 roma...@android.com

   --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Romain Guy
Android framework engineer
romain...@android.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Error In My Code for Usb detection in Android..please Help me..!!

2012-08-08 Thread Jonathan S
adb logcat

On Wednesday, August 8, 2012 2:40:48 AM UTC-4, om mehta wrote:

 My problem is when i run this code on AVD emulator...it show that this 
 application gas stop working...Force Close..whats the error??..and can 
 anyone give me solution? 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ADB and Mountain Lion Issues

2012-08-08 Thread Dave Smith
I noticed that, as soon as I upgraded to Mac OS Mountain Lion (10.8) I have 
been unable to reliably get any of my devices to connect with ADB (Galaxy 
Nexus, Nexus S, HTC EVO 4G, just to name a few).  It can take upwards of 
10-15 cable re-plugs, re-starts of the ADB server, and toggling USB 
Debugging on the device before it finally shows up.

I attempted to load the Android File Transfer Application 
(http://www.android.com/filetransfer/) thinking it might have something to 
do with the lack of MTP support on Mac OS, but that did not seem to change 
anything.  There are no further updates to SDK beyond 20.0.1 that I can see 
which might address the issue either.

Has anyone else who upgraded noticed this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android: Add entry to the calendar

2012-08-08 Thread Michael Chan
Hi,

Have a look at 
http://developer.android.com/guide/topics/providers/calendar-provider.html

Thanks,
Mike

On Wed, Aug 8, 2012 at 2:40 AM, Rahul Kaushik rahulkaushi...@gmail.com wrote:
 Hi,

 I need to add an entry in android calendar
 please suggest.

 Thanks
 RK

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADB and Mountain Lion Issues

2012-08-08 Thread Dave Smith
As an addition to this, I have noticed that I can almost always get the 
devices to detect if I power them down and then back up while still 
connected to USB.  The problem arises trying to get ADB to pick them up if 
they are connected while alive.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Looking for Google feedback regarding the new Google Play Developer Program Policies and how they plan to deal with cases of Rogue ads (read Porn)

2012-08-08 Thread xucaen
What exactly is your app?



On Tuesday, August 7, 2012 4:04:54 PM UTC-4, jeka wrote:

 Dude, no offense, but have you even read my post?

 Like I said: ... I've never seen one!, this is based purely on user 
 feedback.

 Yes, I reported it. Again, like I said: They all said the same thing - we 
 don't allow porn on our network(s). So, there is not much else I can do to 
 report it...

 No, I'm not speculating, the users have been pretty clear about what they 
 see, some even sent links to the porn site landing pages, however, and I 
 repeat, none of the networks would admit to it.

 The thing is, like I said in the original post, I'm pretty sure they all 
 say the truth - they don't allow porn. The thing is that whichever netwok 
 it is coming from, probably doesn't know it originates from them. I was 
 able to generate similar behavior in my own tests... - show an arbitrary 
 page full screen while having an innocently looking banner and bypassing 
 detection. I had it coming from my own server, of course, so I can't say if 
 it would actually work coming from an ad network, but I'm sure the bad 
 guys are using a similar mechanism.

 So, to summarize: it is possible to show prohibited content to the user 
 while bypassing detection from the ad networks. 

 I only hope Google is not going to hold this against the developer 
 without investigating.


 On Tuesday, August 7, 2012 3:35:01 PM UTC-4, Kristopher Micinski wrote:

 Have you seen any which display inapprorpiate ads? 

 It is extremely unprofessional for a network to allow this, since it 
 is out of your control and clearly violates Google's terms of use, if 
 you see a network which does, please report it here and people can 
 write the network and tell them to stop, or developers will quit using 
 their service. 

 Read another way: the network has economic incentive to control the 
 ads they provide to comply with Google Play rules.  If they don't you 
 should dump the network and go with another, and if many people do 
 this the network will either die or change their policies to make this 
 work... 

 Your initial post was unclear, but have you reported for this, or are 
 you just speculating?  I agree it's a problem. 

 kris 

 On Tue, Aug 7, 2012 at 3:28 PM, jeka jro...@gmail.com javascript: 
 wrote: 
  Like I said, I'm using multiple ad networks and none of them would 
 admit the 
  offensive content came from them. So, who would you recommend I put 
  pressure on? 
  
  
  On Tuesday, August 7, 2012 2:10:29 PM UTC-4, Kristopher Micinski wrote: 
  
  I haven't been aware of any services that show ads containing 
  irresponsible material.. 
  
  if they do, you should put pressure on the develops of those systems, 
  in a public way. 
  
  kris 
  
  On Tue, Aug 7, 2012 at 1:50 PM, xucaen  wrote: 
   I am new to Android development, but I was under the impression that 
 you 
   should be using Google Ads, and they guarantee there will be no porn 
   adds 
   from Google Ads. If you use some other Ads service, you would need 
 to 
   check 
   with them and see if they show porn ads. If they do, stop using 
 them, 
   otherwise you are responsible. 
   
   
   
   On Monday, August 6, 2012 1:28:19 PM UTC-4, jeka wrote: 
   
   Hello. The way I read this section in the Google Play Developer 
 Program 
   Policies (GPDPP): 
   
   In general, ads are considered part of your app for purposes of 
 content 
   review and compliance with the Developer Terms. Therefore all of 
 the 
   policies, including those concerning illegal activities, violence, 
   sexually 
   explicit content, and privacy violations, apply. Please take care 
 to 
   use 
   advertising which does not violate these policies. 
   
   
   
   Ads which are inconsistent with the app’s content rating also 
 violate 
   our 
   Developer Terms. 
   
   
   In combination with 
   
   Sexually Explicit Material: We don't allow content that contains 
   nudity, 
   graphic sex acts, or sexually explicit material. Google has a 
   zero-tolerance 
   policy against child pornography. If we become aware of content 
 with 
   child 
   pornography, we will report it to the appropriate authorities and 
   delete the 
   Google Accounts of those involved with the distribution. 
   
   
   
   Is that should there appear a pornographic ad in the application, 
 the 
   Google Play team will hold the developer responsible up to the 
 point of 
   terminating the entire developer account. 
   
   
   
   Now here is the problem: most of us developers have no control over 
   what 
   ads appear in the apps we create. Sure, we decide which ad networks 
 to 
   include, and may even be able to control ad types to some degree, 
 but 
   given 
   a fairly large application with even a couple hundred thousand ad 
   impressions per day utilizing multiple ad networks through an ad 
   aggregator 
   makes the task of controlling this virtually impossible. 
   
   I speak (write) from a personal 

Re: [android-developers] Re: Looking for Google feedback regarding the new Google Play Developer Program Policies and how they plan to deal with cases of Rogue ads (read Porn)

2012-08-08 Thread jeka
How is that relevant?

On Wednesday, August 8, 2012 12:48:09 PM UTC-4, xucaen wrote:

 What exactly is your app?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Looking for Google feedback regarding the new Google Play Developer Program Policies and how they plan to deal with cases of Rogue ads (read Porn)

2012-08-08 Thread Kristopher Micinski
Perhaps to see the range of networks,?

It's mostly irrelevant, I would think..

I think your posting here is mostly going to be met with deaf ears,
looking through the group history you'll see that pretty much nobody
has ever received feedback from the Google play team here.

I agree it's a problem, and one that's hard to pinpoint precisely,
your best bet is to stick with advertisers who seem more legitimate,
but that's still obviously a non solution..

kris

On Wed, Aug 8, 2012 at 12:52 PM, jeka jro...@gmail.com wrote:
 How is that relevant?


 On Wednesday, August 8, 2012 12:48:09 PM UTC-4, xucaen wrote:

 What exactly is your app?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADB and Mountain Lion Issues

2012-08-08 Thread bob
 

I upgraded, and I have not seen that.

On Wednesday, August 8, 2012 11:28:16 AM UTC-5, Dave Smith wrote:

 I noticed that, as soon as I upgraded to Mac OS Mountain Lion (10.8) I 
 have been unable to reliably get any of my devices to connect with ADB 
 (Galaxy Nexus, Nexus S, HTC EVO 4G, just to name a few).  It can take 
 upwards of 10-15 cable re-plugs, re-starts of the ADB server, and toggling 
 USB Debugging on the device before it finally shows up.

 I attempted to load the Android File Transfer Application (
 http://www.android.com/filetransfer/) thinking it might have something to 
 do with the lack of MTP support on Mac OS, but that did not seem to change 
 anything.  There are no further updates to SDK beyond 20.0.1 that I can see 
 which might address the issue either.

 Has anyone else who upgraded noticed this?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Looking for Google feedback regarding the new Google Play Developer Program Policies and how they plan to deal with cases of Rogue ads (read Porn)

2012-08-08 Thread jeka
The networks I use are AdMob, Millennial, Greystripe, Jumptap, Mobclix and 
Mopub. Of course, with Mobclix and Mopub being aggregators, there are a lot 
more networks in play than that.

On a side note I'll add that after turning off all the networks from 
Moblicx and Mopub the porn complains have stopped. That doesn't mean that 
it came from one of their networks - could be just a coincidence.

I know that getting a response from someone on Google's team is much like 
catching a Higgs *boson, but where else would I go? This is important 
enough to every developer relying on ads for monetizing that one would hope 
Google could take a moment to chime in on the topic. I mean they are making 
us responsible for something that is out of our control. They could at 
least spell out the rules and procedures for dealing with offending apps.*
*
*
*You know, now that I think about this new policy in more detail, I'm 
beginning to wonder if it is just a way for them to say **hey we know it's 
not under your control, but if you send 100% of your traffic to AdMob, we 
guarantee you won't be flagged, because **this sort of thing would never 
happen on AdMob**?*

On Wednesday, August 8, 2012 12:57:40 PM UTC-4, Kristopher Micinski wrote:

 Perhaps to see the range of networks,? 

 It's mostly irrelevant, I would think.. 

 I think your posting here is mostly going to be met with deaf ears, 
 looking through the group history you'll see that pretty much nobody 
 has ever received feedback from the Google play team here. 

 I agree it's a problem, and one that's hard to pinpoint precisely, 
 your best bet is to stick with advertisers who seem more legitimate, 
 but that's still obviously a non solution.. 

 kris 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] view elements unintenionally blinking

2012-08-08 Thread bbbill
Hi All,
on my Android Tab (TF 101g with keyboard dock, Android 4.03) 
I observe some strange blinking I cannot explane.
The whole screen is being controlled by a Relative Layout containing 
another Realive Layout with some view elements on top position, followed by 
a SurfaceView with a grafic canvas and below that some other views, one of 
them an EditView for number entry.
When I run my application on that device being undocked, i.e. without the 
hard keyboard, and hold it in landscape orientation, first the soft 
keyboard appears and all view elements get shifted topwards. Then, after I 
closed down the keyboard,  all view elements return to their original 
position, *while those within the RelativeLayout above the SurfaceView 
start blinking continuously*.
Even Part of the application title and Icon get overwritten in black an 
reappear on a half second rate.
When I replugg the device into the keyboard dock, blinking stopps 
immediately.
Neither does this occur, when I hold the undocked device in portrait 
orientation.
There seems to be a certain dependency on the EditView below the 
SurfaceView. At least the blinking rate goes down, when this is disabled.
I have the same application running on a smart phone (Alcatel OT918D, 
Android 2.3.6) and there is no such issue at all.
(On the smart phone the EditView is not visible in landscape orientation, 
because it does not fit within the display. Is this of any importance at 
all?)

The containing views xml-file is attached.

Any helpful hints gratefully apreciated

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

main.xml
Description: XML document


Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread TreKing
On Wed, Aug 8, 2012 at 1:57 AM, CJ joven.ch...@gmail.com wrote:

 Stackoverflow said it's a bug and I googled and saw some similar situation.


If that's the case, best thing to do is go to b.android.com and see if it's
already reported. If not, create a simple example that demonstrates the
problem and create a bug report yourself.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Error In My Code for Usb detection in Android..please Help me..!!

2012-08-08 Thread bob
 

*You cannot launch a popup dialog in your implementation of onReceive()*

On Tuesday, August 7, 2012 4:40:46 AM UTC-5, om mehta wrote:

 My JAVA code:-


 package com.app.DetactUSB;

 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.graphics.Color;
 import android.util.Log;
 import android.view.Gravity;
 import android.widget.TextView;
 import android.widget.Toast;

 public class DetactUSB extends BroadcastReceiver
 { 
 private static final 
 Stringhttp://www.google.com/search?hl=enq=allinurl%3Astring+java.sun.combtnI=I%27m%20Feeling%20Lucky
  TAG = DetactUSB;
 @Override
 public void 
 onReceive(Contexthttp://www.google.com/search?hl=enq=allinurl%3Acontext+java.sun.combtnI=I%27m%20Feeling%20Lucky
  context, 
 Intent intent) {
 // TODO Auto-generated method stub
 if (intent.getAction().equalsIgnoreCase(
 android.intent.action.UMS_CONNECTED))
 {
 TextView textView = new TextView(context);
 
 textView.setBackgroundColor(Colorhttp://www.google.com/search?hl=enq=allinurl%3Acolor+java.sun.combtnI=I%27m%20Feeling%20Lucky
 .MAGENTA);
 
 textView.setTextColor(Colorhttp://www.google.com/search?hl=enq=allinurl%3Acolor+java.sun.combtnI=I%27m%20Feeling%20Lucky
 .BLUE);
 textView.setPadding(10,10,10,10);
 textView.setText(USB connected……….);
 Toast toastView = new Toast(context);
 toastView.setDuration(Toast.LENGTH_LONG);
 toastView.setGravity(Gravity.CENTER, 0,0);
 toastView.setView(textView);
 toastView.show();
 Log.i(TAG,USB connected..);
 }

 if (intent.getAction().equalsIgnoreCase(
 android.intent.action.UMS_DISCONNECTED))
 {
 TextView textView = new TextView(context);
 
 textView.setBackgroundColor(Colorhttp://www.google.com/search?hl=enq=allinurl%3Acolor+java.sun.combtnI=I%27m%20Feeling%20Lucky
 .MAGENTA);
 
 textView.setTextColor(Colorhttp://www.google.com/search?hl=enq=allinurl%3Acolor+java.sun.combtnI=I%27m%20Feeling%20Lucky
 .BLUE);
 textView.setPadding(10,10,10,10);
 textView.setText(USB Disconnected……….);
 Toast toastView = new Toast(context);
 toastView.setDuration(Toast.LENGTH_LONG);
 toastView.setGravity(Gravity.CENTER, 0,0);
 toastView.setView(textView);
 toastView.show();
 }
 } 
 }






 My Menifest File:--





 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.app.DetactUSB
  android:versionCode=1
  android:versionName=1.0
 uses-sdk android:minSdkVersion=7 /
 uses-permission android:name=android.permission.INTERNET
 /uses-permission
 uses-permission android:name=android.permission.RECORD_AUDIO
 /uses-permission
 application android:icon=@drawable/icon android:label=
 @string/app_name
activity android:name=.MyActivity android:label=
 @string/app_name
 intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=
 android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 receiver android:name=.DetactUSB
intent-filter
 action android:name=android.intent.action.UMS_CONNECTED /
 action android:name=android.intent.action.UMS_DISCONNECTED 
 /
/intent-filter
 /receiver
 /application
 /manifest



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Back button show old removed dialog

2012-08-08 Thread CJ
:) I read it was reported 3 years ago and still happens sometime.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] TtsEngine sample

2012-08-08 Thread bob
Has anyone tried the TtsEngine sample?

It has all kinds of things like this in it:  

  !-- TODO: Fix this when the API level for ICS is finalized. --

I'm wondering if it even works at all.  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Looking for Google feedback regarding the new Google Play Developer Program Policies and how they plan to deal with cases of Rogue ads (read Porn)

2012-08-08 Thread Kristopher Micinski
 I know that getting a response from someone on Google's team is much like
 catching a Higgs boson, but where else would I go? This is important enough
 to every developer relying on ads for monetizing that one would hope Google
 could take a moment to chime in on the topic. I mean they are making us
 responsible for something that is out of our control. They could at least
 spell out the rules and procedures for dealing with offending apps.


Theoretically you could try asking questions through the appropriate
Google Play channels, I agree that this is even less likely to fetch a
response.

 You know, now that I think about this new policy in more detail, I'm
 beginning to wonder if it is just a way for them to say hey we know it's
 not under your control, but if you send 100% of your traffic to AdMob, we
 guarantee you won't be flagged, because this sort of thing would never
 happen on AdMob?


You could view it that way, but I doubt it's that malice in reality.
In reality I'm guessing that it's mostly legal jargon they are sort of
required to include.. :-/

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] OpenGL and Camera Preview - blending together gets “over saturated” color

2012-08-08 Thread Tobias Reich
So than it was just pure luck it worked fine with all the previous 
versions? What changed? Why can't it just be like it was before?
I mean, its okay now and not really a big problem. - even though I don't 
know where I could have seen that information in the API.
Thanks anyway!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] TtsEngine sample

2012-08-08 Thread Harri Smått

On Aug 8, 2012, at 9:13 PM, bob b...@coolfone.comze.com wrote:

 I'm wondering if it even works at all.  

At least it compiles and installs ok after you change IceCreamSandwich with 
proper API integer.

--
H

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Error in App

2012-08-08 Thread Ehsan Sadeghi
I declare an intent in my manifest : 
activity
android:name=.GetResponse
 
   android:label=@string/title_activity_main  
android:launchMode=singleTask
intent-filter
action android:name=ir.smspeik.sms.getresponse /

category android:name=android.intent.category.DEFAULT /
/intent-filter
/activity 

and then create a class name GetResponse : 
package ir.smspeik.sms;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.widget.Toast;

public class GetResponse extends Activity{
IntentFilter intentFilter;
private BroadcastReceiver intentReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
//---display the SMS received in the TextView---
//TextView SMSes = (TextView) findViewById(R.id.textView1); 
Toast.makeText(context, intent.getExtras().getString(sms),
Toast.LENGTH_SHORT).show();
}
};

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.getresponse);
  intentFilter = new IntentFilter();
intentFilter.addAction(SMS_RECEIVED_ACTION);

//---register the receiver---
registerReceiver(intentReceiver, intentFilter);
}
}

and a broadcaster : 
package ir.smspeik.sms;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.widget.Toast;

public class ReceiveSms extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent)
{
//---get the SMS message passed in---
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str = ;
if (bundle != null)
{
//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get(pdus);
msgs = new SmsMessage[pdus.length];
for (int i=0; imsgs.length; i++){
msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
str += SMS from  + msgs[i].getOriginatingAddress();
str +=  :;
str += msgs[i].getMessageBody().toString();
str += \n;
}
//---display the new SMS message---
Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
//---launch the MainActivity---
Intent mainActivityIntent = new Intent(context, GetResponse.class);
mainActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(mainActivityIntent);
//---send a broadcast to update the SMS received in the activity---
Intent broadcastIntent = new Intent();
broadcastIntent.setAction(SMS_RECEIVED_ACTION);
broadcastIntent.putExtra(sms, str);
context.sendBroadcast(broadcastIntent);
}
}
}


but when I receive a message application raise an error : 
08-08 19:40:40.513: E/AndroidRuntime(692): FATAL EXCEPTION: main
08-08 19:40:40.513: E/AndroidRuntime(692): java.lang.RuntimeException: 
Unable to instantiate activity 
ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.GetResponse}: 
java.lang.NullPointerException
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.app.ActivityThread.access$600(ActivityThread.java:130)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.os.Handler.dispatchMessage(Handler.java:99)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.os.Looper.loop(Looper.java:137)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
android.app.ActivityThread.main(ActivityThread.java:4745)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
java.lang.reflect.Method.invokeNative(Native Method)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
java.lang.reflect.Method.invoke(Method.java:511)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
08-08 19:40:40.513: E/AndroidRuntime(692): at 
dalvik.system.NativeStart.main(Native Method)
08-08 19:40:40.513: E/AndroidRuntime(692): Caused by: 

[android-developers] Change word on buttonclick (with radiobuttons)

2012-08-08 Thread Bob17
Hello, 

I am quite new to Android coding, but I have a question. Right now I am having 
the code below. The thing is that right now the word changes to the left, 
center or right from the moment I click a RadioButton. I actually wants it to 
change only if I click the Generate button. Any tips how I can achieve this? 
Thanks!


public class tutorialOne extends Activity implements OnCheckedChangeListener{

TextView textOut;
EditText textIn;
RadioGroup gravityG, styleG;

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tutorial1);
textOut = (TextView) findViewById(R.id.tvChange);
textIn = (EditText) findViewById(R.id.editText1);
gravityG = (RadioGroup) findViewById(R.id.rgGravity);
gravityG.setOnCheckedChangeListener(this);
styleG = (RadioGroup) findViewById(R.id.rgStyle);
styleG.setOnCheckedChangeListener(this);
Button gen = (Button) findViewById(R.id.bGenerate);

gen.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
textOut.setText(textIn.getText());  
}
});
}

@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
// TODO Auto-generated method stub
switch(checkedId){
case R.id.rbLeft:
textOut.setGravity(Gravity.LEFT);
break;
case R.id.rbRight:
textOut.setGravity(Gravity.RIGHT);
break;
case R.id.rbCenter:
textOut.setGravity(Gravity.CENTER);
break;

}


}



}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to use apache thrift with android????

2012-08-08 Thread adroidanky
[2012-08-08 18:07:21 - ThriftExample] Dx 1 error; aborting
[2012-08-08 18:07:21 - ThriftExample] Conversion to Dalvik format failed 
with error 1
[2012-08-08 18:16:13 - ThriftExample] Dx warning: Ignoring InnerClasses 
attribute for an anonymous inner class
(org.apache.log4j.chainsaw.ControlPanel$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any -target type options. The consequence of 
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.





getting this error when i run my android app using thrift.plz hepl

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Database getting blank in android

2012-08-08 Thread Abhi
Hello,

I am developing an app. It is working fine but if i left the app open for 
few hours the database gets blank sometimes(1 out of 5). I tried hard to 
track the issue but couldn't found any. I am using Sqlite database. Please 
help me as soon as possible.

Thanks
Abhi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Get the address from sms thread

2012-08-08 Thread ## André ##
This is my problem: I update all the sms address number, however i couldn't
update the number which is showed on sms inbox. 
Example: I updated the sms address to 555- however in the sms inbox
still shows 555-. If I enter in the thread the address number is correct
and updated

I am using content://sms/

Anyone can help me?
Please tell me if i am not so clear

Best Regards,
André

 

 

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: ADB and Mountain Lion Issues

2012-08-08 Thread Kenneth
Try using a different usb port. Fixed it for me. I'm using the new MacBook 
Pro.

On Wednesday, August 8, 2012 9:28:16 AM UTC-7, Dave Smith wrote:

 I noticed that, as soon as I upgraded to Mac OS Mountain Lion (10.8) I 
 have been unable to reliably get any of my devices to connect with ADB 
 (Galaxy Nexus, Nexus S, HTC EVO 4G, just to name a few).  It can take 
 upwards of 10-15 cable re-plugs, re-starts of the ADB server, and toggling 
 USB Debugging on the device before it finally shows up.

 I attempted to load the Android File Transfer Application (
 http://www.android.com/filetransfer/) thinking it might have something to 
 do with the lack of MTP support on Mac OS, but that did not seem to change 
 anything.  There are no further updates to SDK beyond 20.0.1 that I can see 
 which might address the issue either.

 Has anyone else who upgraded noticed this?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android: File working in Emulator but giving error in Device? 400, BAD request with Multipart

2012-08-08 Thread Azhar
Hi,

Question ilnk on Stack over
flowhttp://stackoverflow.com/questions/11812549/android-file-working-in-emulator-but-giving-error-in-device

I am just trying to upload file to server through the code it working fine
if I access file from Emulator,

path *data/app/07312012_135528.3gp* and gets server response *200, OK*

but when I access file to upload through Device is gives error *400, Bad
Request* while file is present in *SDCard* and it passes the
*File.exists()*check.

My Phone is *Samsung Galaxy Ace*

HttpPost postRequest = new HttpPost(ServerURL);
MultipartEntity reqEntity = new MultipartEntity();
File dir = Environment.getExternalStorageDirectory();
File yourFile = new File(dir, tdsongdata/07312012_135528.3gp);
// path becomes /mnt/sdcard/tdsongdata/07312012_135528.3gp

if(yourFile.exists())
{
reqEntity.addPart(email, new StringBody(eset...@gmail.com));
reqEntity.addPart(password, new StringBody(123));
reqEntity.addPart(title, new StringBody(The new file));
reqEntity.addPart(musicData, new FileBody(yourFile));
}

But When I *try to play it from the same path in Device it plays the Audio
successfully*

MediaPlayer mp = new MediaPlayer();
try {
mp.setDataSource(/mnt/sdcard/tdsongdata/07312012_135528.3gp);
mp.prepare();
mp.start();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

I could not understand where the problem is, please help







-
Best Regards,
Muhammad Azhar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Get camera image URL store it in Sqlite and restore it to your view

2012-08-08 Thread brobles
I followed the android developers camera example, that captures an image form 
camera and places it to the view. Not the problem I have is how to store that 
image path to my sqlite database and restore the imaage in other view.

Link to google dev -  http://developer.android.com/training/camera/index.html

I tried this without success

created a global string logo, and inside handleSmallCameraPhoto put this

private void handleSmallCameraPhoto(Intent intent) {
Bundle extras = intent.getExtras();
mImageBitmap = (Bitmap) extras.get(data);
ImagenViaje.setImageBitmap(mImageBitmap);
ImagenViaje.setVisibility(View.VISIBLE);
-- logo = extras.get(data).toString();
Then I stored logo on sqlite, and tried to restore it on my adapter this way 
String imagePath = 
c.getString(c.getColumnIndexOrThrow(MySQLiteHelper.COLUMN_LOGO_PATH));

Then

 ImageView item_image = (ImageView) v.findViewById(R.id.logo);
item_image.setVisibility(ImageView.INVISIBLE);
Bitmap bitmap = BitmapFactory.decodeFile(imagePath);

item_image.setImageBitmap(bitmap);
item_image.setVisibility(ImageView.VISIBLE);


The problem is if I try to get the img path it is null ... so I have no idea 
how to do it.

WIll really apreciate a working example on do this

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Dynamic creation of table and showing it on dialog box

2012-08-08 Thread Krishna Mahadik
Hi People,

I am want to generate a table dynamically at runtime and show it in
a dialog box.

Help and guidance needed.

Thanks  Regards,
Krishna V. Mahadik

-- 
-- 
. \\\///
.   /\
.   | \\   // |
. ( | (.) (.) |)
--o00o--(_)--o00o-

Yesterday is not ours to recover, but
tomorrow is ours to win or to lose.

---ooo0---
.   (   )   0ooo
.\ (  (   )
. \_) ) /
.(_/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Autostartapp

2012-08-08 Thread Tarek Khalaf
can i make my program start automaticly

thanx

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Nexus 7 drawable

2012-08-08 Thread limtc
No, will try!

Will this cause issue for other already supported devices? I have carefully 
tested for many many devices.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Browser App Not sending HTTP request

2012-08-08 Thread tropicaljava


We have developed a android browser application (javascript) which keeps 
(every 3Sec) on sending a http (GET) request to my REST server (hosted on 
TOMCAT).

Everything works fine till the time phone is in operation. But as soon as 
phone is lying idle, the browser application's javascript stops sending the 
HTTP requests.

The phone is connected with our test WIFI router, and in the phone setting 
we have kept WIFI connected even if phone goes in the idle state.

We are capturing HTTP packets with wireshark on the REST server machine. 
Till the time phone is in working state, we recieve HTTP request packet but 
as soon we leave the phone (and it goes to idle state) idle, HTTP packets 
stops appearing on the Wireshark (however some TCP packets are visible).

The same behavior is there on IPhone device as well, Is it the default 
behavior of SmartPhone browsers?

Please help if someone have faced this kind of situation or have similar 
experience.

PS. on android, the browser we are using is the default browser and android 
version is 4.0.3


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How can the software on PC get the status of opening the USB debugging on android phone

2012-08-08 Thread Allen wang
If i connect an android phone on the PC without opening the USB debugging 
and ADB drivers, then i open the USB debugging, is there any way to make a 
PC software get this status change?

Expect your help. Thanks a lot!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Bluetooth Walkie Talkie

2012-08-08 Thread Jois
hey i'm too trying the same blue tooth walkie talkie project... can u help 
my out to develop this???

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] no google chrome for Atrix 2 Motorola MB865

2012-08-08 Thread tensign
Is there going to be Google Chrome for Atrix 2 Motorola MB865. Why i am 
asking is most of all the apps i use is in Google and the Default 
Web Browser sucks from ATT

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] DataBase getting blank when app left unused for few hours

2012-08-08 Thread Rahul
hello,

I developed an app which is working fine. But when i left the app opened 
for few hours the database gets blank itself sometime (1 out of 5). I need 
to login then again for bringing the data from web services. I am using 
SQLITE database. Any suggestions can help me a lot.

Thanking you 
Rahul

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >