[android-developers] hi...

2012-09-30 Thread Ibrahim Sada
Hi Dear.
   Can any one help me out how to store and retrive data in sqlite db in
android
  Thanx 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] 為什麼一個遊戲收了十八次款項,是否有錯誤,請回覆,謝謝!!!!!

2012-09-30 Thread tak


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Notifying the fragment when it is currently selected in a viewpager

2012-09-30 Thread Raneez
Thanks Vinay!

On Saturday, 29 September 2012 15:18:27 UTC+5:30, Raneez wrote:
>
> I use ViewPager loaded with fragments in it .The *onResume()* method of 
> each fragments does some logic and so i get problems when the adjacent 
> fragments(left and right) to the currently selected page are also loaded to 
> provide smooth scrolling between the pages. 
>
> Does the fragment recieve any *callbacks* when it get actually selected?
>

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

2012-09-30 Thread daulat bachhav
u using JSONE itis best for u

On Thursday, 27 September 2012 12:13:01 UTC+5:30, Girish Sawant wrote:
>
> hi,
> I am using web services to store the database for Login and registration 
> page for the game application
> we are using glass fish server I am android beginner, how to do it?
>

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

[android-developers] how to make a video player.

2012-09-30 Thread Sukhchain smarty
hey.

i want to play an online live video from a server.
for that i want to develop a flash embeded player...
can any1 tell me hw can i develop that player
the video is on rtsp protocol

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

2012-09-30 Thread Дмитрий Романов
Hello all!

A table ContactsContract.Contacts has a field SEND_TO_VOICEMAIL.

"SEND_TO_VOICEMAIL - An indicator of whether calls from this contact should 
be forwarded directly to voice mail ('1') or not ('0'). When raw contacts 
are aggregated, this field is automatically computed: if all constituent 
raw contacts have SEND_TO_VOICEMAIL=1, then this field is set to '1'. 
Setting this field automatically changes the corresponding field on all 
constituent raw contacts." - from manual.

I set value of SEND_TO_VOICEMAIL to 1 but forward to voice mail is absent.

Please tell me what i should do more? Maybe I should change values in other 
tables?

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

2012-09-30 Thread Patrick lee
Hi 
I am the new Android App developer, I would like to make a app which can 
read/write RFID tag but I don;t know which model moble/tablet have both 
read/write RFID function, may I know nexus 7 has read/write function or not?

Thank you for your answer :)
Patrick

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

2012-09-30 Thread Randell Villalon
Does Android have a Linux kernel driver that controls the phone's baseband 
modem which handles sms and voice calls?

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

[android-developers] No response for click event on my custom button.

2012-09-30 Thread Yang Yang
Hi All,

I am new to android development. 
Now I've encountered a problem related to the onClick listener.

I put a LinearLayout inside a custom view. The linearLayout which contains 
image view and text is a button.
I set it clickable and attach a clickListener with it. But, it has no 
response on click event.
However, I use isClickable and hasClickListener to check the linearlayout. 
They all return true.

So I am really don't know what wrong with my code.
Is there anyone can help me out of this problem, Thanks a lot.

best regards,

Yang

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

[android-developers] Re: I want to know to get browse history on android ?

2012-09-30 Thread He Jibo
Hello, have you solved this problem or not? I am also interested in this 
too. Thanks

On Wednesday, September 2, 2009 10:35:40 PM UTC-5, ni wrote:
>
> Hi All, 
>
> I mean, I want to pull out web histroy from content provider  for my 
> application. 
>
>
>
> I have some coding. But I got exception so, no running. 
>
> So, how can I do ?please help me. 
> Here are my coding 
> package com.app.browser; 
>
>
> import android.app.ListActivity; 
> import android.database.Cursor; 
> import android.os.Bundle; 
> import android.widget.ListAdapter; 
> import android.widget.SimpleCursorAdapter; 
>
>
>
> public class BrowserApp extends ListActivity { 
> /** Called when the activity is first created. */ 
> @Override 
> public void onCreate(Bundle savedInstanceState) { 
> super.onCreate(savedInstanceState); 
> setContentView(R.layout.list_activity_view); 
> //Cursor browserinfo=android.provider.Browser.getAllVisitedUrls 
> (getContentResolver()); 
>
> String []proj= new String [] 
> {android.provider.Browser.SearchColumns._ID, 
> android.provider.Browser.SearchColumns.DATE, 
> android.provider.Browser.SearchColumns.SEARCH}; 
> Cursor results= 
> managedQuery 
> (android.provider.Browser.SEARCHES_URI,proj,null,null, 
> android.provider.Browser.SearchColumns.URL+" ASC"); 
>
> ListAdapter adapter = new SimpleCursorAdapter( 
> this, // Context. 
> android.R.layout.two_line_list_item,  // Specify the 
> row template to use (here, two columns bound to the two retrieved 
> cursor rows). 
> results,// Pass in 
> the cursor to bind to. 
> proj, // Array of cursor columns to bind to. 
> new int[0]); // 
> Parallel array of which template objects to bind to those columns. 
>
> // Bind to our new adapter. 
> setListAdapter(adapter); 
>
> } 
> } 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 there a way to put entire folder from "assets" to sdcard? not just individual files.

2012-09-30 Thread gitrite
i know this post is old .
im new to programming 
@aspidoff how did the code work out for you..
 
i want to  do tyhe same thing - copy files  from the assets to the sd card
but can one of you guy explain how the code works in more detail.

On Thursday, October 8, 2009 4:29:29 AM UTC-7, aspidoff wrote:

