Image Copy-writes

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Image Copy-writes

Postby Wiseman20 » Mon Jul 26, 2010 10:08 pm

Hello Android community,

I bought my first Android phone last week and am already excited to write my first mobile application. Before I release it to the public I need to know what crosses the line for images. I have written a speedometer application using the Lexus LFA Tac, but by photoshopping it turned it into a speedometer. I have removed the non useful utilities of the original image Gas, Battery... but kept the needle, circular speedometer, numbers. What I am trying to get a firm grasp before I get slapped with a subpoena.

Do free applications require original artwork?
Is this acceptable for a purchased item?
Do the graphics have to be 100% original?

On a side note, I know this belongs in the code section and is really only a one line of code change, but how do I prevent my program from timing out, sleeping and locking the screen?
Wiseman20
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Jul 26, 2010 9:57 pm

Top

Re: Image Copy-writes

Postby midasmax » Tue Jul 27, 2010 12:28 am

Not entirely sure what the protocol is with regards to taking images and modifying them. Perhaps somone else would be able to have a better take on that matter. As far as I know, the market is FILLED with apps with blatant copyright infringements anyway (using Disney characters, Cartoon characters, etc.), so if anything, I would expect those guys to get it first.

What I might be able to help with is with the screen dimming turning off problem. You can use wake locks.

http://developer.android.com/reference/ ... nager.html

Basically, you just need to do something like:

Code: Select all
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");
wl.acquire();
   ..screen will stay on during this section..
wl.release();


Hope that helps!
midasmax
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Jul 14, 2010 11:07 pm

Re: Image Copy-writes

Postby Wiseman20 » Tue Jul 27, 2010 12:39 am

I was actually reading about this right before you posted it. I implemented this in my onCreate() function but am getting an exception when opening my application now. wl.acquire() is throwing it. I am using Android 2.1 HTC Sense - EVO

Any ideas?
Wiseman20
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Jul 26, 2010 9:57 pm

Re: Image Copy-writes

Postby midasmax » Tue Jul 27, 2010 12:48 am

Hm, any idea on what the exception is?
Or perhaps you could paste your code and we can take a look at it :)

*update*
Also, do note that when you acquire a lock, the phone has to be at whatever level you're requesting it for. So for the above, it has to be in a DIM level.

You can try changing it to :
Code: Select all
pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "Your Tag Here");
midasmax
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Jul 14, 2010 11:07 pm

Re: Image Copy-writes

Postby Wiseman20 » Tue Jul 27, 2010 1:34 am

Code: Select all
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "GPS");
wl.acquire();



What do you mean by my level? Is there something in the manifest I need to specify. I am getting a NullPointerException. I am releasing it on onDestroy()
Last edited by Wiseman20 on Tue Jul 27, 2010 1:40 am, edited 1 time in total.
Wiseman20
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Jul 26, 2010 9:57 pm

Re: Image Copy-writes

Postby midasmax » Tue Jul 27, 2010 1:39 am

I meant the level of your screen dimming.

Anyhow, try this in your manifest!
<uses-permission android:name="android.permission.WAKE_LOCK" />
midasmax
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Jul 14, 2010 11:07 pm

Top

Re: Image Copy-writes

Postby Wiseman20 » Tue Jul 27, 2010 1:42 am

Noluck on the manifest fix
Wiseman20
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Jul 26, 2010 9:57 pm

Re: Image Copy-writes

Postby midasmax » Tue Jul 27, 2010 2:08 am

Do you mind posting your onCreate and onDestroy methods?
midasmax
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Jul 14, 2010 11:07 pm

Re: Image Copy-writes

Postby Wiseman20 » Tue Jul 27, 2010 4:30 am

Wow well in the process of cleaning up my code I resolved the problem. I have no clue what line changed it but its working great now. I was using messy bitmaps and rotations with matrix shenanigans when all I needed was a simple animation. I didn't change anything with the PowerManagement, I guess taking the breather and going to the beach was the cure.

Is there anyone else that can give me input about the copywrites? I have attached an image of what it looks like now
Attachments
speedo.jpg
speedo.jpg (298.78 KiB) Viewed 259 times
Wiseman20
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Jul 26, 2010 9:57 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests