kjones9999
Code is Art
Profile
Posts: 8
Reg: Oct 27, 2013
Tabor City
80
01/27/14 11:56 PM (11 years ago)

Cp stream -- too dumb to figure out instructions

Hi. Guess I dont understand. I downloaded the cp stream app. The instructions say: 1. JUST ABOVE the "</application>" line <service android:name=".Cp_streamservice" android:enabled="true" /> /////remember to replace "Your Package name" with your Application package name//// ME*******************************I know the package name-- where should it go? 2. Update the Manifest. Find the Activity listing in the manifest that looks like this... <activity android:name=".Cp_stream" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"> </activity> ADD android:launchMode="singleTop" like this... <activity android:name=".Cp_stream" android:configChanges="keyboardHidden|orientation" android:label="@string/app_name" android:launchMode="singleTop"> </activity> ME********************* Completely lost here. I have none of this text in my manifest and pasting it there gives me a parent child application error. Any ideas?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/28/14 12:53 AM (11 years ago)
Here is a copy of my Android BTv2 app that uses CPStream. I love the plugin. I think Cookup did a great job. https://dl.dropboxusercontent.com/u/115208762/mymanifest.xml If you'll look at my entries for the plugin (specifically, Lines 80, 81, and 85) you might be able to copy/paste them into yours 'around' the same area. Everything looks a lot cleaner if you don't 'word wrap' the document. Let me know if nothing looks familiar. Cheers! -- Smug
 
kjones9999
Code is Art
Profile
Posts: 8
Reg: Oct 27, 2013
Tabor City
80
like
01/28/14 08:39 AM (11 years ago)
This clears a lot up! A couple of questions -- Find the Activity listing in the manifest that looks like this... <activity android:name=".Cp_stream" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"> </activity> *****************Should this be there after the app build? The instructions say "find" not "insert" which made me think it was there from the beginning. /////remember to replace "Your Package name" with your Application package name//// ****************Why is this here if I don't have to do anything-- or am I missing something? Thanks for your help!
 
kjones9999
Code is Art
Profile
Posts: 8
Reg: Oct 27, 2013
Tabor City
80
like
01/28/14 11:02 AM (11 years ago)
So no joy, here are the last few lines of my manifest <activity android:name=".Cp_stream" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"/> <activity android:name=".Cp_streamservice" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:launchMode="singleTop"/> <service android:name=".Cp_streamservice" android:enabled="true"/> </application> </manifest> I am getting error after error that says cp_stream cannot be resolved or is not a field Cp_stream.java line 95 Java Problem Also getting a few bt screen error of the same. Any ideas?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/28/14 04:01 PM (11 years ago)
Are the java files in your project? Cheers! -- Smug
 
kjones9999
Code is Art
Profile
Posts: 8
Reg: Oct 27, 2013
Tabor City
80
like
01/30/14 01:35 PM (11 years ago)
Thanks for your help. As it turned out, your xml helped me... I just forgot to rebuild. This appears to be an excellent plugin, although the instructions were not clear at least to me. The manifest should read something like this: <activity android:name=".Cp_stream" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation"/> <activity android:name=".Cp_streamservice" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:launchMode="singleTop"/> <service android:name=".Cp_streamservice" android:enabled="true"/> This is right before the </application> tag. I didn't need to add my app name anywhere in the manifest. Thanks for your help smug, you made it happen for me!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.