> hey guys, i hope this is the right forum. 
>
> what i am trying to do is simply copy over entire folder full of mp3 
> files onto sdcard within an app. I am doing this out of "assets" 
> folder because raw folder does not allow mp3 files to be named the way 
> i need them to. 
>
> here is what I dug up so far but not sure if this will work. i am lost 
>
>
> InputStream ins = getResources().getAssets().open(""); 
> int size = ins.available(); 
> // Read the entire resource into a local byte buffer. 
> byte[] buffer = new byte[size]; 
> ins.read(buffer); 
> ins.close(); 
> FileOutputStream fos = new FileOutputStream("/sdcard/myfolder/"); 
> fos.write(buffer); 
> fos.close(); 
>
>
> can someone help?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Not getting key events for KEYCODE_BACK on Nexus 7 (Jelly Bean)

2012-09-30 Thread ZFect
Hello,

This seems to be a bug but perhaps there is a new step I am not taking for 
Jelly Bean. On my "samsung nexus s" (gingerbread) device, my OnKeyListener 
class will receive KEYCODE_BACK events but on my "Nexus 7" (jelly bean) 
device, it wont get any 
KEYCODE_BACK
 
events.

Any ideas? 
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] Hide apps

2012-09-30 Thread Tarun Gupta
Hi,

I am using HTC One V. I have few apps installed which I want to hide from 
others. Can you please suggest way to do so, so that apps don't appear in 
apps drawer.

Regards,
TK

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

2012-09-30 Thread Tom
I'm due for a new laptop too and have been thinking about this.  

Eclipse + ADT are pretty much all I need besides web browser.  I have been 
using Win 7 on a Dell Latitude and have found Eclipse+ADT to be slow and 
buggy.  I would like a better experience.

It is my unscientific impression that Google devs use Apple laptops (would 
love to see some stats).

I don't mean to be negative - I think the ADT devs are very good at 
engaging in the ADT issues tracker - but I think most of their testing is 
done ad-hoc by the devs, so, if they are using Apple then that is where the 
testing is happening.

It seems a shame to pay such a premium, and I'm not really an Apple fan, 
but if it works better for Android dev then I guess that is the right 
answer.

Tom

On Sunday, September 30, 2012 12:42:46 AM UTC-4, Nathan wrote:
>
> Since the hardware would primarily be used for developing Android, I think 
> this is on topic.  
>
> My three year old Vista laptop does do well at complex builds in Eclipse, 
> I'd just like to do more than one per day. ;)
>
> What do you recommend for my next development laptop?
>
> I really don't enjoy hardware shopping any more than car shopping. .  
>
> I have a vague idea that I want plenty of processor speed, plenty of 
> memory, Solid State drive, and  probably 15 inch screen. I do have a 17 
> inch screen now, and that was largely because I didn't even have an 
> external monitor. Now it is docked to an external monitor most of the time, 
> and is just too bulky when I actually do lug it somewhere. 
>
> This would probably gain me an hour of productivity every day, so I can 
> afford to sink a 1-2,000 or maybe more. 
>
> I did have the idea of maybe getting a MacBook Pro, since it could do iOS 
> development if I dabbled on the dark side, could possibly run Windows if I 
> did some development on that side. Then again, getting a Windows Laptop  
> and a Mac mini could also solve that problem. 
>
> I haven't really gotten into Linux for a personal computer, though I do 
> have a remote server running Debian now. 
>
> Nathan
>

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

2012-09-30 Thread SK Webbies
Hi,

I just want to know how can i place a audio mp3 file in jquerymobile app in 
dreamweaver ?
also after packaged is this start plays in mobile which is running on 
android?

need a help how can i build a music player app using jquery mobile phonegab 
build service in dreamweaver cs6 latest version.


thanks
skwebbies

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] What is the best phone to buy for Android Development?

2012-09-30 Thread Nilashis Dey
I am new to Android Development and would like to know which phone I should 
get to test my apps? Obviously, I would like the phone for which drivers 
for all devices are easily available and for which I would find the most 
amount of support discussions online - for when I run into problems.

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

2012-09-30 Thread Алексей Фенев



Hello! When I add an event handler of button "onClick", for example: 
android:onClick="click", I get a fail: instead of my widget in emulator I 
have a message "Problem loading widget". 
What do you think, how fix it?

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

[android-developers] Hai

2012-09-30 Thread Rajeshkumar Animuthu
Hai Friends,

New to this Group, good to see developers lot of active discussion on 
android, like to join the discussion.




Regards,
Rajesh kumar A.

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

2012-09-30 Thread Dmitriy F
What do you mean ? It's a live-stream - it shouldn't buffer at all

2012/10/1 daulat bachhav 

> u using http service it's actually download then play
> it's not real streaming.
>
>
> On Friday, 28 September 2012 14:11:24 UTC+5:30, Dmitriy F wrote:
>>
>> Here's an https://play.google.com/**store/apps/details?id=com.**
>> maxxt.pcradio&feature=search_**result#?t=**W251bGwsMSwxLDEsImNvbS5tYXh4dC
>> **5wY3JhZGlvIl0.
>>  that
>> I've found for playing radio live-streams - pcRadio. I made a similar
>> application with pretty simple code inside.
>>
>> // constructing the player
>> mPlayer.setDataSource(**getResources().getString(**
>> mLowQualityStreamId));
>> mPlayer.prepareAsync();
>> // start the player in OnPreparedListener
>>
>> I've found a link to a radio-stream(the second one in the main list) that
>> pcRadio consumes: http://radio-shtorm.ru:8000 (32/56/112). When I launch
>> my player it takes it like 5-10 seconds to preparem while pcRadio starts
>> playing instantly.
>>
>> What's the difference and how can I improve my app to achieve the same
>> instant preparation speed ?
>>
>> P.S. tested on Android 2.3.4
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] new ideas to create android apps which includes framework

