[android-developers] Re: How does Chronometer work??

2012-01-20 Thread skink


rachana govilkar wrote:
 I did write this code but its of no use as my Chronometer is not
 getting displayed only.
 And hence this time ticking is not taking place.
 Do I need to add some code in code I mentioned above???



hmm, have you tried:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ChronometerDemo.html

pskink

-- 
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 draw wave like the wave in google voice search

2012-01-20 Thread skink


cindy wrote:
 Hi All,

 I have got PCM data. I use canvas.drawLines(mPoints, mForePaint) to
 draw the wave data. But it doesn't like the wave in google voice
 search? In google voice search, the wave has round edge. Which method
 I can use to draw wave like that?

 Thanks!

 Cindy

what about Bézier curves?

pskink

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


Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread Mukesh Srivastav
Excatly Mr.Ashiq, I did that, i am able to have the complete control like

a. lock the screen.
b. password change event
c. wrong pass-- i am doing it for trace the mobile.
d.password success, a customize screen with widget into that.


Regards,
Mukesh

On Fri, Jan 20, 2012 at 12:05 PM, ashiq sayyad ashiqsay...@gmail.comwrote:

 Thanks.I will check that.

 One more is there any way to implement lock on earlier android
 versions(before 2.2)

 Thanks  Regards.
 Ashiq Sayyad


 On 20 January 2012 12:00, albnok alb...@gmail.com wrote:

 You might have missed something in the implementation - it should
 cause the Device Administrators window to pop up, and you need to
 Activate your app as a Device Admin.

 Then only isAdminActive() will return true.


 On Jan 18, 2:58 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
  I have checked the  lockNow implementation in API demos  tried the
  same thing in my app. But I am not able to lock the device(Google
  nexus)
 
  Is there any restriction on this API call for thrid party application?
  isAdminActive() method is returning me false...
 
  One more doubt,how to implement screen lock functionality for below
  2.3 devices as there in no direct APIS  for tat..
 
  Awaiting for help
 
  Thanks  Regards,
  Ashiq Sayyad

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
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] SSL sessions are not resumed

2012-01-20 Thread Jonas Jalminger
Hi,

I use HTTPS to connect to a server using both server and client
authentication. This works fine, no problem. However, on every request
made to the server I am forced to make a handshake even though it is
supposed to cache authenticated sessions.

I have tried the Apache HttpClient, AndroidHttpClient and
HttpsUrlConnection but no luck in resuming the session. Just to see if
I had misconfigured my server, I have used the same code, more or
less, with the apache HttpClient in java and there it resumed the
session just fine. I also used the chrome browser to connect to the
same server with client authentication and it was even faster in
resuming the session.

Has anyone managed to resume any SSL session out there using any of
the 3 ways above?

/Jonas

-- 
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] Starting with game development

2012-01-20 Thread Rohit Sharma
I am going to start with android game development (initially 2D). Now
please let me know about how to embed objects into games. Does it
require using some game engine or we need to manually do this b
performing lots of coding. Also let me know about some good references
to start with.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] Re: NFC Secure Element

2012-01-20 Thread anton krasnoff
Hi, Tommy! 
Could you, please, build a new version your Nexus S ROM of Card Emulation with 
fresh patch from m0rtadelohttp://forum.xda-developers.com/member.php?u=3284560
 ?
http://forum.xda-developers.com/showthread.php?t=1281946

Many 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: MediaController with MediaPlayer

2012-01-20 Thread Isaac
Hi Giuseppe,

You can call MediaController's show(int timeout) method and pass
MediaPlayer.getDuration() as parameter to it.
Something like

myMediacontroller.show(myMP.getDuration());

I hope this helps.

Cheers,
Isaac

On Jan 18, 4:19 pm, Giuseppe porcelli.giuse...@gmail.com wrote:
  I would like to show the mediacontroller for all the playing time of
 mediaplayer, please how to do 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] Re: Need some help troubleshooting my app

2012-01-20 Thread James
Does the PHP page work when you use it from the web browser on your
phone?
On Jan 16, 5:53 pm, jp bears0...@gmail.com wrote:
 Can anyone help me get my app connected to my database. I want a user
 to enter information in the registration page and have that data
 update and store in mysql database. For some reason though it is not
 working. My exception error is being caught and saying my toast
 message can not connect and no info is passed to the database. What
 am I doing wrong?? Thanks in advance for any help

 Here is my java

 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.List;

 import org.apache.http.HttpResponse;
 import org.apache.http.NameValuePair;
 import org.apache.http.client.HttpClient;
 import org.apache.http.client.ResponseHandler;
 import org.apache.http.client.entity.UrlEncodedFormEntity;
 import org.apache.http.client.methods.HttpPost;
 import org.apache.http.impl.client.BasicResponseHandler;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.http.message.BasicNameValuePair;

 import android.app.Activity;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.os.Bundle;
 import android.preference.PreferenceManager;
 import android.view.View;
 import android.widget.Button;
 import android.widget.CheckBox;
 import android.widget.EditText;
 import android.widget.TextView;
 import android.widget.Toast;

 public class LoginJ extends Activity {
     Button login;
     String name=,pass=, EMAIL=;
     EditText username,password, email;
     TextView tv;
     byte[] data;
     HttpPost httppost;
     StringBuffer buffer;
     HttpResponse response;
     HttpClient httpclient;
     InputStream inputStream;
     SharedPreferences app_preferences ;
     ListNameValuePair nameValuePairs;
     CheckBox check;
     public void onCreate(Bundle savedInstanceState)
     {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.login);
         app_preferences =
 PreferenceManager.getDefaultSharedPreferences(this);
         username = (EditText) findViewById(R.id.username);
         password = (EditText) findViewById(R.id.password);
         email = (EditText) findViewById(R.id.email);
         login = (Button) findViewById(R.id.login);
         check = (CheckBox) findViewById(R.id.check);

         String Str_user =
 app_preferences.getString(username,0 );
         String Str_pass = app_preferences.getString(password,
 0);
         String Str_EMAIL = app_preferences.getString(email, 0);
         String Str_check = app_preferences.getString(checked,
 no);
         if(Str_check.equals(yes)) {
             username.setText(Str_user);
             password.setText(Str_pass);
             email.setText(Str_EMAIL);
             check.setChecked(true);

         }
         login.setOnClickListener(new View.OnClickListener()
         {

             public void onClick(View v) {
                 name = username.getText().toString();
                 pass = password.getText().toString();
                 EMAIL = email.getText().toString();
                 String Str_check2 =
 app_preferences.getString(checked, no);
                 if(Str_check2.equals(yes))
                 {
                     SharedPreferences.Editor editor =
 app_preferences.edit();
                     editor.putString(username, name);
                    editor.putString(password, pass);
                    editor.putString(email, EMAIL);
                      editor.commit();

                 }

                 if(name.trim().equals() || pass.trim().equals() ||
 EMAIL.trim().equals())
                 {
                     Toast.makeText(LoginJ.this, Blank Field..Please
 Enter, Toast.LENGTH_LONG).show();
                 }
                 else{

                 try{

                      httpclient = new DefaultHttpClient();
                                        httppost = new HttpPost(http://
 10.0.2.2/AppConnection/main.php);

                                             // Add your data
                                             nameValuePairs = new
 ArrayListNameValuePair(3);
                                            nameValuePairs.add(new
 BasicNameValuePair(UserName, name.trim()));
                                             nameValuePairs.add(new
 BasicNameValuePair(Password, pass.trim()));
                                             nameValuePairs.add(new
 BasicNameValuePair(email, pass.trim()));
                                             httppost.setEntity(new
 UrlEncodedFormEntity(nameValuePairs));

                                             // Execute HTTP Post
 Request
                                             response =
 httpclient.execute(httppost);
                                             inputStream =
 response.getEntity().getContent();

                                             ResponseHandlerString
 responseHandler = new BasicResponseHandler();
                                       

[android-developers] ContentProviderOperation prevent duplicate insert

2012-01-20 Thread Lester Quintero
Hi everybody,

Someone knows how to detect that an element exists and prevent the
insert using ContentProviderOperation

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 can I load my custom map by using map api?

2012-01-20 Thread kyawswa aung
Hello,

 I would like to load my custom map by using google map api. I
would like to develop a kind of map app for stand alone device. Is
that possible? if it is possible, could you please give me some
advices or references.

Thanks to all.

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


[android-developers] Choosing the CTS version for ICS

2012-01-20 Thread Kal
Hi All,

I am currently working on porting android ICS ver 4.0 the CTS version
in my source tree is 4.0_r1.

I saw that the latest CTS version available for download is 4.0.3_r1.

I want to start execution of CTS on my target. Which CTS version
should I choose ?

Is there a necessity that CTS version should match with the android
version ?

Please advice. 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] Re: Moving from one activity to previous activities.

2012-01-20 Thread Harpreet Singh
I am not good in android but as much i studied we can use finish();
method to destroy current activity.

On Jan 19, 3:32 pm, Raneez rane...@gmail.com wrote:
 My application consists of 2 activities and 1 list activity.

 List activity -- list of titles from google rss feed.
 2nd activity -- shows the details of the item.
 3rd activity -- WebView , which shows the content of the url.

 From the 3rd activity i want to go back to list activity and show the
 previous contents when the back key is pressed. How it is done?

-- 
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] AutoCompleteTextView with Contacts Directory Problem (Android Honeycomb)

2012-01-20 Thread BVB
Hello Everyone,

I am attempting to add an AutoCompleteTextView to my Android Honeycomb
application. I would like the AutoCompleteTextView to access the
contacts of the primary Google account that is registered on the
device. Specifically, I would it to provide suggestions for e-mail
addresses listed in the Directory (see http://i.imgur.com/kvSNy.jpg
). The GMail application seems to have this exact functionality, but
as far as I know, it is not open source.

I got started by adding the AutoCompleteTextView to my layout and
adding uses-permission
android:name=android.permission.READ_CONTACTS / to the Manifest
file. However, I am not sure how to get the contacts (specifically
those in the Directory) and use their e-mails as suggestions for the
AutoCompleteTextView.

Does anyone have any ideas?

Thank you!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-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] Telugu Font is not rendered in Android OS....?

2012-01-20 Thread RD

 Hi 

 There are 11 to 12 Crores of people around the world who speak one of 
the INDIAN Languages called *TELUGU*. For such kind of language there is 
not rendering / display support given in *Google+* app of  Android 
platform.  In iPhone IOS 4+, *Google+ app*, it is displayed / rendered very 
nicely without any hiccup's.  

That is one of the silliest / simplest reasons why myself and other 2 
friends of mine have to go with iPhone, But Google+ is important for us in 
day to day work we do and involve with ...!  So please try to bring this *
TELUGU* font rendering support ASAP in * Google+ for Android .*
*
*
*   ** This is very slow and bad for one of the fastest growing Mobile OS 
in the market. Never expected this from google.  I've waited for this 
feature to  be available in Android for around 5 months and it never was 
included. *

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

Re: [android-developers] autostart of application on restart of device

2012-01-20 Thread nemi chhimpa
Hi

add below lines to manifest file

  receiver android:name=receiverclass
intent-filter
action
android:name=android.intent.action.BOOT_COMPLETED /

/intent-filter
 /receiver
uses-permission
android:name=android.permission.RECEIVE_BOOT_COMPLETED/uses-permission

and add reciver class and write the code in receiver class file

On Wed, Jan 18, 2012 at 5:55 PM, Narendra Bagade
bagadenaren...@gmail.comwrote:

 Hi all,

 How to auto start application on device start up.

 --
 Regards,
 Narendra
 .
 --
 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] How I use Web Services in android.?

2012-01-20 Thread Harpreet Singh
I am creating an app for a website's directory services, there are
wide category of online submission forms on their database, how can i
add those services to my app?

How can I communicate with the database which that site is using?

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


[android-developers] Android - How to add audio play/stop/pause buttons

2012-01-20 Thread IS SOA
i have been looking to implement the mediaplayer/mediacontroller class
which includes the basic control like play, pause, stop, forward,
reverse, seeker etc? is there any built-in functionlity out there?
or any third party control?

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


Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-20 Thread Ganeshji Marwaha
Alex,

When your BOOT_COMPLETE Broadcast receiver is called, your application
subclass's onCreate() method would have been called for sure. Of course it
is going to be called only once, but if you already have your data
initialized and cached, there should be no reason why you could not access
it.

I guess, if you could throw in some code, it could help debug to find the
answer.

Also, check if you are doing some of the initialization work in a separate
thread. If that is the case, then your broadcast receiver may get invoked
before the thread completes.

Ganesh.

On Wed, Jan 18, 2012 at 11:32 PM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 True, do you want to put a log in your Application onCreate and dump
 us the logs to see what's going on?  I don't know the behavior in the
 broadcast receiver case, but I would think that your App.onCreate
 should only end up getting called once, not on every onReceive, though
 I will have to look at the source on that one..

 kris

 On Wed, Jan 18, 2012 at 11:45 AM, Streets Of Boston
 flyingdutc...@gmail.com wrote:
  That would be very odd. I've not seen this. Your Application's onCreate
  should have been called before anything else of your app is being called.
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Problem with show a cursor into a listview

2012-01-20 Thread José María Tristán Martín
Hi,
I only speak a little english, so I wait that you can understandme.

I get the phone numbers and I want to show into a listview.

My code is:


Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,
Uri.encode(325-741-886));
ContentResolver cr = this.getContentResolver();
Cursor cursor = cr.query(uri, new String[]{PhoneLookup.DISPLAY_NAME,
PhoneLookup.NUMBER },
null, null, null);

ListView list = (ListView) this.findViewById(R.id.listView1);
SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
android.R.layout.simple_list_item_1, cursor,
new String[]{PhoneLookup.DISPLAY_NAME} , new int[]
{android.R.id.text1});
list.setAdapter(adapter);

