[android-developers] Looking for a coder

2011-12-01 Thread Alexander Turda
Ok I'm working on a great app,and I really need someone to code with me.

It's simple,if you are interested,you contact me,I give you a little 
test,if you pass it we are a team and I give you the source code.

The app which I'm working on is finished 90%.

If you are asking yourself about the money,yes you will be paid,but ONLY 
after the launch,and keep in mind that if you pass the test i will give you 
the source code to a unrealeased app.


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

Re: [android-developers] Looking for a coder

2011-12-01 Thread Sushant Ratnaparkhi
hey Alexander,

I am an engineer in comp sci.
I have good programming experience in JAVA and C++,  and some exp in
android SDK (have developed one app, didn't publish).
and I am between the jobs, so i would like to work with you.
email me if you are interested.

Regards,
Sushant R




On Thu, Dec 1, 2011 at 2:16 PM, Alexander Turda gamingpione...@gmail.comwrote:

 Ok I'm working on a great app,and I really need someone to code with me.

 It's simple,if you are interested,you contact me,I give you a little
 test,if you pass it we are a team and I give you the source code.

 The app which I'm working on is finished 90%.

 If you are asking yourself about the money,yes you will be paid,but ONLY
 after the launch,and keep in mind that if you pass the test i will give you
 the source code to a unrealeased app.


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

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

[android-developers] types of emulators

2011-12-01 Thread mohana priya
Hello android developers.For Motorola,Samsung etc. is there different
emulator for each in android.If so please tell me how to get the
emulator for Motorola.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] In App purchase in android

2011-12-01 Thread tamil maran
please help me to how to sales content inside of application through In
App billing service.

please let me know step by step for this process

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] google maps api

2011-12-01 Thread Marcelo Henrique
but used look manifest.xml


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

uses-sdk android:minSdkVersion=7 /

  uses-permission android:name=
 android.permission.ACCESS_COARSE_LOCATION /
uses-permission android:name=
 android.permission.INTERNET /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name
android:theme=@android:style/Theme.NoTitleBar
  uses-library android:name=com.google.android.maps /
activity
android:label=@string/app_name
android:name=.Principal
android:theme=@android:style/Theme.NoTitleBar
intent-filter 
action android:name=android.intent.action.MAIN /

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

/application


/manifest

2011/11/30 James Black planiturth...@gmail.com

 Under the application element in your manifest add:
 uses-library android:name=com.google.android.maps /


 On Wed, Nov 30, 2011 at 1:19 PM, Marcelo Henrique 
 marceloh...@gmail.comwrote:


 Google Maps


 main.xml
 Failed to find style 'mapViewStyle' in current theme






   - Marcelo Henrique -
   Se não puder se destacar pelo talento, vença pelo esforço. (Dave
 Weinbaum)

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




 --
 I know that you believe you understand what you think I said, but I'm not
 sure you realize that what you heard is not what I meant.
 - Robert McCloskey

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




-- 
  - Marcelo Henrique -
  Se não puder se destacar pelo talento, vença pelo esforço. (Dave
Weinbaum)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Update to ADT 15, SDK14, SDK tools 15 and SDK platformTool 9 = New project doens't run o_O

2011-12-01 Thread Android2ee
Hello,
Yesterday i update my eclipse to the last version of Android.
Then I created a new project and run it. The compilation is ok, but
few second after Eclipse displays the message: Your project contains
error. Please fix them...
Notice, i do not change anything in the generated project (I used the
Android wizard to create it).
Stranger, in the Eclipse views Error Log and Problem there are no
message, nothing, not a line, nada, void.
Worst, my previous project runs like they ever do...

Anyboody else facing such issue?
Somebody have an idea how to fix that?

Thanks in advance for your answers.
Regards.

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


[android-developers] Re: Is it possible to add rows to the listview from the top?

2011-12-01 Thread B.Arunkumar
Hi,

  Actually I have been able to solve the requirement by using the
listview onHierarchychangedListner. You iwll have to manually change
the background of the rows in the onHierarchychangedListner after the
row is added to the listview.

Thank you,
B.Arunkumar

On Nov 30, 2:02 pm, skink psk...@gmail.com wrote:
 B.Arunkumarwrote:
  Hi,

     I have a question regarding listview. This is the requirement:

  1. When a first element is added to the listview, the background of
  the row should be black. After 1 minute, the background of the row
  should become blue (which I do it a separate thread).

  2. A second row should be added to the listview at the top of row1 and
  it should be black. After 1 minute, it should turn blue in a similar
  way.

  Now, whatever I do, the 2nd element is getting added to the bottom of
  the listview and the 1st row remains blue and the 2nd row remains
  black. How can I add rows to the top of the listview with this
  requirement?

  Thank you,
 B.Arunkumar

 what Adapter are you using?

 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] WebView Polling... Multiple Instances.... Need Some Advice

2011-12-01 Thread cipher_neo
Hi guys,

I have an app that uses the WebView.

In the webview, I have ajax polling going on.

I have coded up an exit button for my app, that calls activity.finish()

When this happens, the app closes, and is not present in the active 
applications section of the task manager.

However, the app is still active, as there is a force close button 
present in the app task manager.

I see on the server that the polling is still occurring after the exit 
button was hit.

I would like the exit button to completely kill the app off.

The bigger problem then, is that the next time I launch the app, there are 
now two threads of ajax polling, which is breaking my application.

I have my app set to launch in single instance mode (which is required).

What is the best thing to do here?

thanks,

Lee

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] About Phone GAP

2011-12-01 Thread Mukesh Srivastav
Guys,

I am not posting any questions on PhoneGAP here.

I just wanted to check how many Android/iPhone Developers would really
likes it work on PhoneGAP which is like Developing Web-programming using
HTML/Javascript and CSS.

My personal options is i dint like to work on HTML/CSS or Java Script,
 which is not my interest. I just Hate it


-*Muki.*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] About Phone GAP

2011-12-01 Thread Ratheesh Valamchuzhy
me also

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: multitouch support again...

2011-12-01 Thread al
At first glance, I don't see a fundamental problem with your code
sketch that might cause your problem. I would check if your device is
multitouch-capable. There are many free apps in the market to do this,
for example yamtt. If the device supports mutitouch, it may help to
debug into the onTouchEvent method or to log the event right at the
start of the onTouchEvent method, just to see what's reported...

Btw. capacitive touch screen indicates the technology used to
recognize touches (a different worse technology to do this are e.g.
resistive screens); multi-touch means the screen an recognize multiple
touches at the same time. So, that's not the same.

 means something different than multitouch:

On 30 Nov., 22:11, John Goche johngoch...@googlemail.com wrote:
 Hello,

 I have posted this message before but got no repiles
 so I decided to post it again because I need to detect
 when a single second finger goes down while the first
 one is still down on my canvas... here is my old post:

 I have an LG Optimus Net (P690) which as far as I understand
 claims to support multitouch (as it sais on the following 
 site:http://www.mobilespecs.in/2011/10/lg-optimus-net-also-known-as-p690.html
 not sure if capacitive touch screen means the same thing as
 multitouch.

 However when I try the following code...

     public boolean onTouchEvent(MotionEvent event) {

       int pointerIndex = (event.getAction() 
 MotionEvent.ACTION_POINTER_ID_MASK)  MotionEvent.ACTION_POINTER_ID_SHIFT;
       int action = event.getAction()  MotionEvent.ACTION_MASK;

       switch (action) {

         case MotionEvent.ACTION_DOWN:

           System.out.println(got down);
         case MotionEvent.ACTION_POINTER_DOWN:
           System.out.println(got pointer down);

           int screenX = (int) (event.getX(pointerIndex) * scaleX);
           int screenY = (int) (event.getY(pointerIndex) * scaleY);

 I see the code run when I place the first finger down. When I place the
 second
 finger down without lifting the first one I don't see the
 ACTION_POINTER_DOWN.

 Not sure what I'm doing wrong if anything.

 Thanks for your help,

 John Goche

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ADVICE/SUPPORT : UVC Camera on Samsung Galaxy Tab 10.1- No device Node??

2011-12-01 Thread s.rawat
HI,
I am trying to interface the UVC Camera to the Samsung Galaxy Tab
10.1(GT-7510) , but I am not able to see the device node getting created in
the shell( I have installed the Linux terminal Shell Application) and
rooted the device using this
Videohttp://www.youtube.com/watch?src_vid=rHtsOm0l2Q8annotation_id=annotation_331832feature=ivv=krQDP7xYlWg
.Can
somebody plz tell/advice how I can achieve it and access the device Node or
at-least get it created.

Following is the log on dmesg  :

 usb 1-1 new high speed USB device using tegra-ehci and address  97
 hub 1-0:1.0 unable to enumerate USB device on port 1 ,
 usb 1-1:device v0ac8 p3420 is not supported

 On My Laptop I get this output on Dmesg  :

 [12307.364237] uvcvideo: Found UVC 1.00 device Venus USB2.0 Camera
(0ac8:3420)
[12307.366108] input: Venus USB2.0 Camera as
/devices/pci:00/:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input14
[12308.537059] usbcore: registered new interface driver snd-usb-audio

also i can see the camera getting blinked on connection which proves that
it is getting the power-supply and getting connected with the system.

I think there is a support for UVC USB devices in the kernel (not sure)
otherwise I am ready with the Kernel For Samsung Tab 10.1 (GT-7500
(Higher Version:  GT-7510)) from  here http://gt-p7500_mea_opensource.zip/
 .(GT-P7500_MEA_Opensource.zip (requires Login).

Plz assist.

Rgds,
Saurabh





..pain is temporary.quitting lasts forever..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Multi-touch with multiple buttons

2011-12-01 Thread ColletJb
Thanks a lot to all of you for your help.

I will try this asap and tell you if i did it ;)

On 30 nov, 23:18, Dianne Hackborn hack...@android.com wrote:
 Well Android started without any multi-touch API at all, a simple version
 was added in an update (with the constraint that the platform itself
 couldn't use it for anything), and it has been evolving since then.  I
 certainly agree that the initial API was difficult to use for some common
 things, because it was just a low-level API to provide the information for
 apps but apps had to manually deal with the data themselves.  I don't know
 why you think the implementation was poor, though I would actually say the
 general touch event implementation was less efficient than it could be (due
 to schedule needs for shipping a product), and the current implementation
 that first appeared in 2.3 is much better.

 One bit of advice: you may want to stop and think about calling people
 morons for things when you don't actually know the reasons and design
 trade-offs that were involved in the decisions.









 On Wed, Nov 30, 2011 at 1:47 PM, niko20 nikolatesl...@yahoo.com wrote:
  Dianne I appreciate your help in the forums and your hard work on
  Android. However, I think you even have to admit that multitouch, at
  least in its original form, is a poorly implemented, complicated API.
  If they cleaned it up as of Android 3.0, that is good news for devs.

  -niko

  On Nov 30, 2:45 pm, Dianne Hackborn hack...@android.com wrote:
   On Mon, Nov 28, 2011 at 6:21 AM, niko20 nikolatesl...@yahoo.com wrote:
I guess in Android 3.2 they now allow multitouch to go the multiple
views. But I have not tested it.

   This was added in Android 3.0, and it does work.

Whoever thought of the one view thing is a moron, period. It should
have just worked. But noo. We are Google we do everything the hard
way.

   Well I guess I can live with being called a moron.  What shall I call
  you?

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support, and so won't reply to such e-mails.  All such
   questions should be posted on public forums, where I and others can see
  and
   answer 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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer 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


[android-developers] Re: About Phone GAP

2011-12-01 Thread Alessandro Pellizzari
Il Thu, 01 Dec 2011 14:59:16 +0530, Mukesh Srivastav ha scritto:

 I just wanted to check how many Android/iPhone Developers would really
 likes it work on PhoneGAP which is like Developing Web-programming using
 HTML/Javascript and CSS.

The primary field I work in is HTML+CSS+JS (+PHP). I do it 8-12 hours a 
day, 6 or 7 days a week. :)

I still find it quite hard to adapt a web interface for a mobile device. 
It is much easier to use Android Activities instead of juggling DOM 
pieces thru Javascript.

Maybe with PhoneGAP, Sencha and jQueryMobile it is/will be easier.
But performance is (still) much poorer.

Bye.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: About Phone GAP

2011-12-01 Thread Mukesh Srivastav
JQuery,PhoneGAP,Snecha are all Same Web-Development tools.


I suspect, one day, Mobile companies would HIRE Web-Developes who are good
at HTML and CSS and will ask to work on PhoneGAP or Jquery


-*Mukesh*

On Thu, Dec 1, 2011 at 3:53 PM, Alessandro Pellizzari a...@amiran.itwrote:

 Il Thu, 01 Dec 2011 14:59:16 +0530, Mukesh Srivastav ha scritto:

  I just wanted to check how many Android/iPhone Developers would really
  likes it work on PhoneGAP which is like Developing Web-programming usinge
  HTML/Javascript and CSS.

 The primary field I work in is HTML+CSS+JS (+PHP). I do it 8-12 hours a
 day, 6 or 7 days a week. :)

 I still find it quite hard to adapt a web interface for a mobile device.
 It is much easier to use Android Activities instead of juggling DOM
 pieces thru Javascript.

 Maybe with PhoneGAP, Sencha and jQueryMobile it is/will be easier.
 But performance is (still) much poorer.

 Bye.


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] custom listview with checkboxes problem

2011-12-01 Thread md ghouse
Greetings of the day to everybody ,i am creating a custom list view
with textview and checkboxes by using array adapter and i am able to
display the list with checkboxes but when i select one checkbox and
scroll down and see that one again the secongd checkbox is also
beinged checked automatically how i dont know and second doubt is i
want to store the checkbox which is selected how can i do that one .i
am new to this platform please suggest me solution .below is the code
i am using
 ListTestActivity.java
public class ListTestActivity extends ListActivity {
/** Called when the activity is first created. */
String tag = Events;
String[] presidents;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
 // Create an array of Strings, that will be put to our
ListActivity
presidents
=getResources().getStringArray(R.array.presidents_array);

ArrayAdapterModel adapter = new InteractiveArrayAdapter(this,
getModel());
Log.d(tag, event);
setListAdapter(adapter);
Log.d(tag, 1);
}

private ListModel getModel() {
Log.d(tag,bht);
int index = presidents.length;
int positio;
String Linux;
//ListModel list = new ArrayListModel();
/*for(positio=0;positio=index ;++positio){
String Linux=hai;
ListModel list = new ArrayListModel();
list.add(get(presidents[positio]));
list.add(get(Linux));
Log.d(tag, 2);
//Toast.makeText(this,You have selected
 ,Toast.LENGTH_SHORT).show();
//if(positio=10){
return list;

//}
}*/
ListModel list = new ArrayListModel();
//int position=0;
//ListModel list = new ArrayListModel();
//list.add(get(presidents[position]));
for(positio=0;positioindex ;positio++){
Linux=presidents[positio];
list.add(get(Linux));
}

Log.d(tag,bht1);
/*list.add(get(Windows7));
list.add(get(Suse));
list.add(get(Eclipse));
list.add(get(Ubuntu));
list.add(get(Solaris));
list.add(get(Android));
list.add(get(iPhone));*/
// Initially select one of the items
//list.get(1).setSelected(true);
//String re=list.get(1);
Log.d(tag, event1);
return list;

}

private Model get(String s) {
Log.d(tag, event2);
return new Model(s);
}
}

