yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] JGUI:
In my Phone Profiles you have "staccato" vibration. I named it: pulsed vibrate. Both for rings and sms alerts.

I know that many users have problems with my Phone Profiles, but also I know how many users use it without problems (believe me: more). I still improve my softeware and make modifications and fixes. The problem depends from another software inside your hardware. Most of them are because IDCaller is inside the default OEM system in some hardware and users cannot remove this program. Alternatively you have not to use a advanced features from my software.

I give a free trial version to check how it works with your phone.
[Windows Mobile Development and Hacking General] Metalz:
Like chriswo said, the setting will revert back to it's default whenever you change your ringtones. Are there any way so that the change can be permanent there?
[Windows Mobile Development and Hacking General] origor:
just my 2 cents and my 1st post here... hope it will be of some help!

I found out using PocketZenPhone, you could change the type of vibration and Ringtones to your needs for each profile. Just have to replace the codes in the PZP Setting Output files and then import them in for each profiles.

Thanks to this thread, I've manage to found out what each codes meants. I've added some additions. So sharing here for all to see...

Ring Values:

------------

Display - a

Flash - af1w60f0

Ring - apw3r

Ring Once - ap

Increasing Ring - c50apw3c150r

Vibrate Then Ring - v3w3apw3r

Vibrate - av3w3r

Short Vibrate - av1w3r

Vibrate Long Then Ring - v3w3v3w3apw3r

Vibrate And Ring - av0pw3r

Increasing Ring And Vibrate - c50apv3w3c150r

Fast Vibrate And Flash - af1v1w1f0r

Just to add more: -

f1 stands for flash for 1 second and f0 stands for flash continuous

a stands for display

That's it!
[Windows Mobile Development and Hacking General] Shtopor:
I want to join Sella in question how to make device vibrate with pauses and play long melody at the same time...

I already tryed to make two cicles but it didn't work :(

So, maybe you have any ideas???

Please HEPL! :(
[Windows Mobile Development and Hacking General] mousio:
And some more info :)

One can use a number for "p" as well, e.g. "p3" will only play the first 3 seconds of the ringtone.

When using a command with a number greater than 0, it represents a time span in seconds that the command will be executed separately, but when using 0 (for continuous) it can be combined with another command (limiting its "continuous" characteristic):

- v0 will vibrate continuously;

- v3 will vibrate for 3 seconds;

- v3p will vibrate for 3 seconds, then play the ringtone;

- v0p will vibrate and play the ringtone at the same time, and when the ringtone stops, the vibrating stops as well;

- v0p3 will vibrate and play the ringtone at the same time, and stop after 3 seconds...

My script now reads: v0pav1pr, meaning it will vibrate during the first ringtone, then it will loop a 1-second vibration followed by a plain ringtone.
[Windows Mobile Development and Hacking General] kimosak:
vibrate with pauses and play long melody at the same time..

I want the same things.. any ideas? Tip for application or registry hack? Thanks..
[Windows Mobile Development and Hacking General] crusieUser:
Wrote a little app to automate changing the registry for me.

You can find it here

http://www.codeplex.com/RingtoneHack/Release/ProjectReleases.aspx?ReleaseId=14363#ReleaseFiles

Pls note, use at your own risk since the app modifies the registry keys as mentioned in this thread.
[Windows Mobile Development and Hacking General] atomic2mod:
Your app could help us sprint diamond users a great deal - with some modificatons. If you feel like it and have the time.

Since the official rom update, we no longer get "ring & vibrate" to stick. It reverts itself back to "ring" after every soft reset.

What we need is an app that initializes in StartUp and runs a script to change the settings to "av0pw3r" automatically.

That would be soooooooo awesome!!!!
[Android Apps and Games] Beep_Beep:
Agent Sheep

Hello friends! Want to share my first game. A small "Stealth" game for android. :)

We play with a secret agent "Sheep", which has been sent by the "Agency" on the dangerous mission.

This time,our task is collect the secret key that has been divided into parts and disguised as a bones, which is guarded by dangerous policeman-dogs!