And, when the debug reach to the point of declaration of object
adapter, eclipse show me a tab with text
ActivityThead.performLaunchActivity.
Source not found.
Edit Source Lookup Path...

In the tab LogCat I don't see any error.

Thank you very much.

-- 
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] Newbie question about Content Provider

2012-01-20 Thread Lester Quintero
Hello everybody,

Its possible with content providers make insert-select in SqlIte
database.
would be something like:

Insert into Table(t1, t2)
Select tx, ty
From Table

or

Insert into Table(t1, t2)
Select tx, ty  WHERE NOT EXISTS ...

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] Android's CheckJNI: How to turn it off/on (on an emulator)? Documentation seems to be faulti

2012-01-20 Thread Jon Bonbon Jovi
I have spent some time examining the checkjni mode using an Android
emulator with my app.
Altough it is written (in 
http://android-developers.blogspot.com/2011/11/jni-local-reference-changes-in-ics.html)
that CheckJNI is on by default if debuggable=true  targetSdkVersion
is at least Ice Cream Sandwich (in the AndroidManifest.xml file) - The
debug output dump of the CheckJNI (warning and errors) is still
printed in the DDMS, even if i use a Gingerbread values and install it
on a Gingerbread emulator.

The only difference that i have found is that CheckJNI warnings on an
Ice Cream Sandwich emulator (no matter what were the values in my
AndroidManifest.xml file) will cause the app to crash with the
respected warning - while they would only be printed in a Gingerbread
emulator (I have tested a DeleteGlobalRef used on local reference to
induce this warning).

There are two non-informational logs that are printed in accordance to
the AndroidManifest.xml - But the logs of the of the CheckJNI mode are
not affected.

Here are the logs -

#On ICS emulator
After Installing the app:
01-19 08:43:01.491: D/AndroidRuntime(32): CheckJNI is ON

Loading the app:
01-19 08:32:26.617: D/dalvikvm(590): Not late-enabling CheckJNI
(already on)
(The last line is printed only when debuggable=true)
01-19 08:32:27.066: I/dalvikvm(590): Turning on JNI app bug
workarounds for target SDK version 10...
(The last line is printed only when targetSdkVersion=10)

On error code (crash):
01-19 08:37:56.176: W/dalvikvm(651): JNI WARNING: DeleteGlobalRef on
non-global 0x41339550 (type=1)
...
01-19 08:37:56.187: E/dalvikvm(651): VM aborting
01-19 08:37:56.187: A/libc(651): Fatal signal 11 (SIGSEGV) at
0xdeadd00d (code=1)

#On Gingerbread:

After Installing the app:
01-19 08:43:01.491: D/AndroidRuntime(32): CheckJNI is ON

Loading the app:
No important logs

On error code (no crash):
01-19 08:45:20.079: W/dalvikvm(304): JNI: DeleteGlobalRef(0x40608718)
failed to find entry (valid=1)


So my question is how should i turn it on/off - and how should it
affect the application (or the logs) differently when on?

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: Google Code Project

2012-01-20 Thread IS SOA
he must be asking to upload his android development apps, i am
interested too

On Jan 17, 4:54 pm, TreKing treking...@gmail.com wrote:
 On Tue, Jan 17, 2012 at 3:13 PM, 7600onair 7600on...@gmail.com wrote:
  What is the easiest way to upload Source code files to a Google
  Code Project so they are editable?

 What does this have to do with Android Development?

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

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


Re: [android-developers] remove logs after market

2012-01-20 Thread Leno Britto
I don't get it, what logs? the ones you created for logcat?
yeah, you can always remove or comment them, but why would you do that? the 
user won't see those unless he plugs the phone to the pc and if he does, so 
what? those messages are meant for troubleshooting rather then testing things 
out, isn't that how you're you using them? because if you are, what's the 
problem with leaving them there?

Leno Britto - http://lenobj.com
Twitter: https://twitter.com/#!/lenobj

On 17/01/2012, at 15:11, TreKing wrote:

 On Tue, Jan 17, 2012 at 6:29 AM, bo yada...@gmail.com wrote:
 i want to know how to remove logs before release in to the market
 
 please any body help on this
 
 Comment them out.
 
 -
 TreKing - Chicago transit tracking app for Android-powered devices
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] overlay webcam

2012-01-20 Thread Etienne Le Néchet
Hello,

I develop an application which use camera...but I want an overlay. I
want draw a circle which allows a person to place his head properly
for face recognition. What are method to implement that?

-- 
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] add radio button in table

2012-01-20 Thread issac balaji
i'm trying to add radio button in the table roa as dynamically i'm
getting error

-- 
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 get the real device screen size