2012-09-30 Thread rajlaxmi jagdale
new ideas to create android apps which includes framework

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

2012-09-30 Thread Ibrahim Sada
Who vll give u idea for that..coz every one need that first...

On 1 October 2012 11:02, rajlaxmi jagdale  wrote:

> I want ideas which are not available in market.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Android - .Net Web Service Implementation

2012-09-30 Thread TreKing
On Mon, Oct 1, 2012 at 12:11 AM, Krishna Mahadik
wrote:

> I have been trying to implement Android - .Net Web Service logic in my
> application, but unfortunately I am not able to understand it. Can anyone
> please tell me how does it work and what are key notes for the same.


Your question is so vague and generic you're never going to get an answer.
Review this and ask a very targeted, Android-specific question:

http://www.catb.org/esr/faqs/smart-questions.html

-
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] new ideas to create android apps which includes framework

2012-09-30 Thread rajlaxmi jagdale
I want ideas which are not available in market.

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

2012-09-30 Thread Krishna Mahadik
Hi Guys,

I have been trying to implement Android - .Net Web Service logic in my
application, but unfortunately I am not able to understand it. Can anyone
please tell me how does it work and what are key notes for the same.

Thanks & Regards,
Krishna V. Mahadik

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

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

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

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

[android-developers] Re: Explain the preparation speed of MediaPlayer in this application

2012-09-30 Thread daulat bachhav
u using http service it's actually download then play
it's not real streaming.

On Friday, 28 September 2012 14:11:24 UTC+5:30, Dmitriy F wrote:
>
> Here's an 
> https://play.google.com/store/apps/details?id=com.maxxt.pcradio&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5tYXh4dC5wY3JhZGlvIl0.
>  that 
> I've found for playing radio live-streams - pcRadio. I made a similar 
> application with pretty simple code inside.
>
> // constructing the player
> mPlayer.setDataSource(getResources().getString(mLowQualityStreamId));
> mPlayer.prepareAsync();
> // start the player in OnPreparedListener
>
> I've found a link to a radio-stream(the second one in the main list) that 
> pcRadio consumes: http://radio-shtorm.ru:8000 (32/56/112). When I launch 
> my player it takes it like 5-10 seconds to preparem while pcRadio starts 
> playing instantly.
>
> What's the difference and how can I improve my app to achieve the same 
> instant preparation speed ?
>
> P.S. tested on Android 2.3.4
>

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

2012-09-30 Thread daulat bachhav
i think u using only one helper class it,s ok but you'r database size is 
high it,s not so difficult trace for attacer.


On Monday, 1 October 2012 06:42:46 UTC+5:30, Paula Castellanos wrote:
>
> Hi guys, 
>
> Do you know what is the best practice when I work a data base in Android, 
> I mean, I know when you have a "table" you have a helper, but can I have 
> only one helper, and it creates all tables. it's a good practice or not. 
>
> Thanks, and sorry if I have some mistakes 
>

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

2012-09-30 Thread daulat bachhav
i think this is abstract implemntaion of method u put semicolon wrong 
position ,u also put }); this is best ,}); itis called at a same time u 
declare and imlement this current meethod

On Thursday, 27 September 2012 23:53:34 UTC+5:30, EricW wrote:
>
> Hi,
>  
> Could anyone tell me what I'm doing wrong here?
>  
>
>> using  System;using Android.App;using Android.Content;using 
>> Android.Runtime;using Android.Views;using Android.Widget;using 
>> Android.OS;using Android.Text;using Android.Views;using 
>> Android.Views.KeyEvent;using Android.Widget.EditText;using 
>> Android.App.Activity;using Android.OS.Bundle;using Android.Text.Util;using 
>> Android.Views.InputMethods.InputMethodManager;
>>  namespace SiteZoeker
>> {
>>   [Activity(Label = "SiteZoeker", MainLauncher = true, Icon = 
>> "@drawable/icon")]
>>  public class Activity1 : Activity
>>  {
>>  EditText mEdit;
>>  
>>  protected override void OnCreate(Bundle bundle)
>>  {
>>  base.OnCreate(bundle);
>>  
>>  // Set our view from the "main" layout resource
>>  SetContentView(Resource.Layout.Main);
>>  
>>   mEdit=(EditText)FindViewById(Resource.Id.txtSitenummer);  
>>  
>>  mEdit.SetOnKeyListener(EnterHit);
>> 
>>  }
>>  
>> private View.SetOnKeyListener Enterhit = new View.SetOnKeyListener 
>> {
>>   public Boolean onKey(View v, int keyCode, KeyEvent Event) 
>>   { 
>> if ((Event.KeyCode == Keycode.Enter)) 
>> {  
>>   mEdit.RequestFocus(); 
>>   return true; 
>> } else 
>>   return false; 
>>   } 
>> }; 
>>   }}
>>
>>  
>>
>  
> The red parts are the ones giving me the error:
>  
> Error 3 Type or namespace definition, or end-of-file expected 
> Error 4 The name 'EnterHit' does not exist in the current context 
> Error 5 
> 'Android.Views.View.SetOnKeyListener(Android.Views.View.IOnKeyListener)' 
> is a 'method' but is used like a 'type' 
> Error 7 Invalid initializer member declarator 
> Error 2 } expected 
> Error 1 ; expected 
> Error 6 
> 'Android.Views.View.SetOnKeyListener(Android.Views.View.IOnKeyListener)' 
> is a 'method' but is used like a 'type' 
>  
> I use Visual Studio 2010 SP1 with Monodroid Eval installed.
>  
> br,
> Eric
>  
>
>>  
>>
>

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