Help the "Agency" collect all the bones and save the world from the new threat! :)

[YOUTUBE]qpwthsE9mso[/YOUTUBE]​
[Android Apps and Games] PenguinxEnjoi:
https://play.google.com/store/apps/details?id=com.AgentSheep.BeepGames
[Android Apps and Games] RibsConcept:
Funny

Very funny application. Recommend
[Android Apps and Games] Beep_Beep:
New update

Thanks :fingers-crossed: Do not forget to update.

New mission everyday!
[Android Apps and Games] Beep_Beep:
Agent Sheep (Big Update)

Agent, we have a new questions for you! Your mission is to visit the page of "Agent Sheep" app.

Install the app on your device and complete the main mission!Save the world!GO!

---------------------------------------------------------------------

Play and complete new missions everyday, buy interesting devices, feel yourself like a secret agent, steal all bones and dont be caught!

Beatuiful 3D graphics and exciting gameplay wont let you leave unhappy!

And...Good luck!

SPY DIARY: honey farm

[YOUTUBE]wyZU95bwKJ4[/YOUTUBE]
[Android Apps and Games] Erda0:
looks great.

Downloading.......:D
[Android Apps and Games] Beep_Beep:
Thank you :)

New update: 1.16!

Added: New Mission (Maze)

Added: rustic toilet (the ability to hide in it) :laugh:

Added: Graphic setting

and more... :p
[Android Apps and Games] paco8:
Sup?

Hey Beep_Beep!

Thanks for your game! It's a lot of fun and it works great on my Note!

Congrats on being featured on xda! That should help you with the downloads count, I guess!

Greetings,

Paco.​
[Android Apps and Games] Cilenco:
Good graphics and really nice idea. Funny game thanks for this beautiful game :)
[Android Apps and Games] neato4u:
It's beautiful. A bit laggy on my lenovo dual core though (even on low graphic settings).. will try this on my Xperia Play and see if it's better.

If you can make the graphic more fluid that would be awesome. Featuring this on my blog soon :)
[Android Apps and Games] Beep_Beep:
Thank you very much :victory:
[Android Apps and Games] Beep_Beep:
astlyra some

Thank you friends :)

With each update I am trying to improve performance =)
[Android Apps and Games] bjornops:
Really great game! Runs smoothly on One X :D

The game itself is nice, but some small logic glitches in the menu, though only minor stuff:

- got a russian (cyrillic alphabet) message with option =) or =( when I tried closing the game the first time. Didn't know what to do with that, lol.

- menu "cards" animation is always towards the left side

- if you've got the skills I think you should enable swipe switching between levels :good:

I am looking forward to some serious nailbiting and heart attacks for some hours thanks to you :D

Great job!
[Android Apps and Games] BeRniTo:
Great game!! Thanks!! :D
[Android Apps and Games] m11kkaa:
The game concept is very nice but the missions are very very hard in my opinion.

I'm at the 4th mission("Hunter") and can't solve it. I tried it for 15min.
[Android Apps and Games] johnomaz:
This looks like a great game. I love the idea. Just installed it and if its too easy for me, my kids will surely love it.
[Android Apps and Games] fegone:
Reboot, crash

Hello, thanks for developing simple games like that ;) But I had a big issue. I was quitting the game and it asked how I was feeling, accidentely I pressed =( the sad smiley. It crashed into a reboot, and now it stucked on reboot, i can access to recovery but when i flash or reflash it just hangs... Is it possible that your app did that stuff ?
[Android Apps and Games] brakke97:
Awesome game! It's really addictive!
[Android Apps and Games] regP:
Playstore says it's not compatible with my nexus.. Dafuq?
[Android Apps and Games] addonelam:
Hrmm, Play Store said it was compatible with my Atrix.

When I booted the game, there was the initial sheep loading screen, and then completely black screen as the Mission Impossible song played. After blindly tapping the screen a bit, Mission "Return" loaded up and the game promptly FC'd.
[Java for Android App Development] nikwen:
Create a class with 4 ints x1, y1, x2, y2.

Then save them in the arraylist.
[Java for Android App Development] darthvader45:
Ok.

I'm using floats for the x and y values. Do floats not work?
[Java for Android App Development] nikwen:
Of couse you can use them as well.

I just said int because we do not need it to be that precise.
[Java for Android App Development] darthvader45:
That's good.

I have a MyLine class with float variables startX startY endX and endY. It contains a constructor that initializes those variables.

package com.lcc.java2final_lefelhocz;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class MyLine extends MyDrawable {
float startX;
float startY;
float endX;
float endY;
int color;
public MyLine(float aStartX, float aStartY, float stopX, float stopY, int aColor) {
// TODO Auto-generated constructor stub
startX = aStartX;
startY = aStartY;
endX = stopX;
endY = stopY;
color = aColor;

}
public void draw(Canvas canvas, Paint paint){
paint.setColor(Color.BLACK);
canvas.drawLine(startX, startY, endX, endY, paint);
}
}
[Java for Android App Development] nikwen:
If you already have this, I do not understand your question.

What do you want to achieve?
[Java for Android App Development] darthvader45:
Here's what I want to do:

I want to create an object of a line drawn, then store it in an ArrayList.
[Java for Android App Development] nikwen:
Ok. Create it using the constructor you created.

Then add it to the list using the add(Object o) method when it is drawn. That is all.
[Java for Android App Development] darthvader45:
Alrighty then:

The class MyLine contains this constructor:

public MyLine(float aStartX, float aStartY, float stopX, float stopY, int aColor) {
// TODO Auto-generated constructor stub
startX = aStartX;
startY = aStartY;
endX = stopX;
endY = stopY;
color = aColor;

^Should these variables be used when creating the object? The code for creating the object is as follows:

MyLine line1 = new MyLine(startX, startY, currentX, currentY, color);
[Java for Android App Development] nikwen:
I just had a closer look at your code.

I think that it should be working properly. What is the problem?
[Java for Android App Development] darthvader45:
Here is the problem:

I can draw one line, but as soon as I draw another line, the first one is overwritten. Basically, I can only have one line on the screen at a time.
[Java for Android App Development] nikwen:
Ah. Ok.

Do that:

case LINE:
// draw the rubber band line
paintFill.setColor(Color.BLACK);
for (MyLine l: shapeArray) {
canvas.drawLine(l.startX, l.startY, l.endX, l.endY, paintFill);
}
canvas.drawLine(startX, startY, currentX, currentY, paintFill);

break;

I am on my phone. I will fix typos.

---------- Post added at 09:26 PM ---------- Previous post was at 09:22 PM ----------

It should work now.

If it helps, please click the Thanks buttons below my posts. ;)
[Java for Android App Development] darthvader45:
Error!

I got an error: Type mismatch: cannot convert from element type MyDrawable to MyLine
[Java for Android App Development] nikwen:
Change ArrayList<MyDrawable> to ArrayList<MyLine>.

Create a different list for circles and rectangles.

---------- Post added at 09:35 PM ---------- Previous post was at 09:32 PM ----------

And check my updated code!
[Java for Android App Development] darthvader45:
Keep every shape(circle, rectangle, line) in the same ArrayList?

Ok, but I don't have any rubber-banding for the lines.
[Java for Android App Development] nikwen:
It is:

Then use something like this:

if (l instanceof MyLine) {

MyLine line = (MyLine) l;

//commands for lines

} else if (l instanceof MyRect) {

MyRect rect = (MyRect) l;

/...

}

Sorry for bad formatting. I am on my phone. ;)

---------- Post added at 09:40 PM ---------- Previous post was at 09:37 PM ----------

And of course use the new variable for drawing.

---------- Post added at 09:44 PM ---------- Previous post was at 09:40 PM ----------

Check my updated code above for that!
[Java for Android App Development] darthvader45:
Ok, wondering what to do here:

Um, where do I put that code? In the EVENT_UP?
[Java for Android App Development] nikwen:
That for the drawing?

Put it there where you draw the lines.
[Java for Android App Development] darthvader45:
???