2012-01-20 Thread Eric Tseng
While I'm developing my app, I need to get my device physical size.
But the current functions like display.getSize() or heightPixels in
DisplayMetrics return the sizes which exclude the decorations like
status bar.
Like my device, I'd like to get 1280*800 not 1280*752(which excludes
status bar).
Is there anyone able to get the physical size of the device?

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] Vivaz and Android

2012-01-20 Thread Δημήτρης Σιγάρας
Hello  Android Developers,
I am an owner of a Sony Ericsson Vivaz running Symbian OS.
The company i work asked me to install an application but doesnt work
because it isnt supported from Symbian, only for Android and Windows
mobile. This application is a bridge of our ERP Software. They cant
make it work for Symbian. So i have to buy new phone (i dont have
extra 350 euro) or install Android to my SE Vivaz U5i.
SO my question and my problem is ... are there any chance to install
Android OS in me 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] how to show up the voice recognition settings in my app?

2012-01-20 Thread Pargat Singh
I am working on an android application in which i have implemented
voice recognition and TTS. I have implemented TTS settings
successfully by using following code:

intent = new Intent();
intent.setAction(com.android.settings.TTS_SETTINGS);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
this.startActivity(intent);

Now I want to show system's voice recognition settings in my
application to allow user to change language options etc. I have
searched a lot... Done a lot of hit and try but failed to load voice
recognition settings screen. Please tell me how i can implement that.
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] problem: two instances of the app are running- only on start up

2012-01-20 Thread SVRP VARMA
Hi,

I am using a Tegra tablet for my tablet running Android 2.2.

I am facing a strange issue. Two instances of the app are running when
I configure the app to run on-boot. I've the flags as below.

intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_CLEAR_TOP| Intent.FLAG_ACTIVITY_SINGLE_TOP );

Still I am facing the issue. I am refering this as strange because if
I don't run the app at startup there is no problem. The app runs
normal when it is run manually.

Can anybody help please?

-- 
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 send DTMF signal even if its way is compulsory.

2012-01-20 Thread okp
There is one question. Please teach me if someone have any related
information. And I'm sorry for my poor English.

I wanna send DTMF signals to the IVR in my app when press
the my app's UI button. But it was impossible in program
code.And I tried my cellphone generate DualTone and its mic
pick up its sound. But it was impossible too.

Then I came up with two methods.

①Using like tasker app, press the dialpad(a feature of the
OS) when press the UI button (dialpad can send DTMF signals.).
②Using automated UI testing tools, automatically display the
dialpad button is pressed.

Is it possible above two methods? If they are no, are there
any other way to send DTMF signals?

Thank you for your reading.

-- 
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 measure activity load time

2012-01-20 Thread msg.lgsi
MghhjjFrom : JPTo : Android Developers; Subject : [android-developers] Re: How to measure activity load timeI've used Traceview in the past.
http://developer.android.com/guide/developing/debugging/debugging-tracing.html


On Jan 18, 8:29 pm, PMS wrote:
 I have an application. some activity/screens are taking more time to
 load,

 So i am looking for a tool/ some solution to measure each screen/
 activity to measure load time and response time for any action in the
 screen like button click 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



-- 
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] Bind an Android ViewFlipper containing ListViews to a ContentProvider with multiple ArrayLists

2012-01-20 Thread sethyx
Hi All,

I’d like to implement a home screen widget which displays system
infromation.
The whole application is based on Google's example WeatherListWidget.
I am using a ViewFlipper which has 5 childs, each one is a ListView.
The data is contained in a ContentPovider, which has 5 ArrayLists.

Can I somehow bind the ArrayLists to the appropriate ListViews?

The provider’s query method works like a charm, it returns a Cursor
only with the required data.

I’ve tried it in the WidgetProvider’s onUpdate method (which is called
when I add the widget to the Launcher) with the
RemoteViews.setRemoteAdapter method, but I can bind only one of the
ListViews with this, as further binds will overwrite the previous one:

CODE
final Intent intent = new Intent(context, SysWidgetService.class);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
appWidgetIds[i]);
intent.setData(Uri.parse(intent.toUri(Intent.URI_INTENT_SCHEME)));
RemoteViews rv = new RemoteViews(context.getPackageName(),
R.layout.widget_layout);
rv.setRemoteAdapter(appWidgetIds[i], R.id.wifilist, intent);
/CODE

Or should I do the whole thing completely different? (Any tips?)

Thanks in advance.
sethyx

-- 
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] I encountered a error

2012-01-20 Thread nashuwu
error is

[2012-01-18 22:02:37 - LearnActivities] Android Launch!
[2012-01-18 22:02:37 - LearnActivities] adb is running normally.
[2012-01-18 22:02:37 - LearnActivities] Performing
com.nash.activities.Main activity launch
[2012-01-18 22:02:37 - LearnActivities] Automatic Target Mode:
launching new emulator with compatible AVD 'Gingerbread_WVAG'
[2012-01-18 22:02:37 - LearnActivities] Launching a new emulator with
Virtual Device 'Gingerbread_WVAG'
[2012-01-18 22:03:02 - Emulator] emulator: WARNING: Unable to create
sensors port: Unknown error
[2012-01-18 22:03:03 - LearnActivities] New emulator found:
emulator-5554
[2012-01-18 22:03:03 - LearnActivities] Waiting for HOME
('android.process.acore') to be launched...
[2012-01-18 22:05:54 - LearnActivities] emulator-5554 disconnected!
Cancelling 'com.nash.activities.Main activity launch'!

-- 
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] SQLite and AsyncTask

2012-01-20 Thread Philip Frank
Hi everyone,

I'm accessing a SQLite database from AsyncTasks, several of them, but
as I understand that should be fine. We received reports from users
that our app is lagging and sometimes even freezing up the whole phone
to a point where they can only pull the battery. The reports come from
very few types of phones: Motorola Defy, LG Optimus lgp970 and Samsung
Galaxy S. I could never reproduce the problem on any of the phones I
have access to.

Is there anything known about these phones being particularly bad with
handling sqlite? Are there any best practices in that regard?

Here's an old thread where someone seemingly had the same problem:
http://groups.google.com/group/android-developers/browse_thread/thread/5e6e47458827a5e8

Cheers!

-- 
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] Real time video streaming Andro 2.3 or higher? mob or tab any device

2012-01-20 Thread NIRANJAN TIRKEY
Hey my application requires real time streaming from the camera..so
what should be the platform sdk to work ..i read android 4 supports
low level streaming..what about tablet platforms 3 and higher?

-- 
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 not draw after onPause/onResume

2012-01-20 Thread decastro
I am writing my first android game. It is working fine in almost every
respect, but when the screen timeout kicks in and I press the button
to get back to the game, I find the image of the game state frozen. It
appears the main thread is still alive - I can tell this because I
have a set of sounds that occur when I drag certain objects around the
screen, and the sounds still behave as if everything was working
(except that I see nothing other than the frozen screen). If I then
select a menu to show the high scores activity and then exit back to
the game, I find all is well and can continue with all the graphics
working properly.

I have now placed the entire (simplified) project in simple.zip and
put it on the web at: http://dl.dropbox.com/u/2969211/Simple.zip - the
onPause/onResume code is all in the file simple.java

-- 
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] CursorLoaderSupport example not responding to content provider notifications?

2012-01-20 Thread siwatson
I'm updating an Android 2.2 application to use CursorLoader (using the
v4 compatibility library) and I'm using the CursorLoaderSupport
example (http://developer.android.com/resources/samples/Support4Demos/
src/com/example/android/supportv4/app/LoaderCursorSupport.html) to
help me.

My question is should this example app automatically update its
displayed list when a contact is edited in the contact application?

When I run it (on an 2.2 N1 or 2.2/2,3 emulator), I see my list of
contacts but, when I switch to the contacts app, edit a contact, and
switch back, I don't see the change reflected. I thought a
CursorLoader would automatically call onLoadFinished() when the data
associated with its query content URI changed? Am I missing something?

My reason for asking this is because I'm seeing the same problem in my
app with my own content provider. Everything worked fine when using
ManagedQuery previously (content notifications automatically updated
my SimpleCursorAdapter) but I can't seem to get the same behaviour
with a CursorLoader.

-- 
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] [Q] Derived sensors not working

2012-01-20 Thread naga radhesh
In gingerbread derived sensor use to work fine. After porting ICS,
derived sensors are not working.when i browse through SensorService
code, i found that in ICS derived sensor data is computed only if
accelerometer, magnetometer and gyro are present.I dont have gyro in
my device.
Is this the reason for failure?

Does any one has faced such kind of problem? if so can you please help
me. please correct me if my understanding is wrong.

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] Flipping pages

2012-01-20 Thread Borealis
Hi,

I am a newbie to Android-development. I know this question might have
come up before, but somehow I could not find the right search-terms to
find a solution...

Here's what I want to do:

I want to have some cards that I can flip back and forth. For better
understanding, let's think of a set of business-cards that I want to
flip through (sliding finger up/down or left/right).

I know this might be very simple, but I could not find the right view
to start from.

Thanks for your tips!

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

2012-01-20 Thread vishal patel
i m connecting with facebook API...
i followed the steps given in  
http://developers.facebook.com/docs/mobile/android/build/
this link

when i m running application i found log messages like
05-14 15:09:08.410: WARN/ActivityManager(192): Launch timeout has
expired, giving up wake lock!
05-14 15:09:08.430: WARN/ActivityManager(192): Activity idle timeout