InteractiveArrayAdapter.java

public class InteractiveArrayAdapter extends ArrayAdapterModel {
String tag = Events;
private final ListModel list;
private final Activity context;

public InteractiveArrayAdapter(Activity context, ListModel list) {
super(context, R.layout.rowbuttonlayout, list);
this.context = context;
this.list = list;
}

static class ViewHolder {
protected TextView text;
protected CheckBox checkbox,checkbox1;
}

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
Log.d(tag, 3);
View view = null;
if (convertView == null) {
LayoutInflater inflator = context.getLayoutInflater();
view = inflator.inflate(R.layout.rowbuttonlayout, null);
final ViewHolder viewHolder = new ViewHolder();
viewHolder.text = (TextView) 
view.findViewById(R.id.label);
viewHolder.checkbox = (CheckBox) 
view.findViewById(R.id.check);
viewHolder.checkbox1 = (CheckBox)
view.findViewById(R.id.checkbox1);
viewHolder.checkbox
.setOnCheckedChangeListener(new
CompoundButton.OnCheckedChangeListener() {

@Override
public void 
onCheckedChanged(CompoundButton buttonView,
boolean 
isChecked) {

Model element = (Model) 
viewHolder.checkbox

.getTag();
String 
posit=element.getName();

Log.d(posit,identifyme);
 

[android-developers] communicating with hardware remotely from Android device

2011-12-01 Thread Arun
how to communicate with the hardware board remotely from android
device..Any ideas ...

Regards,
Arun

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 pause and resume a Count Down Timer?

2011-12-01 Thread catherinefbala...@yahoo.com
I have developed a countdown timer and I am not sure how to pause and
resume the timer as the TextView for the timer is being clicked. Click
to start then click again to pause and to resume, click again the
timer's text view.

This is my code:

Timer = (TextView)this.findViewById(R.id.time); //TIMER
Timer.setOnClickListener(TimerClickListener);
counter = new MyCount(60, 1000);
}//end of create

private OnClickListener TimerClickListener = new OnClickListener() {
public void onClick(View v) {
updateTimeTask();   }

private void updateTimeTask() {
if (decision==0){
counter.start();
decision=1;}
else if(decision==2){
counter.onResume1();
decision=1; }
else{
counter.onPause1();
decision=2; }//end if
};  };

class MyCount extends CountDownTimer {
public MyCount(long millisInFuture, long countDownInterval) {
super(millisInFuture, countDownInterval);
}//MyCount
public void onResume1(){
onResume(); }
public void onPause1() {
onPause();}
public void onFinish() {
Timer.setText(00:00);
p1++;
if (p1=4){
TextView PScore = (TextView) findViewById(R.id.pscore);
PScore.setText(p1 + );
}//end if
}//finish
public void onTick(long millisUntilFinished) {
Integer milisec = new Integer(new
Double(millisUntilFinished).intValue());
Integer cd_secs = milisec / 1000;

Integer minutes = (cd_secs % 3600) / 60;
Integer seconds = (cd_secs % 3600) % 60;

Timer.setText(String.format(%02d, minutes) + :
+ String.format(%02d, seconds));
//long timeLeft = millisUntilFinished / 1000;
}//on tick
}//class MyCount

protected void onResume() {
super.onResume();
//handler.removeCallbacks(updateTimeTask);
//handler.postDelayed(updateTimeTask, 1000);
}//onResume

@Override
protected void onPause() {
super.onPause();
//do stuff
}//onPause


I am only beginner in android programming and I don't know how to get
the value of the countdown timer using savedInstanceState. How do I do
this?

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] Saving Findings to a Txt file

2011-12-01 Thread Aaron Chung
Hello, this is my first time using android developers. Hope you people
can help me out with Questions. Thanks a million.

I had successfully wrote a programme that can display the built-in
sensors (accelerometer and gyroscope) values on my phone.

How can I create a button that allow me to capture and write the
values into a txt file once its pressed? so that I open up the list of
data with my computer using a notepad or ect.

some tips and links will be helpful. :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need A web xml parsing code... Urgently please

2011-12-01 Thread Aniket Kumbhar
Need A web xml parsing code... Urgently 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] CursorLoader and Finalizing cursor that has not been deactivated or closed Error

2011-12-01 Thread crbin1
I have the following activity

public class ActivityMatchesList extends FragmentActivity implements
LoaderManager.LoaderCallbacksCursor {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ListView lvLive = (ListView)findViewById(R.id.matchListList);
lvLive.setOnItemClickListener(OnItemClickListenerLive);
getSupportLoaderManager().initLoader(1, null, this);
getSupportLoaderManager().initLoader(2, null, this);
getSupportLoaderManager().initLoader(3, null, this);
}

private OnItemClickListener OnItemClickListenerLive = new
OnItemClickListener(){
Intent i = new Intent(ActivityMatchesList.this,
ActivityEvents.class);
finish();
startActivity(i);
}

@Override
public LoaderCursor onCreateLoader(int id, Bundle args) { //
FIXME: add switch for 3 loader
switch (id){
case 1:
CursorLoader cursorLoaderLive = new CursorLoader(this,
uri1,null,null,null,null);
return cursorLoaderLive;
case 2:
CursorLoader cursorLoaderRankingLeague = new
CursorLoader(this, uri1,null,null,null,null);
return cursorLoaderRankingLeague;
case 3:
CursorLoader cursorLoaderRankingLive = new
CursorLoader(this, uri1,null,null,null,null);
return cursorLoaderRankingLive;
default:
return null;
}
}

@Override
public void onLoadFinished(LoaderCursor loader, Cursor cursor) {
switch (loader.getId()){
case 1:
Adapter1.swapCursor(cursor);
break;
case 2:
Adapter2.swapCursor(cursor);
break;
case 3:
Adapter3.swapCursor(cursor);
break;
}
}

@Override
public void onLoaderReset(LoaderCursor loader) {
switch (loader.getId()){
case 1:
Adapter1.swapCursor(null);
break;
case 2:
Adapter2.swapCursor(null);
break;
case 3:
Adapter3.swapCursor(null);
break;
}
}
}

With OnItemClickListener I finish() this activity and start a new,
when I finish the new to return to this sometimes I have the following
error

11-30 09:35:01.839: INFO/dalvikvm(321): Uncaught exception thrown by
finalizer (will be discarded):
11-30 09:35:01.848: INFO/dalvikvm(321): Ljava/lang/
IllegalStateException;: Finalizing cursor
android.database.sqlite.SQLiteCursor@43c6ab00 on MAIN_TABLE that has
not been deactivated or closed
11-30 09:35:01.848: INFO/dalvikvm(321): at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
11-30 09:35:01.848: INFO/dalvikvm(321): at
dalvik.system.NativeStart.run(Native Method)

I am not able to discover the reason, someone can help me?

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


[android-developers] How can I capture and write my findings in txt file.

2011-12-01 Thread Aaron Chung
Hi, I am new to android developers. Please do help me with some
questions I have.

I had successfully display the values of the built-in sensors on my
android phone. As the value kept changing, how can I capture the
values and save it inside a txt file so that I can open it up with my
computer? Hoping that the multiple capture of values can be done with
a button (capture once pressed) or (once pressed, capture the changes
for the next 10sec)

thanks a million.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Malfunction of socket's connection in 3G mode (not in WiFi)

2011-12-01 Thread Athar
Hi everyone,


If I'm here today, it's due to a bug (IMO) of Android Socket's
connection.

The problem is, if I try to initiate a Socket connection through the
3G, every port is seen OK, even if the port is closed (I'm sure of
this).

In WiFi, no issue, the program work as expected (Socket TimeOut).

Tested version of Android:
2.3.3 (Sony Ericson Xperia 10) and 2.3.4 (Samsung Galaxy S)
Two different mobile operator, same issue.


So, the question is:
- Is this a bug with the 2.3.* rev of Android?
- Is there an another way to checked a port, without the socket? (I
don't see anything else. The purpose is to see if a port respond).


Best regards.


PS: I use that kind of code:
try {
SocketAddress sockaddr = new InetSocketAddress(IpAddress,DestPort);
Socket sock = new Socket();
sock.connect(sockaddr, 5000);

if (sock.isConnected()) {
Log.i(Appli1,Connection ok);
}

sock.close();

} catch (Exception e) {
Log.i(Appli1,Connection error);
e.printStackTrace();
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] client socket prog

2011-12-01 Thread parmanand deo
sir i am trying to read msg for server and write to server,i can write
to server socket but when server socket write the client socket the
first msg write by server,can't read from client but the second msg is
read correctly.so kindly help me

here is the code
server socket***
***
SocketThrdServe.java
***
import java.awt.Color;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;

import java.io.*;
import java.net.*;
import java.sql.*;
import java.util.Scanner;

class ClientWorker implements Runnable {
private Socket client;

ClientWorker(Socket client) {
this.client = client;

}

public void run() {
String line;
BufferedReader in = null;
PrintWriter out = null;

try {
out = new PrintWriter(client.getOutputStream(), true);
ReadFromMob w1;
//out.println(hello client);
w1 = new ReadFromMob(client);

Thread t1 = new Thread(w1);
t1.start();

} catch (IOException e) {
System.out.println(in or out failed);
System.exit(-1);
}
while (true) {

try {


try {

// here the code connect the to the 
database and fetch the
// upadte
Class.forName(com.mysql.jdbc.Driver);
Connection con = 
DriverManager.getConnection(

jdbc:mysql://localhost:3307/mac, root, sahil);
Statement st = con.createStatement();
ResultSet rs = st
.executeQuery(select 
id from 1rep_abhi limit 0,1);
rs.next();
// System.out.println(the data is: + 
rs.getString(1));
System.out.println(Plz enter the msg 
to send :);
out.println(the data is:
+ new 
Scanner(System.in).nextLine());
// out.println(From server:CNT + cnt);

} catch (ClassNotFoundException e) {
System.out.println(The error is: + e);
} catch (SQLException e) {
System.out.println(The error is: + e);

}

/*
 * finally { rs=null; st=null; con=null; 
con.close(); }
 */


} catch (Exception e) {
System.out.println(Read failed + e);
System.exit(-1);
}
out.flush();
}
}
}

class ReadFromMob implements Runnable {
// private BufferedReader in;
private Socket client;
BufferedReader in = null;

ReadFromMob(Socket client) {
this.client = client;

}

public void run() {
try {
in = new BufferedReader(new InputStreamReader(
client.getInputStream()));

} catch (Exception e) {
System.out.println(the error is: + e);
}

while (true) {
try {
System.out
.println(The chiled Thread is 
waitin for incoming msg:);
System.out.println(The msg from client is: + 
in.readLine());

} catch (IOException e) {
System.out.println(e);
}

}
}
}

class SocketThrdServer {

ServerSocket server = null;

SocketThrdServer() { // Begin Constructor

} // End Constructor

public void listenSocket() {
try {
server = new ServerSocket(6);
System.out.println(server listen on port 6);
} catch (IOException e) {
System.out.println(Could not listen on port );
System.exit(-1);
}
while (true) {
ClientWorker w;
try {
  

[android-developers] Where has the menu button gone on the Actionbar?

2011-12-01 Thread FermiL
Hey All,
I want an ActionBar with a menu button on upper right, but I cannot
see it in my app on ICS emulator. It seems that the following png
image has it on upper right of screen.
 http://www.android.com/images/ics/contact-email-sm.png

Maybe the menu button on ActionBar is forcibly concealed on devices
with hardware keys? and then so how to I create the emulator of ICS
device with no hardware keys like the GalaxyNexus?

Thanks,
 FermiL

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Missing camera Button in Gallery on SamSung Galaxy with Android 2.x.x

2011-12-01 Thread Asterian75
Hello

I am using a web form to send a file to my server from a web appli
When i click Select file, it s working and i see a menu with several
device option
I choose Gallery, and i can see my previous picture but i don t have
the top right corner button CAMERA


In this screenShot, you can see this botton in the top right corner

http://www.completeguides.net/@api/deki/files/298/=gallery_splash.png?revision=2

But in the SAMSUNG GALAXY i don t have this button, i can only select
a existing picture but i cannot create one without leave the
application

Can you help me. Is it possible to activate this botton, maybe
changing some configuration file to the Galley Application (some
AndroidManifest.xml file ???)

I hope you have some idea i could try

Thanks

Lionel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 to download mp3file about out of memoryError

2011-12-01 Thread Jackey Dong
i wanna to download the mp3 files which in the tomcat, and i use a service
and start a thread in the service to download the file.(xml parser works
good, can parse the mp3file) and the errors are :

debug on the emulator or on the my phone, when I click the mp3 which on the
listview, it can work and download the file, but few seconds late it
crashed, and show the outofmemory Error like the picture show. why?
2.when I debug it on the emulator,size of the mp3 file is little bigger
than the real one on the tomcat, and there are some noise on the file which
be download. why?

3.when I debug it on my phone, size of the mp3 file is much bigger than the
real one(maybe twice as much),and the size maybe different each time I
debug it. when I play it, it just sounds like playing more quickly, of
course with some noise.why?

please help me

this is the ERROR:

11-30 22:01:39.210: E/dalvikvm-heap(23644): Out of memory on a
22149214-byte allocation. 11-30 22:01:39.215: E/AndroidRuntime(23644):
FATAL EXCEPTION: Thread-11 11-30 22:01:39.215: E/AndroidRuntime(23644):
java.lang.OutOfMemoryError 11-30 22:01:39.215: E/AndroidRuntime(23644): at
java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
11-30 22:01:39.215: E/AndroidRuntime(23644): at
java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:153)
11-30 22:01:39.215: E/AndroidRuntime(23644): at
java.lang.StringBuffer.append(StringBuffer.java:219) 11-30 22:01:39.215:
E/AndroidRuntime(23644): at
jackey.download.HttpDownloader.download(HttpDownloader.java:36) 11-30
22:01:39.215: E/AndroidRuntime(23644): at
jackey.MP3Player.service.MP3service$DownloadMP3thread.run(MP3service.java:48)
11-30 22:01:39.215: E/AndroidRuntime(23644): at
java.lang.Thread.run(Thread.java:1019)


  protected void onListItemClick(ListView l, View v, int position, long id)
{
//获得用户点击的待下载的MP3对象
MP3Info mp3Info = UpdateList.get(position);

Log.d(selectedMP3Info, mp3Info.toString());

//启动一个service下载该MP3对象
Intent intent = new Intent();
intent.putExtra(selectedMP3Info, mp3Info);
intent.setClass(this, MP3service.class);
startService(intent);
//stopService(intent);

super.onListItemClick(l, v, position, id);
}

public int onStartCommand(Intent intent, int flags, int startId) {
MP3Info mp3Info = (MP3Info)
intent.getSerializableExtra(selectedMP3Info);

Log.d(serviceMP3Info, mp3Info.toString());

DownloadMP3thread downloadThread =new DownloadMP3thread(mp3Info);
Thread thread = new Thread(downloadThread);
thread.start();


return super.onStartCommand(intent, flags, startId);
}

//创建下载MP3线程
class DownloadMP3thread implements Runnable{
private MP3Info selectedMP3Info = null;

public DownloadMP3thread(MP3Info mp3Info) {
this.selectedMP3Info = mp3Info;
}

public void run() {
Log.d(downloadeThread, in download thread);

String downURLStr = http://192.168.1.100:8080/mp3/
+selectedMP3Info.getMP3Name();
HttpDownloader httpDownloader = new HttpDownloader();

int result = httpDownloader.downFile(downURLStr, JackeyMP3/,
selectedMP3Info.getMP3Name());
Log.d(result, +result);

String testResult = httpDownloader.download(downURLStr);
Log.d(testResult, +testResult);
}

}


public File write2SDFromInput(String path,String fileName,InputStream
input){
File file = null;
OutputStream output = null;
try{
creatSDDir(path);
file = creatSDFile(path + fileName);
output = new FileOutputStream(file);
byte buffer [] = new byte[4 * 1024];
while((input.read(buffer)) != -1){
output.write(buffer);
}
output.flush();
}
catch(Exception e){
e.printStackTrace();
}
finally{
try{
output.close();
}
catch(Exception e){
e.printStackTrace();
}
}
return file;
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 ICS SpellChecker

2011-12-01 Thread Guillaume Lachaud
Hi !

I have tried my application on ICS. It works great but I notice that
some TextView have a red underline. I don't want these labels to be
underlined. How is it possible to disable this spell checking in my
application ?

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 Framework

2011-12-01 Thread Bhagavathram D.V
Hello Android Developers,

i have some queries in Android can you kindly  suggest.


Queries as follow

1 . Can we Create our own framework in Android  ? If its possible ,
Can you tell me how to create   Framework in android

2. How to call the C  CPP library in android Application (java
code)
 For default application we call the android permission it ll
call the library file can we create  our  own permission  file
manually  

Thanks
Bhagavath Ram

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] about apps marketing....

2011-12-01 Thread Abu Saleh Mohammad Kaisar
anyone please help me about apps marketing.
how can I reach more people in short time?

Thanks,
Abu Kaisar.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Measuring FPS method

2011-12-01 Thread Pete Houston
I'm currently trying to customize Google Android Launcher; however, on
home screen, when I try to fling left-right to move between screens,
it doesn't seem to be smooth.

I'm wondering how to calculate the frame per seconds when I fling
screen left-right?
Is there any idea on how to improve Google Android Launcher
performance?

I'm working on 2.3.3 Gingerbread.

Really appreciate your support!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 application

2011-12-01 Thread Jacob Shavia
i'm new to android and am supposed to develop an android game that allows
people to navigate a vehicle along simulated real life roads, i have
autocad maps for the roads n their presentation is poor how can i implement
this.
http://ambroreenz.com

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

[android-developers] Re: Android compatibility - transition from Eclipse Ganymede to Helios (/or Indigo)

2011-12-01 Thread jeril842002
I am facing the same issue.
We are team of three and have developed an app.
The app loads and runs fine on my teammates machine.
The app loads nicely but the moment I click Log On (a button in our
app), the app crashes.

The only thing different is eclipse.

I have
1) Eclipse Helios
2) Java 1.6
3) Android SDK 7,8,14 (Tried on all the three with same results :( )

On Oct 24, 9:36 am, TreKing treking...@gmail.com wrote:
 On Sun, Oct 23, 2011 at 7:28 PM, Sylvain sylvain.louc...@gmail.com wrote:
  The Android application compiles and loads on the emulator but
  crashes immediately.

 What have you done to debug your app in this scenario?

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

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


[android-developers] Using Spinner as a Button.

2011-12-01 Thread Pocket
I know this question is very silly. But I want to use Spinner just as
a Button.
I tried to turn of the dialog with layout file, but it doesn't work
for me.
And also I tried to handle OnTouchListener and OnClickListener of
Spinner, Then I got error about not to set OnClickListener of
AdoptView.
Is there any way to use Spinner just as a Button?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 telephony - SMS

2011-12-01 Thread Andrew
Hi,
I want send sms from Android based phone using some app. But I need to
change originating address field in RP layer - sm-RP-OA. I try to find
some examples/tutorials how to build app for sending sms on Android
but in every example I saw only possiblity to change values on TP
layer (layer above RP layer) values like destination address, smsc
addressI'm newbie in Android programming so if I can advise me
some program/tutorial/code where I can change sm-RP-OA I will be very
grateful...
THANKS

Andrew

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handler().postDelayed() question

2011-12-01 Thread JBirdVegas
First time poster long time reader, I've really learned a lot reading
this group ...

Ok I'm working on a splash screen that pauses for 1.5 seconds and
works great, except for one thing.
Once the timer is started in onCreate if the configuration
(orientation) changes then the timer gets reset and then end result is
it starts my ParchmentActivity.java twice.  How can I prevent the
handler from sending the intent twice?

Thanks in advance!

here is my code:

public class SplashScreen extends Activity {

private static final int SPLASH_DISPLAY_TIME = 1500;  /* 1.5
seconds */
private static final String TAG = Parchment;

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

/* Create a new handler with which to start the main activity
   and close this splash activity after SPLASH_DISPLAY_TIME
has
   elapsed. */
new Handler().postDelayed(new Runnable() {
@Override
public void run() {

Intent parchment = new Intent(SplashScreen.this,
ParchmentActivity.class);
SplashScreen.this.startActivity(parchment);
SplashScreen.this.finish();
overridePendingTransition(R.anim.fade_main_in,
R.anim.fade_splash_out);
}
}, SPLASH_DISPLAY_TIME);
}

/* I found a suggestion to try overriding onConfigurationChanged()
but it doesn't stop a new timer from being started */
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}

/* I also tried overriding onStart() but this also doesn't stop a
new timer. What exactly is called when an orientation configuration
changes happens? */
@Override
public void onStart() {
super.onStart();
setContentView(R.layout.splash);

}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] netcfg - Cannot perform requested operation: Permission denied - android shell (minicom)

2011-12-01 Thread Ashwini Singh
Hi all,

I'm getting problem with running few commands (such as - netcfg,
ifconfig --help etc) over android shell accessed via minicom.


