yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] acadoid:
[MENTION=6506129]Caramelia[/MENTION]: LectureNotes' custom drawing tools are coded in JavaScript, not Java.

You can use examples that are enclosed with LectureNotes as starting point. For instance, there is a rectangle and a dashed line, so that you can use the rectangle as template for your dashed rectangle and add the few lines of the dashed line that actually create the dashing.
[Android Apps and Games] Caramelia:
Sorry, meant JavaScrip

Hi!

I figured it out, went about it all wrong, I just needed to add the drawRect line at the end of the dashed line Javascript :)

Thx for responding anyway!
[Android Apps and Games] acadoid:
[MENTION=6506129]Caramelia[/MENTION]: You are right, to modify the dashed line example is probably smarter.
[Android Apps and Games] Caramelia:
Dashed Rectangle

Thank you. I tried it the other way around first and couldn't get the rectangle to work with a dashed line at all, the only effect I managed was to crash my tablet multiple times.

Modifying the dashed line to make a rectangle took one additional line and it worked on the first try.

The only other thing I'm puzzling over: can I change the icon for this tool? At the moment it shows me the icon for the dashed line, which is kind of puzzling as I have both the line and rectangle in the tool box.
[Android Apps and Games] acadoid:
[MENTION=6506129]Caramelia[/MENTION]: After you opened your custom drawing tool in the custom drawing tool editor, select `use template icon´ (to use the icon of another custom drawing tool), `paste icon from clipboard´ (to use an image on the clipboard as icon), or `import icon´ (to select an image in the file system as icon) in the main menu.
[Android Apps and Games] domi.nos:
Hey,

I am looking for a custom drawing tool, that would color eveything that has been selected, into a current color. I know I can do it by simply selecting, and clicking can button, but I would make it easier and faster. It it possible? I just start learing to code, and as I read what is possible in custom drawing tools, I did not find a proper function in there.

Could someone make one for me, please? I owuld be very grateful :)
[Android Apps and Games] acadoid:
[MENTION=3446314]domi.nos[/MENTION]: No, such function cannot be implemented using custom drawing tools. The reason is that there are no commands to determine what is already on the page.
[Android Apps and Games] Skydraegon:
Need a few tools

Could anyone help me make a few custom line tools looking something like those in the attachment? Anything would be appreciated :)
[Android Apps and Games] acadoid:
[MENTION=4824436]Skydraegon[/MENTION]: There are examples of arrows in LectureNotes, I guess that the best is to start with the `double-arrow (medium)´ (i.e., clone and edit it). If you set an

open = 1.5708

(which is π/2) and replace the triangles at the end by

LN.drawLine(x21, y21, x22, y22);
LN.drawLine(x11, y11, x12, y12);

you should get your first drawing tool.
[Android Apps and Games] Kirrrr:
Oops.. Wrong topic.
[Android Apps and Games] katyacat1:
Is it possible?

I would like to make a drawing tool that does the following: [IMG="Loomis Subdivision"]http://2.bp.blogspot.com/-2nAsFWy22xw/UchpI4_wTMI/AAAAAAAACCI/KDBA5bUaNF0/s1600/Loomis-informal-subdivision.jpg[/IMG]

Since I'm terrible at coding; but sloooowly learning, I wanted to check that it was at least possible before spending forever figuring it out.

Any advice or pointers would also be great!

Thanks in advance!
[Android Apps and Games] acadoid:
[MENTION=3339143]katyacat1[/MENTION]: Yes, to draw the lines is feasible. What should be the two control points (starting point and current point), the upper left and the lower right of the whole area? The location of the division lines could then be determined by two numerical parameters (for instance, numbers between 1 and 99, being understood as percentage).

How to get the two control points and how to turn them into upper left and lower right corners (minimizing and maximizing) is shown in several examples, for instance the coordinate system examples. In these examples, you can also see how to get the value of a parameter.

You need to calculate the x and y coordinates of the division lines' end points based on corners and parameters, then the x and y coordinates of the intersection points (which become x and y coordinates of other lines' end points), etc. This (linear) algebra has to be done prior to coding the custom drawing tools. Once you have equations for the x and y coordinates of all lines' end points, you can code the lines.
[Android Apps and Games] Quentinfk:
Is it possible to have a custom drawing tool for drawing a benzene ring?

I draw these quite frequently and I currently use a tool to draw a hexagon and then just add the double bond lines, but I would love a way to draw it right away.