how can i resolve my application.. plz guide me...
thanks in advanced...

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

2012-01-20 Thread shefali chopkar
-- Forwarded message --
From: shefali chopkar shefalichop...@gmail.com
Date: Wed, Jan 18, 2012 at 10:58 AM
Subject:
To: android-developers@googlegroups.com


I am doing a project on ECG.
I have to display ECG on grid and scroll it to the left automatically.
I don't want to add a scroll bar to it.
i just want to redraw the wave which is left shifted, so that it will give
effect of shifting automatically.
for this I need double buffering.
I am new to android.
can anyone help me out with the concept of double buffering with some
example.

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

[android-developers] Android USB Host and ISOC (Isochronus)

2012-01-20 Thread Marius Maximus
I found this USB Host API at page
http://developer.android.com/guide/topics/usb/host.html

android.hardware.usb.UsbRequest
A class representing USB request packet. This can be used for both
reading and writing data to or from a UsbDeviceConnection. UsbRequests
can be used to transfer data on bulk and interrupt endpoints. Requests
on bulk endpoints can be sent synchronously via
bulkTransfer(UsbEndpoint, byte[], int, int) or asynchronously via
queue(ByteBuffer, int) and requestWait(). Requests on interrupt
endpoints are only send and received asynchronously.

It is possibile use ISOC (Isochronus) usb transmision with this API ?
Or another metod to use ISOC device ?

M

-- 
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] Why need post method in TouchDelegate Sample

2012-01-20 Thread Michelle Wang
I found a sample about TouchDelegate. And the link(Using a
TouchDelegate) is as below:

http://groups.google.com/group/android-developers/browse_thread/thread/178af525ab84b371

I did as the sample did, and found out that the run method of Runnable
would not be executed before any event.

But the method wouldn't work if I move code in run() without using the
post method of parent view. It seems this will not work.

Thanks for your 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] Relative Layout, buttons are being hidden behind image on orientation change

2012-01-20 Thread Mark Turkel
Hi, 

I'm having an issue with screen sizes and compatibility.  I wrote an app 
for a tablet, and now trying to convert it to run on phones as well.  All 
is fine, going to the 2.2 minimum platform, but when I go from landscape to 
portrait mode, or even just start in portrait mode, I can't see the two 
buttons on the screen.
The top 2/3 of the layout is an imageview control, set to 
AdjustViewBounds=true, and ScaleType= fitCenter, LayoutAlignParentTop=true, 
height, width= Wrap content.

In the landscape mode XML, I have the buttons on the left and right of the 
imageview and it works great, in portrait mode, I want the picture to take 
up the width of the screen and have the buttons below, which LOOK PERFECT 
in the Graphical Layout mode in eclipse. In the emulator, I don't see them. 
 It is a 2.2AVD as well.

Any help is greatly appreciated  :)

Thanks,
Mark Turkel
Palm Beach Software Design, Inc.
m...@palmbeachsoftware.com
561-572-0233

Here's the XML:

?xml version=1.0 encoding=utf-8?

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;

android:id=@+id/relLayout

android:layout_width=fill_parent

android:layout_height=fill_parent

android:background=@color/white 


TextView

android:id=@+id/textPageNumber

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_alignParentBottom=true

android:layout_alignParentLeft=true

android:gravity=left

android:paddingLeft=10dip

android:text=Page 1 of ##

android:textSize=20dip

android:textStyle=bold /


ImageView

android:id=@+id/imageView1

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_alignParentTop=true

android:adjustViewBounds=true

android:scaleType=fitCenter

android:scrollbarAlwaysDrawVerticalTrack=true

android:src=@drawable/cover /


ToggleButton

android:id=@+id/toggleButtonSpeak

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_alignParentBottom=true

android:layout_alignParentRight=true

android:checked=true

android:text=Speech On

android:textColor=@color/black

android:textOff=Speech Off

android:textOn=Speech On /


ImageButton

android:id=@+id/imageButtonNext

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_above=@+id/toggleButtonSpeak

android:layout_alignParentRight=true

android:src=@drawable/paw_next /


ImageButton

android:id=@+id/imageButtonPrevious

android:layout_width=wrap_content

android:layout_height=wrap_content

android:layout_above=@+id/toggleButtonSpeak

android:layout_alignParentLeft=true

android:src=@drawable/paw_previous

android:visibility=visible /


/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] Webservice in android

2012-01-20 Thread Pradeep
I want to create a webservice in android. To export data from the
device on demand. I need to call it from .net.
Do any have any idea about how to create a webservice in android.
Where to deploy it? If possible, send me the link or sample program to
create 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] Submit username and password to website

2012-01-20 Thread n3d!m
I am trying to post login and username to the website.
How to do that?

Here is the code:

if (v.getId()==R.id.loginBtn) {
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(http://ius.edu.ba:8080/sis/
index.php);
try {
EditText username = (EditText)
findViewById(R.id.editUsername);
EditText password = (EditText) 
findViewById(R.id.editPassword);

String enteredUsername;
String enteredPassword;
enteredUsername=username.getText().toString();
enteredPassword=password.getText().toString();

ListNameValuePair userData=new 
ArrayListNameValuePair(2);
userData.add(new
BasicNameValuePair(username,enteredUsername));
userData.add(new
BasicNameValuePair(password,enteredPassword));

post.setEntity(new UrlEncodedFormEntity(userData));
HttpResponse response = client.execute(post);


String siteResponse;
 
siteResponse=getResponse(response.getEntity().getContent()).toString();

if (siteResponse.contains(Note:))
Toast.makeText(getBaseContext(), Wrong 
username or password!
+ siteResponse, Toast.LENGTH_LONG).show();

else
Toast.makeText(getBaseContext(), Logged in!  +
siteResponse , Toast.LENGTH_LONG).show();

} catch (IOException e) {
e.printStackTrace();
}

}

}

private StringBuilder getResponse(InputStream stream) {
String line = ;
StringBuilder result = new StringBuilder();
BufferedReader reader = new BufferedReader(new
InputStreamReader(stream));
try {
while ((line = reader.readLine()) != null) {
result.append(line);
}
} catch (IOException e) {
e.printStackTrace();
}
return result;
}
}

-- 
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] Class File Collision?

2012-01-20 Thread PSchuette of Ignite
Hello all, I am a relatively new developer and I have encountered a
problem which I have been unable to solve for the past few days.
Basically, the issue is that My auto-generated R.java file has an
error in the first line (on a comment) saying Class file collision: A
resource exists with a different case. Everything I have found online
thus far has been unhelpful; I have deleted and rebuilt the file, I
have renamed all my activities so they no longer match their layouts,
and I have scanned through all my ids (At least I think, its possible
I missed some) but my search has been in vain. I was wondering if this
is a known error and where I should look to fix it? unfortunately, I
has made it so I am unable to compile my project until the error is
addressed. Any expertise on the matter would be more than helpful
considering Google articles have proved to be unhelpful thus far.

-- 
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] Included javax JNDI Factory built successfully but can't be instantiated

2012-01-20 Thread EnNuages
Hi Android folks,

I'm trying to port:  Apache Qpid Client, JMS and JNDI -- to Android.
I'm able to get a successful compile/build of my QpidDroid project
when running the ant debug install targets after passing Dalvik the --
core-library parameter to allow javax packages for JMS/JNDI.  I'm
hoping to do this before considering repackaging/refactoring javax
classes into a different package namespace using jarjar.

I think this is legally legit because I'm using the old/first seperate
JNDI jar currently provided by Oracle's website.  I'm using the JMS
jar that comes with Apache Geronimo in Qpid,.. but I think it's also
available from Oracle as a seperate download.  My dev environment uses
Android platform 2.1 and jdk 1.6.

The problem is, it seems it currently cannot instantiate my custom
jndi connection factory: PropertiesFileInitialContextFactory.  This is
a .java source file in my QpidDroid project(not a .class in a libs
jar)   (I extracted the class out of the qpidClient jar).

Would someone have any idea as to why it cannot be instantiated here?
I was wondering if proguard might be breaking reflection,... but I'm
building it with the debug ant task,.. so I'm thinking proguard
shouldn't be running at all.  The exception occurs when I run the
installed app on the emulator.  I have the Apache Qpid service running
on the same machine with the default port that it uses.


01-18 18:05:16.966: W/System.err(296): [Root exception is
java.lang.ClassNotFoundException:
org.apache.qpid.jndi.PropertiesFileInitialContextFactory]javax.naming.NoInitialContextException:
Cannot instantiate class:
org.apache.qpid.jndi.PropertiesFileInitialContextFactory
01-18 18:05:17.006: W/System.err(296):  at
javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:
720)
01-18 18:05:17.006: W/System.err(296):  at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:
768)
01-18 18:05:17.016: W/System.err(296):  at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
01-18 18:05:17.016: W/System.err(296):  at
javax.naming.InitialContext.init(InitialContext.java:146)
01-18 18:05:17.016: W/System.err(296):  at
org.rif.QpidDroid.Hello.runTest(Hello.java:56)

Thanks for any tips!

-- 
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 in listview with images in it

2012-01-20 Thread ravi
Hi,

I have a list view with image and some textviews in each row.
Initially when the listview is loaded all works properly. But when I
scroll down  the listview and come up again the background image
changes. Can someone tell me the reason why its happening so?


Hope to get the reply soon.
Thanks in advance