Its easy to regenerate -
open terminal. Issue command - netcfg.

Output -
Cannot perform requested operation: Permission denied

Desired Output (as this is eng build)-
output from the command.


Android Version - GingerBread  ICS.
Platform - PandaBoard.


- Can you please suggest a solution for ICS.
- Tried once. But, gingerbread solution is not working. I'm on it.
But, any help will be appreciated.


Thank You.
- Ashwini Singh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MEssaging Application Not Updating

2011-12-01 Thread raja shekar
Hi ALL


I am inserting the values into SMS table using Content://sms Provider. it
is inserted Successfully .but When i opening the Application UI is not
Updating  ...



Can anybody give me solution

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

[android-developers] about Debug.instructioncount

2011-12-01 Thread marapapman
I tried following codes on x86 Android and simulator and it works
   Debug.InstructionCount icount = new Debug.InstructionCount();
   icount.resetAndStart();
[... do lots of stuff ...]
   if (icount.collect()) {
   System.out.println(Total instructions executed: 
   + icount.globalTotal());
   System.out.println(Method invocations: 
   + icount.globalMethodInvocations());
   }
 but when I try it on a real android phone, the  icount.globalTotal()
just return 0! Is there any body knows the reason??

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


[android-developers] Application is not properly running on motorola phones.

