[android-developers] Android AR screen capture issue..

2011-12-12 Thread Atik
Hi,
we are working on android AR project. the application works as follows

camera starts and when the camera detects the marker, a 3D object is
overlayed on the screen, so my preview will have the camera + virtual
3D object.

so i want to capture that preview.i am not able to get that preview.i
am working on android sdk 2.2 .
when i m running my app on galaxy tab 10.1, that device have the
screen capture button so its pretty easy in tab case. but for phones
running on sdk 2.2 . please give me hint on this.

my code is 

package com.example;

import java.io.FileOutputStream;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.media.MediaScannerConnection;
import
android.media.MediaScannerConnection.MediaScannerConnectionClient;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;

public class SaveImageActivity extends Activity {
SomeView sv = null;
MediaScannerConnection _mediaScanConnectionClient = null;
MediaScannerConnectionClient cl;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
sv = new SomeView(this);
setContentView(sv);
}

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
switch (event.getKeyCode()) {
case KeyEvent.KEYCODE_BACK:
Log.i(key event done, );
if (sv != null) {
saveView(sv);
return true;
}
default:
}
return super.onKeyDown(keyCode, event);
}

private void saveView(View view) {
Bitmap b = Bitmap.createBitmap(view.getWidth(), 
view.getHeight(),
Bitmap.Config.ARGB_);
Canvas c = new Canvas(b);
view.draw(c);
FileOutputStream fos = null;

try {
fos = new 
FileOutputStream(/sdcard/DCIM/Test/some_view_image_
+ System.currentTimeMillis() + .png);

sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
Uri.parse(file://
+ 
Environment.getExternalStorageDirectory(;

if (fos != null) {

b.compress(Bitmap.CompressFormat.PNG, 100, fos);
_mediaScanConnectionClient = new 
MediaScannerConnection(
getApplicationContext(), cl);
_mediaScanConnectionClient.connect();

Log.i(, bitmap created);

fos.close();

}
//setWallpaper(b);
} catch (Exception e) {
Log.e(testSaveView, Exception:  + e.toString());
}
}

class SomeView extends View {
public SomeView(Context context) {
super(context);
}

public void onDraw(Canvas canvas) {
canvas.drawARGB(0x80, 0xff, 0, 0);
Paint paint = new Paint();
paint.setColor(Color.BLUE);
paint.setTextSize(48);
canvas.drawText(...Some view..., 10, 
canvas.getHeight() / 2,
paint);
}
}

}

-- 
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: can i use google maps api for free in my company's inner using android app?

2011-10-12 Thread Atik
Hi,
 you can use it free. its free to use, but implement it using the
android guidelines.

Thanks
Atik

On Oct 12, 2:28 pm, Fina Perez fina.pere...@gmail.com wrote:
 http://code.google.com/android/add-ons/google-apis/maps-overview.html
 get a debug certificate

 On Oct 12, 7:28 am, Jimmy Don dongjim...@gmail.com wrote:



  i am developing an android  app for my company .  it's for our inner
  using.

  can i use google maps api for free? or i need pay to google?- Hide quoted 
  text -

 - Show quoted text -

-- 
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: SSL certificate error for authenticating the credentials

2011-09-14 Thread Atik
Hello

I have added all the stuff in my code, but i m confused how to do for
https. can u pls elaborate more abt the truststore,
 how to create it and if u sample then it would be great.

i have modified the code in different ways but i m unable to get
output

my code is 

package com.example;

import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;

import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.ClientConnectionManager;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.conn.ssl.X509HostnameVerifier;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.SingleClientConnManager;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class LoginDemoActivity extends Activity {

EditText edtusername, edtpassword;
Button btnsignin;
DefaultHttpClient cl;

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

edtusername = (EditText) findViewById(R.id.username);
edtpassword = (EditText) findViewById(R.id.password);
btnsignin = (Button) findViewById(R.id.btnsignin);

btnsignin.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
Log.i(the username is + 
edtusername.getText().toString(),
the password is + 
edtpassword.getText().toString());
Log.i(before arraylist ***, 222);

HttpParams params = new BasicHttpParams();

ArrayListNameValuePair postParameters = new
ArrayListNameValuePair();
postParameters.add(new 
BasicNameValuePair(username,

edtusername.getText().toString()));
postParameters.add(new 
BasicNameValuePair(password,

edtpassword.getText().toString()));

Log.i(before socket is registered ***, 
);

// SchemeRegistry schemeRegistry = new 
SchemeRegistry();
// schemeRegistry.register(new Scheme(http,
// PlainSocketFactory.getSocketFactory(), 80));
// schemeRegistry.register(new Scheme(https, 
new
// EasySSLSocketFactory(), 443));
// ClientConnectionManager conMgr = new
// ThreadSafeClientConnManager(
// params, schemeRegistry);

// cl= new DefaultHttpClient(conMgr,params);

Log.i(after socket is registered ***, 
4);

String url = 
https://192.168.10.106/check_admin.php?
method=check_adminusername=adminpassword=spsoft_123;

HostnameVerifier hostnameVerifier =
org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;
DefaultHttpClient client = new 
DefaultHttpClient();

SchemeRegistry registry = new SchemeRegistry();
SSLSocketFactory socketFactory = 
SSLSocketFactory
.getSocketFactory();


socketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
socketFactory

.setHostnameVerifier((X509HostnameVerifier) hostnameVerifier);
registry.register(new Scheme(https, 
socketFactory, 443));

[android-developers] SSL certificate error for authenticating the credentials

2011-09-13 Thread Atik
Hello friends
 i have a php webservice which checks with database for the username
and password provided.
when i run the following code i get 09-13 15:42:28.354: WARN/
System.err(593): javax.net.ssl.SSLPeerUnverifiedException: No peer
certificate
..

and my line
HttpResponse res = cl.execute(post);

will not get executed..

i m confused.. i have the following https url...


Thanks in advance

my code is *



package com.example;

import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;

import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.protocol.HTTP;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class LoginDemoActivity extends Activity {

EditText edtusername, edtpassword;
Button btnsignin;

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

edtusername = (EditText) findViewById(R.id.username);
edtpassword = (EditText) findViewById(R.id.password);
btnsignin = (Button) findViewById(R.id.btnsignin);

btnsignin.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
Log.i(the username is + 
edtusername.getText().toString(),
the password is + 
edtpassword.getText().toString());
Log.i(before arraylist ***, 222);

ArrayListNameValuePair postParameters = new
ArrayListNameValuePair();
postParameters.add(new 
BasicNameValuePair(username,

edtusername.getText().toString()));
postParameters.add(new 
BasicNameValuePair(password,

edtpassword.getText().toString()));

Log.i(before socket is registered ***, 
);

SchemeRegistry schemeRegistry = new 
SchemeRegistry();
//schemeRegistry.register(new Scheme(http,
PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(new Scheme(https,
SSLSocketFactory.getSocketFactory(), 443));

Log.i(after socket is registered ***, 
4);
String url = https://192.18.10
106/check_admin.php?method=check_admin;
HttpPost post = new HttpPost(url);
HttpClient cl = new DefaultHttpClient();

UrlEncodedFormEntity ent = null;
try {
ent = new 
UrlEncodedFormEntity(postParameters, HTTP.UTF_8);
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
post.setEntity(ent);
try {


HttpResponse res = cl.execute(post);
InputStream in = 
res.getEntity().getContent();

byte[] bytes = new byte[in.available()];
in.read(bytes);
String s = new String(bytes);

Log.i(the string value is, *** + s);

} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();

[android-developers] HTTPGet synchronous or asynchronous call???

2011-08-18 Thread Atik
Hi,
we have HTTPGet in android so we can communicate with the server to
get the response when we send a request.
i am using that in XML parsing, so but i want to know whether HTTPGet
is a synchronous call or a synchronous call ???


Please help me out with more explanation. i have googled it on
internet also, but unable to find the satisfactory answer.


Thanks
Atik

-- 
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: HTTPGet synchronous or asynchronous call???

2011-08-18 Thread Atik
Hi Kumar,

Thanks for the useful answer but can you please more elaborate on it.
how we can make it asychronous???

Thanks in advance...
Atik


On Aug 19, 10:06 am, Kumar Bibek coomar@gmail.com wrote:
 By itself it is a synchronous call. You will have to make it asychronous.

 *Thanks and Regards,
 Kumar Bibek*
 *http://techdroid.kbeanie.comhttp://www.kbeanie.com*







 On Fri, Aug 19, 2011 at 10:35 AM, Atik atik0...@gmail.com wrote:
  Hi,
  we have HTTPGet in android so we can communicate with the server to
  get the response when we send a request.
  i am using that in XML parsing, so but i want to know whether HTTPGet
  is a synchronous call or a synchronous call ???

  Please help me out with more explanation. i have googled it on
  internet also, but unable to find the satisfactory answer.

  Thanks
  Atik

  --
  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] unable to open default application from phone when list item is clicked!!!

2011-08-10 Thread Atik
Hi ,
i have a list view, list item came from server side, some times its
mp3,pdf,txt,doc,mp4,3gp etc, so finally my list contains diff files of
diff extensions, so i want when user clicks on any item then, the by
defualt application should start from the phone, means when user
clicks on the pdf file then it should start dauflt pdf viewer of
phone, or when user clicks on the mp3 or 3gp file, it should start the
audio or media playe respectively.

do i need to catch the exntesion of file when its clicked and then
start the application or can we do this with the help of actions in
intent filters..

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


[android-developers] dynamic list view i.e like phone book error

2011-06-23 Thread Atik
Hi guys,
I am trying to develop a list view, which contains country names and
on top of it i have a AutoCompleteTextView, so when ever i will search
for a particular string my list will get populated. but i m unable to
do that. means i want to show the matching names in the list view.
like our phones contact list.
so finally i replaced the AutoCompleteTextView with simple textview,
to do the same logic and failed again.

please
check my code
i have searched on net abt TextWatcher ,, and bit confused abt it..

*

package com.example;


import android.app.Activity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

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


  ListView lv= (ListView) findViewById(R.id.listview);

  AutoCompleteTextView lv1= (AutoCompleteTextView)
findViewById(R.id.searchText);


  ArrayAdapterString adapter = new ArrayAdapterString(this,
R.layout.simple_list_item_1, COUNTRIES);
  lv1.setAdapter(adapter);

  lv.setAdapter(new ArrayAdapterString(this,
R.layout.simple_list_item_1, COUNTRIES));



  lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View view,
int position, long id) {
  // When clicked, show a toast with the TextView text
  Toast.makeText(getApplicationContext(), ((TextView)
view).getText(),
  Toast.LENGTH_SHORT).show();
}
  });
}
static final String[] COUNTRIES = new String[] {
Afghanistan, Albania, Algeria, American Samoa,india,
pakistan, SriLanka};
}