Alternatively is there a way to draw a custom image the same way you draw any other tool. As in, I have a picture of, say, a molecule that I can click a tool for and drag it on the page to draw at what ever size.
[Android Apps and Games] acadoid:
[MENTION=4640740]Quentinfk[/MENTION]: Yes, you can use a custom drawing tool to draw a benzene ring. I assume that you currently use a custom drawing tool to draw the hexagon, right? Clone this custom drawing tool in the custom drawing tool settings (create a new custom drawing tool and use the hexagon as template) and add the commands for the three additional lines.
[Android Apps and Games] Quentinfk:
[MENTION=4619147]acadoid[/MENTION] This is my code for the hexagon. It's modified from an earlier post to make a custom polygon. Where and what would I add to make this a benzene ring.

width = LN.getWidth();
height = LN.getHeight();
pi = 3.1415927;
sides = 6;
phi = 90*2*pi/360;
x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
x0 = (x1+x2)/2;
y0 = (y1+y2)/2;
r = Math.min(x0-x1,y0-y1);
t = LN.getStrokeWidth();
LN.setStrokeWidth(t);
for (i=1 ; i<=sides ; i++){ LN.drawLine(x0+r*Math.cos(2*pi*i/sides+phi),y0-r*Math.sin(2*pi*i/sides+phi), x0+r*Math.cos(2*pi*(i+1)/sides+phi),y0-r*Math.sin(2*pi*(i+1)/sides+phi)); }
[Android Apps and Games] acadoid:
[MENTION=4640740]Quentinfk[/MENTION]: You need to add another loop at the end:

r2 = 0.9*r;
for (i=1 ; i<=sides ; i += 2) {
LN.drawLine(x0+r2*Math.cos(2*pi*i/sides+phi),y0-r2*Math.sin(2*pi*i/sides+phi), x0+r2*Math.cos(2*pi*(i+1)/sides+phi),y0-r2*Math.sin(2*pi*(i+1)/sides+phi));
}