2011-12-01 Thread Pirate
I have an app called Cruise Finder running on Android market and
(now on Amazon market as well) successfully on all the phones other
than Motorola phones as users are complaining that in motorola phones
they can only see a black screen after the splash screen. You can see
the screen shot here: http://www.freeimagehosting.net/fdd44

You can download the app from android market or amazon appstore. And
if you have Motorola atrix or bionic or any other Motorola device
running android 2.2 or more than please run it. And if you find that
black screen issue then please provide the logcat to me. It will be
very helpful for us to resolve this issue.

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: Hardware requirement for 3.0 on Windows

2011-12-01 Thread Mahesh J
Even I faced this problem initially. The emulator would not even come
up. I has hw.ramSize: 1024
What I did was when I boot windows, I first open the emulator by using
the avd manager from command line.
Only then I start my other applications, otherwise windows does not
allocated memory to emulator and the emulator does not come up.
But since I use 1gb of ram for emulator, my windows runs very slow. So
I had to bargain with windows and emulator.

I have 3gb of ram, since I develop and test on the same machine, I use
hw.ramSize: 768 as the ram size for emulator.
There is no minimum ram specified for emulator as far as I know
(correct me if I am wrong).
What you do is experiment with your ram size parameter from 256, 512,
768...,  and also do not start any applications when you start
windows, start the emulator first
and then other applications. See which setting is best for the
emulator and windows.

On Nov 30, 2:57 pm, Manish Garg mannishga...@gmail.com wrote:
 Hi All,

 I am trying to run my application on android 3.0 emulator on  windows
 machine having window 7 OS. It is very slow. Sometime application is
 not getting started. Is there any specific hardware requriement like
 RAM size for android 3.0.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Push Notification Debugging

2011-12-01 Thread Manoj singh
Hi ,

I am trying to apply push notification on my app using c2dm ,and i
haven't find any bug or warning .and sender show 200or message send
successful.
Please tell me how can i debug the problem .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2011-12-01 Thread nixon nabulas
I use windows 7 64 bit. I don't use any poxy for my net connection. i
also turn off firewall. I can also see the xml file in web browser.
can anyone help me about it?? BTW i install some other api in sdk few
months ago now i want to install api 8 but this error show. now i
uninstall the sdk now i'm empty :( ..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Future Wifi Direct service discovery in Android 4.0

2011-12-01 Thread muhamad yamin yamin 2_dsx
Thx

On 2011 Nov 30 05:55, Irfan Sheriff isher...@gmail.com wrote:

Service discovery is not supported yet - device discovery and connection
set up is.

Thanks



On Tue, Nov 29, 2011 at 2:15 AM, Sheph ishai...@gmail.com wrote:

 Hello ,

 I would like to...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers g...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] In-app purchasing server side API?

2011-12-01 Thread Tristan Waddington
Hey All,

We're developing a bookshelf and comic-reader application that,
ideally, will offer digital comics for purchase in-app. We already
have a similar iOS application and a webstore. After reading over the
Android Market in-app purchasing documentation, there does not seem to
be any way to manage your in-app product list via an API.

We have over one thousand products to manage and this list grows
weekly. Our team is small and dedicating resources to keep a product
list of this size updated on a regular basis is extremely difficult
and error prone. This process would be made much easier if our
webserver could POST a signed list of products to an Android Market
API endpoint and update our in-app product list as a daily batch job.
Additionally, an API endpoint that would return a list of products
would be ideal as well.

Are there any plans to implement such an API?

Barring that, some sort of scheduled price changes for in-app products
would be a huge help, as we run weekly sales.

Thank you!

--
Tristan Waddington
tristan.wadding...@gmail.com

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


[android-developers] Layout problem related to RelativeView and ListView

2011-12-01 Thread Ren Wen shan
Hi,

I'm trying to make a layout that contains a List and a button.
To make the button on the bottom, I'm using

 android:layout_alignParentBottom=true
 android:gravity=center|bottom

in a RelativeView


It works fine when the list is short, however, once the length of the list
beyond the screen's length, the list will be hided by the button (as the
attachment shows).


What I want are:
1. Keep the button on bottom
2. Keep the list above the button
3. Use relative position to keep the program's flexibility

Could you give some suggestions?


API Level = 13
Hardware: ASUS Eee PAD Transformer

-- 
renws1...@gmail.com

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

[android-developers] Layout problem related to RelativeView and ListView

2011-12-01 Thread Vincent
Hi,

I'm trying to make a layout that contains a List and a button.
To make the button on the bottom, I'm using

 android:layout_alignParentBottom=true
 android:gravity=center|bottom

in a RelativeView


It works fine when the list is short, however, once the length of the
list beyond the screen's length, the list will be hided by the button
(as the link pic shows).


What I want are:
1. Keep the button on bottom
2. Keep the list above the button
3. Use relative position to keep the program's flexibility

Could you give some suggestions?


API Level = 13
Hardware: ASUS Eee PAD Transformer

http://tinypic.com/r/10qcf1d/5

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


[android-developers] About VCardComoser

2011-12-01 Thread chenyu xu
Hi All:

I am reading and debuging Contacts source code now. But I am
very confusing about ExportVCardActivity.java,
In ActualExportThread class, I can't see anything about the contacts'
data related to the VCardComoser object,
how do they combined the contacts' data and VCardComoser object? I
want to implement a filter that can filter
the contacts' data depend on some conditions, what should I do? Thanks
very much if someone could help me!


source code:
  VCardComposer composer = null;