So this code will allow for rubber banding?

protected void onDraw(Canvas canvas)
{
// Draw a Red Diagonal line from upper left corner to bottom right corner

// added for lab12
switch(drawType)
{
case LINE:
// draw the rubber band line
paintFill.setColor(Color.BLACK);
for (MyLine l: shapeArray) {
if (l instanceof MyLine) {
MyLine line = (MyLine) l;
canvas.drawLine(line.startX, line.startY, line.endX, line.endY, paintFill);
}

break;
}
case CIRCLE:
// distance =
radius = (float)Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));

for (MyCircle c: shapeArray2){
if (c instanceof MyCircle) {
MyCircle circle = (MyCircle) c;
canvas.drawCircle(circle.startX, circle.startY, radius, paintStroke);
}
break;
}
case RECTANGLE:
for (MyRectangle r: shapeArray3){
if (r instanceof MyRectangle) {
MyRectangle rect = (MyRectangle) r;
canvas.drawRect(rect.startX, rect.startY, currentX, currentY, paintStroke);
}
}
}
}
[Java for Android App Development] nikwen:
If I get it right, you want just the lines but not the circles to appear when the drawing mode is set to lines. If I am wrong, correct me.

Your solution is almost right. Just one little but important mistake:

case LINE:
// draw the rubber band line
paintFill.setColor(Color.BLACK);
for (MyLine l: shapeArray) {
if (l instanceof MyLine) {
MyLine line = (MyLine) l;
canvas.drawLine(line.startX, line.startY, line.endX, line.endY, paintFill);
}

[COLOR="Red"][STRIKE]break;[/STRIKE][/COLOR]
}
[COLOR="Red"] break;[/COLOR]

The changes are in red. Do that.

It is wrong for the circle, too.

---------- Post added at 10:05 PM ---------- Previous post was at 10:02 PM ----------

For the circle it should be:

case CIRCLE:
// distance =
radius = (float)Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));

for (MyCircle c: shapeArray2){
if (c instanceof MyCircle) {
MyCircle circle = (MyCircle) c;
canvas.drawCircle(circle.startX, circle.startY, circle.radius, paintStroke);
}

}
break;
[Java for Android App Development] darthvader45:
Here's my code now:

Like this?

switch(drawType)
{
case LINE:
// draw the rubber band line
paintFill.setColor(Color.BLACK);
for (MyLine l: shapeArray) {
if (l instanceof MyLine) {
MyLine line = (MyLine) l;
canvas.drawLine(line.startX, line.startY, line.endX, line.endY, paintFill);
}

}
break;

case CIRCLE:
// distance =
radius = (float)Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));

for (MyCircle c: shapeArray2){
if (c instanceof MyCircle) {
MyCircle circle = (MyCircle) c;
canvas.drawCircle(circle.startX, circle.startY, radius, paintStroke);
}

}
break;
[Java for Android App Development] nikwen:
Oh. And what you forgot is this line:

canvas.drawLine(startX, startY, currentX, currentY, paintFill);

---------- Post added at 10:10 PM ---------- Previous post was at 10:08 PM ----------

This should work. Try it and report whether it does. ;)

SORRY, made a mistake myself. Corrected.
[Java for Android App Development] darthvader45:
WOO! Works!

Finally got the lines working, circles...not so much :(
[Java for Android App Development] nikwen:
Great. Did you check the updated code?

Do all circles have the same radius? I guess not. So you need to use the radius of the circle.

---------- Post added at 10:26 PM ---------- Previous post was at 10:21 PM ----------

Ok. I guess I know the reason.

If you are in the circle drawing mode, you need to add circles to the list:

case MotionEvent.ACTION_UP:
// finish the line, create an object of it and add it to the ArrayList
switch(drawType)
{
case LINE:
MyLine line1 = new MyLine(startX, startY, currentX, currentY, color);
shapeArray.add(line1);
break;
case CIRCLE:
radius = (float)Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));
MyCircle circle = new MyCircle(startX, startY, radius, color);
shapeArray.add(circle);