The factor `0.9´ defines the distance between the outer hexagon and the additional lines.
[Android Apps and Games] guymatz:
Hep debugging, please!

Hi! Can anyone tell me what I'm doing wrong here? I'm trying to create an image of an angle .. all I want to do is draw the original line the user draws, then a horizontal line from point 1, the same length as the original line. The variable new_x1 is the endpoint for the vertical line, but I can't get it to be the length of the original line. It's always the length of x2-x1 ...

x1 = LN.getX1();

y1 = LN.getY1();

x2 = LN.getX2();

y2 = LN.getY2();

len = Math.sqrt(Math.pow(x2-x1, 2) + Math.pow(y2 - y1, 2));

new_x1 = x1 + len;

LN.drawLine(x1,y1, new_x1, y1 );

LN.drawLine(x1, y1, x2, y2);

Any thoughts would be greatly appreciated!
[Android Apps and Games] acadoid:
[MENTION=7737850]guymatz[/MENTION]: I do not directly see a problem, my suggestion is to start with a minimal code

x1 = LN.getX1();
y1 = LN.getY1();
x2 = LN.getX2();
y2 = LN.getY2();
LN.drawLine(x1, y1, x2, y2);

(which should work) and add line by line to see which line causes the problem.
[Android Apps and Games] Tamasaka:
[MENTION=7737850]guymatz[/MENTION]: I suppose it's a clipping problem.

Please add following lines to your codes.

ymin = Math.min(y1, y2);
ymax = Math.max(y1, y2);
LN.setClip(x1 - len, ymin, x1+ len, ymax);
[Android Apps and Games] guymatz:
That did the trick!! Thanks!! Must look up Clip function . . .
[Android Apps and Games] xrofevlos:
extend lines

I would simply like to be able to draw a line between two plotted points on a coordinate plane and have the line extend itself further and add arrows. This would allow me to specify two point that a line travels through -- the start (x1,y1) and end (x2,y2) of what I'm selecting with they stylus; but have the generated line extend through those points as we would teach a student to do.

I'm effectively looking at how to modify the double arrow code so that both the clip and the arrowed line itself extend a little further than actually drawn. I'm not good at coding though. Anyone have any advice?
[Android Apps and Games] acadoid:
[MENTION=8012132]xrofevlos[/MENTION]: You know how to calculate the end-points of the extended line?
[Android Apps and Games] SampaiSenpai:
Electical engineering tools

Hi, I am a student in student engineering and I have just started to use this app. I don't know how to code in javascript yet and I would like some tips with coding some custom tools for electric circuits tools (resistors, cells, capacjtors, etc) any tips?
[Android Apps and Games] acadoid:
[MENTION=9165438]SampaiSenpai[/MENTION]: Have a look at the examples that come with LectureNotes and the examples in this thread, this should provide a starting point.

I assume that you need the electric circuit tools in one size only? If so, creating a set of images could be an alternative. There is an entry `paste from non-standard clipboard´ in the `cutter´ menu. This function looks in various places, including the `Downloads´, `Pictures´, and `DCIM´ directories. Thus, you could place the images of the electric circuit tools in one of these directories (or a sub-directory) and access them via the `paste from non-standard clipboard´ item.
[Android Apps and Games] QwertSmeik:
User defined shapes in custom drawing tools for preview purposes

Hey,

when using tools in LectureNotes there is a rect drawn with dashed lines and corners at (start of input, current position of pen). However with the predefined tools, such as the solid line, there is no rect but a direct connection between the two points drawn. When using the ellipsis you can see a preview of it.

Sometimes it is also more appropriate in user defined tools to show other preview lines than a rect. I have not found anything in this thread nor in the help pages. So is it actually possible to define another shape of the preview lines? How can this be done?

Thanks in advance.
[Android Apps and Games] acadoid:
[MENTION=9440171]QwertSmeik[/MENTION]: There are options `fast standard drawing tools rendering´ and `fast custom drawing tools rendering´ in the app's tools settings.

If you disable `fast custom drawing tools rendering´, then the custom drawing tool will be shown after you hold still for a slight moment; a rectangle is shown until then and when you start to move again.
[Sprint HTC EVO 4G LTE] jordan8201:
I've rooted several LTE's w/ DirtyRancun, but it only shows working on 3.17.651.3 and under. Can anyone confirm if it will work on 3.17.651.4? I'm trying to achieve s-off and also root a phone. Thanks so much!
[Sprint HTC EVO 4G LTE] Magnum_Enforcer:
Might want to check the Rumrunner thread (it's for software version 3.17). I know Dirty Racun will work, but there is some hex editing of a file that has to be done so it recognizes the newer software version.

Sent from my HTC EVO 4G LTE
[Sprint HTC EVO 4G LTE] jordan8201:
Thanks. I've been trying Rumrunner. It says the requirement is to be HTC unlocked OR rooted. I'm not rooted, but I did unlock the bootloader. Now I'm getting this error:

ERROR: looks like device is not rooted AND lacks an unsecure kernel. su or FU!!!

Do I have to root before I can run this?
[Sprint HTC EVO 4G LTE] Magnum_Enforcer:
Not sure why you would unlock but not root. At any rate, you can easily root by installing the SuperSU app, or by flashing the su binary zip in recovery (assuming you installed a custom recovery and aren't stock). You'll also need to have Busybox installed. I have both in flashable zip form in the "My Files" link in my sig. Just click on the EVO LTE folder and you'll see the files. Download both and flash in recovery.
[G2 Q&A, Help & Troubleshooting] Lord Kelly:
HI

I have managed to flash in flashmode the recovery file and other that was mention in other post successfully on windows 8

did Fastboot Reboot and phone rebotted to android bot with progress green bar under him then went to lit black screen with green strobe light that lights up and dims out .

I can use power plus volume down and then press power twice but this just shows android bot and goes to black screen again

I have flash uk open d802 kdz file but still fails at 49%.

I can not access recovery at all and don't seem to get back into fastboot mode.

any help would be great been stuck for days .

don't want to take it into the shop to be fixed if I can do it for free.

anybody got any good ideas would be great . I am new to all this and some times don't understand certain things .
[AT&T Samsung Galaxy Note II] ManlyMannyMan:
Loving DN3.

On stock note 2 there was a way to get a stock Data Usage widget on the home screen by using the System Settings widget. This is now gone?

Any help please.

Thanks,

Manny
[LG Optimus 2x] von COLLINZO:
Hi all..

Please I have this problem on my su660 device.... After I install CM10.1 JB successfully; then discovered certain bugs like SDcard mount, etc . I downloaded the the fix and flashed it after doing a full wipe...but it didnt fix anything.

I then wiped a second time to restore my previous backup. I wiped data, cache, then when I tried wiping Dalvik Cache, I got some errors like

E:/ Unable to mount cache
E:/ .. .. .. ..
E:/ .. .. .. ..
E:/ .. .. .. ..

Sorry,, cant remember all those stuffs, so I replaced with dots :D . (maybe I'll just attach a screenshot!

I did a search and found a guide to fix the problem (related to format SDcard to FAT32, and all that), I did all that and nothing worked out.

I tried another tutorial that should help me fix it here http://xdaforums.com/showthread.php?t=1975274 , I followed the guide to unbrick the device coz I think its bricked already, but I keeping getting an error msg like

Unable to detect USB device

...whenever I tried to run the flash.bat file!

I have LG united drivers properly installed. I even installed the drivers a second time....

Is there any way I can get this device fixed ? Or is totally dead?
[LG Optimus 2x] sejo789:
you might need to uninstall drivers and then install, i am sure you are install when is drivers is still installed just reinstall, right? :D
[LG Optimus 2x] von COLLINZO:
yeah..I did reinstall, replacing previous!

But now, I uninstalled and installed again, I still get same problem!

screenshot attached!
[LG Optimus 2x] bitdomo:
[Deleted]
[LG Optimus 2x] von COLLINZO:
Thanks for this bro.....

But I just downloaded all that and tried it, it didn't work out! it just displayed the same error I posted in the above screenshot.

Bro, the thing is, the device doesn't even boot up. Whenever I try to boot the device, it boots into recovery(cwm) then display some errors at the bottom like

E:/ Cant mount cache/recovery/log
etc...

Is there any other way I could try out?
[LG Optimus 2x] aprop:
Sounds like your partitions are screwed up. I have the p990 o2x so might not apply to your phone, but when I installed cm 10.1 i had to repartition my phone to the old layout before it would boot properly.

You could try using AIOTK and repartition your phone using option 4, then choose old layout but it will WIPE ALL YOUR DATA. It will basically install a recovery bootloader so you can install your CM zip again.

For the internal SD card problem, follow piotr121993 instructions from here

The IntSD-MountFix.zip he is talking about is inside the AIOTK folders.
[LG Optimus 2x] sejo789:
if you still didnt resolve this problem, try this:

1. uninstall driver from driver manager

2. install again

3. use another usb cable (i am tried everything to root but nothing, but changing usb cable solved my problem)

report "us" again if you still have problem, me and other people will help to resolve if we can :D
[LG Optimus 2x] g-lock_dk:
hey

I have used this video and worked perfectly https://www.youtube.com/watch?v=rl9Vs8_zcfo it will take you back to android V.2.2.2

the files I used is here on my MEGA drive

https://mega.co.nz/#F!Rs8jBYwJ!OueB12l4VYgDoCpPSggehw
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Bartje2012:
hi, i got some java games and want to play them.

Ive read some stuff and i understand i need a JVM!?!? the link i found here for this java jvm was outdated.

can anyone advice me what to install? maybe even upload it for this poor sucker :P ? btw i have no opera installed, should i do that?

greetz bart
[8125, K-JAM, P4300, MDA Vario Software Upgrading] ollip79:
go to the windows folder on the wizard and find the midletmanager.

there u can open java applications.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Bartje2012:
it gives me a error :(

it says the jar file is not a valid java archive

it's sims 2 lol from ea... maybe it's the symbian verzion ?
[8125, K-JAM, P4300, MDA Vario Software Upgrading] bnycastro:
any links to useful JAVA apps or games for the Wizard?
[Galaxy S I9000 Q&A, Help & Troubleshooting] jeromeb4u:
I am on the latest nightly of CM11 and my mobile frequently shuts down I don't know why...

Is anyone else facing the same problem or any way out... I'm bugged...!!!!
[Sony Xperia ZL] ManoxVermox:
A users the app Light Flow, not work them with Android 4.3. I solved this way:

I have an Xperia ZL upgraded to Android 4.3 Existenz, in the section Settings \ Security, there is an option called Access Notifications within it have to make Light Flow.

This is in addition to the marking we do in the Accessibility section.

I hope it can help many of you!

Greetings!

Excuse my bad translations, I use Google Translator
[Nexus 5 Q&A, Help & Troubleshooting] jacqueline_du93:
Hi guys !

Just a quick question as I will be receiving my N5 fairly soon I wanted to know what is the best kernel for this phone or at least for my use which is not that intensive but battery life is always a plus and I have to say the tap2unlock is really appealing.

Thanks !
[Nexus 5 Q&A, Help & Troubleshooting] pepdavies:
Try them and decide. I like Franco but everyone's needs are different

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] Grondinm:
http://xdaforums.com/showthread.php?t=2477889
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
This one http://xdaforums.com/showthread.php?p=46344624
[Nexus 5 Q&A, Help & Troubleshooting] jacqueline_du93:
Okay, sorry guys, silly me:silly:, forgot about that, I'm actually in a lot of different forums and I sometimes forget some of the rules.

I'll try them and see for myself, feel free to delete this thread, and again, sorry.
[Nexus 5 Q&A, Help & Troubleshooting] wedgess:
As everyone has pointed out these threads are not allowed on XDA as highlited in my post stickied at the top of the section.

http://xdaforums.com/showthread.php?t=2477889

http://xdaforums.com/showpost.php?p=49431706&postcount=4

Thread closed
[Asus Transformer TF700] kansasboy001:
I have cm11 and pa gapps stock. All of the dock keys work, except the browser key, because pa gapps replaces the aosp browser with chrome, is there a way to remap the browser key so it will open chrome?
[Asus Transformer TF700] PaintballerAlex07:
I hope you get a response as well. I've been looking into it because I would like Firefox as my default browser.

BTW if I remember correctly PAC-man ROM has this, but I'm not sure though.
[Sony Xperia P, U, Sola, Go] sammyroid:
(ics) i already use ics but my phone goes in bootloop and bluetooth doesnt start

and

gb shows wifi error and bluetooth doesnt start

help me !!!!!!!!!!

If any one suffers with this situation and which kernel can i use

currently using stock kernel

any senior help me which kernel is best according to you
[Samsung Galaxy SL i9003] M.T.:
Uh, hello people,

First of all I want to clear out that I am not very knowlegable when it comes to the wonderful world of Android and stuff with all its details, but then again that is why I came here because other people seem to have found a solution to their problems here.

I don't think I found a topic that already covered my issue, so here I go:

Basically, all of a sudden my phone began to restart itself over and over again. I do not remember doing anything in particular prior to that happening, be it downloading anything or pretty much doing anything at all... After it restarts, I am able to enter my PIN code, unlock my phone, get to the homepage (where the apps and widgets suddenly disappear...) and around 15 seconds after the phone had restarted, no matter what I do to the phone it just goes off to reboot itself again. Even if I wait and not enter my PIN code it would still restart after those 15ish seconds...

I am running on Android 4.3 with CyanogenMod 10.2 (as far as I remember), which was already there when I got my phone.

Sоо, some help would be greatly appretiated :D
[Samsung Galaxy SL i9003] acuicultor:
Enter recovery mode and wipe cache and under advanced wipe dalvick cache tjen reboot.
[Samsung Galaxy SL i9003] DrYnternet:
M.T. please tell me whether this did work for you. I flashed CM10.2 on the i9003 for my colleague and he just experiences the same things.
[Samsung Galaxy SL i9003] M.T.:
Nope, didn't help :/
[Samsung Galaxy SL i9003] niuzaixh:
wipe all and flash the rom again
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] rachelm920:
Hello all...

My boyfriend has the S4 for AT&T and loves the setup I have on my S3 with CM11 nightlies. Just curious as to how stable they are for the S4. I'm the Android nerd in the relationship and I don't want him to have any issues, since we don't live together.. yet ;)

Or should I put another KK rom I saw over in the development section? Is CM10/JB more stable? How's the battery drain? I want to improve his phone, not give him problems LOL. He's completely stock right now.

I already know how to root and all that, I don't need instructions just advice for the best AOSP ROM/Kernel out there for this device.

Thanks in advance! :D
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Kaze105:
Depends on which firmware your boyfriend's phone has. Unless he is on the older firmware 4.2 MDL, there is no way to flash any AOSP rom, custom kernel, or even custom recoveries except Safestrap recovery.

With safestrap recovery, you can only flash certain touchwiz roms.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] rachelm920:
I'll have to check it out when I see him in a cpl days
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] topiratiko:
Personally...I prefer custom tw roms on this phone..tw is actually better looking and more polished...and alot more features...check out Graviton 1.7

AT&T Samsung Galaxy SIV

Graviton Rom 1.7

Ktoonsez 01/13/2014 Kernel
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Mejilan:
I spent a few days messing around with a CM11 1/10 nightly, 1/12 nightly, and the M2 snapshot.

I was really quite impressed with just how smooth everything looked and felt.

Definitely a step up from CM 10.2 and 4.3-based Carbon builds.

I had best results with the 1/12 nightly and the M2 snapshot.

I was experiencing odd reboots and glitches with the 1/10 nightly.

Mine is a pre-MF3 phone, obviously.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] hednik:
rule of thumb with nightlies is that they are not always an indication of an official release. You could get a bad nightly but the nightly before was fine. So far they are fine and nightlies are generally for flash-oholics
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] Mejilan:
Yep. If you're deadset on a relatively hands-free CM11, I think the M2 snapshot is probably the best bet.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] rachelm920:
OK so I took a screenshot of his system info and sent it to myself LOL

Baseband I337UCUAMDL

Kernel 3.4.0-453947 se.infra@SEI-46 #1

Build Number JDQ39.I337UCUAMDL

Is this the firmware you were referring to? I asked him if he did any system updates and he said he has not.
[AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin] DeadlySin9:
Yes, that's the right firmware. You can go ahead and use CASUAL, and then flash whatever you like for him.