2012-09-30 Thread Asheesh Arya
again saying you this exception cause due to because your real device cant
get last location thats why you didnt got last location on device use if
else condition and putToast msg in else condition

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

2012-09-30 Thread Spiral123
there is no good solution pre 3.0you are at the mercy of whatever 
useless skinning the manufacturer did to any particular handset.  I suspect 
it's the main reason Google introduced holo light and holo dark with the 
insistence that the basics of these themes are not messed with.

whilst that is fine going forwards there is no relief for earlier 
platforms.  from what I can see it's just not talked about on the 
assumption that eventually everyone will be off the earlier versions and 
the problem will just go away.

I looked into styling the options menu a month or so back and got some 
really useful help from folks in this group.  the best I could get to was 
to sample the menu background to work out the color: potentially I could 
then have displayed appropriately contrasted resources.  I didn't take this 
path because it was too hackish.  I eventually ended up creating a set of 
menu icons that were a silhouette against a rounded colored square.  The 
color of the background square was chosen to contrast nicely agains a light 
or dark menu background and my icon contrasted nicely with the squares.

One of the iterations the the Google Market app took the same approach 
themselves: they had white icons with a sort of blurry outline around each 
of them.  At the time I couldn't work out why they had done this as the 
icons looked sort of funky - but in hindsight I see that they then worked 
against light or dark menu backgrounds.  

unfortunately the client didn't like it so we ended up forcing the overflow 
menu to appear in ActionBarSherlock.  And before you ask, the actionbar 
overflow menu cannot be styled - by design.



On Saturday, September 29, 2012 9:36:40 AM UTC-4, andrewg_oz wrote:
>
> Thanks. Platform version sounds good in theory, but my Gingerbread 
> (v2.3.3) emulator is light-on-dark, while my Gingerbread (also v2.3.3) 
> phone is dark-on-light. How reliable is the emulator for this?
>
> I've also heard that menus can't be styled, but I'll look further into 
> that.
>
> Are there no system calls that can help here? Query the current display 
> settings or something?
>
> Cheers,
> 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

Re: [android-developers] Re: Returning complex object/s via SOAP from .Net web services

2012-09-30 Thread Kristopher Micinski
Parse the XML using an XML parser...

Then consider using a Loader:
http://developer.android.com/guide/components/loaders.html

Also consider using an AsyncTask, forgoing that...

kris

On Sun, Sep 30, 2012 at 11:17 PM, solnichko  wrote:
> I mean not just a simple String or int.
>
> The example XML string above is returned from the web services when an ID of
> this object is passed.
> At the moment I get Title, Description and a couple f URLs returned, but
> have no success parsing the XML String above and displaying the values
> simply in a textbox.
>
> Once I get this working, I will have to implement a listview that will
> display a list of such objects(with Title, Descr, etc.)
>
> From what I figured out I need to receive responce in an XML String or an
> array of objects.
>
> At the moment I am trying to work on XML String option.
>
> My project partner writes the web services and does not have much experience
> either, he expects me to tell him what I need to receive.
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Returning complex object/s via SOAP from .Net web services

2012-09-30 Thread solnichko
I mean not just a simple String or int.

The example XML string above is returned from the web services when an ID 
of this object is passed. 
At the moment I get Title, Description and a couple f URLs returned, but 
have no success parsing the XML String above and displaying the values 
simply in a textbox.

Once I get this working, I will have to implement a listview that will 
display a list of such objects(with Title, Descr, etc.)

>From what I figured out I need to receive responce in an XML String or an 
array of objects. 

At the moment I am trying to work on XML String option.

My project partner writes the web services and does not have much 
experience either, he expects me to tell him what I need to receive.



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Returning complex object/s via SOAP from .Net web services

2012-09-30 Thread Kristopher Micinski
this isn't Android related, but what do you mean via "complex?"

kris

On Sun, Sep 30, 2012 at 9:10 PM, solnichko  wrote:
> Hi everyone
>
> Can anyone suggest what are the options for returning complex object/s via
> SOAP from .Net web services?
>
> At the moment I am trying to parse the XML data structure and not quite sure
> how to do so. The data returned looks like this:
> Pasifika DrumsThis is a description
> http://.../Demo.aspxhttp://.../img1.jpg
>
>
> Thanks in advance.
> Lara
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Database and helpers

2012-09-30 Thread Paula Castellanos
Hi guys, 

Do you know what is the best practice when I work a data base in Android, I 
mean, I know when you have a "table" you have a helper, but can I have only 
one helper, and it creates all tables. it's a good practice or not. 

Thanks, and sorry if I have some mistakes 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Returning complex object/s via SOAP from .Net web services

2012-09-30 Thread solnichko
Hi everyone

Can anyone suggest what are the options for returning complex object/s via 
SOAP from .Net web services?

At the moment I am trying to parse the XML data structure and not quite 
sure how to do so. The data returned looks like this:
Pasifika DrumsThis is a description 
http://.../Demo.aspxhttp://.../img1.jpg


Thanks in advance.
Lara

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

[android-developers] Re: How to apply GPL license to Android App ?

2012-09-30 Thread Lew
Angelo Luciani Riu wrote:
>
> I write this mail because I'd like to apply GPL license to my Android Apps.
>
> They're not actually emails on a news forum, they're posts.

And you repeated this one. There's an answer in the other thread you 
started with this question.

The short answer is, do it if you like, according to the GNU instructions, 
the laws of your 
jurisdiction and the advice of competent legal counsel.