Regards

Ravi

-- 
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] Voip issue

2012-01-20 Thread TalkTalk
What my problem is while I write a VOIP solution APP,
The Audio Source of recording is always from camcorder.
That make me echo .
I think it is a problem for all application developer engineer.
Please give a suggestion or hint me which api I can use to turn off
cancorder in oerder to use mic.
Thank you for your time.

-- 
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] startActivitiesForResult problem

2012-01-20 Thread vani reddy
HI friends,

In my app i am  traversing between 4 activities A,B,C,D .

in Activity A i am going to B and then C and D

Intent intent = new Intent(A,B);
startActivityForResult(intent,0);

From D i need to go to activity A


from Activity D i am doing

Intent intent = new Intent();
intent.putExtra(str,str);
setResult(RESULT_OK,intent)

In activity A
I am fetching result in

onActivityResult(int requestCode, int resultCode, Intent data)
{
Here the intent data is null
}

How to resolve this issue.Please reply.





-- 
Regards,
Vani Reddy

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

Re: [android-developers] Problem in listview with images in it

2012-01-20 Thread Mukesh Srivastav
Pleae check with the lazyload apps.

secondly you need to store or cache the downloaded images so that next time
it should read it from the cache not again from the server.



Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Tue, Jan 17, 2012 at 3:56 PM, ravi raviknt...@gmail.com wrote:

 Hi,

 I have a list view with image and some textviews in each row.
 Initially when the listview is loaded all works properly. But when I
 scroll down  the listview and come up again the background image
 changes. Can someone tell me the reason why its happening so?


 Hope to get the reply soon.
 Thanks in advance

 Regards

 Ravi

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




--

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

Re: [android-developers] Voip issue

2012-01-20 Thread Mukesh Srivastav
I had succefully done the voip app on sip protocol.

I had make use of PJSIP open source and i had tested on g729 codec as well.

here is the link.
http://code.google.com/p/csipsimple/


-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Thu, Jan 19, 2012 at 2:48 PM, TalkTalk ptec...@gmail.com wrote:

 What my problem is while I write a VOIP solution APP,
 The Audio Source of recording is always from camcorder.
 That make me echo .
 I think it is a problem for all application developer engineer.
 Please give a suggestion or hint me which api I can use to turn off
 cancorder in oerder to use mic.
 Thank you for your time.

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

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

[android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread albnok
Well it says it's only on API Level 8 so I can't help you there. If
you know it works in another app, on Android 2.1 or below, you might
try decompiling that app, but I have no experience with that so I
can't say whether it is possible to find an undocumented API that
works.

On Jan 20, 2:35 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
 Thanks.I will check that.

 One more is there any way to implement lock on earlier android
 versions(before 2.2)

 Thanks  Regards.
 Ashiq Sayyad

 On 20 January 2012 12:00, albnok alb...@gmail.com wrote:







  You might have missed something in the implementation - it should
  cause the Device Administrators window to pop up, and you need to
  Activate your app as a Device Admin.

  Then only isAdminActive() will return true.

  On Jan 18, 2:58 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
   I have checked the  lockNow implementation in API demos  tried the
   same thing in my app. But I am not able to lock the device(Google
   nexus)

   Is there any restriction on this API call for thrid party application?
   isAdminActive() method is returning me false...

   One more doubt,how to implement screen lock functionality for below
   2.3 devices as there in no direct APIS  for tat..

   Awaiting for help

   Thanks  Regards,
   Ashiq Sayyad

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

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


Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread Mukesh Srivastav
@Albnok,

I had tried decompiling the required library and had spend lots of time,
but not succeeded.

I Love to hear if some one is doing this.

Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Fri, Jan 20, 2012 at 2:10 PM, albnok alb...@gmail.com wrote:

 Well it says it's only on API Level 8 so I can't help you there. If
 you know it works in another app, on Android 2.1 or below, you might
 try decompiling that app, but I have no experience with that so I
 can't say whether it is possible to find an undocumented API that
 works.

 On Jan 20, 2:35 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
  Thanks.I will check that.
 
  One more is there any way to implement lock on earlier android
  versions(before 2.2)
 
  Thanks  Regards.
  Ashiq Sayyad
 
  On 20 January 2012 12:00, albnok alb...@gmail.com wrote:
 
 
 
 
 
 
 
   You might have missed something in the implementation - it should
   cause the Device Administrators window to pop up, and you need to
   Activate your app as a Device Admin.
 
   Then only isAdminActive() will return true.
 
   On Jan 18, 2:58 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
I have checked the  lockNow implementation in API demos  tried the
same thing in my app. But I am not able to lock the device(Google
nexus)
 
Is there any restriction on this API call for thrid party
 application?
isAdminActive() method is returning me false...
 
One more doubt,how to implement screen lock functionality for below
2.3 devices as there in no direct APIS  for tat..
 
Awaiting for help
 
Thanks  Regards,
Ashiq Sayyad
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




--

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

[android-developers] Net Work slow

2012-01-20 Thread aru padam
Hi all,

  I am using internet connection in android application.Suppose net
connection is slow ,then the app is force closed .

How can i rectify this problem .Please help me .urgent...

Thanks in Advance

Deepesh C

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


Re: [android-developers] Net Work slow

2012-01-20 Thread Ratheesh Valamchuzhy
catch the timed out exception and solve the issue.

-- 
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 Encode frames from onPreviewFrame??

2012-01-20 Thread muhammad.ume...@hotmail.com
hi,
I want to encode each frame and  these encoded frame send to
network and save it in a video file. please tell me which encoder i
have to use, that supported by Android. and also suggest the link for
it.


Thanks and Regards

umer

-- 
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] Regarding integration of ffmpeg libraries with android sdk

2012-01-20 Thread Himanshi Saxena
Hi all,
I am doing a college project on adaptive video streaming on android.
I need to integrate ffmpeg libraries with android sdk to use. I surfed
but could not find detailed guidelines to do so. I am new to android
programming and dont have much experience. I would really appreciate
any help in this regard..

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


Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread ashiq sayyad
Thanks all. For earlier version devices, I tried dispatching power button
key event via code to lock the phone.But its not dispatching the key event
for.

Thanks  Regards,
Ashiq Sayyad

On 20 January 2012 14:17, Mukesh Srivastav mukicha...@gmail.com wrote:

 @Albnok,

 I had tried decompiling the required library and had spend lots of time,
 but not succeeded.

 I Love to hear if some one is doing this.

 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Fri, Jan 20, 2012 at 2:10 PM, albnok alb...@gmail.com wrote:

 Well it says it's only on API Level 8 so I can't help you there. If
 you know it works in another app, on Android 2.1 or below, you might
 try decompiling that app, but I have no experience with that so I
 can't say whether it is possible to find an undocumented API that
 works.

 On Jan 20, 2:35 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
  Thanks.I will check that.
 
  One more is there any way to implement lock on earlier android
  versions(before 2.2)
 
  Thanks  Regards.
  Ashiq Sayyad
 
  On 20 January 2012 12:00, albnok alb...@gmail.com wrote:
 
 
 
 
 
 
 
   You might have missed something in the implementation - it should
   cause the Device Administrators window to pop up, and you need to
   Activate your app as a Device Admin.
 
   Then only isAdminActive() will return true.
 
   On Jan 18, 2:58 pm, ashiq sayyad ashiqsay...@gmail.com wrote:
I have checked the  lockNow implementation in API demos  tried the
same thing in my app. But I am not able to lock the device(Google
nexus)
 
Is there any restriction on this API call for thrid party
 application?
isAdminActive() method is returning me false...
 
One more doubt,how to implement screen lock functionality for below
2.3 devices as there in no direct APIS  for tat..
 
Awaiting for help
 
Thanks  Regards,
Ashiq Sayyad
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




 --


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


-- 
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: Forcing an item in a GridView to remain highlighted after clicking

2012-01-20 Thread jamesc
Create a new selector (see 
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)
for the item, and then configuring the colour/background values
depending on state. By state, I mean, your item could be
'Checkable' (i.e. only a single item in the whole GridView can be
checked at a time) and then when it's tapped, set it to checked, and
the appropriate value in the selector would be chosen. Alternatively,
you could use the item's .setEnabled() method and do something
similar.

You may also need to be aware of the android:duplicateParentState
attribute.

On Jan 20, 6:10 am, rperi...@yahoo.com rperi...@yahoo.com wrote:
 I would like to make the blue border around a gridview item remain
 highlighted after clicking on it as a reminder to the user which item
 was slected while making the second choice. I have tried a number of
 methods from the View class and none of them seem to have any effect -
 the border disappears after a short while. Any ideas how to do this?

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


[android-developers] widget stop working after force close in setting page

2012-01-20 Thread dara kok
A Simple app with a widget that once a button on the widget is clicked, it 
will lead back into the app.

My issue is that when the app is force close using a button in the 
application setting page, my widget becomes actionless.

I've put a few log statement within the widget provider. after the force 
close event, the log statement wont produce any text so it means to me that 
the widgetprovider knows nothing about touch event after the force close 
action is clicked.

Anyone here knows how to reactivate my widget?


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: Problem in Asynctask Execution in standby mode

2012-01-20 Thread sktniran
Thanks Guys.. i solved this problem. the solution is we need to
dismiss the progressDialog and set this to null in onPause method. And
in onPostExecute method we have to check progressDialog!=null before
dismiss this dialog...