Thanks
Atik

-- 
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: How to customize the list view...list view resource id is invalid???

2011-06-14 Thread Atik
Thanks vijay.
for helping me out.
it worked

Thanks
Atik

On Jun 13, 4:01 pm,  νιנαソkum@r iamvijayaku...@gmail.com wrote:
    ListView lv= (ListView) findViewById(R.id.listview);

          lv.setAdapter(new ArrayAdapterString(this, R.id.listview,
 COUNTRIES));

 android.R.layout.simple_list_item_1

 remove* R.id.listiew* add this one* android.R.layout.simple_list_item_1*









 On Mon, Jun 13, 2011 at 4:24 PM, Atik atik0...@gmail.com wrote:
  HI All,
  i m developing a list view and on top, it will have a auto complete
  textview, when user clicks on a certain item from the list, i want to
  display it in that auto complete text field. but i m getting some
  error..pls advice me..my codes are

  right now i m unable to load the view..so i have just written the code
  for the click on list item..

  Thanks

  **package com.example;

  import android.app.Activity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  import android.widget.TextView;
  import android.widget.Toast;
  import android.widget.AdapterView.OnItemClickListener;

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

           ListView lv= (ListView) findViewById(R.id.listview);

           lv.setAdapter(new ArrayAdapterString(this, R.id.listview,
  COUNTRIES));

           lv.setOnItemClickListener(new OnItemClickListener() {
             public void onItemClick(AdapterView? parent, View view,
                 int position, long id) {
               // When clicked, show a toast with the TextView text
               Toast.makeText(getApplicationContext(), ((TextView)
  view).getText(),
                   Toast.LENGTH_SHORT).show();
             }
           });
         }
     static final String[] COUNTRIES = new String[] {
         Afghanistan, Albania, Algeria, American Samoa};
  }

  ***xml file

  ?xml version=1.0 encoding=utf-8?

  RelativeLayout android:id=@+id/main1
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:padding=4dip android:layout_width=fill_parent
         android:layout_height=fill_parent

         AutoCompleteTextView android:id=@+id/searchText
                 android:layout_width=fill_parent
  android:layout_height=wrap_content
                 android:singleLine=true android:textSize=16sp
  android:autoText=false
                 android:capitalize=none
  android:layout_alignParentLeft=true
                 android:scrollHorizontally=true

         /AutoCompleteTextView

         Button android:id=@+id/searchButton
  android:layout_width=wrap_content
                 android:layout_height=wrap_content android:text=

                 android:layout_alignParentRight=true
         /Button

         ListView android:id=@+id/listview
  android:layout_width=fill_parent
                 android:layout_height=fill_parent android:padding=10dp
                 android:textSize=16sp
         /ListView
  /RelativeLayout

  --
  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

 --

 Nobody can go back and start a new beginning, but anyone can start today
 and make a new ending
 -
 Thanks,
 Regards,
 νιנαソαkum@r M
 BloG:http://iamvijayakumar.blogspot.com/
 Mob.No:09048382536(Kerala)
 Mob.No:09751076707(TN)

-- 
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 customize the list view...list view resource id is invalid???

2011-06-13 Thread Atik
HI All,
i m developing a list view and on top, it will have a auto complete
textview, when user clicks on a certain item from the list, i want to
display it in that auto complete text field. but i m getting some
error..pls advice me..my codes are


right now i m unable to load the view..so i have just written the code
for the click on list item..

Thanks



**package com.example;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

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


  ListView lv= (ListView) findViewById(R.id.listview);

  lv.setAdapter(new ArrayAdapterString(this, R.id.listview,
COUNTRIES));



  lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView? parent, View view,
int position, long id) {
  // When clicked, show a toast with the TextView text
  Toast.makeText(getApplicationContext(), ((TextView)
view).getText(),
  Toast.LENGTH_SHORT).show();
}
  });
}
static final String[] COUNTRIES = new String[] {
Afghanistan, Albania, Algeria, American Samoa};
}

***xml file

?xml version=1.0 encoding=utf-8?

