[android-developers] Can't compile after update to ADT 21
Updated everything to the new ADT 21 and now I can't compile anymore. *Eclipse* It seems like some resources do not exist in R.java anymore. Some others do exist. Seems like all the library projects show up fine in there, just the project itself has only about half the resources show up in there. This applies to R.dimen, R.layout, R.drawable and R.id (and others too i guess). The errors showing up are all cannot be resolved or is not a field Weird is, that if I just run ant debug in the shell, it compiles fine. *Jenkins* Updated to ADT 21 as well on the Jenkins build server and there the same problem occurs to some projects. Not to all. Only errors seem to be the symbol not found errors. [javac] /path.../.../ListAdapter.java:81: cannot find symbol [javac] symbol : variable part_item_row [javac] location: class jp.cyberagent.android.base.R.layout [javac] view = LayoutInflater.from(getContext()).inflate(R.layout.part_item_row, parent, false); One side note. The projects where it does occur are projects that use libraries that depend on other libraries. Would be glad if anybody could point me in the right direction to solve this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can't compile after update to ADT 21
You are right. Why did I not see/try that? Thanks a lot! They are actually doing it right now it seems :). Before it did not matter that much which R you included. Now it does. :) On Friday, November 16, 2012 3:37:58 PM UTC+9, Kumar Bibek wrote: Remove the imports for your projects's R file. I guess, you are having problems with R. For example, if in any Java class which is in your base package, you don't need to write the import statement for R. Removing those imports fixed my problems. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Fri, Nov 16, 2012 at 12:00 PM, Patrick Boos patric...@gmail.comjavascript: wrote: Updated everything to the new ADT 21 and now I can't compile anymore. *Eclipse* It seems like some resources do not exist in R.java anymore. Some others do exist. Seems like all the library projects show up fine in there, just the project itself has only about half the resources show up in there. This applies to R.dimen, R.layout, R.drawable and R.id (and others too i guess). The errors showing up are all cannot be resolved or is not a field Weird is, that if I just run ant debug in the shell, it compiles fine. *Jenkins* Updated to ADT 21 as well on the Jenkins build server and there the same problem occurs to some projects. Not to all. Only errors seem to be the symbol not found errors. [javac] /path.../.../ListAdapter.java:81: cannot find symbol [javac] symbol : variable part_item_row [javac] location: class jp.cyberagent.android.base.R.layout [javac] view = LayoutInflater.from(getContext()).inflate(R.layout.part_item_row, parent, false); One side note. The projects where it does occur are projects that use libraries that depend on other libraries. Would be glad if anybody could point me in the right direction to solve this problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'
Experiencing same problem. If I run the tests through eclipse they run fine on 2.3. But installing the apks by hand through adb and then running: adb shell am instrument -w ${TEST_PACKAGE_NAME}/android.test.InstrumentationTestRunner Gives me the given error. So questions is. What is different between how eclipse runs those tests? On Wednesday, August 29, 2012 5:35:52 PM UTC+9, blizzard wrote: The purpose of Maven ? Configuration controle ... release management ... reporting the list goes on and on. However, the problem I experience above occurs on both maven and ant builds. On Tuesday, August 28, 2012 11:31:27 AM UTC+2, Jason Sesso wrote: I'm trying to understand mavens purpose -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'
I think I found the problem. It has to do with RUNNING ALL TESTS. Run each test case one by one and the problem does not occur. No idea why. Maybe a bug in running all tests? For example. I have my SampleActivityTest extends SingleLaunchActivityTestCase This will have the problem: adb shell am instrument -w jp.cyberagent.testgrid.android.sample.test/android.test.InstrumentationTestRunner Adding -e package jp.cyberagent.testgrid.android.sample.test has the same problem. whereas this will run it okay: adb shell am instrument -w -e class jp.cyberagent.testgrid.android.sample.test.SampleActivityTest jp.cyberagent.testgrid.android.sample.test/android.test.InstrumentationTestRunner Now the question is: WHY? On Friday, October 26, 2012 9:12:17 AM UTC+9, Patrick Boos wrote: Experiencing same problem. If I run the tests through eclipse they run fine on 2.3. But installing the apks by hand through adb and then running: adb shell am instrument -w ${TEST_PACKAGE_NAME}/android.test.InstrumentationTestRunner Gives me the given error. So questions is. What is different between how eclipse runs those tests? On Wednesday, August 29, 2012 5:35:52 PM UTC+9, blizzard wrote: The purpose of Maven ? Configuration controle ... release management ... reporting the list goes on and on. However, the problem I experience above occurs on both maven and ant builds. On Tuesday, August 28, 2012 11:31:27 AM UTC+2, Jason Sesso wrote: I'm trying to understand mavens purpose -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 maven plugin: Adding android support jar to test project ~ Cannot load class 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'
To clarify. Eclipse has the same problem. I on accident tested the single test only where it worked. On Thursday, August 23, 2012 5:56:18 PM UTC+9, blizzard wrote: Hello everyone, I'm having trouble executing instrumentation tests using the android maven plugin. I have followed the libraryprojects example to the last detail, however, there is one slight difference in my setup ~ i'm adding the android support jar as an external dependency. My setup looks as follows: APK lib project (greendroid to be specific) dependency groupIdcom.google.android/groupId artifactIdsupport-v4/artifactId versionr6/version /dependency dependency groupIdcom.google.android/groupId artifactIdandroid/artifactId scopeprovided/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId scopetest/scope /dependency APK project dependency groupIdcom.google.android/groupId artifactIdandroid/artifactId scopeprovided/scope /dependency dependency groupIdgreendroid/groupId artifactIdGreenDroidFragment/artifactId version1.0.0-SNAPSHOT/version typeapklib/type /dependency APK test project (and here's the problem ) dependency groupIdcom.google.android/groupId artifactIdsupport-v4/artifactId versionr6/version /dependency dependency groupIdcom.google.android/groupId artifactIdandroid/artifactId scopeprovided/scope /dependency dependency groupIdcom.google.android/groupId artifactIdandroid-test/artifactId scopeprovided/scope /dependency dependency groupIdcom.jayway.android.robotium/groupId artifactIdrobotium-solo/artifactId version3.2.1/version /dependency dependency groupIdcom.entersectmobile/groupId artifactIdNMACFragment/artifactId version1.0.0-SNAPSHOT/version typeapk/type scopeprovided/scope /dependency dependency groupIdcom.entersectmobile/groupId artifactIdNMACFragment/artifactId version1.0.0-SNAPSHOT/version typejar/type scopeprovided/scope /dependency The problem is that delvik is unable to find or link support jar upon running instrumentation tests. By packaging the android support jar as part of the APK test project, delvik complains that it's unable to resolve the compiled code. This is because the dex output of the main APK is different from the dex output of the test APK. W/dalvikvm(328): Class resolved by unexpected DEX: Lcom/entersectmobile/android/nedbank/GenerateOtpFragment;(0x44edffb0):0x121de0 ref [Landroid/support/v4/app/Fragment;] Landroid/support/v4/app/Fragment;(0x44edffb0) By not packaging the android support as part of the APK test project, delvik is unable to locate the compiled code. This happens when making the scope provided or excluding the dependency completely. W/ClassPathPackageInfoSource(632): Cannot load class. Make sure it is in your apk. Class name: 'android.support.v4.os.ParcelableCompatCreatorHoneycombMR2'. Message: android.support.v4.os.ParcelableCompatCreatorHoneycombMR2 The only thing I can think of is to somehow manually tell the APK test project to resolve the android-support dependency from the main APK project using a delvik linking mechanism. Any ideas would be much appreciated, Thanks -Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC - Custom Tag Dispatching
yes you can. use your own mimeType and then the intent filter: intent-filter action android:name=android.nfc.action.NDEF_DISCOVERED/ data android:mimeType=mime/type / /intent-filter ass well in the forgroundDispatch you can define for which mime type to listen. On May 5, 2:13 am, Troy Steinbauer troysteinba...@gmail.com wrote: I am writing an app that will use the P2P part of the NFC package, and I would like no other android app possibly handel the intent generated from my tag being pushed. I want to prevent the Application Chooser from being launched. But if a user has an app that attempts to catch all tags (like a generic tag reader app), then it will show the Application Chooser. Can I use 'android.nfc.action.NDEF_DISCOVERED' with a unique data field for my application only? or Can I use 'android.nfc.action.TECH_DISCOVERED' with a custom Tech inside the tech-list? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Kill/Stop other Services in API 8 (Froyo 2.2)
I know of the wonderful change from 2.1 to 2.2 that ActivityManager.restartPackage now doesn't do the dirty stuff anymore since it now calls killBackgroundProcesses. Nice on one side, but bad on the other side. Because of that Services are not killed anymore. See as well: http://groups.google.com/group/android-developers/browse_thread/thread/6a544bfd05bf10cf/dc495cdeaa92c98d?lnk=gstq=killbackgroundprocesses#dc495cdeaa92c98d I am the developer of SleepTimer in the Android market and used restartPackage to stop Music Players to play music. I therefore killed the services. That worked well. But now with killBackgroundProcesses it doesn't work anymore. I added the new Permission to my manifest, but still the music remains running. Yes i know that google kind of wants that. But it breaks the possibility to stop the different music players from my app. Now my question: Is there another way to kill/stop other services (music player services) in API 8? Thank you for your help. Sincerely, Patrick boos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Communication over USB with Program on Computer
Goal: Send Data from the phone to the computer (and the other way) using only the USB cable. We need this to synchronize data between the a program on the android phone and a program on the computer. Over Wifi is not an option. It has to work over the USB cable. We need this for a university project and would be glad if anyone could enlighten us on this matter. Thank you already for the help. Greetings Patrick Boos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---