[android-developers] Problem while Testing in Debugging Mode on Real Android Device

2012-11-03 Thread Aadi Rockzz
Hi, I'm developing a Application which will sync with local-server 
database. I used jtds.jdbc jar file to connect to Database on my Server. 
It's working fine in Emulator. While i tried to test the application in 
Real Device it's Giving me the Following Error in LogCat.

D/SntpClient(59): request time failed: java.net.SocketException: Address 
family not supported by protocol
I'm running on Windows 7 Professional (32-bit) Service Pack1
Eclipse-SDK-3.7.1-win32

If anyone knows why this error is coming please help me to solve this issue.

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

[android-developers] Re: Maven vs Ant

2012-11-03 Thread dnk
For small apps with a few library modules, ant should suffice. 

For bigger projects, different repos that share code etc Maven is the way 
to go.


On Friday, November 2, 2012 12:00:31 AM UTC-7, uudashr wrote:

 Hi all, 

 I see in maven repo, some of android version not exists (ex: android 
 4.0.3) and official SDK already support the ant script.
 Which one preferred or better for android dev?

 Regards, 
 Uud


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: (Http)URLConnection.setUseCaches(false) isn't working

2012-11-03 Thread Keith Wiley
Why was my response to this message deleted?  At any rate, all I said was 
that I wasn't familiar with the methods you suggested and that I'll look 
them up.

Thanks.

On Friday, November 2, 2012 6:59:25 AM UTC-7, Streets Of Boston wrote:

 Did you try to add caching headers to the request and/or response:
 Your android client app' request: If-None-Match: **, 
 If-Modified-Since: **, If-Unmodified-Since: **
 Your server's response: Cache-Control: *no-cache*, ETag: *x*

 On Friday, November 2, 2012 2:40:57 AM UTC-4, Keith Wiley wrote:

 I guess one solution that seems to show promise is appending an unused 
 randomized GET variable to the end of the URL.  That seems pretty hackish 
 though.



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

[android-developers] Sending group SMS android

2012-11-03 Thread Haris


Hi

   I need to crete an application like group messaging. For that I am using 
SmsManager class. 

MY code look like


static ListString phone_num = new ArrayListString();static ListString SMS 
= new ArrayListString();

   @Overridepublic void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
readExcelFile(this, /sdcard/Excel.xls);
View readExcelButton = findViewById(R.id.buttonSend);
readExcelButton.setOnClickListener(this);
}


  public void onClick(View v) {
switch (v.getId()) {
case R.id.buttonSend:
  for(int i=0;iphone_num.size();i++)
{
   SmsManager smsManager = SmsManager.getDefault();
   smsManager.sendTextMessage(phone_num.get(i),SMS.get(i), null, 
null);
}

  Toast.makeText(getBaseContext(), 
Sendingfinished,Toast.LENGTH_SHORT).show();  


break;
   default: break;
}
}


My question is, is it a right method for sending group sms. Or should I 
create pendingIntent with broadcast receiver to monitor the sending process 
and wait inside the for loop until each message send finished to send next. 

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] Bluetoothchat Sample - Datapackages fragmented

2012-11-03 Thread Ingo Klein
Hi all,
i got a huge Problem with my my Device (µC/BTM222 Bluetooth Modul) 
and an Android-Phone (S1 - 2.3.3) as a receiver for the Bluetooth Data.
If i send my 55 Byte-Package from my Device my Android-Phone running
the Google Bluetoothchat-Sample,it got splitted into 1-3 packages containing
 all Bytes, producing 3 diffent InputStreams!

Now i tried the App GetBlue and send 133bytes of Hex-Data to the other
Smartphone running Bluetooth-Chat - 1 InputStream, all 133bytes 
continuously
without any splitting, Data Ok !
Now i choose send to Datasink (or similiar,German Translation) and send 
the
same 133 bytes.They got split up into 5-60 differnt Streams! 

Just to clearify : it has nothing to do with the handle.message the 
packages are 
already splitted in the Service at *private class ConnectedThread extends 
Thread*.

As far as i know my BTM220 is in Default-Clientmode and the Bluetoothchat is
a Server.But according to the Test with GetBlue it seams to me that both
Bluetooth Devices needs to be the same (server/server or client/client) or 
my
BTM220 is per default also in Server(Master)Mode and that causes the 
splitting.

But i thought it should make no difference from what kind of Device the
Data is send?!

Any thoughts on this ?


Thanks in advance
Ingo

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

2012-11-03 Thread Zsolt Vasvari
Can't do -- it would just make too much sense.