Which I am not.

-- 
Lew
 

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

2012-09-30 Thread Lew


On Sunday, September 30, 2012 2:32:58 AM UTC-4, Illyoung Choi wrote:
>
>

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

[android-developers] Re: How to apply GPL license to Android App ?

2012-09-30 Thread Lew
Angelo Luciani Riu wrote:
>
> I write this mail because I'd like to apply GPL license to my Android Apps.
>
> I read some step from  [url ] 
> www.gnu.org)[/url] 
> and I understand I have to do the followings steps :
>

So do those steps.
 

>
> 1. Every file should have a copyright line
> Esempio: /*Copyright 2012 Angelo Luciani*/ 
>  
>

This is a standard copyright question. You should check the copyright laws 
in your jurisdiction 
or wherever you intend to distribute your work.
 

> 2. Every file should have a reference to the license
> Esempio  /*  Nome-Programma is free software: you can redistribute it 
> and/or modify
> it under the terms of the GNU General Public License as published by
> the Free Software Foundation, either version 3 of the License, or
> (at your option) any later version.
>
> Nome-Programma is distributed in the hope that it will be useful,
> but WITHOUT ANY WARRANTY; without even the implied warranty of
> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> GNU General Public License for more details.
>
> You should have received a copy of the GNU General Public License
> along with Nome-Programma.  If not, see  
> */
>
> 3. The code to be shared 
>

In general terms, as I understand it, one attaches copyright notices to 
whatever work 
over which one wishes to assert copyright.
 

>
> 4. A complete license shoud be present into the Project
>
> *IN REGARD OF THIS I HAVE THE FOLLOWING QUESTIONS !*


Wow! Did you have to shout? Why?

Rather rude of you, I should say.


> D1.  I wrote point 1 and 2 only to  .JAVA [sic] files, what's about .XML 
[sic] files, I need to write  them?

Are you asking legal advice on a programmers' forum? In general terms, I 
don't know about 
your situation particularly and besides, I am a computer programmer, one 
attaches
a copyright notice to any work one wishes to copyright. Isn't that how it 
works where you are?

> D2. What's about the database ? I create a .db SQLITE database.
> Is it necessary insert GPL reference on it ?

Is it data you wish to copyrght, or the database schema? What does your 
lawyer say?

> D3. apk packet is without .java files. 
> Is it necessary to add them into the packet ?
> If I publish the application source on the net I need to write the link 
in every code source files ?

> D4. If you already use GPL license for Android Apps could you check if 
all steps are correct ?

No one here, and I mean no one here, can tell you if what you did is 
correct. That is a question 
for a lawyer. Would you ask a coffee-bar barristo how to cure your gout?

Follow the GNU instructions, research the law, and if necessary, ask an 
attorney your legal 
questions.

-- 
Lew

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

2012-09-30 Thread Lew
Larry Meadors wrote:
>
> Fred Stluka wrote: 
> > I've been very happy with my MacBook Pro. 
>
> +1 
>
>
I've used a Mac (tower, but same diff) for Android development. It's fine, 
simply because Mac looks 
just like Linux to an Android programmer.
 

> This isn't really on topic, so I'll keep it short. 
>
> Mac+OSX Just Works. Worth every penny. One big downside is that you'll 
> never want to use Windows again. ;-) 
>

Isn't that also the downside to using Windows? :-)

> Ubuntu 10 and 12 are also VERY good - so much better recently than the 
> last time I used Linux on a desktop. If you're interested in diving 
> deeper into android (AOSP) Linux is a solid choice (see 
> http://source.android.com for more info). If you are worried about 
> your budget and don't mind tinkering to make things work (i.e., you 
> value money more than time) this is a viable option. 

They, too, just work. And if you're programming for Android, you will be 
tinkering.

I don't know how much "tinkering" Ubuntu needs if you're programming. I've 
used 
Ubuntu for Android development, too, and it, too, just works. It's pretty 
straightforward
as a programmer's OS.

And it'll be fast enough, for a given hardware configuration. But I'd guess 
you can 
get a lot more speed for your buck through memory size first, and 
multi-core 
architecture second. Get at least a dual-core, preferably more, CPU 
configuration 
and tons of RAM.

4 GiB is plenty for Linux. I don't know enough about Mac to set a minimum. 
More is 
always better.

Solid-state hard drives probably won't affect you as much.

What do you mean by "complex build"? Any Android project I can imagine on 
any hardware 
that could reasonably run Vista should not take more than a minute or five 
to compile in Eclipse.
What are you doing wrong?

-- 
Lew


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: An app developer is asking for my login credentials...

2012-09-30 Thread Sal Colascione III
Thank you as well! I just emailed them asking if they'd have any issue with 
my doing the final compiling, signing and uploading of the app.

On Saturday, September 29, 2012 9:04:04 PM UTC-4, John Coryat wrote:
>
> You might want to create a user account for them so they can upload apps 
> without giving them the keys to the kingdom. I also suggest that you do the 
> final compiling, signing and uploading of the app yourself. Doing so will 
> ensure you won't lose control to the app.
>
> -John Coryat
>
> On Wednesday, September 26, 2012 10:51:15 AM UTC-5, Sal Colascione III 
> wrote:
>>
>> Hi there,
>>
>> I have a company building an app for me and they're asking for the login 
>> credentials to my Google Play account. Wouldn't this also give them access 
>> to my Gmail, Adsense, Adwords, etcetera accounts? Or can Google Play have a 
>> separate login?
>>
>> Thanks in advance,
>>
>> Sal C.
>>
>

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

Re: [android-developers] An app developer is asking for my login credentials...