try {
OutputStream outputStream = null;
try {
outputStream = new
FileOutputStream(mExportingFileName);
} catch (FileNotFoundException e) {
final String errorReason =
 
getString(R.string.fail_reason_could_not_open_file,
mExportingFileName, e.getMessage());
shouldCallFinish = false;
mHandler.post(new
ErrorReasonDisplayer(errorReason));
return;
}

// composer = new
VCardComposer(ExportVCardActivity.this, mVCardTypeStr, true);
int vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
composer = new VCardComposer(ExportVCardActivity.this,
vcardType, true);

composer.addHandler(composer.new
HandlerForOutputStream(outputStream));

if (!composer.init()) {
final String errorReason =
composer.getErrorReason();
Log.e(LOG_TAG, initialization of vCard composer
failed:  + errorReason);
final String translatedErrorReason =
translateComposerError(errorReason);
mHandler.post(new ErrorReasonDisplayer(
 
getString(R.string.fail_reason_could_not_initialize_exporter,
translatedErrorReason)));
shouldCallFinish = false;
return;
}

int size = composer.getCount();

if (size == 0) {
mHandler.post(new ErrorReasonDisplayer(
 
getString(R.string.fail_reason_no_exportable_contact)));
shouldCallFinish = false;
return;
}

mProgressDialog.setProgressNumberFormat(
 
getString(R.string.exporting_contact_list_progress));
mProgressDialog.setMax(size);
mProgressDialog.setProgress(0);

while (!composer.isAfterLast()) {

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] HTTP connection with remote database from android

2011-12-01 Thread sahil
  public void tryLogin() {
Log.v(TAG, Trying to Login);
EditText etxt_user = (EditText)
findViewById(R.id.txt_username);
EditText etxt_pass = (EditText)
findViewById(R.id.txt_password);
String username = etxt_user.getText().toString();
String password = etxt_pass.getText().toString();
HttpClient client = new DefaultHttpClient();
HttpPost httppost = new HttpPost(http://localhost:8084/
authen/register.jsp);
List BasicNameValuePair  nvps = new ArrayList
BasicNameValuePair ();
nvps.add(new BasicNameValuePair(username, username));
nvps.add(new BasicNameValuePair(pass, password));
try {
  UrlEncodedFormEntity p_entity = new
UrlEncodedFormEntity(nvps,utf-8);

  httppost.setEntity(p_entity);

  HttpResponse response = client.execute(httppost);
  Log.v(TAG, Sahil Sahil Sahil);

  Log.v(TAG, response.getStatusLine().toString());
  HttpEntity responseEntity = response.getEntity();
  Log.v(TAG, Set response to responseEntity);

  SAXParserFactory spf =
SAXParserFactory.newInstance();
  SAXParser sp = spf.newSAXParser();
  XMLReader xr = sp.getXMLReader();
  LoginHandler myLoginHandler = new LoginHandler();

  xr.setContentHandler(myLoginHandler);
  xr.parse(retrieveInputStream(responseEntity));
  ParsedLoginDataSet parsedLoginDataSet =
myLoginHandler.getParsedLoginData();
  if
(parsedLoginDataSet.getExtractedString().equals(SUCCESS)) {
// Store the username and password in
SharedPreferences after the successful login
SharedPreferences.Editor
editor=mPreferences.edit();
editor.putString(UserName, username);
editor.putString(PassWord, password);
editor.commit();
Message myMessage=new Message();
myMessage.obj=SUCCESS;
handler.sendMessage(myMessage);
  } else
if(parsedLoginDataSet.getExtractedString().equals(ERROR)) {
Intent intent = new
Intent(getApplicationContext(), LoginError.class);
intent.putExtra(LoginMessage,
parsedLoginDataSet.getMessage());
startActivity(intent);
removeDialog(0);
  }
} catch (Exception e)
{
  Intent intent = new Intent(getApplicationContext(),
LoginError.class);
  intent.putExtra(LoginMessage, Unable to login);
  startActivity(intent);
  removeDialog(0);
}



This is my login method , its catching exception. I'm not able to
login into my siteas it says unable to login

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Binder invocation to an incorrect interface

2011-12-01 Thread Siva Prasad
Hi,

I'm new to Android.
Could you please let us know the reasons for the below errors?

a. While getting the system Service.
Parcel  :  enforceInterface() expected 'android.os.IPowerManager'
but read ' '

b. Succesfully got the system service, while trying to call one of the
interface.
AndroidRuntime: java.lang.SecurityException: Binder invocation to an
incorrect interface

Thanks,
Siva


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 - SlidingDrawer handle at the right top corner

2011-12-01 Thread Rohith Salim
I am working with the android Sliding Drawer and have it working more
or less. However, I am running into a problem.

I want it to slide from the right to left which works fine (set
orientation to horizontal). However, the handle for the sliding drawer
is at the center right edge of the screen. Is there anyway I can
position it at the top right hand corner of the screen? Perhaps with a
padding fo 20dp at the top?

There is a SlidingDrawer 'android:topOffset' property. However, this
does not seem to do anything irrespective of whether I put the
property on the slidingDrawer tag itself or on the handle (ImageView)
tag.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Contact is removed but an exception is thrown in SyncAdapter

2011-12-01 Thread herschel
Hi. Why is this code throwing a NullPointerException when called from
a Sync Adapter?

final ContentResolver resolver = context.getContentResolver();
final BatchOperation batchOperation = new 
BatchOperation(context,
resolver);
long rawContactId =
cursorContacts.getInt(cursorContacts.getColumnIndex(ContactsContract.Contacts._ID));


batchOperation.add(ContactOperations.newDeleteCpo(ContentUris.withAppendedId(RawContacts.CONTENT_URI,
rawContactId), true).build());
batchOperation.execute(); //this throws the exception

where cursorContacts is the cursor for the contacts to be deleted and
newDeleteCpo is defined like this:

public static ContentProviderOperation.Builder newDeleteCpo(Uri uri,
boolean yield) {
return
ContentProviderOperation.newDelete(addCallerIsSyncAdapterParameter(uri)).withYieldAllowed(yield);
}

The value returned by
cursorContacts.getInt(cursorContacts.getColumnIndex(ContactsContract.Contacts._ID));
seems correct.
The contact is not shown any-more after executing the command.
The exception is weird: NullPointerException with cause =
NullPointerException  with cause = NullPointerException


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Droid-fu BetterAsyncTask

2011-12-01 Thread Jonathan Da SIlva Santos
Hello, does anyone have any sample BetterAsyncTask from Droid-fu API? I
trying to use it...

Thank You!

-- 
Jonathan Da Silva Santos
---
E-mail: cont...@jonathandasilvasantos.com
Celular: (11) 8116-3718 (TIM/SP)
Website: http://www.jonathandasilvasantos.com
Twitter: http://twitter.com/JonathanProfile
---
Antes de imprimir este e-mail, lembre-se da sua responsabilidade ambiental.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] minSdkVersion and update app on market

2011-12-01 Thread ZSimo Labs
Hello,

I have a doubt:

I currently have on market an app with minSdkVersion = 4. I have
introduced new features and want to set up minSdkVersion to 7.

After loading the new release on the market, those who have already
installed my app on a smartphone with Android 1.6 does not just
receive the update and continue to use the old version or download the
update and the app will crash?

Thanks

Simone

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Droid-fu BetterAsyncTask

2011-12-01 Thread Mukesh Srivastav
I am Good at Async Task, but surely, i have never heard about
BetterAsyncTask.

any ways,below is my article on AsyncTask, might be helpful to you.


One of My blog on Android using one Generic ASYNCTask for all the
Activities.

http://www.androidsnippets.com/asyntask-in-android

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

On Thu, Dec 1, 2011 at 6:22 AM, Jonathan Da SIlva Santos 
cont...@jonathandasilvasantos.com wrote:

 Hello, does anyone have any sample BetterAsyncTask from Droid-fu API? I
 trying to use it...

 Thank You!

 --
 Jonathan Da Silva Santos
 ---
 E-mail: cont...@jonathandasilvasantos.com
 Celular: (11) 8116-3718 (TIM/SP)
 Website: http://www.jonathandasilvasantos.com
 Twitter: http://twitter.com/JonathanProfile
 ---
 Antes de imprimir este e-mail, lembre-se da sua responsabilidade ambiental.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] minSdkVersion and update app on market

2011-12-01 Thread Mukesh Srivastav
Hi Simone,

The Best Way to receive the update of our application is,

While installing the application from the Android market at the end, it
provides you a check which says that , 'Allow automatic update', if user
clicks there the application will get notify and it get update
automatically.

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

On Wed, Nov 30, 2011 at 3:05 PM, ZSimo Labs zsimol...@gmail.com wrote:

 Hello,

 I have a doubt:

 I currently have on market an app with minSdkVersion = 4. I have
 introduced new features and want to set up minSdkVersion to 7.

 After loading the new release on the market, those who have already
 installed my app on a smartphone with Android 1.6 does not just
 receive the update and continue to use the old version or download the
 update and the app will crash?

 Thanks

 Simone

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] HTTP connection with remote database from android

2011-12-01 Thread Mukesh Srivastav
Please put your exception log here.  it might due  the local,  you need to
have a valid url, the application will not work on local host.

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



On Wed, Nov 30, 2011 at 12:59 PM, sahil shlli...@gmail.com wrote:

  public void tryLogin() {
Log.v(TAG, Trying to Login);
EditText etxt_user = (EditText)
 findViewById(R.id.txt_username);
EditText etxt_pass = (EditText)
 findViewById(R.id.txt_password);
String username = etxt_user.getText().toString();
String password = etxt_pass.getText().toString();
HttpClient client = new DefaultHttpClient();
HttpPost httppost = new HttpPost(http://localhost:8084/
 authen/register.jsp);
List BasicNameValuePair  nvps = new ArrayList
 BasicNameValuePair ();
nvps.add(new BasicNameValuePair(username, username));
nvps.add(new BasicNameValuePair(pass, password));
try {
  UrlEncodedFormEntity p_entity = new
 UrlEncodedFormEntity(nvps,utf-8);

  httppost.setEntity(p_entity);

  HttpResponse response = client.execute(httppost);
  Log.v(TAG, Sahil Sahil Sahil);

  Log.v(TAG, response.getStatusLine().toString());
  HttpEntity responseEntity = response.getEntity();
  Log.v(TAG, Set response to responseEntity);

  SAXParserFactory spf =
 SAXParserFactory.newInstance();
  SAXParser sp = spf.newSAXParser();
  XMLReader xr = sp.getXMLReader();
  LoginHandler myLoginHandler = new LoginHandler();

  xr.setContentHandler(myLoginHandler);
  xr.parse(retrieveInputStream(responseEntity));
  ParsedLoginDataSet parsedLoginDataSet =
 myLoginHandler.getParsedLoginData();
  if
 (parsedLoginDataSet.getExtractedString().equals(SUCCESS)) {
// Store the username and password in
 SharedPreferences after the successful login
SharedPreferences.Editor
 editor=mPreferences.edit();
editor.putString(UserName, username);
editor.putString(PassWord, password);
editor.commit();
Message myMessage=new Message();
myMessage.obj=SUCCESS;
handler.sendMessage(myMessage);
  } else
 if(parsedLoginDataSet.getExtractedString().equals(ERROR)) {
Intent intent = new
 Intent(getApplicationContext(), LoginError.class);
intent.putExtra(LoginMessage,
 parsedLoginDataSet.getMessage());
startActivity(intent);
removeDialog(0);
  }
} catch (Exception e)
{
  Intent intent = new Intent(getApplicationContext(),
 LoginError.class);
  intent.putExtra(LoginMessage, Unable to login);
  startActivity(intent);
  removeDialog(0);
}



 This is my login method , its catching exception. I'm not able to
 login into my siteas it says unable to login

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

Re: [android-developers] Measuring FPS method

2011-12-01 Thread Daniel Drozdzewski
On 1 December 2011 10:46, Pete Houston pete.houston.17...@gmail.com wrote:
 I'm currently trying to customize Google Android Launcher; however, on
 home screen, when I try to fling left-right to move between screens,
 it doesn't seem to be smooth.

 I'm wondering how to calculate the frame per seconds when I fling
 screen left-right?
 Is there any idea on how to improve Google Android Launcher
 performance?

 I'm working on 2.3.3 Gingerbread.

 Really appreciate your support!


Pete,

How do you paint the wallpaper?

You could write your custom extension of Drawable class and in its
draw() method, you could capture the drawing events, thereby
increasing the frame count. Then all you have to do is to have timer
task that is called every second, to calculate FPS and reset the frame
counter.

Your performance will depend on how much actual painting happens on
the screen. If the transition is very quick (say shift of 480pixels in
0.5 seconds), you could optimise it by not painting everything.

Have a look at performance optimisations in ListView, which does quite
lot of tricks to speed-up scrolling.


Daniel












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



-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Missing camera Button in Gallery on SamSung Galaxy with Android 2.x.x

2011-12-01 Thread Kumar Bibek
Nope it's not possible to create that button if it's not available on that
screen.

What's the OS version? It's a little hard to believe that the new OS on
Samsung Galaxy wouldn't have that button.

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



On Thu, Dec 1, 2011 at 8:32 AM, Asterian75 asteria...@gmail.com wrote:

 Hello

 I am using a web form to send a file to my server from a web appli
 When i click Select file, it s working and i see a menu with several
 device option
 I choose Gallery, and i can see my previous picture but i don t have
 the top right corner button CAMERA


 In this screenShot, you can see this botton in the top right corner


 http://www.completeguides.net/@api/deki/files/298/=gallery_splash.png?revision=2

 But in the SAMSUNG GALAXY i don t have this button, i can only select
 a existing picture but i cannot create one without leave the
 application

 Can you help me. Is it possible to activate this botton, maybe
 changing some configuration file to the Galley Application (some
 AndroidManifest.xml file ???)

 I hope you have some idea i could try

 Thanks

 Lionel

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Saving Findings to a Txt file

2011-12-01 Thread Kumar Bibek
Are you looking for writing to file tips or you want to know how to capture
the sensor data?

I am assuming that you want to know how to write to a file, since you said
that you already display those values.

Check out this link.
http://developer.android.com/reference/java/io/FileWriter.html

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



On Wed, Nov 30, 2011 at 8:08 PM, Aaron Chung aaron.cwen...@gmail.comwrote:

 Hello, this is my first time using android developers. Hope you people
 can help me out with Questions. Thanks a million.

 I had successfully wrote a programme that can display the built-in
 sensors (accelerometer and gyroscope) values on my phone.

 How can I create a button that allow me to capture and write the
 values into a txt file once its pressed? so that I open up the list of
 data with my computer using a notepad or ect.

 some tips and links will be helpful. :)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Need A web xml parsing code... Urgently please