The same way, if you have your app localized into a language not on the 
short list of supported languages for descriptions, you are shit out of 
luck.

As if CS PhD's working in academia were running the Google Play Store 
Wait

On Friday, November 2, 2012 4:14:27 PM UTC+8, Hans Maulwurf wrote:

 Hmm, if noone knows whether this is possible I'll have to assume that it 
 isn't posible at all...


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

Re: [android-developers] Problem while Testing in Debugging Mode on Real Android Device

2012-11-03 Thread Kostya Vasilyev
This message is coming from the system time sync code, not your app. Just
ignore it.
03.11.2012 10:18 пользователь Aadi Rockzz sakzk...@gmail.com написал:

 Hi, I'm developing a Application which will sync with local-server
 database. I used jtds.jdbc jar file to connect to Database on my Server.
 It's working fine in Emulator. While i tried to test the application in
 Real Device it's Giving me the Following Error in LogCat.

 D/SntpClient(59): request time failed: java.net.SocketException: Address
 family not supported by protocol
 I'm running on Windows 7 Professional (32-bit) Service Pack1
 Eclipse-SDK-3.7.1-win32

 If anyone knows why this error is coming please help me to solve this
 issue.

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

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

2012-11-03 Thread al
I disagree with latimerius and his aversion for the android features. Yes, 
android significantly changed from version 2 to 3/4 and yes, this causes 
significant work for developers. However, there was a reason: to expand the 
android way to tablets. Avoiding the platform just guarantees that your 
apps will feel alien. Platforms change and if you want your app to feel 
native, you have to adopt. Such is life.