2012-09-30 Thread Sal Colascione III
Thank you very much!

On Saturday, September 29, 2012 5:36:33 PM UTC-4, TreKing wrote:
>
> On Wed, Sep 26, 2012 at 10:51 AM, Sal Colascione III 
> 
> > wrote:
>
>> Wouldn't this also give them access to my Gmail, Adsense, Adwords, 
>> etcetera accounts?
>
>
> Yes.
>  
>
>> Or can Google Play have a separate login?
>
>
> It can if you create a different account for distributing apps.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

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

Re: [android-developers] Re: Google cancelled this order. Reason: Other

2012-09-30 Thread Kostya Vasilyev
2012/10/1 b0b 

>
>
> On Sunday, 30 September 2012 21:57:30 UTC+2, Kostya Vasilyev wrote:
>>
>> Yes, seeing more than usual too.
>
>
> Tonight it is a cancel fest with 1 purchase out of 3 or 4 cancelled this
> way...with generally 2 or 3 cancel lines for the same user in the console.
>

Right.

Some celebration, for sure.

-- K


>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Where to download the Lenovo A2901 ADB interface USB driver?

2012-09-30 Thread mw18888

Veritatis,

Thank you for your comment.

Regards,

On Wednesday, September 26, 2012 10:56:24 PM UTC-4, Indicator Veritatis 
wrote:
>
> If it is a Windows driver you are interested in, go to the Lenovo website 
> for your Lenovo and select the right USB package (including lots of 
> drivers, I forget the exact name). Download from there.
>
> On Tuesday, September 25, 2012 3:48:38 AM UTC-7, mw1 wrote:
>>
>>
>> I can't find the Lenovo A2901 ADB interface USB driver?
>>
>> Any comment?
>>
>> Thank you in advance.
>>
>>
>>

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

Re: [android-developers] Re: Google cancelled this order. Reason: Other

2012-09-30 Thread b0b


On Sunday, 30 September 2012 21:57:30 UTC+2, Kostya Vasilyev wrote:
>
> Yes, seeing more than usual too.


Tonight it is a cancel fest with 1 purchase out of 3 or 4 cancelled this 
way...with generally 2 or 3 cancel lines for the same user in the console.

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

Re: [android-developers] How can I prevent two buttons from being clicked at the same time?

2012-09-30 Thread Kristopher Micinski
So the UI is handled on a single thread... Why don't you disable one
of them until it is released...

kris

On Fri, Sep 28, 2012 at 4:45 PM, Streets Of Boston
 wrote:
> Hi,
>
> I have this issue (at least on the Galaxy Tab 10.1 running 3.2 and the Nexus
> 7).
>
> E.g. I have a screen with more two buttons.
> When i put two fingers down, one finger on one button, the other on the
> other button, at the same time, both buttons are clicked at the same time.
> I.e. the 'onClick' is called for both of them in rapid succession.
>
> How can I prevent this reliably.
>
> I tried using the 'android:splitMotionEvents="false"' on ViewGroups, on
> various spots in the hierarchy.
> I tried calling the 'setMotionEventSplittingEnabled(false)' method for these
> buttons' parent.
>
> All this doesn't work.
>
> The OnClick handlers spawn fragments. However, calling
> 'fragmentManager.findFragmentByTag(tag)' to see if a fragment has already
> been added doesn't work if the OnClick handlers are called too quickly after
> each other (I guess the commit hasn't finished properly before the second
> OnClick is being called). I could put an additional 'postDelayed' call to
> spawning these fragments, but this solution would be a hack.
>
> Our app's targetSdk is set to 11 and we can't lower this.
>
> Is there a reliable or proper way to prevent a click of multiple buttons at
> the same time, e.g. a second button won't click when another finger is still
> down on the screen?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] How can I prevent two buttons from being clicked at the same time?

2012-09-30 Thread Streets Of Boston
Thank you Harri, 
I'm going to try this out tomorrow.

On Friday, September 28, 2012 5:47:10 PM UTC-4, Harri Smått wrote:
>
>
> On Sep 28, 2012, at 11:45 PM, Streets Of Boston 
> > 
> wrote: 
> > Is there a reliable or proper way to prevent a click of multiple buttons 
> at the same time, e.g. a second button won't click when another finger is 
> still down on the screen? 
>
> I don't know whether this is a proper nor reliable way but managed to 
> prevent multiple buttons from being triggered at the same time with 
> following code. It allows user to select multiple buttons as a chord but 
> will hook at the last pointer up event only. 
>
> // R.id.button1, R.id.button2, etc... 
> findViewById(R.id.buttonX).setOnClickListener(new View.OnClickListener() 
> { 
> @Override 
> public void onClick(View view) { 
> ViewGroup group = (ViewGroup)findViewById(R.id.container); 
> for (View touchable : group.getTouchables()) { 
> if (touchable != view && touchable.isPressed()) { 
> Log.d("...", "skip"); 
> } 
> } 
> } 
> }); 
>
> -- 
> H

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

[android-developers] Viewpager and fragments

2012-09-30 Thread Lars
Hi,

I want to have an ongoing viewpager (something like the calendar app) where 
i can show the days of the year
each fragment represents one day. i like to fill that fragment with data 
from the web but i don't want it too load it again and again
each time i add a fragment to the viewpager, so i have a asynctask in my 
main activity which collects all the data.
my question is how can i make an ongoing viewpager and how can i when the 
data is loaded in the asynctask put the data in the fragments
and fill the listviews?

Thanks

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

[android-developers] Re: Google cancelled this order. Reason: Other

2012-09-30 Thread b0b
Since a few days there seem to be a lot more cancelled orders with "Reason: 
Other (describe below) " than usual.