2011-12-01 Thread Kumar Bibek
The question isn't very clear. Anyway, look at examples and use these
search keywords.
xml parsing android

You will get quite a few examples.

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



On Wed, Nov 30, 2011 at 5:39 PM, Aniket Kumbhar
aniket.s.kumb...@gmail.comwrote:

 Need A web xml parsing code... Urgently 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 specify the resource to get from R.res.drawable dinamically?

2011-12-01 Thread saex
I have some videos stored dinamically on R.res.raw.

For example, I can acces to the video called v.mp4 with this line of
code:

String fileName = android.resource:// + this.getPackageName() + /
+ R.raw.v;



OK, but, i will recibe the video that i must open with a string (v).
Then, i tryed to do this, but it didn't works:

String fileName = android.resource:// + this.getPackageName() + /
+ R.raw+.v;

I can't do that, i got error on R.raw



I also tryed with this, but it doesn't works:

String fileName = android.resource:// + this.getPackageName() + /
res/raw/+v.mp4;


How can i solve 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] Anyone help me! Send Mediarecorder video to server through TCP socket and server save it in a file????

2011-12-01 Thread muhammad.ume...@hotmail.com
Hi,
  I am succeed to record video through Mediarecorder on SD card
but i want to send this video to pc server without writing to SD card.
I search it and i found the parcelFileDescriptor is the way to send
video to TCP socket
but i don't know how to receive it on server side please explain it.
 here is my client side code

socket = new Socket(192.168.15.220, );
ParcelFileDescriptor  pfd =
ParcelFileDescriptor.fromSocket(socket);
   recorder = new MediaRecorder();
 
recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
 
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);

   recorder.setOutputFile(pfd.getFileDescriptor());

 
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
   mPreview = new Preview(VideoRecorder.this,recorder);

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
   setContentView(mPreview);

I want to receive it on server side and save it to file.Is it
possible?  Please help me. I want a server side code.

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] Re: minSdkVersion and update app on market

2011-12-01 Thread tobias
Haven't tested this, but the upload function of the Market tells you
in this case something like:

The version of the App that you are uploading is available for less
devices than the previous version that you've published. Users of
devices that are not supported by your latest version will therefore
not get an update.

So I'd guess Android 1.6 users will simply not receive your latest
version, nor will they be notified of the update.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: IllegalState when creating interface with Android 4.0's VpnService.Builder

2011-12-01 Thread Kristian


On Nov 30, 9:07 pm, James Black planiturth...@gmail.com wrote:
 Is your code running on the UI thread?


No, my code is running on a separate thread created by my VpnService
class. However, I figured out what was wrong. Turned out my ICS
version does not insert tun.ko automatically. When I did the insmod
myself and ran the application, it all worked perfectly.

-Kristian

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 can i specify the resource to get from R.res.drawable dinamically?

2011-12-01 Thread skink


saex wrote:
 I have some videos stored dinamically on R.res.raw.

 For example, I can acces to the video called v.mp4 with this line of
 code:

 String fileName = android.resource:// + this.getPackageName() + /
 + R.raw.v;



 OK, but, i will recibe the video that i must open with a string (v).
 Then, i tryed to do this, but it didn't works:

 String fileName = android.resource:// + this.getPackageName() + /
 + R.raw+.v;

 I can't do that, i got error on R.raw



 I also tryed with this, but it doesn't works:

 String fileName = android.resource:// + this.getPackageName() + /
 res/raw/+v.mp4;


 How can i solve this?

write your custom ContentProvider, its just half of dozen lines id
code

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: problem parsing the package

2011-12-01 Thread rachana govilkar
hey now am capturing video n getting same error..
Unable to instantiate activity ComponentInfo{com.privacygram.activity/
com.privacygram.activity.VideoCapture}:
java.lang.InstantiationException:
com.privacygram.activity.VideoCapture
plz help me...

On Nov 30, 4:41 pm, rachana govilkar rachana.govil...@gmail.com
wrote:
 hey now i hav a problem working on Create Contact.i 
 usedhttp://developer.android.com/guide/topics/providers/content-providers...
 this link
 but as per given there i could create contact statically
 but i need to create dynamically as android built-in create contact
 functionality
 n also tell me when u save the contact u do save it in Database or
 smthing else??
 any help is appreciated.

 On Nov 29, 5:10 pm, rachana govilkar rachana.govil...@gmail.com
 wrote:







  Hey Its Working...
  yaaay!
  i knw it must hv been very simple for u but for me its a start
  1st android program n exception was comingu can guess how sick i
  was feeling...
  but no more sick now
  i just need to focus more on itthnk u for help

  On Nov 29, 4:08 pm, rachana govilkar rachana.govil...@gmail.com
  wrote:

   above described was 1 way i tried.
   it was to develop customized camera feature as given in Android guide/
   camera...
   i also tried another way of using existing camera feature but am
   getting NullPointerException
   can u tel where am going wrong??

   On Nov 29, 10:13 am, rachana govilkar rachana.govil...@gmail.com
   wrote:

hey this is my ImageCapture.java..hope u get idea.

package com.privacygram.activity;

import android.content.Context;
import android.graphics.PixelFormat;
import android.hardware.Camera;
import android.hardware.Camera.Parameters;
import android.hardware.Camera.PictureCallback;
import android.hardware.Camera.ShutterCallback;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class ImageCapture extends SurfaceView{

        SurfaceHolder previewHolder;
        Camera camera;
        protected PictureCallback raw;
        protected ShutterCallback shutter;
        protected PictureCallback postview;
        protected PictureCallback jpeg;

        public ImageCapture(Context context) {
                super(context);
                // TODO Auto-generated constructor stub
                previewHolder = this.getHolder();

                
previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
                 previewHolder.addCallback(surfaceHolderListener);
        }

        SurfaceHolder.Callback surfaceHolderListener = new
        SurfaceHolder.Callback()
                {
                   public void surfaceCreated(SurfaceHolder holder)
                   {
                           camera=Camera.open();
                           try {
                           camera.setPreviewDisplay(previewHolder);
                           }catch (Exception E ){ }
                   }
                   public void surfaceDestroyed(SurfaceHolder arg0)
                   {
                           camera.stopPreview();
                           camera.release();
                   }
                   public void surfaceChanged(SurfaceHolder holder, int
format,
        int width, int height)
                   {
                           Parameters params = camera.getParameters();
                           params.setPreviewSize(width, height);
                           params.setPictureFormat(PixelFormat.JPEG);
                           camera.setParameters(params);
                           camera.startPreview();

                           camera.takePicture(shutter, raw, postview, 
jpeg);
                           camera.stopPreview();
                           camera.release();
                   }
                };

}

On Nov 28, 6:23 pm, Mark Murphy mmur...@commonsware.com wrote:

 InstantiationException can mean that the activity class is not public
 or lacks a public constructor with the appropriate signature.

 On Mon, Nov 28, 2011 at 8:07 AM, Raghav Sood

 raghavs...@androidactivist.org wrote:
  There is a problem in your instantiating your ImageCapture class. 
  Post the
  first 30 lines or so, and you may get some help.
  Thanks

  On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar
  rachana.govil...@gmail.com wrote:

  when i test on emulator it gives me error as Your application has
  stopped unexpectedly.
  n LogCat is:-

  11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main
  11-28 18:10:06.265: E/AndroidRuntime(313): 
  java.lang.RuntimeException:
  Unable to instantiate activity 
  ComponentInfo{com.privacygram.activity/
  

[android-developers] Re: How can i specify the resource to get from R.res.drawable dinamically?

2011-12-01 Thread skink


saex wrote:
 I have some videos stored dinamically on R.res.raw.

 For example, I can acces to the video called v.mp4 with this line of
 code:

 String fileName = android.resource:// + this.getPackageName() + /
 + R.raw.v;



 OK, but, i will recibe the video that i must open with a string (v).
 Then, i tryed to do this, but it didn't works:

 String fileName = android.resource:// + this.getPackageName() + /
 + R.raw+.v;

 I can't do that, i got error on R.raw



 I also tryed with this, but it doesn't works:

 String fileName = android.resource:// + this.getPackageName() + /
 res/raw/+v.mp4;


 How can i solve this?

did you try to find a valid format instead of blind trial and-error
approach?

after one minute googling I got this:
http://androidbook.blogspot.com/2009/08/referring-to-android-resources-using.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


Re: [android-developers] netcfg - Cannot perform requested

2011-12-01 Thread Jim Graham
On Tue, Nov 29, 2011 at 11:49:50PM -0800, Ashwini Singh wrote:
 Hi all,
 
 I'm getting problem with running few commands (such as - netcfg,
 ifconfig --help etc) over android shell accessed via minicom.

Then you should post the relevant bits of code for you app (the part
of your app that starts the shell and attempts to run these commands), as
well as the relevant logcat data showing where and why it's failing.

Then yo might get some help here.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

sigh, once upon a time T-1 was fast
   --seen in alt.sysadmin.net-abuse.email

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] help me! how to send video to TCP socket server??

2011-12-01 Thread Jim Graham
On Wed, Nov 30, 2011 at 10:12:17PM +0715, muhamad yamin yamin 2_dsx wrote:
 On 2011 Nov 30 22:26, muhammad.ume...@hotmail.com 
 muhammad.ume...@hotmail.com wrote:
 
 I am succeed to record video through Mediarecorder on SD card
 but i want to send this video to pc server without writing to SD card.
 I search it and i found the parcelFileDescriptor is the way to send
 video to TCP socket
 but i don't know how to receive it on server side please explain it.

You need to write a program for the server side that implements the same
protocol as the one on your client side.  That, or use an existing
network protocol and the daemon for it.

Beyond that, unless your PC is somehow running Android, you'll need to
find the right forum in which to ask your question.  Hint:  this is NOT
that group.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