Thnak you for your response

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


Re: [android-developers] Augmented Reality

2012-01-20 Thread Raghav Sood
This is currently not possible. Unless you are willing to write code that
can efficiently describe to AndAR how every possible bulb you will be use
looks from every angle, then I'd suggest you drop it.

Thanks

On Thu, Jan 19, 2012 at 10:37 AM, tofeeq ahmad abdul.tof...@gmail.comwrote:

 I am working on Augmented Reality from last 7 days.I implement AndAR
 API library for this purpose.My problem is creating marker.I used some
 online marker generator.But all has one limitation that every pattern
 should have black border around it otherwise it will not make a
 pattern.
 This is limitation is barrier for my app.I want to detect Physical
 object like real bulb. If i make pattern for bulb by putting it on
 black square paper then marker generator generate pattern and AndAR
 detect bulb with background black square,But if i remove background
 image then it do not able to detect bulb.


 My aim to detect physical bulb.And physical bulb does not have any
 black border around it.So how to make pattern for physical object and
 then detect them

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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
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] contacts retrieve

2012-01-20 Thread ANKUR GOEL
hi all '

i am retriving contacts from android phone ...but its taking the contacts
of gmail also how to avoid the gmail contacts .

thanks
urgent

-- 
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 create a binary file stored on the cache of the app and delete it after the use?

2012-01-20 Thread saex
i have a android app that gets a binary file from a php script.

I need to store the binary file returned by the remote php script into
a binary file on the cache mem of the app. And after i use the binary
file, i need to remove it.

How can i achieve it?

thanks

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


Re: [android-developers] overlay webcam

2012-01-20 Thread Ricardo Santos
I have never done anything similar to it, but I would advise you to
subclass the component you are using and extend the onCanvas() method to
put a circle on the place desired.

But, as I said, I have never done anything like that, so if I said anything
wrong, someone please correct me.

2012/1/18 Etienne Le Néchet etienne.lenec...@gmail.com

 Hello,

 I develop an application which use camera...but I want an overlay. I
 want draw a circle which allows a person to place his head properly
 for face recognition. What are method to implement that?

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

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

Re: [android-developers] Newbie question about Content Provider

2012-01-20 Thread Ricardo Santos
Do the notepad tutorial, on the developers page, it will help you a lot.

On Tue, Jan 17, 2012 at 1:37 PM, Lester Quintero lesterqu...@gmail.comwrote:

 Hello everybody,

 Its possible with content providers make insert-select in SqlIte
 database.
 would be something like:

 Insert into Table(t1, t2)
 Select tx, ty
 From Table

 or

 Insert into Table(t1, t2)
 Select tx, ty  WHERE NOT EXISTS ...

 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

-- 
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 create a binary file stored on the cache of the app and delete it after the use?

2012-01-20 Thread skink


saex wrote:
 i have a android app that gets a binary file from a php script.

 I need to store the binary file returned by the remote php script into
 a binary file on the cache mem of the app. And after i use the binary
 file, i need to remove it.

 How can i achieve it?


you can achievie it by reading this:

http://developer.android.com/guide/topics/data/data-storage.html#filesInternal

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


Re: [android-developers] Augmented Reality

2012-01-20 Thread Ricardo Santos
You will need more than 7 days for that...

My advice it for you to go beyond wikipedia and see some real image
processing books. I had this on college a few years ago and do not remember
the name of the subject, but I know that with some real research you can do
it.

Hope you don't have a deadline to this project... :D

On Fri, Jan 20, 2012 at 8:23 AM, Raghav Sood raghavs...@androidactivist.org
 wrote:

 This is currently not possible. Unless you are willing to write code that
 can efficiently describe to AndAR how every possible bulb you will be use
 looks from every angle, then I'd suggest you drop it.

 Thanks


 On Thu, Jan 19, 2012 at 10:37 AM, tofeeq ahmad abdul.tof...@gmail.comwrote:

 I am working on Augmented Reality from last 7 days.I implement AndAR
 API library for this purpose.My problem is creating marker.I used some
 online marker generator.But all has one limitation that every pattern
 should have black border around it otherwise it will not make a
 pattern.
 This is limitation is barrier for my app.I want to detect Physical
 object like real bulb. If i make pattern for bulb by putting it on
 black square paper then marker generator generate pattern and AndAR
 detect bulb with background black square,But if i remove background
 image then it do not able to detect bulb.


 My aim to detect physical bulb.And physical bulb does not have any
 black border around it.So how to make pattern for physical object and
 then detect them

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




 --
 Raghav Sood
 http://www.androidactivist.org/ - Author
 http://www.appaholics.in/ - Founder

  --
 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] Avoid android taking screenshot/snapshot of activity while going in background

2012-01-20 Thread tegbird
In 3.0+ and 4.0+,
When user switches applications
Android takes a screenshot of the current activity before moving the
application in background. If you press the task-switcher button, you
can see the snapshot of your app.
I want to avoid that android takes snapshot of my  activity as it has
sensitive data in it.
I have already tried flag excludeFromRecents but it doesnot work.

Any help is appreciated.

-- 
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] Home screen icon dimensions

2012-01-20 Thread bt
Hi,

I would like to display application icons in my app with the same
dimension as they are visible on the home screen.

Is there any way to get that information. I mean it would be fine if
there were an attribute or style I could use, for example:

ImageView layout_width=?android:attr/preferredIconWidth
layout_height=?android:attr/preferredIconHeight/

Thanks,
Tamas

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


Re: [android-developers] Avoid android taking screenshot/snapshot of activity while going in background

2012-01-20 Thread Harri Smått
On Jan 20, 2012, at 1:25 PM, tegbird wrote:
 If you press the task-switcher button, you
 can see the snapshot of your app.

Does this happen also if you jump to another task, and press task-switcher 
button from that other task again? Is your application still available there?

--
Harri

-- 
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] Runtime exception while audio recording

2012-01-20 Thread Raneez
I get the following error while trying to record audio:

E/AndroidRuntime(759): java.lang.RuntimeException: setAudioSource
failed.

 E/AndroidRuntime(759): at
android.media.MediaRecorder.setAudioSource(Native Method)).

Please 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] how to resolve this promblem

2012-01-20 Thread Pradeep
Multiple markers at this line
- The method onClick(View) of type new View.OnClickListener(){} must
override a superclass
 method
- implements android.view.View.OnClickListener.onClick

-- 
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: Avoid android taking screenshot/snapshot of activity while going in background

2012-01-20 Thread Johan Appelgren
A quick search in this group gave me 
this: 
https://groups.google.com/d/msg/android-developers/363Au8CqdLY/UhsUnEgZViIJ

http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE
 

-- 
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't update browser bookmarks

2012-01-20 Thread H
The browser uri changed from Honeycomb onwards. It still responds to
Browser.BOOKMARKS_URI (content://browser/...) for legacy, but it
realistically uses the new BrowserContract.AUTHORITY_URI (content://
com.android.browser/...) to access the correct database.

There's code in the Honeycomb+ BrowserProvider that still handles the
old uri, but the browser itself primarily gets it's data from the new
database using BrowserProvider2 and the new uri. It's frustrating, but
you have to simply check the sdk level and from honeycomb plus, use
the new uri and the new fields (see the hidden
android.provider.BrowserContract for a list of them) but if the device
is not yet Honeycomb then you use the original uri and fields.

HTH.

On Jan 19, 1:20 am, James G jkg...@googlemail.com wrote:
 Anybody? Is this a bug in Android / Android Browser?

 On Jan 15, 10:32 pm, James G jkg...@googlemail.com wrote:







  I have come across an awkward issue, and I would very much appreciate
  your help to find out what I am doing wrong.

  I have an app which among other things allows users to edit bookmarks
  in the Android Browser's bookmark store. It uses the
  ContentResolver.query, .insert, .delete, and .update methods, with the
  URI Browser.BOOKMARKS_URI.

  It all works well under Android 2, but on Androids 3 and 4 the .update
  command does not appear to work. I have tried everything I can think
  of, and just cannot make it work.

  To repeat this issue yourself in under one minute, create a new app
  with an Activity named BookmarkTestingActivity and paste in the
  source at the bottom of this post. Also add these two permissions to
  the Manifest:
      uses-permission
  android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS/
      uses-permission
  android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS/

  This source simply inserts a new bookmark with title Test and url
  http://test.com;, attempts to update the url to http://
  updated.test.com, then Logs the url after that attempted change.

  In Android 2, the url correctly changes to http://updated.test.com;
  but in Androids 3 and 4 it remains at http://test.com;. The same
  thing happens when I try updating other fields or using different
  select variables etc.

  I'm testing with the latest SDK in Eclipse, on Android 2.3.3, Android
  3.1, and Android 4.0.3.

  I can work around the problem of course by doing a delete then another
  insert, but that's not the point :)

  Thanks in advance!

  James.

  Source to repeat this issue:
  ===
  public class BookmarkTestingActivity extends Activity {
          private static String LOGTAG = BookmarkTesting;

      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);

          // Insert a new bookmark, with title Test, and url http://
  test.com.
                  ContentValues cv=new ContentValues();
                  cv.put(Browser.BookmarkColumns.TITLE, Test);
                  cv.put(Browser.BookmarkColumns.URL, http://test.com;);
                  cv.put(Browser.BookmarkColumns.BOOKMARK, 1);
                  getContentResolver().insert(Browser.BOOKMARKS_URI, cv);

                  // Update the url of all bookmarks with title Test, to 
  http://
  updated.test.com.
                  cv.clear();
                  cv.put(Browser.BookmarkColumns.URL, 
  http://updated.test.com;);
                  getContentResolver().update(Browser.BOOKMARKS_URI, cv,
  BookmarkColumns.TITLE+=?, new String[]{Test});

                  // Log out what the url is now.
          Cursor cur =
  this.getContentResolver().query(Browser.BOOKMARKS_URI, null,
  BookmarkColumns.TITLE+=?, new String[]{Test}, null);
          if (cur == null) {
                  Log.e(LOGTAG, Cursor null);
          }
          else if (cur.getCount() == 0){
                  Log.e(LOGTAG, Cursor empty);
          }
          else {
                  cur.moveToFirst();
                  Log.e(LOGTAG, URL is now
  +cur.getString(cur.getColumnIndex(BookmarkColumns.URL)));
          }

          this.finish();
      }

  }

-- 
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] Downloaded .apk file always gives package parsing error on installations