Do anyone notice this ?

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

Re: [android-developers] Hardware reccomendations: Next development laptop

2012-09-30 Thread Larry Meadors
On Sun, Sep 30, 2012 at 7:49 AM, Fred Stluka  wrote:
> I've been very happy with my MacBook Pro.

+1

This isn't really on topic, so I'll keep it short.

Mac+OSX Just Works. Worth every penny. One big downside is that you'll
never want to use Windows again. ;-)

Ubuntu 10 and 12 are also VERY good - so much better recently than the
last time I used Linux on a desktop. If you're interested in diving
deeper into android (AOSP) Linux is a solid choice (see
http://source.android.com for more info). If you are worried about
your budget and don't mind tinkering to make things work (i.e., you
value money more than time) this is a viable option.

Larry

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

2012-09-30 Thread G. Blake Meike
This code works:
 
https://github.com/bmeike/ProgrammingAndroid2Examples/blob/master/SimpleFragment/src/com/oreilly/demo/android/pa/simplefragment/SimpleFragment.java
 
G. Blake Meike
Marakana

The second edition of Programming Android is now available:
http://shop.oreilly.com/product/0636920023005.do

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

2012-09-30 Thread Fred Stluka

I've been very happy with my MacBook Pro.

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.


On 9/30/12 12:42 AM, Nathan wrote:
Since the hardware would primarily be used for developing Android, I 
think this is on topic.


My three year old Vista laptop does do well at complex builds in 
Eclipse, I'd just like to do more than one per day. ;)


What do you recommend for my next development laptop?

I really don't enjoy hardware shopping any more than car shopping. .

I have a vague idea that I want plenty of processor speed, plenty of 
memory, Solid State drive, and  probably 15 inch screen. I do have a 
17 inch screen now, and that was largely because I didn't even have an 
external monitor. Now it is docked to an external monitor most of the 
time, and is just too bulky when I actually do lug it somewhere.


This would probably gain me an hour of productivity every day, so I 
can afford to sink a 1-2,000 or maybe more.


I did have the idea of maybe getting a MacBook Pro, since it could do 
iOS development if I dabbled on the dark side, could possibly run 
Windows if I did some development on that side. Then again, getting a 
Windows Laptop  and a Mac mini could also solve that problem.


I haven't really gotten into Linux for a personal computer, though I 
do have a remote server running Debian now.


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

2012-09-30 Thread Thomas Bouron
Thanks for the notice, i'll keep that in mind.
I uploaded my testing version (not activated) on Google Play, installed it 
on my phone and published my product. I know that it takes time to be 
pushed over all Google servers so I'm gonna wait and start testing tomorrow.

Hope everything will going fine, I'll keep this thread updated.

Anyway, thank you all!

On Sunday, September 30, 2012 2:06:48 PM UTC+2, John Coryat wrote:
>
> The most important thing in testing is that the same version code has to 
> be uploaded to the Play store (but not activated) as you are testing with. 
> If you make changes to your test app, don't update the version code or 
> you'll have problems with in-app billing. Once you're ready to publish, 
> you'll have to update your version code before you can upload the final 
> version.
>
> -John Coryat
>
>
> On Sunday, September 30, 2012 4:15:25 AM UTC-5, Thomas Bouron wrote:
>>
>> Ok, i'll try that and let you know.
>> Thanks!
>>
>> On Sunday, September 30, 2012 1:53:07 AM UTC+2, TreKing wrote:
>>>
>>> On Fri, Sep 28, 2012 at 3:28 AM, Thomas Bouron  wrote:
>>>
 Ok but as my app is already published, I cannot create another one with 
 the same package name and save it as a draft.

>>>
>>> Yes, you can. Upload it but don't "Activate" it, I believe.
>>>
>>>
>>> -
>>> TreKing  - Chicago 
>>> transit tracking app for Android-powered devices
>>>
>>>

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

Re: [android-developers] Testing In-app billing

2012-09-30 Thread John Coryat
The most important thing in testing is that the same version code has to be 
uploaded to the Play store (but not activated) as you are testing with. If 
you make changes to your test app, don't update the version code or you'll 
have problems with in-app billing. Once you're ready to publish, you'll 
have to update your version code before you can upload the final version.

-John Coryat


On Sunday, September 30, 2012 4:15:25 AM UTC-5, Thomas Bouron wrote:
>
> Ok, i'll try that and let you know.
> Thanks!
>
> On Sunday, September 30, 2012 1:53:07 AM UTC+2, TreKing wrote:
>>
>> On Fri, Sep 28, 2012 at 3:28 AM, Thomas Bouron  wrote:
>>
>>> Ok but as my app is already published, I cannot create another one with 
>>> the same package name and save it as a draft.
>>>
>>
>> Yes, you can. Upload it but don't "Activate" it, I believe.
>>
>>
>> -
>> 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] How to apply GPL license to Android App ?

2012-09-30 Thread Angelo Luciani Riu
Hi to all,
I write this mail because I'd like to apply GPL license to my Android Apps.

I read some step from  [url ] 
www.gnu.org)[/url] 
and I understand I have to do the followings steps :

1. Every file should have a copyright line
Esempio: /*Copyright 2012 Angelo Luciani*/ 
 
2. Every file should have a reference to the license
Esempio  /*  Nome-Programma is free software: you can redistribute it 
and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Nome-Programma is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Nome-Programma.  If not, see  
*/

3. The code to be shared 

4. A complete license shoud be present into the Project

*IN REGARD OF THIS I HAVE THE FOLLOWING QUESTIONS !*