RelativeLayout android:id=@+id/main1
xmlns:android=http://schemas.android.com/apk/res/android;
android:padding=4dip android:layout_width=fill_parent
android:layout_height=fill_parent



AutoCompleteTextView android:id=@+id/searchText
android:layout_width=fill_parent
android:layout_height=wrap_content
android:singleLine=true android:textSize=16sp
android:autoText=false
android:capitalize=none android:layout_alignParentLeft=true
android:scrollHorizontally=true

/AutoCompleteTextView

Button android:id=@+id/searchButton
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=

android:layout_alignParentRight=true
/Button



ListView android:id=@+id/listview
android:layout_width=fill_parent
android:layout_height=fill_parent android:padding=10dp
android:textSize=16sp
/ListView
/RelativeLayout

-- 
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] can we upgrade paid version to free version with add.

2011-02-10 Thread Atik
HI ALL,

i have uploaded one application , which is paid version and i have
very few downloads of it. so i want to upgrade the same application
with as free version with ad support in it.

can any one tell me how much i will earn if my application will get
downloaded 1000 times. i am using admob and adding its jar file to
display the adds.

please guide me can i convert the paid version to free version now.


Thanks
Atik

-- 
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 check phone support torch mode..problem pls solve

2010-12-28 Thread Atik
Hello
Android phone doesnt having the LED or flash light. so how can we
check weather that device supports Flash light or not..

how we can communicate with hardware to check  the same.


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 promote about the paid app!!!

2010-12-27 Thread Atik
Hi All,

I have published the paid app before 1 week. but still the no
downloads for it.
can any one tell me how i can make advertise of that app,so people
will get to know about the app..
i m planning to publish one more free app with limited functionality ,
but  how i can advertise about the paid app in that free version.


please suggest me!

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] zoomSupported = false for android camera zooming.

2010-12-24 Thread Atik
Hi!11
 i have camera ,which i have opened well , but onzoomclicklistener its
giving error that

  12-24 15:00:29.511: ERROR/AndroidRuntime(12320):
java.lang.IllegalArgumentException: invalid zoom value=1


i have printed in log about the zoom supoort and its printing the log
 12-24 15:00:26.961: DEBUG/zoom support(12320): zoomSupported = false



please suggest 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: Inputs from the Android Camera

2010-12-22 Thread Atik
hi,
so i have downloaded the source of camera app of android.

and finally i need app only it should perform the zoom in out and
brightness bar as implemented in the camera.it should not capture the
image..


can i do the same.. i have done lot of changes in the code and i m
able to do it ..but else all functions are still there in the
app ..like face track,smile mode etc.

pls let me know...thanks


On Dec 22, 6:04 pm, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 22 December 2010 04:02, Vikram vikram.bodiche...@gmail.com wrote:

  We want to get some simple information from the user (in the form of
  checkboxes) for a few seconds before he starts using his camera. Can
  we somehow present our checkbox list over his camera app?

  I understand that the Camera is an app in itself and that we cannot
  make changes or add our stuff on its UI, but is there something that I
  am missing somewhere?

 Camera app and camera h/w are two different things. You may want
 to write your own app that uses camera hardware and add your
 own UI elements to it. You can't overlay existing 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


[android-developers] Camera zoom problem

2010-12-22 Thread Atik
Hi guys.
 my code snippet is working fine for the imageview zooming in out. but
i want to take the camera preview for zooming,

my code snippet is havingmBitmap which is taking image from drawable..
i want to place the surface view/ or camera preview for the same.

please suggest how to replace bitmap by the preview

 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.cameralayout);

mZoomControl = new DynamicZoomControl();


//preview = (SurfaceView) findViewById(R.id.zoomview);
//  previewHolder = (preview).getHolder();
//  previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);

mBitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.image);

mZoomListener = new
LongPressZoomListener(getApplicationContext());
mZoomListener.setZoomControl(mZoomControl);

mZoomView = (SurfaceView)findViewById(R.id.zoomview);
mZoomView.setZoomState(mZoomControl.getZoomState());
mZoomView.setImage(mBitmap);
mZoomView.setOnTouchListener(mZoomListener);

mZoomControl.setAspectQuotient(mZoomView.getAspectQuotient());

resetZoomState();
}

-- 
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] camera app giving error pls guide.

2010-12-21 Thread Atik
Hello Guys
i have downloaded the camera.zip from the git.its android inbuilt
camera project. i have the source code now. i tried to run the code
but i m getting some error that first unistall the camera app from
device or emulator.

i want to implement the funcationality like the camera should open and
zoom in out and brightness and contrast buttons should work.. i dont
want to capture the image.
can any one guide me pls..

can we run the camara which i downloaded from git on emulator or m i
doing some thing wrong.

pls guide 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: camera app giving error pls guide.

2010-12-21 Thread Atik
Thanks Erfan for quick reply

but u didnt got my issue i guess.

i took all files and made another project with some diff package name
and trying to run it.

so here i mean to say i am not installing the same app twice

i have diff app and here i m getting error like'
Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
[2010-12-21 15:50:36 - CameraNew] Please check logcat output for more
details.
[2010-12-21 15:50:36 - CameraNew] Launch canceled!

so ...i just wanted to see the running app as the code is ok..its
error is osmething abt signature or debug.keystore but i m unable to
resolve it

Thanks

On Dec 21, 2:47 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 On Tuesday, December 21, 2010 3:38:26 PM UTC+6, Atik wrote:

  can we run the camara which i downloaded from git on emulator or m i
  doing some thing wrong.

  You cannot run this app. What you are trying to do is similar this:

 * You have Microsoft Word installed in your PC.
 * You somehow got the source files of Microsoft Word!! (Ok, just imagine)
 * You built MS Word from source and when you wanted to install, the OS told
 you that it is already installed.

 You need to develop your own application. You can examine the source of the
 camera app. Also, I would suggest you to read the SDK documentation if you
 are willing to use camera.

 Regards
 Sarwar Erfan

-- 
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: camera app giving error pls guide.

2010-12-21 Thread Atik
thanks Erfan and i m doing the same.
hope fully i will complete it and let u know...

thanks for ur kind support

On Dec 21, 3:38 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 check the android menifest. Did you change it accordingly?

 Is there something like android:sharedUserId?
 That should be the source of the problem. Normally, you dont provide this
 key and Android gives you an unique id. But, if you specify an Id, all apps
 with same userId must be signed with the same certificate.

 Read about android:sharedUserId in this 
 link:http://developer.android.com/guide/topics/manifest/manifest-element.html

 Try omitting that.

 Regards
 Sarwar Erfan

-- 
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] published app

2010-12-21 Thread Atik
i have published one app...

its showing the following line..

The application has access to the following (mouse-over for
description):
none

m i doing some mistake while setting some permission for the same..

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] Upgrade Galaxy 2.1 eclairs to 2.2 froyo in india..

2010-12-21 Thread Atik
Hello Guys,
can any one knows when samsung is releasing the updates for galaxy 3 ,
which runs on android 2.1 os, and we need to to update to 2.2 froyo.

any ideas for indian users.

which phone is best suitable with 2.2 in india..

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] Paid app from UK.pls help

2010-12-20 Thread Atik
Hi,
I have publish 1 paid app from UK., initailly the price was set to
0.75GBP, but later i tried to change the price and i wrote 0.99$
there, even i forgot the current currency of UK should be mentioned.
so now my app is not visible on market. can any one tell me what
should i need to do .
i want the price should be set to 0.75 GBP.bymistake i have made the
changes and saved it..