2012-01-20 Thread rahul verma
hi everyone,
i am caught in a big problem...

I have made a downloading app. it works fine ,but one big problem is
there.

When i am downloading a .apk file using my code,on installing the
downloaded file i am always getting a package parsing error

My code:


 try {
URL url = new URL(link);
HttpURLConnection connection;
try {
connection = (HttpURLConnection) 
url.openConnection();
 File file=new 
File(SDCardDir+File.separator
+DownloadEverythingPro+File.separator+fileName);
if(file.exists()){
 downloaded = (int) file.length();
 status=Handlerr.RESUMED;
 
connection.setRequestProperty(Range, bytes=+
(file.length())+-);

}
else{
downloaded=0;
connection.setRequestProperty(Range, 
bytes= + 0 +
-);
status=Handlerr.FRESH_DOWNLOAD;

}
connection.setDoInput(true);
connection.setDoOutput(true);
j=connection.getContentLength();
int lastSlash = 
url.toString().lastIndexOf('/');
fileName = file.bin;
if(lastSlash =0)
{
fileName = 
url.toString().substring(lastSlash + 1);
}
if(fileName.equals())
{
fileName = file.bin;
}



k=j+downloaded;
BufferedInputStream in = new
BufferedInputStream(connection.getInputStream());
FileOutputStream fos=(downloaded==0)? 
new
FileOutputStream(SDCardDir+File.separator
+DownloadEverythingPro+File.separator+fileName): new
FileOutputStream(SDCardDir+File.separator
+DownloadEverythingPro+File.separator+fileName,true);
BufferedOutputStream bout = new 
BufferedOutputStream(fos,
1024);
   byte[] data = new byte[1024];
   int x = 0;
   while ((x = in.read(data, 0, 1024)) = 
0) {
   bout.write(data, 0, x);

downloaded += x;

informMiddle(status+!+downloaded+/+k
+!+this.fileName+!+this.link2);
   }
   in.close();
   fos.close();
   bout.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return;
}



} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return;

}

-- 
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] IPC peformace suggestions

2012-01-20 Thread Mika
Hi all,

In my app the process number 1 generates around 1KB of data every
couple of seconds and passes this to process number 2. To my
understanding there are three ways to pass data between processes:
publishing IPC interface using Binder, using Messeger or using
Broadcasts. I would like to get some feedback what would the best way
to pass the data between the processes? Any ideas how android handles
these different scenarios? Also would it be more effective to cache
the data in process 1 for a while and then send the data in longer
intervals and bigger chunks to process 2?

Any insight to this is really valuable.

I know that this all could be done in one process also, but because of
the use case and some external requirements unfortunately that is not
really option in my case...



-- 
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 does Chronometer work??

2012-01-20 Thread rachana govilkar
hmm not yet.I will check it out.
Thanks for help.

On Jan 20, 1:00 pm, skink psk...@gmail.com wrote:
 rachana govilkar wrote:
  I did write this code but its of no use as my Chronometer is not
  getting displayed only.
  And hence this time ticking is not taking place.
  Do I need to add some code in code I mentioned above???

 hmm, have you tried:

 http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

 pskink

-- 
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: Newbie question about Content Provider

2012-01-20 Thread Lester Quintero
Hi,

I see the example and I did not find where using insert - Select to
put data into database.
I assume then that this can not be done, as I searched many examples
and have not found anything like.

Thanks, for your help.





On 20 ene, 06:02, Ricardo Santos ricardo.c.r.san...@gmail.com wrote:
 Do the notepad tutorial, on the developers page, it will help you a lot.

 On Tue, Jan 17, 2012 at 1:37 PM, Lester Quintero lesterqu...@gmail.comwrote:







  Hello everybody,

  Its possible with content providers make insert-select in SqlIte
  database.
  would be something like:

  Insert into Table(t1, t2)
  Select tx, ty
  From Table

  or

  Insert into Table(t1, t2)
  Select tx, ty  WHERE NOT EXISTS ...

  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

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


Re: [android-developers] Home screen icon dimensions

2012-01-20 Thread Mark Murphy
On Fri, Jan 20, 2012 at 6:29 AM, bt barta...@gmail.com wrote:
 I would like to display application icons in my app with the same
 dimension as they are visible on the home screen.

 Is there any way to get that information.

No, because each of the countless home screen implementations is
perfectly welcome to show icons in any dimension it pleases. If it
wants to show icons 16px square, 160px square, or 360px square, it can
do so.

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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Vivaz and Android

2012-01-20 Thread Mark Murphy
This has nothing to do with this list. This list is for Android SDK
app development, not how to put Android on arbitrary pieces of plastic
and silicon.

2012/1/18 Δημήτρης Σιγάρας stallion...@gmail.com:
 Hello  Android Developers,
 I am an owner of a Sony Ericsson Vivaz running Symbian OS.
 The company i work asked me to install an application but doesnt work
 because it isnt supported from Symbian, only for Android and Windows
 mobile. This application is a bridge of our ERP Software. They cant
 make it work for Symbian. So i have to buy new phone (i dont have
 extra 350 euro) or install Android to my SE Vivaz U5i.
 SO my question and my problem is ... are there any chance to install
 Android OS in me 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



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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] How to manually dispatch key event for power button in android

2012-01-20 Thread Mark Murphy
On Fri, Jan 20, 2012 at 1:42 AM, ashiq sayyad ashiqsay...@gmail.com wrote:
 I have an implementation to lock the phone .I checked the device admin
 API.It is introduced after 2.1.So to have lock functionality for all
 versions devices,I am planning to dispatch power button event through code.

Fortunately, this is not possible.

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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: Android codesearch replacement?

2012-01-20 Thread Mark Murphy
On Fri, Jan 20, 2012 at 2:27 AM, joebowbeer joe.bowb...@gmail.com wrote:
 Thanks. The android.jar source code can also be downloaded via SDK
 Manager and integrated with an IDE.

 I'm looking for a deeper search into android.git.kernel.org (aka
 github.com/android). The aapt source, for example.

 I thought that is what code search used to provide.

It did.

If you know the repo in question, GitHub has search. It does not
appear to offer a search of all repos for a user, though. And I'm not
sure if they offer an API to their search mechanism that somebody
could use to write a cross-repo search front-end.

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

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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] best adnetwork

2012-01-20 Thread aru
Hi guys,
would you tell me the best adnetwork that exist on Android platform.
currently I use Admob, but I feel their CPM is low, and I want to
change to greystripe but I don't know it's gonna be going well or not.

Thanks,
Aru

-- 
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] App fire on pressing lock key of phone

2012-01-20 Thread Dhaval Varia
I want to fire my app on lock/unlock key press for few times.

how to do it?
thanx

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

[android-developers] Dashboard Application

2012-01-20 Thread Ubiracy Santos
Hello Android Developers!!!

I have a dashboard application wich will be updated outside with a web 
application such as webservice. What is the best form to develop this 
application?

https://lh5.googleusercontent.com/-2aqM99H11wQ/TxlsIOd7rxI/AGQ/CQrdzNd5MSY/s1600/HOME.png
I will update the buttons and its links and the data will have to be 
available offline.

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

Re: [android-developers] best adnetwork

2012-01-20 Thread Christopher Van Kirk

Try it and see?

On 1/20/2012 9:25 PM, aru wrote:

Hi guys,
would you tell me the best adnetwork that exist on Android platform.
currently I use Admob, but I feel their CPM is low, and I want to
change to greystripe but I don't know it's gonna be going well or not.

Thanks,
Aru



--
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] why is onDoubleTap being called before second tup's up action?

2012-01-20 Thread skink
hi,

i'm using GestureDetector to detect double tup actions and having a
little problem when trying to startActivity() inside onDoubleTap
listener.

namely i have observed when onDoubleTap is empty i see the following:

D/GestureActivity(  987): onTouchEvent action=0
D/GestureActivity(  987): onTouchEvent action=1
D/GestureActivity(  987): onTouchEvent action=0
D/GestureActivity(  987): onDoubleTap
D/GestureActivity(  987): onTouchEvent action=1

here action == 0 for ACTION_DOWN, while action == 1 for ACTION_UP

as you can see onDoubleTap is being called after second tups's
ACTION_DOWN and before its ACTION_UP, strange but OK