Regarding your question: yes, I would use the back button (no matter if 
it's a hard button or an on-screen button displayed by android itself) to 
get back to the main screen from the sub-screens.

If the back button is pressed while playing, many games pause and aks what 
to do (continue / Main menu) via a pop-up menu. While that menu is 
displayed, you may respond to pressing one of the offered menu options and 
alternatively to pressing back again. However, back button while a menu is 
displayed normally means just hide the menu. I.e. it should not go to the 
main screen but continue the game.

Am Freitag, 2. November 2012 17:02:58 UTC+1 schrieb Keith Wiley:

 Thanks for coming back to my original question.  So, perhaps we can all 
 consider my situation from a higher level and discuss the possible design 
 options we might choose from (and which options are most in the spirit of 
 intended Android user experience).  Although I have a few Android apps, the 
 one I'm concerned with at the moment is a game and the back button is used 
 to move between the various screens.  So, when the game launches you get 
 an on-screen menu of options (settings, scoreboard, play, credits).  
 Tapping those takes you to a corresponding screen while tapping the back 
 button takes you from those secondary screens back to the main menu (or 
 from the main menu it exits the app).  Likewise, while playing, the back 
 button doesn't immediately exit play mode back to the main menu but 
 rather first pauses the game.  From the paused view, a second back button 
 tap cancels play and returns to the main menu...while tapping the paused 
 screen (anywhere) resumes play.

 That's pretty much it...and my question is whether I need to offer a 
 nonback-button method for these various actions?  Should each of the 
 secondary screens have an on-screen return to main menu button?  Should 
 the main menu have an explicit quit option?  Should in-game-play not rely 
 on the back button to either pause the game or cancel and return to the 
 main menu?  These are the things I'm thinking about with as far as this 
 discussion is concerned.

 Thanks.

 On Friday, November 2, 2012 6:22:50 AM UTC-7, latimerius wrote:

 On Fri, Nov 2, 2012 at 1:02 PM, Mark Murphy mmu...@commonsware.com 
 wrote: 
  On Fri, Nov 2, 2012 at 2:10 AM, Keith Wiley kbw...@gmail.com wrote: 
  All right.  I brought this up a few weeks ago on this list and some of 
 the 
  advice on the topic was to avoid menus entirely and replace them with 
 in-app 
  soft-menus from now on...despite the action bar.  I guess that advice 
 was 
  incorrect. 
  
  There are developers who do not want to use the action bar, such as 
  game developers who find that an always-present action bar is a 
  distraction or clashes with their game-focused UI. A subset of those 
  developers are clinging desperately to the old options menu behavior 
  (e.g., setting android:targetSdkVersion to be under 11) -- the right 
  answer for these game developers is to add in-app soft menus that 
  blend in with the game UI. 

 The right answer would have been for Google to leave the button alone 
 - but we've talked about that already, the button was universally 
 useful, and there's not always a UI to blend in anyway. 

 Back on topic, my lesson for my remaining days on Android from the 
 Menu button fiasco and other breakages caused by previously guaranteed 
 stuff being pulled at whim from under people using them would be - 
 interact as little as possible with the platform.  Don't rely on stuff 
 on being there cause it likely won't, don't rely on APIs cause they 
 will be deprecated or changed. 

 As far as the Back button specifically, one would think that should be 
 safe to rely on.  Based on experience though, my advice would be, 
 think hard about what you need it for and what your alternatives are. 
 If you find any half-decent one, consider using it.  You might be glad 
 you did once next version of the platform is out. 



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

[android-developers] Re: How do updates for apps work in Google Play?

2012-11-03 Thread Nitin Sethi

Google play app does notify users of any app updates at regular intervals 
However, if the user has checked the auto-update checkbox for your app, 
your app is updated automatically as and when the update is available. It's 
upto user to check that checkbox however. You can also uses Google Cloud 
Messaging to notify users of app updates.

On Saturday, 3 November 2012 02:42:13 UTC+5:30, Jungle Jim wrote:

 I have recently written and uploaded to Google Play an update to a free 
 app I have written. It has about 50 active device installs.

 In order to notify the people who have active device installs, do I need 
 to do something particular in Google Play or Android Developer Console? Or 
 does it automatically notify the users that an update is available?



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

Re: [android-developers] Problem while Testing in Debugging Mode on Real Android Device

2012-11-03 Thread Anees Thyrantakath
But i'm not getting the Sync Data's From Database..I'm accessing database
data's Directly using jtds.jdbc driver so there no code to sync in system.



On Sat, Nov 3, 2012 at 2:42 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 This message is coming from the system time sync code, not your app. Just
 ignore it.
 03.11.2012 10:18 пользователь Aadi Rockzz sakzk...@gmail.com написал:

 Hi, I'm developing a Application which will sync with local-server
 database. I used jtds.jdbc jar file to connect to Database on my Server.
 It's working fine in Emulator. While i tried to test the application in
 Real Device it's Giving me the Following Error in LogCat.

 D/SntpClient(59): request time failed: java.net.SocketException: Address
 family not supported by protocol
 I'm running on Windows 7 Professional (32-bit) Service Pack1
 Eclipse-SDK-3.7.1-win32

 If anyone knows why this error is coming please help me to solve this
 issue.

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

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: How to improve image quality in Android Webkit (comparing with iOS)

2012-11-03 Thread huberte
Hi,

Le jeudi 1 novembre 2012 16:00:52 UTC-4, Anthony Prieur a écrit :

 Sorry I've no example myself, you would find on the net. 


Nope didn( find any.

Anyone to explain why the result is so poor on Android comparing with iOS 
dealing with image on  CSS/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

[android-developers] Problem while updating adapter from AsyncTask

2012-11-03 Thread Bajrang Asthana
I am getting below error while updating adapter from AsyncTask -

 java.lang.IllegalStateException: The content of the adapter has changed 
but ListView did not receive a notification. Make sure the content of your 
adapter is not modified from a background thread, but only from the UI 
thread. [in ListView(2131230767, class android.widget.ListView) with 
Adapter(class 
com.ascentive.extremespeed.moreoptions.InstalledAppsListAdapter)

The purpose of doing this is to get icons of all installed apps so that I 
can display all installed apps in list view. I refer following site -

http://impressive-artworx.de/2011/list-all-installed-apps-in-style/

please do suggest what alternate we can choose. 

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] Problem while updating adapter from AsyncTask

2012-11-03 Thread Mark Murphy
Make sure that you are updating your adapter in onPostExecute(), and
make sure that either the adapter calls notifyDataSetChanged() or you
call notifyDataSetChanged() on the adapter.

On Sat, Nov 3, 2012 at 10:15 AM, Bajrang Asthana
asthana.bajr...@gmail.com wrote:
 I am getting below error while updating adapter from AsyncTask -

  java.lang.IllegalStateException: The content of the adapter has changed but
 ListView did not receive a notification. Make sure the content of your
 adapter is not modified from a background thread, but only from the UI
 thread. [in ListView(2131230767, class android.widget.ListView) with
 Adapter(class
 com.ascentive.extremespeed.moreoptions.InstalledAppsListAdapter)

 The purpose of doing this is to get icons of all installed apps so that I
 can display all installed apps in list view. I refer following site -

 http://impressive-artworx.de/2011/list-all-installed-apps-in-style/

 please do suggest what alternate we can choose.

 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

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


Re: [android-developers] single selection listveiw

2012-11-03 Thread rauf qureshi
Hi Parmar,

yap, I have tried that but this will work with ArrayAdapter not by class
which extends BaseAdapter.

Thank you
Regards,
Rauf Qureshi

On Fri, Nov 2, 2012 at 11:53 AM, Nirav Parmar n.parma...@gmail.com wrote:

 Hi  Rauf,

 Did you have tried this 

   listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);

 Thanks  Regards,

 Nirav


 On Fri, Nov 2, 2012 at 10:19 AM, rauf qureshi qureshira...@gmail.comwrote:

 Thanks for reply me but i did that by check box.



 following code i have used for that

 checkProfileItem is object of checkbox and it is declare in ViewHolder
 class.

holder.checkProfileItem.setId(position);
 holder.checkProfileItem.setOnClickListener(new OnClickListener() {
 public void onClick(View v) {

 for (int i = 0; i  ProfileListBean.profileList.size();
 i++) {
 if (v.getId() == i) {

 //holder.checkProfileItem.setChecked(true);
 checkArray[i] = true;
 //Log.v(check, +position);
 } else {
 checkArray[i] = false;
 }
 }
 notifyDataSetChanged();
  }

 });

 if(checkArray[position]){
 holder.checkProfileItem.setChecked(true);
 } else {
 holder.checkProfileItem.setChecked(false);
 }


 Thank you
 Regards,
 Rauf Qureshi


 On Wed, Oct 31, 2012 at 12:04 PM, Narendra Singh Rathore 
 nsr.curi...@gmail.com wrote:



 On Wed, Oct 31, 2012 at 10:51 AM, rauf qureshi 
 qureshira...@gmail.comwrote:

 hello friends,

 I am developing listview with customerAdapter which extends
 baseAdapter,in each item of list there is two textview and one check box is
 there , so i want to select one check box at a time but i am unable to do
 that can any body give me solution for that


 Hi Rauf,
 I guess RadioButton is better way to do what you want, as you can use
 RadioGroup, as parent view to the radiobuttons if you want single selection.

 As well as I guess using checkbox should be preferred in case of
 selecting multiple items.

 You can ask if you have further queries.


 Thanks and Regards,
 NSR

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


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




 --
 Thanks  Regards,
 Nirav

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

2012-11-03 Thread kj
I can understand the frustration with system changes regarding the options 
menu, but it really isn't that much work if you are OK with sporting an 
ActionBar in your app (which most apps should). The menu API works the 
same, its just that the menu popup behavior now is placed in the ActionBar 
when using the options menu APIs. This is NOT a reason to make a lot of 
work for yourself to avoid dependency on the Android APIs. If you used menu 
XML files and the standard callbacks, you should have almost no work to do 
in supporting ActionBars, you can even bring the ActionBar to older devices 
with ActionBarSherlock if you desire consistency across all Android 
versions.

--kj

On Friday, November 2, 2012 1:11:27 AM UTC-4, Keith Wiley wrote:

 My understanding is that modern Android best practice is to not use the 
 system-level menu button or system-level options menu anymore since such 
 buttons are frequently difficult to access or even absent on some devices.  
 I have gutted all menu access from my app as a result (I admit, it is quite 
 tedious to get access to the menus on some devices since you have to tap at 
 least once just to get a menu bar to appear and then again on a menu icon 
 to get the menu...and I'm not sure even that approach works on all of the 
 most modern devices).

 What I'm not sure about is whether I can still rely on the standard 'back' 
 button or whether I need to add such functionality to my UI (add a soft 
 button on my screen) on the concern that some devices may not present a 
 usable back button to the user.

 Any thoughts on this subject?


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

2012-11-03 Thread Mad-Doggie
Nothing yet?

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

Re: [android-developers] Re: Android/Windows Dual boot

2012-11-03 Thread Mark Murphy
On Sat, Nov 3, 2012 at 4:51 PM, Mad-Doggie maddogg...@gmail.com wrote:
 Nothing yet?

Your questions have nothing to do with this list, which is devoted to
building apps with the Android SDK.

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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

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


[android-developers] R Can Not be Resolved

2012-11-03 Thread Kevin Brooks
It has been a while since I have done any Android Development.  I 
started a new project today, and after creating the project I get an 
error R can not be resolved.


I am using Eclipse Indigo 3.7 with the Latest Android SDK.

I apologize if this has already been answered, I did a search through 
the messages and couldn't find 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


Re: [android-developers] R Can Not be Resolved

2012-11-03 Thread Mark Murphy
This means that either one of your resources has a problem or your
AndroidManifest.xml file has a problem. Look for red X marks over such
files in the Package Explorer, or look in the Android portion of the
Eclipse Console for error messages.

On Sat, Nov 3, 2012 at 5:58 PM, Kevin Brooks bear35...@gmail.com wrote:
 It has been a while since I have done any Android Development.  I started a
 new project today, and after creating the project I get an error R can not
 be resolved.

 I am using Eclipse Indigo 3.7 with the Latest Android SDK.

 I apologize if this has already been answered, I did a search through the
 messages and couldn't find 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



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

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

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


Re: [android-developers] R Can Not be Resolved

2012-11-03 Thread Rocky
check any error in .xml file, den delete gen folder, delete all import
android.R line. recompile.



On Sun, Nov 4, 2012 at 3:28 AM, Kevin Brooks bear35...@gmail.com wrote:

 It has been a while since I have done any Android Development.  I started
 a new project today, and after creating the project I get an error R can
 not be resolved.

 I am using Eclipse Indigo 3.7 with the Latest Android SDK.

 I apologize if this has already been answered, I did a search through the
 messages and couldn't find 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




-- 
Thanks  Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
Skype - rkjhaw
(O) +918050753516
(R) +919886336619

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

2012-11-03 Thread Kevin Brooks
I did not see any errors in the console.  I did install more of the 
support for older Android versions and I received this error.


Stopping ADB server failed (code -1).
Unable to run 'adb': Cannot run program 
/home/kevin/Downloads/android-sdk-linux/platform-tools/adb: 
java.io.IOException: error=2, No such file or directory.

Starting ADB server failed (code -1).


I know this problem can also be caused by a problem in the Manifest XML 
so I am copying it here:


manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.dbindustries.alcohol.tracker
android:versionCode=1
android:versionName=1.0 

uses-sdk
android:minSdkVersion=8
android:targetSdkVersion=15 /

application
android:icon=@drawable/ic_launcher
android:label=@string/app_name
android:theme=@style/AppTheme 
activity
android:name=.MainActivity
android:label=@string/title_activity_main 
intent-filter
action android:name=android.intent.action.MAIN /

category 
android:name=android.intent.category.LAUNCHER /

/intent-filter
/activity
/application

/manifest


On 11/3/2012 5:02 PM, Mark Murphy wrote:

This means that either one of your resources has a problem or your
AndroidManifest.xml file has a problem. Look for red X marks over such
files in the Package Explorer, or look in the Android portion of the
Eclipse Console for error messages.

On Sat, Nov 3, 2012 at 5:58 PM, Kevin Brooks bear35...@gmail.com wrote:

It has been a while since I have done any Android Development.  I started a
new project today, and after creating the project I get an error R can not
be resolved.

I am using Eclipse Indigo 3.7 with the Latest Android SDK.

I apologize if this has already been answered, I did a search through the
messages and couldn't find 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





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


Re: [android-developers] Problem while updating adapter from AsyncTask

2012-11-03 Thread Bajrang Asthana
Yes I am updating adapter in onPostExecute() method (as it runs in UI 
thread). In onPostExecute() method i am simply calling 
adpater.notifyDataSetChanged(). 

On Saturday, November 3, 2012 7:58:29 PM UTC+5:30, Mark Murphy (a Commons 
Guy) wrote:

 Make sure that you are updating your adapter in onPostExecute(), and 
 make sure that either the adapter calls notifyDataSetChanged() or you 
 call notifyDataSetChanged() on the adapter. 

 On Sat, Nov 3, 2012 at 10:15 AM, Bajrang Asthana 
 asthana...@gmail.com javascript: wrote: 
  I am getting below error while updating adapter from AsyncTask - 
  
   java.lang.IllegalStateException: The content of the adapter has changed 
 but 
  ListView did not receive a notification. Make sure the content of your 
  adapter is not modified from a background thread, but only from the UI 
  thread. [in ListView(2131230767, class android.widget.ListView) with 
  Adapter(class 
  com.ascentive.extremespeed.moreoptions.InstalledAppsListAdapter) 
  
  The purpose of doing this is to get icons of all installed apps so that 
 I 
  can display all installed apps in list view. I refer following site - 
  
  http://impressive-artworx.de/2011/list-all-installed-apps-in-style/ 
  
  please do suggest what alternate we can choose. 
  
  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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  For more options, visit this group at 
  http://groups.google.com/group/android-developers?hl=en 



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

 _The Busy Coder's Guide to Android Development_ Version 4.2 Available! 


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