please help and guide 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] error while updating sdk 2.3

2010-12-19 Thread Atik
Installed Android SDK Tools, revision 8
'adb kill-server' failed -- run manually if necessary.
Unable to run 'adb': Cannot run program D:\Atiks Work\Android\android-
sdk\tools\adb.exe: CreateProcess error=2, The system cannot find the
file specified.
'adb start-server' failed.

 i m getting the same error ..pls solve..
i m badly stuck 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


[android-developers] Re: problem in nested linear layout

2010-12-19 Thread Atik
hello boss..

i will just suggest u that better way use relative layout for the same
so u can place the components betterway.
i havent read the code. so cant comment on the current xml.


On Dec 20, 11:37 am, pramod.deore deore.pramo...@gmail.com wrote:
 when I open this xml file with andriodLayout Editor then it shows
 first 2 buutons and textview in horizontal orientation and last 2 in
 horizontal. But when I run application then on emulator it shows all 4
 textview and 4 buttons in vertical. How to show first 2 textview and
 button in horizonta; and last 2 button and textview in horizontal?
 On Dec 20, 10:54 am, pramod.deore deore.pramo...@gmail.com wrote:

  Hi, all I have xml file in that there is one radio group which has 3
  radio buttons arranged in horizontal. then there are 4 textfield and 4
  buttons arranged in vertical. But what I want is arrange first 2
  buttons and 2 textfield horizontal and last 2 buttons and 2 textfield
  horizontal. I wrote nested linear layout but it is not working. Here
  it still shows all buttons and textfield vertical.

  Here is my xml file
  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
   android:orientation=vertical
   android:layout_width=fill_parent
   android:layout_height=wrap_content

                  TextView android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:textStyle=bold
                  android:text=Select Scheduler Type /

                  RadioGroup android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:orientation=horizontal
                  android:id=@+id/QueGroup1

                          RadioButton android:checked=false
                          android:id=@+id/option1 android:text=Once/
                          RadioButton android:checked=false
                          android:id=@+id/option2 android:text=Daily/
                          RadioButton android:checked=false
                          android:id=@+id/option3 android:text=Weekly/
                  /RadioGroup

                  LinearLayout
          android:orientation=horizontal
          android:layout_width=fill_parent
          android:layout_height=wrap_content
          android:gravity=center 

                          TextView
                          android:id=@+id/startDate
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text= /
                  android:textStyle=bold

                  Button
                  android:id = @+id/pickStartDate
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text=Start Date
                  /

                  TextView android:id=@+id/starttime
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text=/

                  Button android:id=@+id/pickStartTime
              android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text=Start Time/
          /LinearLayout

          LinearLayout
          android:orientation=horizontal
          android:layout_width=fill_parent
          android:layout_height=wrap_content
          android:gravity=center 

                  TextView
                          android:id=@+id/stopDate
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text= /
                  android:textStyle=bold

                  Button
                  android:id = @+id/pickStopDate
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text=Stop Date
                  /

                  TextView android:id=@+id/stoptime
                  android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text=/

                  Button android:id=@+id/pickStopTime
              android:layout_width=wrap_content
                  android:layout_height=wrap_content
                  android:text=Stop Time/

          /LinearLayout

  /LinearLayout

-- 
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] Signed app.how to get LVL in source

2010-12-18 Thread Atik
Hello guys
i have created one app. wanna sell for 1$. through eclipse i have
exported signed app apk file.
but now i m unaware of licensing and etc. adding LVL in code and all..
please guide me .where to get the library and how to add this in
project.
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] snaps not attaching to market while uploading the app

2010-12-18 Thread Atik
hello,
i have created application, i have tested it on device, and while
uploading the app to market its giving me some erroe like

The screenshot must be 320x480, 480x800, or 480x854 pixels.

i have taken the screenshots of the emulator and uploading it..

pls tell me something.. i tried diff image editors to edit the image
to the required size but still its showing the same .

please suggest.. i need to upload it.

-- 
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] Application not visible in market and on Developer console.where to check

2010-12-18 Thread Atik
Hello,
 i have published one paid app on market. but on developer console i
am unable to see that application. so after some time i tried to
upload the apk again and that time i got the msg that YOU HAVE
UPLOADED THE APP WITH THE SAME PACKAGE NAME... here i came to know
that my application is successfully uploaded. can any one tell me how
to see that app on developer console.

All Android Market Listing is still showing me blank page. can any one
tell me how much time does it take to reflect the application in
android market...please solve my issue..

Thanks
Atik

-- 
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] Publishing app . what should be done

2010-12-17 Thread Atik
I have created on app . i need to publish it on the market.
what steps i have to follow,signing the app, and licensing the app
etc.
and where to get all the details, and etc.

-- 
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] Brightness through seekbar.pls help

2010-12-16 Thread Atik
HI,
 i have gone through the settings app of android application on git.
major java files to implement the brightness functionality through
seek bar  are
BrightnessPreference.java
DisplaySettings.java
Display.java

can i use this .. i m trying very diff approaches to get the desired
effect..pls suggest.
i just want to implement for the image view to +/- the brightness.

-- 
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 download app from git.

2010-12-16 Thread Atik
hi need to check the source code execution from the git and repo but
unable to find the correct way for the same.

the sample code contains ample layout files. so pls tell me the how to
use the same... i have allready installed the  GIT BASH ..and
through certain commands i have tried to access but it was giving some
error..

thx 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


[android-developers] Re: how to connect gps in android emulator

2010-12-16 Thread Atik
Hi .
go to emulator-ddms-emulator control-location control
where u can set the lat and lon manually and can test it.


On Dec 17, 10:11 am, j...@n$ janedevana...@gmail.com wrote:
 I tried to the location and display ip but the code is not
 working ,can any1 plz tell me how to get the location using gps

-- 
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: How to attache paypal account with android market

2010-12-15 Thread Atik
are bro
u r from india. u cant create check out account and u cant sell apps
on market... few countries like india are only allowed to upload the
free apps... so hardluck..

but u can some one who will help u to publish the app and u will get
the money..
 i have done the same.

Thanks
Atik



On Dec 16, 11:26 am, Amit Mangal forum.amit.man...@gmail.com wrote:
 How to create Google Check out account Please give me pointer.

 On Wed, Dec 15, 2010 at 11:41 PM, Mark Murphy mmur...@commonsware.comwrote:

  On Wed, Dec 15, 2010 at 12:59 PM, Amit Mangal
  forum.amit.man...@gmail.com wrote:
   so how can i get paid when any one download my paid application ?

  Through Google Checkout.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com|http://github.com/commonsguy
 http://commonsware.com/blog|http://twitter.com/commonsguy

  _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
  Available!

  --
   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.comandroid-developers%2bunsubs­cr...@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] Differnce Betn OnTap(int index) OnTap(GeoPoint p, Mapview v)

2010-12-13 Thread Atik
hello All,
i want to implement app like.
i want to show marker on the map. on tap it should display the dailog,
and again i want that ontap, the map should get the zoom upto 20
level..

so can any one tell me how to do this..

or what is the differnce between above two methid if i ma using the
both methods in code
OnTap(int index)--for showing dialog
OnTap(Geopoint p,mapview v)---for zooming map


pls help...
in code how it will work for tap, if i want to show the dailog as well
as want to zoom the map

th

-- 
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: Differnce Betn OnTap(int index) OnTap(GeoPoint p, Mapview v)