but when i call startActivity() in onDoubleTap listener i see:

D/GestureActivity( 1019): onTouchEvent action=0
D/GestureActivity( 1019): onTouchEvent action=1
D/GestureActivity( 1019): onTouchEvent action=0
D/GestureActivity( 1019): onDoubleTap
D/GestureActivity( 1019): onPause

as you can see there is missing second ACTION_UP (i think it's because
my main activity is paused and doesn't handle touch events) and when i
return back to my main activity GestureDetector is somehow mislead and
behaves a bit strange

in the end i used onDoubleTapEvent (instead of onDoubleTap) like this:
public boolean onDoubleTapEvent(MotionEvent e) {
if (e.getAction() == MotionEvent.ACTION_UP) {
// start activity here
}
}

and it works OK but i'm still not sure if it's a good solution

any ideas how to use onDoubleTap in my scenario?

pskink

-- 
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] Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-01-20 Thread Chris
I am having issues support the Galaxy Note

My app runs on Android 2.1+ , so I can't use the DPI based screen
differentiation , and the Galaxy note is 2.3.5 I believe.

My app has a normal display size which works great for small/normal ,
I also have a large display layout that has been working great for
7-10inch tablets like Xoom and Amazon Kindle Fire.

However this Galaxy Note has thrown a spanner in the mix.

It is displaying itself as a Large , but my display does not fit on
the screen.
The normal layout looks fine on it.

Any ideas how I can make that device use the normal display ? , at the
moment I am tempted to just exclude it from compatible devices - but
if there is an elegant workaround it would be better !

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


Re: [android-developers] Installing Android SDK

2012-01-20 Thread Chihwah


Hello,

A small guide for Eclipse and SDK:

1) unpack SDK and place it somewhere.

2) install ADT plugin from https://dl-ssl.google.com/android/eclipse/
   or http instead of https.

ADT plugin will ask you where the SDK directory is

3) after restart, Eclipse will have 2 green buttons. One of them is to 
create an AVD.

  The other is used to install Android API's.

If you follow these 3 steps you will be able to create an AVD.

Cwli


Op 20-1-2012 7:19, vivek elangovan schreef:

Hi members,
i m facing difficulty in installing Android SDK
when i checked the SDK Manager log i found that it is not fetching
anything from the following url  http://innovator.samsungmobile.com/
android/repository/repository.xml.
because of this i m not able to select packages and not able to create
AVD.



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


Re: [android-developers] Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-01-20 Thread Mark Murphy
On Fri, Jan 20, 2012 at 8:40 AM, Chris chris.fou...@gmail.com wrote:
 I am having issues support the Galaxy Note

 My app runs on Android 2.1+ , so I can't use the DPI based screen
 differentiation , and the Galaxy note is 2.3.5 I believe.

 My app has a normal display size which works great for small/normal ,
 I also have a large display layout that has been working great for
 7-10inch tablets like Xoom and Amazon Kindle Fire.

 However this Galaxy Note has thrown a spanner in the mix.

 It is displaying itself as a Large , but my display does not fit on
 the screen.
 The normal layout looks fine on it.

 Any ideas how I can make that device use the normal display ?

You can't. You need to create a -large set of resources that work well
on the Galaxy Note and Kindle Fire. The XOOM can use -xlarge
resources, if the revised -large ones do not work well on a 10
screen.

 at the
 moment I am tempted to just exclude it from compatible devices - but
 if there is an elegant workaround it would be better !

Bear in mind that your issue is not strictly one tied to the Galaxy
Note. I would expect you to encounter similar problems on
similarly-sized devices.

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

Android 4.0 Programming Books: http://commonsware.com/books

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


Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?

2012-01-20 Thread Jim Graham
On Thu, Jan 19, 2012 at 12:50:30PM -0800, hzakimoto wrote:

 I'm also a musician.

You've no doubt already done some composition, then, so why not just
write your own?  Or just ad lib.  Either way, it's a LOT easier, as
a musician, to just write your own music than to get out of legal
trouble for violating copyright laws  Besides, it's not as if
you're going to be writing a concerto...all you need is background
and effects.  In other words, even easier.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| This 'telephone' has too many
spooky1...@gmail.com| shortcomings to be seriously considered
 Running FreeBSD 7.0  | as a means of communication.  The device
ICBM / Hurricane:   | is inherently of no value to us.
   30.44406N 86.59909W  | (Western Union internal memo, 1876)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Net Work slow

2012-01-20 Thread Chihwah


Hello,

In a few cases  you will need to create a seperate thread. You could get 
an message that your app is not responding. If that's the case, create a 
new thread, Inside this new thread you execute your code.


Might be handy to send some code, so that people can have a look. Hope 
this helps you.


Cwli

Op 20-1-2012 10:27, aru padam schreef:

Hi all,

   I am using internet connection in android application.Suppose net
connection is slow ,then the app is force closed .

How can i rectify this problem .Please help me .urgent...

Thanks in Advance

Deepesh C



--
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: Supporting Galaxy Note Issues Due To It Displaying Itself as a LARGE screen layout.

2012-01-20 Thread Chris
Thanks
I will just exclude , can't find any other stupid devices like the
note.
Kindle sales are in the 100's per day , not doing all that change for
a few Galaxy Note's.

It's a shame Google did not sort this mess out on an earlier release ,
it's becoming a real pain

On Jan 20, 1:45 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jan 20, 2012 at 8:40 AM, Chris chris.fou...@gmail.com wrote:
  I am having issues support the Galaxy Note

  My app runs on Android 2.1+ , so I can't use the DPI based screen
  differentiation , and the Galaxy note is 2.3.5 I believe.

  My app has a normal display size which works great for small/normal ,
  I also have a large display layout that has been working great for
  7-10inch tablets like Xoom and Amazon Kindle Fire.

  However this Galaxy Note has thrown a spanner in the mix.

  It is displaying itself as a Large , but my display does not fit on
  the screen.
  The normal layout looks fine on it.

  Any ideas how I can make that device use the normal display ?

 You can't. You need to create a -large set of resources that work well
 on the Galaxy Note and Kindle Fire. The XOOM can use -xlarge
 resources, if the revised -large ones do not work well on a 10
 screen.

  at the
  moment I am tempted to just exclude it from compatible devices - but
  if there is an elegant workaround it would be better !

 Bear in mind that your issue is not strictly one tied to the Galaxy
 Note. I would expect you to encounter similar problems on
 similarly-sized devices.

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

 Android 4.0 Programming Books:http://commonsware.com/books

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


Re: [android-developers] remove logs after market

2012-01-20 Thread TreKing
On Tue, Jan 17, 2012 at 12:31 PM, Leno Britto len...@gmail.com wrote:

 but why would you do that? the user won't see those unless he plugs the
 phone to the pc and if he does, so what? those messages are meant for
 troubleshooting rather then testing things out, isn't that how you're you
 using them? because if you are, what's the problem with leaving them there?


1 - Excessive logging slows your app down.
2 - Many apps have been known to leave inappropriate contents in their logs
(keys, passwords, etc).
3 - For developers, it's quite annoying to debug one's own app while the
LogCat is flooded with crap from other apps that shouldn't be there in
release.

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

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

Re: [android-developers] Starting with game development

2012-01-20 Thread TreKing
On Wed, Jan 18, 2012 at 7:29 AM, Rohit Sharma hunk...@gmail.com wrote:

 Now please let me know about how to embed objects into games. Does it
 require using some game engine or we need to manually do this b
 performing lots of coding.


A) That doesn't make much sense.
B) That doesn't sound like it has anything to do with Android specifically.


 Also let me know about some good references to start with.


Heard of Google?

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

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

Re: [android-developers] Re: Copyright question: Can I remix a Final Fantasy song and use it in my game?

2012-01-20 Thread Chihwah

Hello,

I am sure that is not legal, you would still be using parts of an 
original song, so you need permission.
Don't think this is the right place to ask such questions. An 
organisation about copyright will be able to answer your question more 
accurate.


Cwli



Op 20-1-2012 14:51, Jim Graham schreef:

On Thu, Jan 19, 2012 at 12:50:30PM -0800, hzakimoto wrote:


I'm also a musician.

You've no doubt already done some composition, then, so why not just
write your own?  Or just ad lib.  Either way, it's a LOT easier, as
a musician, to just write your own music than to get out of legal
trouble for violating copyright laws  Besides, it's not as if
you're going to be writing a concerto...all you need is background
and effects.  In other words, even easier.

Later,
--jim



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


Re: [android-developers] Dashboard Application

2012-01-20 Thread James Black
It looks like you are using a table.

You will need to update a file on an SD card or store this in preferences
or a database, but the buttons and links should not be in your layout.

I would suggest the app be empty then it gets an update and places the
buttons.

You may need to specify button colors or types in this file that is
downloaded.
On Jan 20, 2012 8:31 AM, Ubiracy Santos ubiracy@gmail.com wrote:

 Hello Android Developers!!!

 I have a dashboard application wich will be updated outside with a web
 application such as webservice. What is the best form to develop this
 application?


 https://lh5.googleusercontent.com/-2aqM99H11wQ/TxlsIOd7rxI/AGQ/CQrdzNd5MSY/s1600/HOME.png
 I will update the buttons and its links and the data will have to be
 available offline.

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

  1   2   3   >