sigh, once upon a time T-1 was fast
   --seen in alt.sysadmin.net-abuse.email

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

2011-12-01 Thread Mark Murphy
Questions about the firmware belong on http://source.android.com.

On Thu, Dec 1, 2011 at 4:13 AM, chenyu xu xal...@gmail.com wrote:
 Hi All:

        I am reading and debuging Contacts source code now. But I am
 very confusing about ExportVCardActivity.java,
 In ActualExportThread class, I can't see anything about the contacts'
 data related to the VCardComoser object,
 how do they combined the contacts' data and VCardComoser object? I
 want to implement a filter that can filter
 the contacts' data depend on some conditions, what should I do? Thanks
 very much if someone could help me!


 source code:
              VCardComposer composer = null;
            try {
                OutputStream outputStream = null;
                try {
                    outputStream = new
 FileOutputStream(mExportingFileName);
                } catch (FileNotFoundException e) {
                    final String errorReason =

 getString(R.string.fail_reason_could_not_open_file,
                                mExportingFileName, e.getMessage());
                    shouldCallFinish = false;
                    mHandler.post(new
 ErrorReasonDisplayer(errorReason));
                    return;
                }

                // composer = new
 VCardComposer(ExportVCardActivity.this, mVCardTypeStr, true);
                int vcardType = VCardConfig.VCARD_TYPE_V30_GENERIC;
                composer = new VCardComposer(ExportVCardActivity.this,
 vcardType, true);

                composer.addHandler(composer.new
 HandlerForOutputStream(outputStream));

                if (!composer.init()) {
                    final String errorReason =
 composer.getErrorReason();
                    Log.e(LOG_TAG, initialization of vCard composer
 failed:  + errorReason);
                    final String translatedErrorReason =
                            translateComposerError(errorReason);
                    mHandler.post(new ErrorReasonDisplayer(

 getString(R.string.fail_reason_could_not_initialize_exporter,
                                    translatedErrorReason)));
                    shouldCallFinish = false;
                    return;
                }

                int size = composer.getCount();

                if (size == 0) {
                    mHandler.post(new ErrorReasonDisplayer(

 getString(R.string.fail_reason_no_exportable_contact)));
                    shouldCallFinish = false;
                    return;
                }

                mProgressDialog.setProgressNumberFormat(

 getString(R.string.exporting_contact_list_progress));
                mProgressDialog.setMax(size);
                mProgressDialog.setProgress(0);

                while (!composer.isAfterLast()) {

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Binder invocation to an incorrect interface

2011-12-01 Thread Mark Murphy
You should not be getting either of these from an Android SDK
application that is properly using PowerManager. If you are
experimenting with the source code, please visit
http://source.android.com for assistance.

On Thu, Dec 1, 2011 at 3:30 AM, Siva Prasad sivaprasad...@gmail.com wrote:
 Hi,

 I'm new to Android.
 Could you please let us know the reasons for the below errors?

 a. While getting the system Service.
 Parcel  :  enforceInterface() expected 'android.os.IPowerManager'
 but read ' '

 b. Succesfully got the system service, while trying to call one of the
 interface.
 AndroidRuntime: java.lang.SecurityException: Binder invocation to an
 incorrect interface

 Thanks,
 Siva


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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handler().postDelayed() question

2011-12-01 Thread Mark Murphy
On Wed, Nov 30, 2011 at 3:26 PM, JBirdVegas jbirdve...@gmail.com wrote:
 Ok I'm working on a splash screen that pauses for 1.5 seconds and
 works great, except for one thing.
 Once the timer is started in onCreate if the configuration
 (orientation) changes then the timer gets reset and then end result is
 it starts my ParchmentActivity.java twice.  How can I prevent the
 handler from sending the intent twice?

If savedInstanceState is null in onCreate(), schedule your Runnable,
otherwise, do not. The savedInstanceState parameter will be non-null
if your activity is being created as a result of a configuration
change.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Layout problem related to RelativeView and ListView

2011-12-01 Thread Mark Murphy
Use android:layout_alignParentBottom=true on the button. Use
android:layout_above=... on the list, where ... is the android:id of
the button.

On Tue, Nov 29, 2011 at 8:57 PM, Ren Wen shan renws1...@gmail.com wrote:
 Hi,

 I'm trying to make a layout that contains a List and a button.
 To make the button on the bottom, I'm using

  android:layout_alignParentBottom=true
  android:gravity=center|bottom

 in a RelativeView


 It works fine when the list is short, however, once the length of the list
 beyond the screen's length, the list will be hided by the button (as the
 attachment shows).


 What I want are:
 1. Keep the button on bottom
 2. Keep the list above the button
 3. Use relative position to keep the program's flexibility

 Could you give some suggestions?


 API Level = 13
 Hardware: ASUS Eee PAD Transformer

 --
 renws1...@gmail.com

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



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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Using Spinner as a Button.

2011-12-01 Thread Mark Murphy
Just use Button, please. You are welcome to experiment with
backgrounds and styles to adjust the look of Button to match what you
want.

On Thu, Dec 1, 2011 at 5:27 AM, Pocket poketo7...@gmail.com wrote:
 I know this question is very silly. But I want to use Spinner just as
 a Button.
 I tried to turn of the dialog with layout file, but it doesn't work
 for me.
 And also I tried to handle OnTouchListener and OnClickListener of
 Spinner, Then I got error about not to set OnClickListener of
 AdoptView.
 Is there any way to use Spinner just as a Button?

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


Re: [android-developers] Android Framework

2011-12-01 Thread Mark Murphy
On Wed, Nov 30, 2011 at 12:23 AM, Bhagavathram D.V
bhagavath...@datawaysolution.com wrote:
 1 . Can we Create our own framework in Android  ?

That depends on what you mean by a framework.

 2. How to call the C  CPP library in android Application (java
 code)

That depends on what you mean by the C  CPP library. If this is
your own C/C++ code, use the NDK.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Update to ADT 15, SDK14, SDK tools 15 and SDK platformTool 9 = New project doens't run o_O

2011-12-01 Thread Android2ee
Hello,In fact, in found out a lead. There is no class file generated
in my Bin folder. So I go in the window explorer and change the read
only and security parameters of the folder. I do a clean and update,
the bin classes are generated in bin\classes but my folder com (my
package begins by com...) still doesn't exist. So I copy paste them
from bin\classes to bin. Then I launch, and the usual same strange
message Your project contains error(s), please fix them before
running the application.The generated apk is 0K size.Any idea?
Env:Windows 7, Eclipse Indigo (but with Galileo it's the same).

On 1 déc, 10:24, Android2ee mathias.seguy...@gmail.com wrote:
 Hello,
 Yesterday i update my eclipse to the last version of Android.
 Then I created a new project and run it. The compilation is ok, but
 few second after Eclipse displays the message: Your project contains
 error. Please fix them...
 Notice, i do not change anything in the generated project (I used the
 Android wizard to create it).
 Stranger, in the Eclipse views Error Log and Problem there are no
 message, nothing, not a line, nada, void.
 Worst, my previous project runs like they ever do...

 Anyboody else facing such issue?
 Somebody have an idea how to fix that?

 Thanks in advance for your answers.
 Regards.

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


Re: [android-developers] Where has the menu button gone on the Actionbar?

2011-12-01 Thread Mark Murphy
On Wed, Nov 30, 2011 at 12:17 AM, FermiL fermi...@gmail.com wrote:
 I want an ActionBar with a menu button on upper right, but I cannot
 see it in my app on ICS emulator. It seems that the following png
 image has it on upper right of screen.
  http://www.android.com/images/ics/contact-email-sm.png

 Maybe the menu button on ActionBar is forcibly concealed on devices
 with hardware keys? and then so how to I create the emulator of ICS
 device with no hardware keys like the GalaxyNexus?

I haven't figured out how to do this. You would think that adding the
Hardware Back/Home keys hardware property and setting it to no
would work, but it doesn't. For the moment, I am chalking this up to
an emulator bug.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] types of emulators

2011-12-01 Thread Mark Murphy
On Thu, Dec 1, 2011 at 4:09 AM, mohana priya gpriyara...@gmail.com wrote:
 Hello android developers.For Motorola,Samsung etc. is there different
 emulator for each in android.

Not usually.

 If so please tell me how to get the
 emulator for Motorola.

Motorola does not publish emulator images AFAIK. Use a regular Android
emulator image for Motorola devices.

For other Motorola-specific questions, please visit the MOTODEV forums
and ask there.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] i wanted Native Calendar, please let me know from where i can downloaded.

2011-12-01 Thread Mark Murphy
On Thu, Dec 1, 2011 at 2:23 AM, Rocky rkjhaw1...@gmail.com wrote:
 I got calendar
 from https://github.com/android/platform_packages_apps_calendar, but this
 source code has lots of error.

 Please let me know from where i will get it.

http://source.android.com

Note that this can only be built as part of the firmware. You cannot
build it as a standalone SDK application.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How can i specify the resource to get from R.res.drawable dinamically?

2011-12-01 Thread Latimerius
On Thu, Dec 1, 2011 at 1:11 PM, skink psk...@gmail.com wrote:


 saex wrote:
 I have some videos stored dinamically on R.res.raw.

 For example, I can acces to the video called v.mp4 with this line of
 code:

 String fileName = android.resource:// + this.getPackageName() + /
 + R.raw.v;



 OK, but, i will recibe the video that i must open with a string (v).
 Then, i tryed to do this, but it didn't works:

 String fileName = android.resource:// + this.getPackageName() + /
 + R.raw+.v;

 I can't do that, i got error on R.raw



 I also tryed with this, but it doesn't works:

 String fileName = android.resource:// + this.getPackageName() + /
 res/raw/+v.mp4;


 How can i solve this?

 did you try to find a valid format instead of blind trial and-error
 approach?

 after one minute googling I got this:
 http://androidbook.blogspot.com/2009/08/referring-to-android-resources-using.html

Or, perhaps Resources.getIdentifier() would solve your problem?

pskink's right, you should really do a bit more of your own research
before running for help to the list.

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


Re: [android-developers] Android documentation in PDF

2011-12-01 Thread Mark Murphy
On Thu, Dec 1, 2011 at 6:42 PM, SL ecp_...@my-rialto.com wrote:
 Is there somewhere the online Android developer documentation in PDF format
 I can download ?

No, sorry.

 It is easier to read and search without going online, I think.

A copy of the SDK documentation is available in your SDK, if you
choose to download it from the SDK Manager. This too is then offline.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Update to ADT 15, SDK14, SDK tools 15 and SDK platformTool 9 = New project doens't run o_O

2011-12-01 Thread Android2ee
Another element, when i create the project i have the following error
log:
Failed to load properties file for project 'AndroidTest'

No stack trace

associated to com.android.ide.eclipse.adt

If I try to open the file within Eclipse i have an out of synch
message, I have to open it using windows and then go back in eclipse
to see the file.