2010-12-13 Thread Atik
i have implemented ontap(in index) to show the dialog popup and
ontap(geopiont p,mapview v) to animate and zoom the map on tap.
so i have these methods
*
@Override
protected boolean onTap(int index) {
OverlayItem item = mOverlays.get(index);
AlertDialog.Builder dialog = new AlertDialog.Builder(
HelloGoogleMaps.this);
dialog.setTitle(item.getTitle());
dialog.setMessage(item.getSnippet());
dialog.show();
return true;
}

@Override
public boolean onTap(GeoPoint point, MapView mapView) {

mc.animateTo(point);
mapView = (MapView) findViewById(R.id.mapview);

mapView.setSatellite(true);
mc.setZoom(18);
mapView.invalidate();
return super.onTap(point, mapView);
}

}

but it doestnt work...i m not getting any dialog.

i want the functionality that ..it should show the dialog and later on
tap , it should zoom.

pls suggest some modification in it.
and let me know the diffrnces of the 2 taps..CAN WE USE THE 2 ONTAP
FUNCTION IN ONE MAP ACTIVITY???





On Dec 13, 4:07 pm, ahmed jabir feelsocial.andr...@gmail.com wrote:
 ???
 On Dec 13, 2010 2:56 PM, Atik atik0...@gmail.com wrote:



  hello All,
  i want to implement app like.
  i want to show marker on the map. on tap it should display the dailog,
  and again i want that ontap, the map should get the zoom upto 20
  level..

  so can any one tell me how to do this..

  or what is the differnce between above two methid if i ma using the
  both methods in code
  OnTap(int index)--for showing dialog
  OnTap(Geopoint p,mapview v)---for zooming map

  pls help...
  in code how it will work for tap, if i want to show the dailog as well
  as want to zoom the map

  th

  --
  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.comandroid-developers%2bunsubs­cr...@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] unable to download sdk 2.3

2010-12-09 Thread Atik
hi
 i m using android api level 8, froyo for developing application.
but after trying to download the package from available packages in
avd manager ...i only seen this error msg
**
Downloading Android SDK Tools, revision 8
Installing Android SDK Tools, revision 8
[post_tools_install.bat] Updating SDK Manager.exe
[post_tools_install.bat] 1 file(s) copied.
[post_tools_install.bat] Removing obsolete ..\..\SDK Setup.exe
Installed Android SDK Tools, revision 8
'adb kill-server' failed -- run manually if necessary.
Unable to run 'adb': Cannot run program D:\Atiks Work\Android\android-
sdk\tools\adb.exe: CreateProcess error=2, The system cannot find the
file specified.
'adb start-server' failed.

now after this my adb.exe is missing  from tools folder. or some time
i m getting the same update option for tools and nothing happened
agaian...pls help me out.. i need to work on 2.3..but i m unable to
get it on my machine

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] Re: unable to download sdk 2.3

2010-12-09 Thread Atik
thanks ..but when i restarted the eclipse ...its giving me error for
the current sdk saying adb.exe not found..check for plugins etc...

i have tried with sdk updater several times but i got the same
error ..
confused..new in android
pls help ..

On Dec 10, 11:14 am, Xavier Ducrohet x...@android.com wrote:
 This is normal. Launch the SDK updater again and download the rest.



 On Thu, Dec 9, 2010 at 10:09 PM, Atik atik0...@gmail.com wrote:
  hi
   i m using android api level 8, froyo for developing application.
  but after trying to download the package from available packages in
  avd manager ...i only seen this error msg
  **
  Downloading Android SDK Tools, revision 8
  Installing Android SDK Tools, revision 8
  [post_tools_install.bat] Updating SDK Manager.exe
  [post_tools_install.bat]         1 file(s) copied.
  [post_tools_install.bat] Removing obsolete ..\..\SDK Setup.exe
  Installed Android SDK Tools, revision 8
  'adb kill-server' failed -- run manually if necessary.
  Unable to run 'adb': Cannot run program D:\Atiks Work\Android\android-
  sdk\tools\adb.exe: CreateProcess error=2, The system cannot find the
  file specified.
  'adb start-server' failed.

  now after this my adb.exe is missing  from tools folder. or some time
  i m getting the same update option for tools and nothing happened
  agaian...pls help me out.. i need to work on 2.3..but i m unable to
  get it on my machine

  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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. 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] Re: unable to download sdk 2.3

2010-12-09 Thread Atik
i havent found any files there like adb.exe..after restarting the
eclipse its giving error that adb.exe missing for the sdk..
and i m using eclipse ,i think in eclispse we dont need to set any
classpath or any other path for the sdk.
i m confused with ur answer...but thanks for the same



On Dec 10, 11:16 am, mine260309 mine260...@gmail.com wrote:
 the adb.exe related files are moved to sdk/platform-tools/, add that
 directory to your PATH, it will work.

 On Dec 10, 2:09 pm, Atik atik0...@gmail.com wrote:

  hi
   i m using android api level 8, froyo for developing application.
  but after trying to download the package from available packages in
  avd manager ...i only seen this error msg
  **
  Downloading Android SDK Tools, revision 8
  Installing Android SDK Tools, revision 8
  [post_tools_install.bat] Updating SDK Manager.exe
  [post_tools_install.bat]         1 file(s) copied.
  [post_tools_install.bat] Removing obsolete ..\..\SDK Setup.exe
  Installed Android SDK Tools, revision 8
  'adb kill-server' failed -- run manually if necessary.
  Unable to run 'adb': Cannot run program D:\Atiks Work\Android\android-
  sdk\tools\adb.exe: CreateProcess error=2, The system cannot find the
  file specified.
  'adb start-server' failed.

  now after this my adb.exe is missing  from tools folder. or some time
  i m getting the same update option for tools and nothing happened
  agaian...pls help me out.. i need to work on 2.3..but i m unable to
  get it on my machine

  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] Map Overlays Null Pointer Exception..pls help

2010-12-06 Thread Atik
Hello guys,
 i have written the code to find the GPS location , it was working
fine. later i have added one class for overlays but now its giving me
nullpointer exception on populate function.

the code is below

***

package com.spsoft.lbs.gps;

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

import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;

public class GPSMapActivity extends MapActivity {
private LocationManager lm;
private LocationListener locationListener;

private MapView mapView;
private MapController mc;
double lat;
double lan;
final long E6 = 100;
private GeoPoint p;

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

// ---use the LocationManager class to obtain GPS locations---
lm = (LocationManager) 
getSystemService(Context.LOCATION_SERVICE);

locationListener = new MyLocationListener();

lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 200, 
200,
locationListener);

Log
.v(getClass().getName(),

*after time
interval);

mapView = (MapView) findViewById(R.id.mapview1);

ListOverlay mapOverlays = mapView.getOverlays();
Drawable drawable =
this.getResources().getDrawable(R.drawable.icon);
HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(
drawable);

OverlayItem overlayitem = new OverlayItem(p, Hi!, I am 
here!);

itemizedoverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedoverlay);

mc = mapView.getController();
}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}

private class MyLocationListener implements LocationListener {

public void onLocationChanged(Location loc) {

// TODO Auto-generated method stub
if (loc != null) {
Toast.makeText(
getBaseContext(),
Location changed : Lat:  + 
loc.getLatitude()
+  Lng:  + 
loc.getLongitude(),
Toast.LENGTH_SHORT).show();

GeoPoint p = new GeoPoint((int) 
(loc.getLatitude() * 1E6),
(int) (loc.getLongitude() * 
1E6));
mc.animateTo(p);
mc.setZoom(16);
mapView.invalidate();
Log.i(the values in GPS class are:, lat:
+ loc.getLatitude() + lan: + 
loc.getLongitude());
}
}

public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub

}