break;
//Do the same for the rectangle
}
invalidate();
return true;
[Java for Android App Development] darthvader45:
Here's MyCircle.java atm:

package com.lcc.java2final_lefelhocz;

public class MyCircle extends MyDrawable {

public MyCircle() {

}

}
[Java for Android App Development] nikwen:
I have changed your code. Try that. :)

---------- Post added at 10:32 PM ---------- Previous post was at 10:30 PM ----------

And one more thing:

On XDA we have a Thans button below every post.

You can hit it 8 times a day. Please press it below my posts as I have helped you very much. ;)

Thanks. :)
[Java for Android App Development] darthvader45:
Still got a NullPointerException that pointed here:

for (MyCircle c: shapeArray2){
if (c instanceof MyCircle) {
MyCircle circle = (MyCircle) c;
canvas.drawCircle(circle.startX, circle.startY,circle.radius, paintStroke);
}

}

Btw, I don't see the Thanks button.
[Java for Android App Development] nikwen:
What is shapeArray2?

As we have included the instanceof thing, we do not need a second List. Check the pieces of codes above. ;)

This one: http://xdaforums.com/showpost.php?p=41081454&postcount=24

and this one: http://xdaforums.com/showpost.php?p=41081759&postcount=26

Ah. Ok. I saw it.

Wait a moment.

---------- Post added at 10:41 PM ---------- Previous post was at 10:35 PM ----------

You are using two different ArrayLists. Hence you can delete the if ( ... instanceof ... statements.

I guess that you forgot to add this:

shapeArray2 = new ArrayList<MyCircle>(10);

in the constructor

public LineDrawView(Context context)

Did you see this?

Please be so kind. It does not take long and does not cost anything. ;)
[Java for Android App Development] darthvader45:
Found the thanks button. Gonna test this new code.

Okay, gonna try using your earlier code to try to get it all in one ArrayList.

Edit:

Ok, can you walk me through your earlier code that adds all shapes into one ArrayList?
[Java for Android App Development] nikwen:
You could do:

paintFill.setColor(Color.BLACK);
for (MyLine l: shapeArray) {
if (l instanceof MyLine) {
MyLine line = (MyLine) l;
canvas.drawLine(line.startX, line.startY, line.endX, line.endY, paintFill);
} else if (l instanceof MyCircle) {
MyCircle circle = (MyCircle) c;
canvas.drawCircle(circle.startX, circle.startY, circle.radius, paintStroke);
}
}

switch(drawType)
{
case LINE:
// draw the rubber band line
canvas.drawLine(startX, startY, currentX, currentY, paintFill);

break;

case CIRCLE:
radius = (float)Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));

canvas.drawCircle(startX, startY, radius, paintStroke);
break;
}

(for the drawing part)
[Java for Android App Development] darthvader45:
Where does each one go? All in the onDraw, or what?
[Java for Android App Development] nikwen:
This is the code for the method in your Activity where you draw everything.

EDIT: Yes, it is the onDraw method.

And for the adding:

Just add it to one list. ;)
[Java for Android App Development] nikwen:
Does it work?

EDIT: I removed some unnecessary lines. Check the quoted but modified code above.

And I will be even more thankful if you click my thanks buttons some more times. ;)

Remember, you can do it 8 times a day and consider how much time it has taken me to help you. ;)

---------- Post added at 11:32 PM ---------- Previous post was at 11:23 PM ----------

OK. Could you get a logcat, please (the error logs)?

Please try my new code. Maybe deleting the lines I deleted helps. :)
[Java for Android App Development] nikwen:
Great. :D

Yes, the rectangle is not rubber banding. In the piece of code I gave you for the onDraw method I wrote "Do the same for rectangle".

So add some lines of code inside the switch (drawingMode) statement for the rectangles. It should work the same as for the other shapes. ;)
[Java for Android App Development] darthvader45:
This is what I have:

switch(drawType)
{
case LINE:
MyLine line1 = new MyLine(startX, startY, currentX, currentY, color);
shapeArray.add(line1);
break;
case CIRCLE:
MyCircle circle1 = new MyCircle(startX, startY,radius, color);
shapeArray.add(circle1);
break;
case RECTANGLE:
MyRectangle rect1 = new MyRectangle(startX, startY, currentX, currentY, color);
shapeArray.add(rect1);
//Do the same for the rectangle
break;
}
[Java for Android App Development] nikwen:
That is the part in the onTouch method.

I was talking about the onDraw method. There is no case RECTANGLE statement.
[Java for Android App Development] darthvader45:
protected void onDraw(Canvas canvas)

{

paintFill.setColor(Color.BLACK);

for (MyDrawable l: shapeArray) {

if (l instanceof MyLine) {

MyLine line = (MyLine) l;

canvas.drawLine(line.startX, line.startY, line.endX, line.endY, paintFill);

} else if (l instanceof MyCircle) {

MyCircle circle = (MyCircle)l;

canvas.drawCircle(circle.startX, circle.startY, circle.radius, paintStroke);

}

else if(l instanceof MyRectangle) {

MyRectangle rectangle = (MyRectangle)l;

canvas.drawRect(rectangle.startX, rectangle.startY, rectangle.endX, rectangle.endY, paintStroke);

}

}

}

Oh, this?
[Java for Android App Development] nikwen:
Yes, there was a switch statement, too. Just add a new line with case RECTANGLE: and then code like for the drawing of lines but modified for the rectangles. ;)

---------- Post added 6th May 2013 at 12:09 AM ---------- Previous post was 5th May 2013 at 11:49 PM ----------

Is it working? I really have to sleep now.

If it is not working, post your code soon, please.

---------- Post added at 12:14 AM ---------- Previous post was at 12:09 AM ----------

Ok. As you are offline now, I guess that it is working. :D
[Java for Android App Development] darthvader45:
Like this?(Sorry for being away, had to eat dinner and take a shower):

protected void onDraw(Canvas canvas)
{

paintFill.setColor(Color.BLACK);
for (MyDrawable l: shapeArray) {
if (l instanceof MyLine) {
MyLine line = (MyLine) l;
canvas.drawLine(line.startX, line.startY, line.endX, line.endY, paintFill);
} else if (l instanceof MyCircle) {
MyCircle circle = (MyCircle)l;
canvas.drawCircle(circle.startX, circle.startY, circle.radius, paintStroke);
}
else if(l instanceof MyRectangle) {
MyRectangle rectangle = (MyRectangle)l;
canvas.drawRect(rectangle.startX, rectangle.startY, rectangle.endX, rectangle.endY, paintStroke);
}
}
switch(drawType)
{
case LINE:
// draw the rubber band line
canvas.drawLine(startX, startY, currentX, currentY, paintFill);

break;

case CIRCLE:
radius = (float)Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));

canvas.drawCircle(startX, startY, radius, paintStroke);
break;

case RECTANGLE:
canvas.drawRect(startX, startY, currentX, currentY, paintStroke);
}
}
[Java for Android App Development] nikwen:
Yep. Should be working. Is it?

EDIT:

Ah. Ok. You say that your circles afe drawn twice: Check this post: http://xdaforums.com/showthread.php?p=41083277

In the quoted code I have removed some lines in the onTouch method. Did you do that as well?

If not, do it. ;)
[Java for Android App Development] nikwen:
What do you mean with that they are drawn twice?
[Java for Android App Development] darthvader45:
When I draw one, it seems another one appears on the outside of it. Weird.
[Java for Android App Development] nikwen:
Could you please post a screenshot?
[Java for Android App Development] darthvader45:
Marked the circle. Might be a bug with the app.
[Java for Android App Development] nikwen:
Is it right for the rectangle?

---------- Post added at 06:21 PM ---------- Previous post was at 06:17 PM ----------

Ok. I have got an idea.

Try to set the startX/Y and the currentX/Y variabes as well as all these other ones related to drawing to 0 after adding the shape to the ArrayList.

Maybe this will fix it. :)
[Java for Android App Development] darthvader45:
Great, now it's always drawing a circle at 0,0.