On 1 déc, 13:53, Android2ee mathias.seguy...@gmail.com wrote:
 Hello,In fact, in found out a lead. There is no class file generated
 in my Bin folder. So I go in the window explorer and change the read
 only and security parameters of the folder. I do a clean and update,
 the bin classes are generated in bin\classes but my folder com (my
 package begins by com...) still doesn't exist. So I copy paste them
 from bin\classes to bin. Then I launch, and the usual same strange
 message Your project contains error(s), please fix them before
 running the application.The generated apk is 0K size.Any idea?
 Env:Windows 7, Eclipse Indigo (but with Galileo it's the same).

 On 1 déc, 10:24, Android2ee mathias.seguy...@gmail.com wrote:







  Hello,
  Yesterday i update my eclipse to the last version of Android.
  Then I created a new project and run it. The compilation is ok, but
  few second after Eclipse displays the message: Your project contains
  error. Please fix them...
  Notice, i do not change anything in the generated project (I used the
  Android wizard to create it).
  Stranger, in the Eclipse views Error Log and Problem there are no
  message, nothing, not a line, nada, void.
  Worst, my previous project runs like they ever do...

  Anyboody else facing such issue?
  Somebody have an idea how to fix that?

  Thanks in advance for your answers.
  Regards.

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


[android-developers] Re: Update to ADT 15, SDK14, SDK tools 15 and SDK platformTool 9 = New project doens't run o_O

2011-12-01 Thread Android2ee
I found a workaround, i change my eclipse workspace and name it short
EAWS.
And then it works.
Is there a size to respect in workspace (path) name size?

On 1 déc, 14:26, Android2ee mathias.seguy...@gmail.com wrote:
 Another element, when i create the project i have the following error
 log:
 Failed to load properties file for project 'AndroidTest'

 No stack trace

 associated to com.android.ide.eclipse.adt

 If I try to open the file within Eclipse i have an out of synch
 message, I have to open it using windows and then go back in eclipse
 to see the file.

 On 1 déc, 13:53, Android2ee mathias.seguy...@gmail.com wrote:







  Hello,In fact, in found out a lead. There is no class file generated
  in my Bin folder. So I go in the window explorer and change the read
  only and security parameters of the folder. I do a clean and update,
  the bin classes are generated in bin\classes but my folder com (my
  package begins by com...) still doesn't exist. So I copy paste them
  from bin\classes to bin. Then I launch, and the usual same strange
  message Your project contains error(s), please fix them before
  running the application.The generated apk is 0K size.Any idea?
  Env:Windows 7, Eclipse Indigo (but with Galileo it's the same).

  On 1 déc, 10:24, Android2ee mathias.seguy...@gmail.com wrote:

   Hello,
   Yesterday i update my eclipse to the last version of Android.
   Then I created a new project and run it. The compilation is ok, but
   few second after Eclipse displays the message: Your project contains
   error. Please fix them...
   Notice, i do not change anything in the generated project (I used the
   Android wizard to create it).
   Stranger, in the Eclipse views Error Log and Problem there are no
   message, nothing, not a line, nada, void.
   Worst, my previous project runs like they ever do...

   Anyboody else facing such issue?
   Somebody have an idea how to fix that?

   Thanks in advance for your answers.
   Regards.

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


[android-developers] Re: write files

2011-12-01 Thread Jeremy Dagorn
Hi,
You could create a folder in the external storage and store your file
in it no? You wont need any special authorization as far as I
remember.
Best

On Nov 30, 4:31 am, DaltonGR arisdoxa...@gmail.com wrote:
 Hello, i have an application that gets a file(doc or pdf) from a .NET
 web service. Were can i save the file, it will be permanently be
 saved, so i can open it from within my application. I save it on /data/
 data/package/files, but when i open it from an intent it says
 permission denied. thanks again

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: In App purchase in android

2011-12-01 Thread Emanuel Moecklin
Here's your step by step guide:
http://developer.android.com/guide/market/billing/index.html

On Dec 1, 4:19 am, tamil maran tam.mara...@gmail.com wrote:
 please help me to how to sales content inside of application through In
 App billing service.

 please let me know step by step for this process

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activity to implement BroadCastReceiver through Manifest rather than manually - possible?

2011-12-01 Thread lbendlin
I have a service S and a bunch of activities A,B,C,D etc.  The service S is 
sending broadcasts. Activity A is currently manually registering a 
broadcastreceiver on onResume and unregistering the receiver on onPause.  
But I was thinking if it is possible to do all this automagically through 
the manifest, and to do away with the register/unregister calls.

Like, list the broadcast as an action filter for activity A, and then 
somehow explain to the constructor of activity A that it should also behave 
like a broadcastreceiver (and serve the onReceive function).  

I tried to use public class MainScreen extends Activity implements 
BroadcastReceiver but that is not liked by Eclipse (The type 
BroadcastReceiver cannot be a superinterface of MainScreen; a 
superinterface must be an interface)

So how do I tell the activity to listen for the broadcasts?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Anyone help me! Send Mediarecorder video to server through TCP socket and server save it in a file????

2011-12-01 Thread Raffaele Sgarro
You'd better use a http or ftp server

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activity to implement BroadCastReceiver through Manifest rather than manually - possible?

2011-12-01 Thread Mark Murphy
On Thu, Dec 1, 2011 at 8:44 AM, lbendlin l...@bendlin.us wrote:
 I have a service S and a bunch of activities A,B,C,D etc.  The service S is
 sending broadcasts. Activity A is currently manually registering a
 broadcastreceiver on onResume and unregistering the receiver on onPause.
 But I was thinking if it is possible to do all this automagically through
 the manifest, and to do away with the register/unregister calls.

 Like, list the broadcast as an action filter for activity A, and then
 somehow explain to the constructor of activity A that it should also behave
 like a broadcastreceiver (and serve the onReceive function).

That's not possible. BroadcastReceiver is a class, not an interface.
Activity is a class, not an interface. Java does not support multiple
inheritance, so you cannot inherit from both Activity and
BroadcastReceiver, and implements only works with interfaces.

 So how do I tell the activity to listen for the broadcasts?

Use the approach that you already have working.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Is this template in java

2011-12-01 Thread SL@maxis


Java format:

  ArrayAdapter(Context context, int textViewResourceId, ListT objects)


Is the above template like in C++ ?

I have a 15-year Java book; I think there is no such thing in there.

I did a little search on net, but did not see documents explaining the  
above.


Thanks.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] In-app purchasing server side API?

2011-12-01 Thread Nikolay Elenkov
On Wed, Nov 30, 2011 at 8:24 AM, Tristan Waddington
tristan.wadding...@gmail.com wrote:


 Are there any plans to implement such an API?


This is not the place to ask. Check the 'Help' link in the
developer console for ways to (try to) contact Market support.

 Barring that, some sort of scheduled price changes for in-app products
 would be a huge help, as we run weekly sales.

You can suggest the features you want, but don't hold your breath
or expect any feedback:

http://www.google.com/support/androidmarket/developer/bin/static.py?page=suggestions.cs

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is this template in java

2011-12-01 Thread Mark Murphy
On Thu, Dec 1, 2011 at 9:15 AM, SL@maxis ecp_...@my-rialto.com wrote:

 Java format:

  ArrayAdapter(Context context, int textViewResourceId, ListT objects)


 Is the above template like in C++ ?

More or less.

 I have a 15-year Java book; I think there is no such thing in there.

Correct.

 I did a little search on net, but did not see documents explaining the
 above.

http://en.wikipedia.org/wiki/Generics_in_Java
http://docs.oracle.com/javase/tutorial/java/generics/index.html
http://www.angelikalanger.com/GenericsFAQ/JavaGenericsFAQ.html

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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] chowdary nani wants to chat

2011-12-01 Thread chowdary nani
---

chowdary nani wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-a08359cac-196896027d-aKDADk29gwFCImUiBkQ8M92cehM
You'll need to click this link to be able to chat with chowdary nani.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with chowdary nani, visit:
http://mail.google.com/mail/a-a08359cac-196896027d-aKDADk29gwFCImUiBkQ8M92cehM

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Urgent Problem with screen turned off

2011-12-01 Thread cipher_neo
Hi guys, 

really urgent problem here.

I have an app that uses a web view and an ajax polling app.

As soon as I turn the screen off on the device, the polling stops?

But there are sometimes some small bursts of polling while the screen is 
turned off (as I can see in the server logs)

How can I keep my app active when the light is turned off?

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

2011-12-01 Thread chowdary nani
Hi All,

In first activity i have  3 buttons with label 'RED ,BLUE and Green
with back ground grey color. In the last of the window i have a button with
label pick color.

When i click on the  pick color button ,new window opens which consists of
redio buttons with lables RED,BLUE,GREEN. When i select color as RED
Again previous window opens with highleting the  red  button with red color.


How to solve above scenario using call back methods in ANDROID.


Thanks
Naveen

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

[android-developers] Re: Android activity lifecycle bug/problem. Android team please help.

2011-12-01 Thread Streets Of Boston
I agree with the others.
Killing your app in DDMS is like a crash on your phone.
Using the Force Stop in the Applications Manager is different. Your app's 
processes (activities, services) won't be restarted.

However, the fact that there at to Activities B on top of each other and B 
is singleTop, is an interesting case (this almost sounds dirty :-)).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Handler().postDelayed() question

2011-12-01 Thread JBirdVegas
Works like a dream. Thanks Mark!

On Dec 1, 7:34 am, Mark Murphy mmur...@commonsware.com wrote:
 On Wed, Nov 30, 2011 at 3:26 PM, JBirdVegas jbirdve...@gmail.com wrote:
  Ok I'm working on a splash screen that pauses for 1.5 seconds and
  works great, except for one thing.
  Once the timer is started in onCreate if the configuration
  (orientation) changes then the timer gets reset and then end result is
  it starts my ParchmentActivity.java twice.  How can I prevent the
  handler from sending the intent twice?

 If savedInstanceState is null in onCreate(), schedule your Runnable,
 otherwise, do not. The savedInstanceState parameter will be non-null
 if your activity is being created as a result of a configuration
 change.

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Droid-fu BetterAsyncTask

2011-12-01 Thread Streets Of Boston
Hi Mukesh,

I looked at your async-task-in-android blog post... 
But registering an Activity instance as a listener (WebServiceListener), 
you set yourself up for trouble.

E.g. if you click the 'Login' button (in your example) and your rotate the 
device and the login returns after that, the onPostExecute will call the 
'onLoginActionComplete' on the old and destroyed Activity (a configuration 
change destroys the original Activity). This will cause unexpected behavior 
and possible memory leaks.

Instead, use a Fragment (with setRetainInstance(true)) as your 
WebServiceListener or use an Object handled by 
onRetainNonConfigurationInstance/getLastNonConfigurationInstance as your 
WebServiceListener.


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

Re: [android-developers] Android documentation in PDF

2011-12-01 Thread Carlos A. M. dos Santos
On Thu, Dec 1, 2011 at 9:42 PM, SL ecp_...@my-rialto.com wrote:

 Is there somewhere the online Android developer documentation in PDF format
 I can download ?

Not in PDF.

 It is easier to read and search without going online, I think.

You can read it in HTML:

file:///path-to-sdkdocs/offline.html

Searching will be limited to the currently displayed page, of course,

-- 
The flames are all long gone, but the pain lingers on

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Campo de Busca

2011-12-01 Thread Ray da Costa
Pessoal uma ajuda.
Já usei uma vez mas não lembro. Tem um componente no android que é um
EditText que usa adapter para fazer pesquisa em um list viewer... alguem
lembra o nome deste componente. Estou usando a versão  2.1

-- 
Ray da Costa
The best way to predict the future is to invent it.
Alan Kay

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