public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub

}

public void onStatusChanged(String provider, int status, Bundle
extras) {
// TODO Auto-generated method stub
}
}

public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;
}

public boolean onOptionsItemSelected(MenuItem item) {

switch (item.getItemId()) {
case R.id.mapview:
performToggleMap();
break;
case 

[android-developers] Map Overlays Null Pointer Exception..pls help

2010-12-06 Thread Atik
Hello guys
I have created GPS code , so i m able to get my current location and i
have added itemizedoverlay as inner class bcos i want to show the
marker on my current location. on map.

but now i m facing error i.e NullPointerexception ONPOPULATE method in
that over lays class..

thanks
atik
pls help me out

-- 
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] Diff between paid and add supported free apps

2010-12-03 Thread Atik
HI guys,
can any one tell me what is the earning diffenrce between paid and add
supported free android app.

e.g i have created one app, quoted price will be 1$, and that
application has 100 downloads, and 2nd scenario is i will keep the
same app for free addition with some ads and will consider the same
downloads for the free application.

then can any one pls tell me how much i m going to earn from free app
publishing, as if i m publishing app for 1$ then after 100 downloads
my profile will be 70%, as 30% charges google will take...


pls guide ..

-- 
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 zoom camera through code

2010-12-01 Thread Atik
Hello guys,
i have created a camera app, but here i dont want to capture the
image. just i want to put some zoom control similar like we have on
google map inbuilt zoom controls or any else. but i need a
funcationality that the after clicking on button the camera should
zoom the image..
i have just opened my camera through code and now i m able to see the
preview of it.
i have implemented the 

camera.setZoomChangeListener(new OnZoomChangeListener() {

public void onZoomChange(int zoomValue, boolean 
stopped, Camera
camera) {
// TODO Auto-generated method stub


}
});

but what exactly should i need to do to achieve the same.
reply

-- 
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] Problem with Zoom controls on camera preview

2010-12-01 Thread Atik
HI All,
i have open the camera preview, and i dont want to capture the image.
i just want to zoom in/out .
i am able to put the zoomcontroller on the preview from the layout xm
file , but what next i need to right to start zooming the camera
preview. plsss guide


In Advance 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] problem with map overlays

2010-11-30 Thread Atik
i have taken the code for drawing  the oath on the google map, from
the google git..

but i m now stuck in some diff issue. i m unable to put a marker on
the start and end point of the path drawn.
pls suggest me..
actually in map activity in my project class is created by extending
com.google.android.maps.Overlay
but this class is used to draw the path on the map.
so please suggest me what should i need to do if i want to put marker
on start and end point of the map.

-- 
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: can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Atik
means u mean to say k user can update there SDK .
i was thinking that once any one purchases a cell phone with a
particular SDK , that will remain unchaged and we cant update the
same. means i was thinking that if a person bought a android 2.1
eclairs device then he will be using the same device without any
updates for lifetime with the same sdk.
please clarify . i know i am wrong, but need some more info about it.

Thanks
Atik

On Nov 29, 1:25 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 If by Galaxy 3 you mean Galaxy S - Samsung started rolling out updates
 to 2.2 recently.

 The exact dates are country-specific - I received mine in Russia on
 November 24 - but it's ongoing.

 -- Kostya

 29.11.2010 9:41, Atik пишет:

  hello all,
  i am planning to buy galaxy 3, which is having 2.1 eclairs sdk. so
  after few days can we update the mobile sdk versions to the new
  versions??? or we have to use 2.1 only for lifetime.
  pls suggest me android phone.

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.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


[android-developers] Re: can we upgrade phone from 2.1 to 2.2

2010-11-29 Thread Atik
thanks
very much

On Nov 29, 3:25 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 There is no SDK on the phone.

 SDK is what you use to develop applications - on a desktop computer.

 Phones (and other devices) have firmware, which is the Android
 platform, of a particular version, that is made to work on that
 particular phone model, sometimes with new functionality (HTC Sense,
 MOTOBLUR, Samsung TouchWiz, etc.)

 Some manufacturers release firmware updates for their Android phones,
 some even do it more or less on time. Some don't.

 Some examples:

 - HTC was late with their 1.6 to 2.1 update for the Hero by about six
 months.
 - Samsung released 2.1 to 2.2 update for the Galaxy S only about two
 months late.
 - Motorola is already some 3 months late with a 2.2 update for the
 Milestone, still unreleased.

 Since you mentioned the Samsung Galaxy in your original message, I
 already provided information specifically about that phone.

 -- Kostya

 29.11.2010 13:03, Atik пишет:



  means u mean to say k user can update there SDK .
  i was thinking that once any one purchases a cell phone with a
  particular SDK , that will remain unchaged and we cant update the
  same. means i was thinking that if a person bought a android 2.1
  eclairs device then he will be using the same device without any
  updates for lifetime with the same sdk.
  please clarify . i know i am wrong, but need some more info about it.

  Thanks
  Atik

  On Nov 29, 1:25 pm, Kostya Vasilyevkmans...@gmail.com  wrote:
  If by Galaxy 3 you mean Galaxy S - Samsung started rolling out updates
  to 2.2 recently.

  The exact dates are country-specific - I received mine in Russia on
  November 24 - but it's ongoing.

  -- Kostya

  29.11.2010 9:41, Atik пишет:

  hello all,
  i am planning to buy galaxy 3, which is having 2.1 eclairs sdk. so
  after few days can we update the mobile sdk versions to the new
  versions??? or we have to use 2.1 only for lifetime.
  pls suggest me android phone.
  --
  Kostya Vasilyev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.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


[android-developers] can we upgrade phone from 2.1 to 2.2

2010-11-28 Thread Atik
hello all,
i am planning to buy galaxy 3, which is having 2.1 eclairs sdk. so
after few days can we update the mobile sdk versions to the new
versions??? or we have to use 2.1 only for lifetime.
pls suggest me android phone.

-- 
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] Image Resizing and rescaling from code

2010-11-25 Thread Atik
Hi Friends,
i have two images, first image of size 345x 465 and second of 495x321.
so when i m using the first image in image view or layout, the image
is best fitted with screen whereas when i am using second image then
its not taking the full height of the phone or emulator and making
data /text to compress or collapse so the user cant view it properly.

is there any way so i can modify the second image to the SIZE of first
image, means i want to modify my image such that the HEIGHT should be
greater than the WIDTH so i can use it properlyneed some solution
pls reply...
thx

-- 
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] touch zoom for image

2010-11-25 Thread Atik
hi, i have an image , the text is not much clearly visible so after
displaying the image then i want that if user touch on screen the
particular part will zoom by giving him the clear view to read...

thx

-- 
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] unable to load listview from aSync Task, see the code

2010-11-25 Thread Atik
Hi i m trying to load the list view from websrvice.. i m getting the
output in list when i m doing it alone but now in aSync task its
giving me error.. see the class file below




package com.example;

import java.io.IOException;
import java.util.ArrayList;

import org.apache.http.ParseException;
import org.json.JSONException;