D1.  I wrote point 1 and 2 only to  .JAVA files, what's about .XML files, I 
need to write  them?

D2. What's about the database ? I create a .db SQLITE database.
Is it necessary insert GPL reference on it ?

D3. apk packet is without .java files. 
Is it necessary to add them into the packet ?
If I publish the application source on the net I need to write the link in 
every code source files ?

D4. If you already use GPL license for Android Apps could you check if all 
steps are correct ?

Thanks in advance.

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

Re: [android-developers] Re: image passing ?

2012-09-30 Thread vinay kumar
Where does this jpeg images exists?

On Sun, Sep 30, 2012 at 4:51 PM, mohammed Nuhail wrote:

> can i send jpeg image ?
>
>
> On Sun, Sep 30, 2012 at 4:32 PM, skink  wrote:
>
>>
>>
>> mohammed Nuhail wrote:
>> > How to send a image from one activity to another activity ?
>>
>> in extras as a Parcelable?
>>
>> 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
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: image passing ?

2012-09-30 Thread skink


mohammed Nuhail wrote:
> can i send jpeg image ?
>
>

if you have any image in your filesystem then send its Uri, otherwise
if you have in-memory bitmap pass it as a Parcelable

pskink

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


Re: [android-developers] Re: image passing ?

2012-09-30 Thread mohammed Nuhail
can i send jpeg image ?

On Sun, Sep 30, 2012 at 4:32 PM, skink  wrote:

>
>
> mohammed Nuhail wrote:
> > How to send a image from one activity to another activity ?
>
> in extras as a Parcelable?
>
> 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
>

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

2012-09-30 Thread skink


mohammed Nuhail wrote:
> How to send a image from one activity to another activity ?

in extras as a Parcelable?

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] image passing ?

2012-09-30 Thread mohammed Nuhail
How to send a image from one activity to another activity ?

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

2012-09-30 Thread Thomas Bouron
Ok, i'll try that and let you know.
Thanks!

On Sunday, September 30, 2012 1:53:07 AM UTC+2, TreKing wrote:
>
> On Fri, Sep 28, 2012 at 3:28 AM, Thomas Bouron 
> > wrote:
>
>> Ok but as my app is already published, I cannot create another one with 
>> the same package name and save it as a draft.
>>
>
> Yes, you can. Upload it but don't "Activate" it, I believe.
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

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

Re: [android-developers] Re: sendEmptyMessageAtTime issue

2012-09-30 Thread Dmitriy F
not quite what I needed, but thanks. The main issue is that this method
uses uptime

2012/9/28 shuangjie ke 

> public final boolean sendEmptyMessageAtTime (int what, long 
> uptimeMillis)Returns
> true if the message was successfully placed in to the message queue.
> Returns false on failure, usually because the looper processing the message
> queue is exiting.
> you can test the returns
> 在 2012年9月28日星期五UTC+8下午3时31分50秒,Dmitriy F写道:
>
>> A handler that I defined doesn't get a message set with
>> sendEmptyMessageAtTime. The time I get from updateTime.getTimeInMillis is
>> valid. What am I missing here ?
>>
>> @Override
>> protected void onResume() {
>> super.onResume();
>> mNavigationBarFragment.**configureFor(0);
>> Calendar updateTime = Calendar.getInstance();
>> updateTime.set(Calendar.YEAR, 2012);
>> updateTime.set(Calendar.HOUR_**OF_DAY, 18);
>> updateTime.set(Calendar.**MINUTE, 40);
>> updateTime.set(Calendar.**SECOND, 0);
>> if(mUpdateOnAirLabel.**sendEmptyMessageAtTime(1,
>> updateTime.getTimeInMillis()))**{
>> // messages gets placed
>> }
>> }
>>
>> private Handler mUpdateOnAirLabel = new Handler() {
>> public void dispatchMessage(android.os.**Message msg) {
>> // doesn't get triggered
>> }
>>  public void handleMessage(android.os.**Message msg) {
>> // doesn't get triggered
>> }
>> };
>>
>> The time I get from the calendar object is right:
>>
>> >
>> echo date("r", 1348753200578 / 1000);
>>
>> output: Thu, 27 Sep 2012 17:40:00 +0400
>>
>> After that I've tried to offset from the current timestamp
>>
>> Calendar now = Calendar.getInstance();
>> long nowt = now.getTimeInMillis();
>> if(mUpdateOnAirLabel.**sendEmptyMessageAtTime(1,
>> now.getTimeInMillis() + 5000)){
>> ...
>> }
>>
>> And it's not triggering either. What's wrong here ?
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] silent install ADT eclipse plugin fails

2012-09-30 Thread toto
Hi 
I must be doing something wrong. 
I was trying to do a silent install of the ADT plugin into Eclipse 3.7.2 . 
(I need to do mass-distributed install - which is why I choose command line 
install)
so I ran a script:
java -jar plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar 
-application org.eclipse.update.core.standaloneUpdate -command install 
-from jar:file:/tmp/ADT-20.0.2.zip!/ -featureId com.android.ide.eclipse.adt 
-version 20.0.2.v201207191942-407447 -data /tmp/eclipseTest/workspace/ 
-consoleLog

but then eclipse returns with 
Contains: Android Development Tools (20.0.2.v201207191942-407447) requires 
plug-in "com.android.ide.eclipse.base".
!SUBENTRY 1 org.eclipse.update.core 4 4 2012-09-30 08:51:38.673
!MESSAGE Requested operation cannot be performed because it would 
invalidate the current configuration. See details for more information.

so I am missing the base plugin.
does anyone know how to install the "base" using command line ? it doesn't 
have a "featureId" .

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