import com.spsoft.android.R;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class First extends Activity {

private ListView mainListView;

double latitude;
double longitude;
String places;
DownloadInfo downloadInfo;
JSONhelper jsoNhelper;
ProgressDialog dialog;
ArrayListPlaceInformation a;

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.first);
mainListView = (ListView) findViewById(R.id.mainListView);
Intent i = getIntent();
Bundle bun = i.getExtras();
latitude = bun.getDouble(lat);
Log.v(First, latitude + latitude);
longitude = bun.getDouble(lan);
places = bun.getString(places);
downloadInfo = new DownloadInfo();
downloadInfo.execute(First.this);

// Log.v(First,  arrayList length=+ a.size());



}

public void showListView() {

String[] stringArrayForList=new String[a.size()];
for (int j = 0; j  a.size(); j++) {
stringArrayForList[j]=a.get(j).toString();
}
ArrayAdapterString listAdapter = new 
ArrayAdapterString(this,
R.layout.simplerow,stringArrayForList);
mainListView.setAdapter(listAdapter);

}

class DownloadInfo extends AsyncTaskContext, Void, Void {
@Override
protected void onPreExecute() {
// TODO Auto-generated method stub
super.onPreExecute();
jsoNhelper = new JSONhelper(getApplicationContext(), 
latitude,
longitude, places);
dialog = new ProgressDialog(First.this);
dialog.setMessage(Loading Please Wait);
dialog.show();
}
@Override
protected Void doInBackground(Context... params) {
//Looper.prepare();
try {
jsoNhelper.getJson();
a = jsoNhelper.resultArrayList;

//  Log.i(in the do in background, size is + 
a.size());
//onPostExecute(null);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
//Looper.loop();
return null;

}

@Override
protected void onPostExecute(Void result) {
try {
if (dialog.isShowing()) {
super.onPostExecute(result);
dialog.dismiss();
showListView();

}
} catch (Exception e) {
}

}

}

}

-- 
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] can we create magnifier in android

2010-11-24 Thread Atik
hi..
can we create magnifier in android to read the text on some surface
like newspaper etc. i need to save the zoom level for that perticluar
appl ..is it possible in android..

pls reply

-- 
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: Json paser showing array length as 0.. pls help

2010-11-24 Thread Atik
thx bro..aftre changing the key now its giving me null pointer
exception for the same code.. for the following lines
line number 51 in JSONHelper Class
JSONObject jsonObject = getJSONObject(httpResponse);
line number 160 in JSONHelper Class
if (httpResponse.getStatusLine().toString().equals(HTTP/1.1 200 OK))

line number 18 in First Class
jsoNhelper.getJson();

why its giving null here.some time before it was giving me
arraylentg =0..

pls reply

On Nov 24, 1:26 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 On Nov 24, 12:33 pm, Atik atik0...@gmail.com wrote:

  hi guys this the class where i m parsing the values

                          resultsJsonArray = 
  jsonObject.getJSONArray(resuslt);

 Is this spelling mistake in your actual code? (You wrote resuslt
 instead results)

 Regards
 Sarwar Erfan

-- 
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: Json paser showing array length as 0.. pls help

2010-11-24 Thread Atik
i have checked the permission in menifest and  i replaced the code
snippet as u gave me , but still its giving me null pointer exception
and i m still too much worried..

thx for the help sir..

waiting for ur helpfull  reply

On Nov 24, 2:23 pm, Sarwar Erfan erfanonl...@gmail.com wrote:
 I think you understand that it has nothing to do with the line you
 specified.

 However, I suggest you do the followings:

 #1: Check whether you have added the INTERNET permission to android
 menifest. You need to add this:
 uses-permission android:name=android.permission.INTERNET /
 It is required to be added to the AndroidMenifest.xml file. Under
 menifest tag.http://developer.android.com/guide/topics/security/security.html

 #2: I had a quick overview of your code and the response of the url
 (http://ajax.googleapis.com/ajax/services/search/local?
 v=1.0sll=48.8565,2.3509q=restaurant)
 I found that, there is a bug in your code.
 In your getResultsArrayList function you have:
 resultsJsonArray = jsonObject.getJSONArray(results);
 Which should be:
 resultsJsonArray =
 jsonObject.getJSONObject(responseData).getJSONArray(results);

 Regards
 Sarwar Erfan

 On Nov 24, 2:40 pm, Atik atik0...@gmail.com wrote:

  thx bro..aftre changing the key now its giving me null pointer
  exception for the same code.. for the following lines
  line number 51 in JSONHelper Class
  JSONObject jsonObject = getJSONObject(httpResponse);
  line number 160 in JSONHelper Class
  if (httpResponse.getStatusLine().toString().equals(HTTP/1.1 200 OK))

  line number 18 in First Class
  jsoNhelper.getJson();

  why its giving null here.some time before it was giving me
  arraylentg =0..

  pls reply

  On Nov 24, 1:26 pm, Sarwar Erfan erfanonl...@gmail.com wrote:

   On Nov 24, 12:33 pm, Atik atik0...@gmail.com wrote:

hi guys this the class where i m parsing the values

                        resultsJsonArray = 
jsonObject.getJSONArray(resuslt);

   Is this spelling mistake in your actual code? (You wrote resuslt
   instead results)

   Regards
   Sarwar Erfan

-- 
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] can we create app to use phone camera as magnifier

2010-11-24 Thread Atik
hi guys

i need to know that can we use android phone camera as magnifier
glass.
i want to create such application, which will open the camera and zoom
it to read some small text etc, it wont capture any picture neither it
will record any video.

pls suggest if any one have any ideas

Thanks
'Atik

-- 
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 publish paid app from INDIA

2010-11-24 Thread Atik
Hi
i am an Android developer,an i want to publish one paid app, the price
range would be 0.99$ -1.99$, and i have the android market account but
recently i came to know that from India i am not able to sell the
application.. is there any other option, recently i came to know about
WWW.androidconnector.com , but they didn't replied to my mail.

so please help me out to publish my 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


[android-developers] Re: how to publish paid app from INDIA

2010-11-24 Thread Atik
bro but how is it ??? means is it safe???
hope u got my point..can u tell me some details what u have in ur mind


On Nov 25, 11:25 am, Eric Wong (hdmp4.com) ericwon...@gmail.com
wrote:
 Or you can collaborate with someone who can post paid app to Android
 market ;)

 E.g. I maybe willing to do it ;)
 I am from Australia.

 Cheers
 Eric

 On Nov 25, 3:59 pm, Atik atik0...@gmail.com wrote:

  Hi
  i am an Android developer,an i want to publish one paid app, the price
  range would be 0.99$ -1.99$, and i have the android market account but
  recently i came to know that from India i am not able to sell the
  application.. is there any other option, recently i came to know about
  WWW.androidconnector.com , but they didn't replied to my mail.

  so please help me out to publish my 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


[android-developers] google api ajax webservice

2010-11-23 Thread Atik
hi guys,
i m stuck with an issue..
i have created json parser to parse the data  from this
http://ajax.googleapis.com/ajax/services/search/local?v=1.0sll=48.8565,2.3509q=restaurant
i want to parse this data and wanna show in list view in android.

please give me sampple code. actually ihave done lot work on it but
still its not giving any output.
my contact mail id is atik0...@gmail.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


[android-developers] json parser giving no output

2010-11-23 Thread Atik
hello guys.. this is JSONhelper class where i m parsing theurl and
finally in some another class i have written the follwing lines to get
the output

JSONhelper jsoNhelper=new JSONhelper(getApplicationContext());
jsoNhelper.getJson();
ArrayListPlaceInformation a=jsoNhelper.resultArrayList;
Log.v(First,  arrayList length=+ a.size());


but above lines show the length as zero... pls check the parser and
let me know where i m wrong. or pls provide the code to me..needed




package com.example;

import java.io.IOException;
import java.util.ArrayList;

import org.apache.http.HttpResponse;
import org.apache.http.ParseException;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;
import android.util.Log;

public class JSONhelper {
//private final String TAG = JSONhelper;
//  private final String API_KEY =
ABQItyg3DZbOZx4k8yKBrp80RBS4tlSElwKHfak6B1dJPxb7rRmHMRT1HQ77dOcnasJbwsK6tpUyy_thEg;
// private final String
// URL=http://174.120.32.69/~mobadmin/clients/milehigh/api/
fetch_data/all/yes;
// private final String baseURL =
// http://174.120.32.69/~mobadmin/clients/milehigh/api/fetch_data/
all/no/since/;
private final String baseURL = http://ajax.googleapis.com/ajax/
services/search/local?v=1.0sll=48.8565,2.3509q=restaurant;
//  private final String HEADER = x-api-key;

JSONArray resultsJsonArray;
JSONObject placesJsonObject;
ArrayListPlaceInformation resultArrayList = new
ArrayListPlaceInformation();

// UpdateSharedPreferences updateSharedPreferences;

// public ArrayListMFShow showArrayListFromJSON = new
ArrayListMFShow();
// public ArrayListMFArtist artistArrayListFromJSON = new
// ArrayListMFArtist();
// public ArrayListMFStage stageArrayListFromJSON = new
// ArrayListMFStage();

public JSONhelper(Context context) {

// updateSharedPreferences = new 
UpdateSharedPreferences(context);
}

public void getJson() {
HttpGet httpGet = getHttpUriRequest();
HttpClient httpClient = getHttpClient();
HttpResponse httpResponse = getHttpResponse(httpGet, 
httpClient);
JSONObject jsonObject = getJSONObject(httpResponse);

// initialiseArrayLists(jsonObject);
getResultsArrayList(jsonObject);
// Log.v(TAG, ArrayList initialized= + flag);
}

// String getURL(String since) {
//
// String Url = null;
// Url = baseURL + since;
//
// return Url;
//
// }

public void getResultsArrayList(JSONObject jsonObject) {
try {
resultsJsonArray = jsonObject.getJSONArray(resuslt);
for (int i = 0; i  resultsJsonArray.length(); i++) {
placesJsonObject = 
resultsJsonArray.getJSONObject(i);
getPlaceInformation(placesJsonObject);
}
} catch (Exception e) {
// TODO: handle exception
}
}

private void getPlaceInformation(JSONObject placesJsonObject2)
throws JSONException {
PlaceInformation placeinfo = new PlaceInformation();
placeinfo.lat = placesJsonObject2.getString(lat);
placeinfo.lng = placesJsonObject2.getString(lng);
placeinfo.title = placesJsonObject2.getString(title);
placeinfo.city = placesJsonObject2.getString(city);
placeinfo.country = placesJsonObject2.getString(country);
placeinfo.streetAddress =
placesJsonObject2.getString(streetAddress);

placeinfo.addressLines1 = placesJsonObject2
.getJSONArray(addressLines).getString(0);
placeinfo.addressLines2 = placesJsonObject2
.getJSONArray(addressLines).getString(1);

placeinfo.phoneNumbers =
placesJsonObject2.getJSONArray(phoneNumbers)
.getJSONObject(0).getString(phoneNumbers);

resultArrayList.add(placeinfo);

}

// public void getResults(JSONObject jsonObject)
// public ArrayListMFShow getShowArrayListFromJSON() {
// return showArrayListFromJSON;
// }
//
// public ArrayListMFArtist getArtistArrayListFromJSON() {
// return artistArrayListFromJSON;
// }
//
// 

[android-developers] Json paser showing array length as 0.. pls help

2010-11-23 Thread Atik
hi guys this the class where i m parsing the values

package com.example;

import java.io.IOException;
import java.util.ArrayList;

import org.apache.http.HttpResponse;
import org.apache.http.ParseException;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;
import android.util.Log;

public class JSONhelper {

private final String baseURL = http://ajax.googleapis.com/ajax/
services/search/local?v=1.0sll=48.8565,2.3509q=restaurant;


JSONArray resultsJsonArray;
JSONObject placesJsonObject;
ArrayListPlaceInformation resultArrayList = new
ArrayListPlaceInformation();



public JSONhelper(Context context) {

}

public void getJson() {
HttpGet httpGet = getHttpUriRequest();
HttpClient httpClient = getHttpClient();
HttpResponse httpResponse = getHttpResponse(httpGet, 
httpClient);
JSONObject jsonObject = getJSONObject(httpResponse);

// initialiseArrayLists(jsonObject);
getResultsArrayList(jsonObject);
// Log.v(TAG, ArrayList initialized= + flag);
}



public void getResultsArrayList(JSONObject jsonObject) {
try {
resultsJsonArray = jsonObject.getJSONArray(resuslt);
for (int i = 0; i  resultsJsonArray.length(); i++) {
placesJsonObject = 
resultsJsonArray.getJSONObject(i);
getPlaceInformation(placesJsonObject);
}
} catch (Exception e) {
// TODO: handle exception
}
}

private void getPlaceInformation(JSONObject placesJsonObject2)
throws JSONException {
PlaceInformation placeinfo = new PlaceInformation();
placeinfo.lat = placesJsonObject2.getString(lat);
placeinfo.lng = placesJsonObject2.getString(lng);
placeinfo.title = placesJsonObject2.getString(title);
placeinfo.city = placesJsonObject2.getString(city);
placeinfo.country = placesJsonObject2.getString(country);
placeinfo.streetAddress =
placesJsonObject2.getString(streetAddress);

placeinfo.addressLines1 = placesJsonObject2
.getJSONArray(addressLines).getString(0);
placeinfo.addressLines2 = placesJsonObject2
.getJSONArray(addressLines).getString(1);

placeinfo.phoneNumbers =
placesJsonObject2.getJSONArray(phoneNumbers)
.getJSONObject(0).getString(phoneNumbers);

resultArrayList.add(placeinfo);

}



private HttpGet getHttpUriRequest() {
HttpGet get = null;
Log.v(111, tt + get);

String URL = baseURL;// getURL((since));
try {
get = new HttpGet(URL);
Log.v(111, tt + get);
Log.v(111, tt + URL);
} catch (IllegalArgumentException e) {
// Log.v(TAG, IllegalArgumentException);
e.printStackTrace();
}
return get;
}

private HttpClient getHttpClient() {
HttpClient httpClient = new DefaultHttpClient();
Log.v(222, ccc + httpClient);
return httpClient;
}

private HttpResponse getHttpResponse(HttpGet get, HttpClient
httpClient) {
HttpResponse httpResponse = null;
try {
Log.v(getHttpResponse, httpClient + httpClient);
Log.v(getHttpResponse, get + get);
httpResponse = httpClient.execute(get);
Log.v(333, rrr + httpResponse);

} catch (ClientProtocolException e) {

e.printStackTrace();
} catch (IOException e) {
// Log.v(TAG, IOException);
e.printStackTrace();
}
return httpResponse;

}

JSONObject getJSONObject(HttpResponse httpResponse) {

String jsonString = null;
JSONObject responseDataJsonObject = null;
if (httpResponse.getStatusLine().toString().equals(HTTP/1.1 200
OK))

{
try {
jsonString = 
EntityUtils.toString(httpResponse.getEntity());